From bd52f9bcc370779ee5c1edbdefec640119226412 Mon Sep 17 00:00:00 2001
From: Spencer Finnell
Date: Thu, 9 Jan 2025 08:41:28 -0500
Subject: [PATCH 1/2] Sync from Pro
---
.nvmrc | 1 +
data/etc/public_key.pem | 9 +
includes/core/assets/css/admin/admin.scss | 95 ++-
includes/core/assets/css/simpay-admin.min.css | 2 +-
...ay-admin-dashboard-widget-report.asset.php | 2 +-
...pay-admin-form-template-explorer.asset.php | 2 +-
.../js/dist/simpay-admin-help.asset.php | 2 +-
.../assets/js/dist/simpay-admin-notices.js | 2 +-
.../dist/simpay-admin-notifications.asset.php | 2 +-
...mpay-admin-page-activity-reports.asset.php | 2 +-
.../simpay-admin-page-setup-wizard.asset.php | 2 +-
.../js/dist/simpay-admin-page-setup-wizard.js | 2 +-
.../assets/js/dist/simpay-admin-page-smtp.js | 2 +-
includes/core/assets/js/dist/simpay-admin.js | 2 +-
.../js/dist/simpay-block-button.asset.php | 2 +-
.../assets/js/dist/simpay-public-shared.js | 2 +-
.../core/assets/js/dist/simpay-public-upe.js | 2 +-
includes/core/assets/js/dist/simpay-public.js | 2 +-
includes/core/assets/js/src/admin/index.js | 25 +-
.../admin/payment-form/confirmation-page.js | 140 +++
.../assets/js/src/admin/payment-form/index.js | 1 +
includes/core/forms/class-price-option.php | 19 +
includes/core/functions/admin.php | 76 ++
includes/core/functions/shared.php | 5 +
includes/core/payments/class-stripe-api.php | 16 +-
.../payment-confirmation-template-tags.php | 10 +-
.../core/post-types/simple-pay/actions.php | 94 +-
.../simple-pay/edit-form-confirmation.php | 317 ++++++-
.../core/post-types/simple-pay/edit-form.php | 800 +++++++++---------
languages/stripe.pot | 402 +++++----
lib/Symfony/Polyfill/Php80/composer.json | 2 +-
.../Resources/stubs/Attribute.php | 2 +-
package-lock.json | 4 +-
src/Admin/AdminServiceProvider.php | 17 +-
.../Education/EducationServiceProvider.php | 2 -
src/Cryptography/Cryption.php | 70 ++
src/Emails/Email/AbstractEmail.php | 49 +-
src/Emails/Email/PaymentNotificationEmail.php | 4 +-
src/Emails/EmailSubscriber.php | 22 +-
src/License/LicenseManager.php | 3 +-
src/NotificationInbox/Database/Query.php | 0
src/NotificationInbox/Database/Schema.php | 0
src/NotificationInbox/Database/Table.php | 0
.../NotificationInboxServiceProvider.php | 24 +-
.../PluginRatingNotification.php | 10 +-
.../StripeConnectNotification.php | 105 +++
.../Notifications}/UpeNotification.php | 21 +-
src/PaymentPage/PaymentPageOutput.php | 85 +-
src/Plugin.php | 7 +-
.../Chart/PeriodOverPeriodChartTrait.php | 13 +-
src/Report/ReportTrait.php | 9 +-
.../Internal/Payment/Traits/InvoiceTrait.php | 1 -
.../Payment/Traits/SubscriptionTrait.php | 37 +-
.../Payment/Utils/FeeRecoveryUtils.php | 20 +-
.../Payment/Utils/PaymentRequestUtils.php | 19 +-
.../Payment/Utils/SchemaValidationUtils.php | 2 +-
.../Payment/Utils/TokenValidationUtils.php | 53 +-
src/Webhook/NoneReceivedNotice.php | 11 +-
views/admin-education-plugin-coupons.php | 2 +-
...in-education-plugin-customers-settings.php | 2 +-
.../admin-education-plugin-email-settings.php | 2 +-
.../admin-education-plugin-taxes-settings.php | 2 +-
views/payment-page-output.php | 2 +-
63 files changed, 1903 insertions(+), 739 deletions(-)
create mode 100644 .nvmrc
create mode 100644 data/etc/public_key.pem
create mode 100644 includes/core/assets/js/src/admin/payment-form/confirmation-page.js
create mode 100644 src/Cryptography/Cryption.php
mode change 100644 => 100755 src/NotificationInbox/Database/Query.php
mode change 100644 => 100755 src/NotificationInbox/Database/Schema.php
mode change 100644 => 100755 src/NotificationInbox/Database/Table.php
rename src/{Admin => NotificationInbox/Notifications}/PluginRatingNotification.php (92%)
create mode 100644 src/NotificationInbox/Notifications/StripeConnectNotification.php
rename src/{Admin => NotificationInbox/Notifications}/UpeNotification.php (87%)
diff --git a/.nvmrc b/.nvmrc
new file mode 100644
index 00000000..5edcff03
--- /dev/null
+++ b/.nvmrc
@@ -0,0 +1 @@
+v16
\ No newline at end of file
diff --git a/data/etc/public_key.pem b/data/etc/public_key.pem
new file mode 100644
index 00000000..9d97edf3
--- /dev/null
+++ b/data/etc/public_key.pem
@@ -0,0 +1,9 @@
+-----BEGIN PUBLIC KEY-----
+MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAw6WI2Yb1HVAs2WmJ1R3k
+P4TU+hfzlmD/Mryioj4mjcwdRDMrRfNZkVdI79cajvj9gm9VWfK3d3lfKYH5B2vq
+wdgaWYhduJvMBI8E6mgC4F3bZ8ZuBA9tSHXESXwqsTUuF0yiHkKztzhsjSDRjYZl
+pWiWHaKsWwiI9Iui9+dI48XC2ZkquH5jJin1LaM2I8AlQ9i0U3M+LopKdOcOCa8a
+9Zx4Wx3AbiNaasC04n412I9/aRE6qkitP3tOfAT8p/0TbIXztdOm52csEu36+W5k
+nanP6FzoZI8Iakc/iF0TUevAOv+Xq/FaE4rGbvLEhGZdMOJYWu9LbbFJHU8/cBQm
++QIDAQAB
+-----END PUBLIC KEY-----
diff --git a/includes/core/assets/css/admin/admin.scss b/includes/core/assets/css/admin/admin.scss
index d451c22b..68bbcc8a 100644
--- a/includes/core/assets/css/admin/admin.scss
+++ b/includes/core/assets/css/admin/admin.scss
@@ -452,7 +452,7 @@
}
&[href="#purchase-restrictions-settings-panel"],
- &[href="#payment-page-settings-panel"] {
+ &[href="#confirmation-settings-panel"] {
margin-bottom: 20px;
position: relative;
@@ -2424,3 +2424,96 @@ body.post-type-simple-pay #wpbody-content {
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
padding: 12px 18px;
}
+
+// Payment Page
+.payment-page-background-color-selector {
+ display: flex;
+ align-items: center;
+ flex-wrap: wrap;
+ position: relative;
+}
+
+.simpay-payment-page-background-color {
+ margin: 0 8px 8px 0;
+}
+
+.simpay-payment-page-background-color label {
+ width: 88px;
+ height: 50px;
+ border-radius: 4px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ border: 2px solid transparent;
+ position: relative;
+ box-sizing: border-box;
+}
+
+.simpay-payment-page-background-color input {
+ position: absolute;
+ top: 0;
+ left: 0;
+ z-index: -1;
+}
+
+.simpay-payment-page-background-color input:checked + label,
+.simpay-payment-page-background-color .wp-picker-container .wp-color-result.button.is-selected {
+ box-shadow: inset 0 0 0 2px white;
+}
+
+.simpay-payment-page-background-color input:checked + label:after,
+.simpay-payment-page-background-color .wp-picker-container .wp-color-result.button.is-selected:after {
+ color: #fff;
+ font-size: 20px;
+ font-weight: bold;
+ content: '✓';
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translate3d(-50%, -50%, 0);
+}
+
+.simpay-payment-page-background-color .wp-picker-container .wp-color-result.button {
+ width: 80px;
+ height: 50px;
+ border-radius: 4px;
+ border: 2px solid transparent;
+ box-sizing: border-box;
+ margin: 0;
+ position: relative;
+}
+
+.simpay-payment-page-background-color .wp-picker-container .wp-color-result.button:after {
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 512 512'%3E%3C!--! Font Awesome Free 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M482.8 29.23c38.9 38.98 38.9 102.17 0 141.17L381.2 271.9l9.4 9.5c12.5 12.5 12.5 32.7 0 45.2s-32.7 12.5-45.2 0l-160-160c-12.5-12.5-12.5-32.7 0-45.2s32.7-12.5 45.2 0l9.5 9.4L341.6 29.23c39-38.974 102.2-38.974 141.2 0zM55.43 323.3 176.1 202.6l45.3 45.3-120.7 120.7c-3.01 3-4.7 7-4.7 11.3V416h36.1c4.3 0 8.3-1.7 11.3-4.7l120.7-120.7 45.3 45.3-120.7 120.7c-15 15-35.4 23.4-56.6 23.4H89.69l-39.94 26.6c-12.69 8.5-29.59 6.8-40.377-4-10.786-10.8-12.459-27.7-3.998-40.4L32 422.3v-42.4c0-21.2 8.43-41.6 23.43-56.6z' fill='%23fff' /%3E%3C/svg%3E");
+ position: absolute;
+ top: 58%;
+ left: 50%;
+ transform: translate3d(-50%, -50%, 0);
+}
+
+.simpay-payment-page-background-color .wp-picker-container .wp-color-result.button:hover,
+.simpay-payment-page-background-color .wp-picker-container .wp-color-result.button:focus {
+ color: #fff;
+ border: 2px solid transparent;
+ box-shadow: none;
+}
+
+.simpay-payment-page-background-color .wp-picker-container .wp-color-result.button:hover:after,
+.simpay-payment-page-background-color .wp-picker-container .wp-color-result.button:focus:after {
+ color: #fff;
+ border: 0;
+}
+
+.simpay-payment-page-background-color .wp-picker-holder {
+ position: absolute;
+ z-index: 10;
+}
+
+.simpay-payment-page-background-color .wp-picker-container .wp-picker-clear,
+.simpay-payment-page-background-color .wp-picker-container .wp-color-result-text {
+ display: none;
+}
+
+.simpay-payment-page-background-color .wp-picker-open + .wp-picker-input-wrap {
+ display: none;
+}
\ No newline at end of file
diff --git a/includes/core/assets/css/simpay-admin.min.css b/includes/core/assets/css/simpay-admin.min.css
index 02037dd5..82d4dd80 100644
--- a/includes/core/assets/css/simpay-admin.min.css
+++ b/includes/core/assets/css/simpay-admin.min.css
@@ -1 +1 @@
-.simpay-settings-subsections{display:flex;align-items:center;box-shadow:inset 0 -1px 0 0 #ccc}.simpay-settings-subsections__subsection{font-weight:500;text-decoration:none;padding:15px;display:flex;align-items:center}.simpay-settings-subsections__subsection .dashicons{width:18px;height:18px;font-size:18px;margin-right:4px}.simpay-settings-subsections__subsection.is-active{box-shadow:inset 0 -4px 0 0 currentColor;position:relative;z-index:1}.simpay-settings-subsections__subsection:not(.is-active){color:#23282d}.simpay-settings form>h2:not(.nav-tab-wrapper){clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px}.simpay-settings .form-table td fieldset+p,.simpay-settings .form-table td label+p,.simpay-settings .form-table td select+p,.simpay-settings .form-table td input+p{color:#666;font-style:italic}.simpay-settings .simpay-settings-subsections__subsection{display:flex;align-items:center}.simpay-settings .simpay-settings-subsections__subsection .simpay-settings-bubble{margin-left:5px}.simpay-settings .simpay-settings-visual-toggles{margin:30px 0 0;display:flex}.simpay-settings .simpay-settings-visual-toggles input[type=radio]{display:none}.simpay-settings .simpay-settings-visual-toggles__toggle{-webkit-user-select:none;-moz-user-select:none;user-select:none;min-width:180px;margin:0 30px 0 0 !important;position:relative;display:block;background-color:#fff;border-radius:4px;border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04)}.simpay-settings .simpay-settings-visual-toggles__toggle:hover{border:1px solid #999;box-shadow:0 1px 2px rgba(0,0,0,.1)}.simpay-settings .simpay-settings-visual-toggles input[type=radio]:checked+.simpay-settings-visual-toggles__toggle{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.simpay-settings .simpay-settings-visual-toggles__toggle-recommended,.simpay-settings .simpay-settings-visual-toggles__toggle-not-recommended{text-align:center;font-size:12px;text-transform:uppercase;font-weight:bold;margin:0;padding:5px 0;display:block;border-top-right-radius:4px;border-top-left-radius:4px}.simpay-settings .simpay-settings-visual-toggles__toggle-recommended{color:#0f8569;background:#f4f9f7}.simpay-settings .simpay-settings-visual-toggles__toggle-not-recommended{color:#b91c1b;background:#fef2f2}.simpay-settings .simpay-settings-visual-toggles__toggle-icon{margin:20px auto 15px;padding:0 15px;display:block}.simpay-settings .simpay-settings-visual-toggles__toggle-label{line-height:1.5;text-align:center;font-size:16px;font-weight:500;margin:15px;display:block}.simpay-settings .simpay-settings-visual-toggles__toggle-label small{color:#666;font-weight:normal;font-size:13px;line-height:1;display:block;margin:4px 0}.simpay-settings .simpay-settings-visual-toggles.simpay-settings-captcha-type .simpay-settings-visual-toggles__toggle{min-height:160px}.simpay-settings .simpay-settings-visual-toggles.simpay-settings-captcha-type .simpay-settings-visual-toggles__toggle-icon{width:80px;height:80px}.simpay-settings .simpay-settings-visual-toggles.simpay-settings-captcha-type input[type=radio].simpay-settings-captcha-type--is-recommended:checked+.simpay-settings-visual-toggles__toggle{border-color:#0f8569;box-shadow:0 0 0 1px #0f8569}.simpay-settings .simpay-settings-visual-toggles.simpay-settings-captcha-type input[type=radio].simpay-settings-captcha-type--is-not-recommended:checked+.simpay-settings-visual-toggles__toggle{border-color:#b91c1b;box-shadow:0 0 0 1px #b91c1b}.simpay-settings .simpay-settings-visual-toggles.simpay-settings-captcha-type label[for=simpay-settings-captcha-type-cloudflare-turnstile] .simpay-settings-visual-toggles__toggle-icon{width:120px}.simpay-settings-general-recaptcha-no_captcha_warning th,.simpay-settings-general-recaptcha-no_captcha_warning td,.simpay-settings-hcaptcha_secret_key th,.simpay-settings-hcaptcha_secret_key td,.simpay-settings-cloudflare_turnstile_secret_key th,.simpay-settings-cloudflare_turnstile_secret_key td,.simpay-settings-recaptcha_score_threshold th,.simpay-settings-recaptcha_score_threshold td{padding-bottom:50px !important}.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-summary-report,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-payment-confirmation,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-payment-notification,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-upcoming-invoice,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-manage-subscriptions,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-payment-processing-confirmation,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-payment-processing-notification,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-payment-refunded-confirmation,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-subscription-cancel-confirmation,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-subscription-cancel-notification,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-invoice-confirmation{display:none}.simpay-settings .simpay-settings-subsection-emails-tools{margin-left:auto}.simpay-admin-charts-period-over-period{position:relative;padding-bottom:12px}.simpay-admin-charts-period-over-period *{box-sizing:border-box}.simpay-admin-charts-period-over-period__tooltip{position:absolute;background:#fff;border:1px solid #c3c3c3;box-shadow:0 2px 6px rgba(0,0,0,.05);border-radius:2px;padding:10px 14px;display:flex;flex-direction:column;z-Index:10000;min-width:175px}.simpay-admin-charts-period-over-period__tooltip-data{white-space:nowrap;margin-bottom:8px;display:grid;grid-template-columns:1fr auto;grid-auto-rows:auto;-moz-column-gap:16px;column-gap:16px}.simpay-admin-charts-period-over-period__tooltip-data:last-child{margin-bottom:0}.simpay-admin-charts-period-over-period__tooltip-data[data-dataset="1"]{opacity:.65}.simpay-admin-charts-period-over-period__tooltip-data em{font-style:normal;text-align:right}.simpay-admin-charts-period-over-period__tooltip-delta{font-size:12px;margin:0 -14px -10px;padding:8px 14px;border-top:1px solid #eee;background:#fdfdfd;border-radius:2px;display:flex;align-items:center;justify-content:center}.simpay-admin-charts-period-over-period__tooltip-delta .simpay-admin-charts-badge{margin-right:4px}.simpay-admin-charts-period-over-period__tooltip-delta strong.is-positive{color:#006908}.simpay-admin-charts-period-over-period__tooltip-delta strong.is-negative{color:#b3093c}.simpay-admin-charts-badge{color:#2f2f2f;font-size:12px;font-weight:500;font-style:normal;line-height:1;padding:3px 6px;display:inline-flex;align-items:center;background:#f0f0f0;border-radius:100px}.simpay-admin-charts-badge.is-positive{color:#006908;background-color:#d7f7c2}.simpay-admin-charts-badge.is-negative{color:#b3093c;background-color:#ffe7f2}.simpay-admin-charts-badge__icon{width:15px;height:15px}.simpay-admin-charts-no-data{position:absolute;top:0;left:0;display:flex;justify-content:center;align-items:center;background:rgba(255,255,255,.5);z-index:2}.simpay-admin-charts-no-data>div{text-align:center;padding:24px;background:#fff;border:1px solid #c3c3c3;box-shadow:0 2px 6px rgba(0,0,0,.1);border-radius:2px;max-width:60%}.simpay-admin-charts-no-data strong{font-size:15px;margin-bottom:8px;display:block}.button.button-large.simpay-button-large{font-size:14px;line-height:30px;padding:4px 12px}.simpay-copy-hidden-input{clip:rect(1px, 1px, 1px, 1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.fixed .column-livemode{width:15%;text-align:right}@media screen and (max-width: 782px){.fixed .column-livemode{text-align:left}}.fixed .column-livemode .simpay-badge{margin-top:3px}.fixed .column-shortcode{width:25%}.fixed .column-shortcode .simpay-shortcode{clip:rect(1px, 1px, 1px, 1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.post-type-simple-pay .misc-pub-curtime,.post-type-simple-pay .misc-pub-visibility{display:none}.simpay-metabox-title{border:1px solid #eee}.simpay-shortcode-section{border-top:1px solid #ddd;border-width:1px 0;padding-top:15px;padding-bottom:15px;position:relative}.simpay-shortcode-section label{display:block;margin-bottom:6px}.simpay-shortcode-section label .dashicons{color:#8c8f94;margin-right:3px}.simpay-shortcode-section .simpay-copy-button{line-height:normal;position:absolute;right:20px;bottom:20px;border:0;background:none;box-shadow:none;padding:0}.simpay-shortcode-section .simpay-copy-button:hover{border:0;background:none;box-shadow:none}.simpay-shortcode-section .simpay-copy-button .dashicons{color:#3c434a}.simpay-shortcode{width:100%;padding:8px;line-height:1;margin:0;height:32px;resize:none}.simpay-badge{color:#3f3f46;text-align:center;line-height:1;padding:5px 7px;border-radius:3px;background:#e4e4e7;border:0;box-shadow:none;display:inline-flex;align-items:center}button.simpay-badge{cursor:pointer}button.simpay-badge:hover{background:#d4d4d8}.simpay-badge__icon{opacity:.8;margin:2px 5px 0 0}.simpay-badge--green{color:#0e6245;background:#cbf4c9}.simpay-badge--yellow{color:#983705;background:#f8e5b9}.simpay-stripe-account-info{display:flex;align-items:center;margin-bottom:8px;position:relative}.simpay-stripe-account-info .spinner{float:none;margin-top:0;margin-left:0}.simple-pay_page_simpay_settings .simpay-settings-upgrade,.post-type-simple-pay .simpay-settings-upgrade{margin-top:20px;padding:1px;position:relative;background:#fff;border-radius:4px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2),0 5px 10px rgba(0,0,0,.1);max-width:677px}.simple-pay_page_simpay_settings .simpay-settings-upgrade__inner,.post-type-simple-pay .simpay-settings-upgrade__inner{text-align:center;margin:0;padding:30px}.simple-pay_page_simpay_settings .simpay-settings-upgrade h3,.post-type-simple-pay .simpay-settings-upgrade h3{line-height:1.5;font-size:22px;margin:0 0 1.5rem}.simple-pay_page_simpay_settings .simpay-settings-upgrade ul,.post-type-simple-pay .simpay-settings-upgrade ul{margin:1.5rem 0 calc(1.5rem - 6px);display:flex;flex-wrap:wrap;justify-content:center}@media screen and (min-width: 782px){.simple-pay_page_simpay_settings .simpay-settings-upgrade ul,.post-type-simple-pay .simpay-settings-upgrade ul{margin-left:4rem;margin-right:4rem}}.simple-pay_page_simpay_settings .simpay-settings-upgrade li,.post-type-simple-pay .simpay-settings-upgrade li{font-size:15px;margin:6px 0;width:100%}.simple-pay_page_simpay_settings .simpay-settings-upgrade li a,.post-type-simple-pay .simpay-settings-upgrade li a{color:#3c434a;text-decoration:none}.simple-pay_page_simpay_settings .simpay-settings-upgrade li a:hover,.post-type-simple-pay .simpay-settings-upgrade li a:hover{color:var(--wp-admin-theme-color);text-decoration:underline}@media screen and (min-width: 782px){.simple-pay_page_simpay_settings .simpay-settings-upgrade li,.post-type-simple-pay .simpay-settings-upgrade li{text-align:left;width:50%}}.simple-pay_page_simpay_settings .simpay-settings-upgrade .button.button-large,.post-type-simple-pay .simpay-settings-upgrade .button.button-large{font-size:17px;line-height:30px;padding:10px 20px}.simple-pay_page_simpay_settings .simpay-settings-upgrade small,.post-type-simple-pay .simpay-settings-upgrade small{color:#666;margin:15px 0 0;display:block}.simple-pay_page_simpay_settings .simpay-settings-upgrade .dashicons-yes,.post-type-simple-pay .simpay-settings-upgrade .dashicons-yes{color:#428bca}.simple-pay_page_simpay_settings .simpay-settings-upgrade .button-link,.post-type-simple-pay .simpay-settings-upgrade .button-link{position:absolute;top:0;right:0;font-size:20px;color:#666;font-weight:bold;text-decoration:none;margin-left:5px;padding:6px 10px;z-index:2}.simple-pay_page_simpay_settings .simpay-settings-upgrade .button-link:hover,.simple-pay_page_simpay_settings .simpay-settings-upgrade .button-link:active,.simple-pay_page_simpay_settings .simpay-settings-upgrade .button-link:focus,.post-type-simple-pay .simpay-settings-upgrade .button-link:hover,.post-type-simple-pay .simpay-settings-upgrade .button-link:active,.post-type-simple-pay .simpay-settings-upgrade .button-link:focus{color:#666;text-decoration:none}.simple-pay_page_simpay_settings .simpay-settings-upgrade .simpay-upgrade-btn-subtext,.post-type-simple-pay .simpay-settings-upgrade .simpay-upgrade-btn-subtext{text-align:center;margin:0;padding:30px 20px 20px;background-color:#fcf9e8;border:1px solid #edeac9;border-width:1px 0 0;position:relative;border-radius:0;border-bottom-left-radius:4px;border-bottom-right-radius:4px}@media screen and (min-width: 782px){.simple-pay_page_simpay_settings .simpay-settings-upgrade .simpay-upgrade-btn-subtext,.post-type-simple-pay .simpay-settings-upgrade .simpay-upgrade-btn-subtext{padding-left:4rem;padding-right:4rem}}.simple-pay_page_simpay_settings .simpay-settings-upgrade .simpay-upgrade-btn-subtext svg,.post-type-simple-pay .simpay-settings-upgrade .simpay-upgrade-btn-subtext svg{background:#00a32a;fill:#fff;border-radius:50%;border:4px solid #fff;box-shadow:0 0 0 1px #edeac9;width:28px;height:28px;position:absolute;top:-18px;left:50%;margin-left:-18px}.simple-pay_page_simpay_settings .simpay-settings-upgrade .simpay-upgrade-btn-subtext u,.post-type-simple-pay .simpay-settings-upgrade .simpay-upgrade-btn-subtext u{text-decoration:none;font-weight:bold;color:#00a32a}.simple-pay_page_simpay_settings .simpay-settings-upgrade .simpay-upgrade-btn-subtext a,.post-type-simple-pay .simpay-settings-upgrade .simpay-upgrade-btn-subtext a{font-weight:normal;display:inline-block}#simpay-payment-form-settings table{width:100%;border-collapse:collapse}#simpay-payment-form-settings ::-webkit-input-placeholder{color:#9ba1a9}#simpay-payment-form-settings ::-moz-placeholder{color:#9ba1a9;opacity:1}#simpay-payment-form-settings :-ms-input-placeholder{color:#9ba1a9}#simpay-payment-form-settings .inside{margin:0;padding:0}#simpay-payment-form-settings .simpay-panel-field .toolbar{margin-bottom:-4px}#simpay-payment-form-settings .simpay-panel-field .toolbar .simpay-field-select{margin:0 0 4px;width:auto;max-width:70%}#simpay-payment-form-settings .simpay-tabs{margin:0;padding:0;list-style:none;background:#fafafa;border-right:1px solid #ccd0d4;line-height:1em;position:relative;flex:0 0 25%}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-tabs{flex-basis:100%;flex-grow:1;border-right:0}}#simpay-payment-form-settings .simpay-tabs li{margin:0;padding:0}#simpay-payment-form-settings .simpay-tabs li:first-child{margin-top:12px}#simpay-payment-form-settings .simpay-tabs li:last-child{margin-bottom:20px}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-tabs li:last-child{margin-bottom:0}}#simpay-payment-form-settings .simpay-tabs li.active{margin-left:-1px;box-shadow:0 1px 1px rgba(0,0,0,.04);position:relative}#simpay-payment-form-settings .simpay-tabs li.active:focus:after{display:none}#simpay-payment-form-settings .simpay-tabs li.active:before,#simpay-payment-form-settings .simpay-tabs li.active:after{content:"";width:calc(100% + 1px);height:1px;background:#ccd0d4;position:absolute;top:0;left:0;right:0;z-index:2}#simpay-payment-form-settings .simpay-tabs li.active:after{top:auto;bottom:0}#simpay-payment-form-settings .simpay-tabs li.active a{font-weight:bold;background-color:#fff;position:relative;margin-right:-1px}#simpay-payment-form-settings .simpay-tabs li.active a:before{content:"";position:absolute;top:0;left:0;bottom:0;width:4px;height:100%;background:currentColor;z-index:3}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-tabs li.active a{margin-right:0}}#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item{display:flex;align-items:center;line-height:20px;margin:0;padding:8px 10px 8px 14px;text-decoration:none;transition:all .05s ease-in-out}#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item svg,#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item .dashicons{margin-right:6px}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item{padding:18px}}#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item:focus{outline:0;position:relative;z-index:3;box-shadow:inset 0 0 0 1px currentColor,0 0 0 1px currentColor}#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item[href="#purchase-restrictions-settings-panel"],#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item[href="#payment-page-settings-panel"]{margin-bottom:20px;position:relative}#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item[href="#purchase-restrictions-settings-panel"]:after,#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item[href="#payment-page-settings-panel"]:after{content:"";position:absolute;left:14px;right:14px;bottom:-10px;width:calc(100% - 28px);height:1px;background:#eaeaea}#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item span>span{color:#f18500;font-size:12px;font-weight:600;margin:0 0 0 5px;display:inline-block}#simpay-payment-form-settings .simpay-tabs li:not(.active) .simpay-tab-item{color:inherit}#simpay-payment-form-settings .simpay-panels-wrap{background:#fff;display:flex}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-panels-wrap{flex-direction:column}}#simpay-payment-form-settings .simpay-panels{flex:0 0 75%;display:flex}@media screen and (min-width: 1400px){#simpay-payment-form-settings .simpay-panels{flex-basis:75%}}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-panels{flex-basis:100%}}#simpay-payment-form-settings .simpay-panel,#simpay-payment-form-settings .simpay-panel-section{width:100%}#simpay-payment-form-settings .simpay-panel>table,#simpay-payment-form-settings .simpay-panel>table>tr,#simpay-payment-form-settings .simpay-panel>table>tbody,#simpay-payment-form-settings .simpay-panel>table>tbody>tr,#simpay-payment-form-settings .simpay-panel>table>thead,#simpay-payment-form-settings .simpay-panel>table>thead>tr{display:block;width:100%}#simpay-payment-form-settings .simpay-panel>table:last-child>tbody:last-child>tr:last-child>td{border-bottom:0}#simpay-payment-form-settings .simpay-panel-field--requires-upgrade{position:relative}#simpay-payment-form-settings .simpay-panel-field--requires-upgrade td>div{margin-right:80px}#simpay-payment-form-settings .simpay-panel-field--requires-upgrade td>div .button-small{position:absolute;top:calc(50% - 13px);right:18px}#simpay-payment-form-settings .simpay-panel-field,#simpay-payment-form-settings .simpay-panel-field>td,#simpay-payment-form-settings .simpay-panel-field>th{text-align:left;display:block}#simpay-payment-form-settings .simpay-panel-field>td,#simpay-payment-form-settings .simpay-panel-field>th{width:calc(100% - 36px);margin-left:18px;margin-right:18px}#simpay-payment-form-settings .simpay-panel-field th{font-weight:bold;padding-top:18px;padding-bottom:5px}#simpay-payment-form-settings .simpay-panel-field td{border-bottom:1px solid #ddd;padding-bottom:18px}#simpay-payment-form-settings .simpay-panel-field p.description{margin-top:4px}#simpay-payment-form-settings .simpay-panel-field p.description:last-of-type{margin-bottom:0}#simpay-payment-form-settings .simpay-panel-field .simpay-panel-field__nested{margin-top:18px}#simpay-payment-form-settings .simpay-panel-field .simpay-panel-field__nested label{font-weight:bold;display:block;margin-bottom:4px}#simpay-payment-form-settings .simpay-panel-field .simpay-field-select,#simpay-payment-form-settings .simpay-panel-field .simpay-field-text{min-width:75%;max-width:100%}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-panel-field .simpay-field-select,#simpay-payment-form-settings .simpay-panel-field .simpay-field-text{min-width:0;width:100%}}#simpay-payment-form-settings .simpay-panel-field .simpay-field-textarea{width:100%;max-width:100%}#simpay-payment-form-settings .simpay-panel-field .notice:last-of-type{margin-bottom:0}#simpay-payment-form-settings .simpay-panel-field .error,#simpay-payment-form-settings .simpay-panel-field .simpay-important{color:#a94442;font-weight:normal}#simpay-payment-form-settings .simpay-panel-field .simpay-image-preview-wrap{position:relative;margin-top:12px}#simpay-payment-form-settings .simpay-panel-field .simpay-image-preview-wrap .simpay-remove-image-preview{position:absolute;top:-15px;left:-15px;cursor:pointer;background-color:#fff}#simpay-payment-form-settings .simpay-panel-field .simpay-image-preview-wrap .simpay-remove-image-preview::before{font-size:22px;line-height:26px}#simpay-payment-form-settings .simpay-panel-field .simpay-image-preview-wrap .simpay-image-preview{max-height:128px;max-width:128px;border:1px solid #ddd}#simpay-payment-form-settings .simpay-panel .simpay-promo-under-box{background-color:#f4f4f4;border:1px solid #e5e5e5;padding:18px;margin-top:18px;position:relative}#simpay-payment-form-settings .simpay-panel .simpay-promo-under-box__dismiss{color:inherit;text-decoration:none;position:absolute;top:8px;right:8px}#simpay-payment-form-settings .simpay-panel .simpay-promo-under-box__dismiss .dashicons-dismiss{font-size:16px;width:16px;height:16px}#simpay-payment-form-settings .simpay-panel .simpay-promo-under-box h3{font-size:18px;font-weight:600;margin:0;padding:0}#simpay-payment-form-settings .simpay-panel .simpay-promo-under-box p{font-size:14px}#simpay-payment-form-settings .simpay-panel .simpay-promo-under-box p:last-child{margin-bottom:0}#simpay-payment-form-settings .simpay-metabox-content{margin-bottom:-1px;background-color:#f5f5f5;border:1px solid #c3c4c7;border-width:1px 0;box-shadow:0 1px 1px rgba(0,0,0,.04);position:relative}#simpay-payment-form-settings .simpay-show-if,#simpay-payment-form-settings .simpay-panel-hidden{display:none}#simpay-payment-form-settings .simpay-payment-methods{border:1px solid #ccd0d4;border-radius:4px;box-shadow:0 1px 1px rgba(0,0,0,.04)}#simpay-payment-form-settings .simpay-panel-field-payment-method{display:block;border-top:1px solid #ccd0d4;padding:7px;box-sizing:border-box}#simpay-payment-form-settings .simpay-panel-field-payment-method:first-child{border-top:0;border-top-left-radius:4px;border-top-right-radius:4px}#simpay-payment-form-settings .simpay-panel-field-payment-method__enable{display:flex;align-items:center}#simpay-payment-form-settings .simpay-panel-field-payment-method__enable input[type=checkbox]{margin-top:0;margin-right:8px}#simpay-payment-form-settings .simpay-panel-field-payment-method__help{text-decoration:none}#simpay-payment-form-settings .simpay-panel-field-payment-method__help .dashicons{font-size:18px;width:18px;height:18px}#simpay-payment-form-settings .simpay-panel-field-payment-method__restrictions,#simpay-payment-form-settings .simpay-panel-field-payment-method__restrictions-ach{margin-left:72px}#simpay-payment-form-settings .simpay-panel-field-payment-method__icon{border-radius:3px;overflow:hidden;margin:0 8px 0 5px;width:30px;height:30px;flex-shrink:0}#simpay-payment-form-settings .simpay-panel-field-payment-method__icon svg{width:30px;height:30px}#simpay-payment-form-settings .simpay-panel-field-payment-method__configure{display:flex;align-items:center;justify-content:center}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metaboxes:not(.is-empty),#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metaboxes:not(.is-empty){border:1px solid #ccd0d4;box-shadow:0 1px 1px rgba(0,0,0,.04);border-radius:4px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-handlediv,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-handlediv{display:none;float:right;width:36px;height:36px;margin:0;padding:0;border:0;background:none;cursor:pointer;display:block}#simpay-global-settings .simpay-metaboxes-wrapper .postbox.closed .simpay-handlediv .toggle-indicator:before,#simpay-form-settings .simpay-metaboxes-wrapper .postbox.closed .simpay-handlediv .toggle-indicator:before{content:""}#simpay-global-settings .simpay-metaboxes-wrapper .postbox .simpay-handlediv:focus,#simpay-form-settings .simpay-metaboxes-wrapper .postbox .simpay-handlediv:focus{outline:0}#simpay-global-settings .simpay-metaboxes-wrapper .postbox .simpay-handlediv:focus .toggle-indicator:before,#simpay-form-settings .simpay-metaboxes-wrapper .postbox .simpay-handlediv:focus .toggle-indicator:before{box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}#simpay-global-settings .simpay-metaboxes-wrapper .postbox .simpay-handlediv .toggle-indicator:before,#simpay-form-settings .simpay-metaboxes-wrapper .postbox .simpay-handlediv .toggle-indicator:before{margin-top:4px;width:20px;border-radius:50%;text-indent:-1px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox{background:#fff;border:1px solid #ccd0d4;margin:0 -1px -1px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .hndle,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .hndle{border:0}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox select,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox select{font-weight:400}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox:first-of-type,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox:first-of-type{margin-top:-1px;border-top-left-radius:4px;border-top-right-radius:4px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox:last-of-type,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox:last-of-type{margin-bottom:-1px;border-bottom-left-radius:4px;border-bottom-right-radius:4px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox:last-of-type .simpay-metabox-content,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox:last-of-type .simpay-metabox-content{border-bottom-left-radius:4px;border-bottom-right-radius:4px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2{cursor:pointer;display:flex;align-items:center;padding:10px 0 10px 12px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .simpay-field-type,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .simpay-field-type{font-size:90%;color:gray;font-weight:normal;text-decoration:none;margin-left:10px}@media screen and (max-width: 782px){#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .simpay-field-type,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .simpay-field-type{display:none}}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .dashicons-handle,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .dashicons-handle{cursor:move}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 strong,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 strong{font-size:95%;margin-left:8px;display:flex;align-items:center;flex-grow:1}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 svg,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 svg{border-radius:3px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 select,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 select{font-family:sans-serif;max-width:20%;margin:.25em .25em .25em 0}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2.fixed,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2.fixed{cursor:pointer !important}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .dashicons-menu,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .dashicons-menu{cursor:move}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions{padding:9px 18px;justify-content:space-between;display:flex;align-items:center}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions__field-id,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions__field-id{display:flex;align-items:center}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions__field-id input,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions__field-id input{margin:0 2px 0 5px;width:50px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions__field-id a,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions__field-id a{text-decoration:none}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .button-link.simpay-remove-field-link,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .button-link.simpay-remove-field-link{color:#a00}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .button-link.simpay-remove-field-link:hover,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .button-link.simpay-remove-field-link:hover{color:#dc3232}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox table,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox table{border-spacing:0;width:100%}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox table.simpay-inner-table,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox table.simpay-inner-table{border:none;padding:0 1em}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox table tr td,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox table tr td{border-bottom-color:#ccd0d4}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-remove-plan,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-remove-plan{color:#a00}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-custom-field-payment-button .dashicons-menu,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-custom-field-payment-button .dashicons-menu{visibility:hidden}#simpay-global-settings .sortable-placeholder,#simpay-form-settings .sortable-placeholder{margin:5px;display:block;min-height:36px}#simpay-global-settings .chosen-container,#simpay-form-settings .chosen-container{min-width:20em;max-width:30em}#simpay-global-settings .simpay-field.simpay-small-text,#simpay-form-settings .simpay-field.simpay-small-text{width:7em}#simpay-global-settings .simpay-field.simpay-medium-text,#simpay-form-settings .simpay-field.simpay-medium-text{width:15em}#simpay-global-settings .simpay-field-radios ul,#simpay-form-settings .simpay-field-radios ul{margin:0}#simpay-global-settings .simpay-field-radios>i,#simpay-form-settings .simpay-field-radios>i{margin-left:5px;vertical-align:middle}#simpay-global-settings ul.simpay-field-radios-inline,#simpay-form-settings ul.simpay-field-radios-inline{margin:0 0 -10px}#simpay-global-settings ul.simpay-field-radios-inline li,#simpay-form-settings ul.simpay-field-radios-inline li{display:inline-block;margin:0 10px 10px 0}#simpay-global-settings ul.simpay-field-radios-inline li:last-child,#simpay-form-settings ul.simpay-field-radios-inline li:last-child{margin-right:0}#simpay-global-settings .simpay-currency-field,#simpay-form-settings .simpay-currency-field{display:flex;align-items:center}>#simpay-global-settings .simpay-currency-field:focus,>#simpay-form-settings .simpay-currency-field:focus{position:relative;z-index:5}#simpay-global-settings .simpay-currency-symbol,#simpay-form-settings .simpay-currency-symbol{margin:0;padding-left:8px;padding-right:8px;line-height:28px;font-size:14px}@media screen and (max-width: 782px){#simpay-global-settings .simpay-currency-symbol,#simpay-form-settings .simpay-currency-symbol{line-height:38px}}#simpay-global-settings .simpay-currency-symbol-left,#simpay-form-settings .simpay-currency-symbol-left{border-top-left-radius:4px;border-bottom-left-radius:4px}#simpay-global-settings .simpay-currency-symbol-right,#simpay-form-settings .simpay-currency-symbol-right{border-top-right-radius:4px;border-bottom-right-radius:4px}#simpay-global-settings div.simpay-currency-symbol,#simpay-form-settings div.simpay-currency-symbol{border-color:#7e8993;border-style:solid;background-color:#fff}#simpay-global-settings select.simpay-currency-symbol,#simpay-form-settings select.simpay-currency-symbol{padding-right:25px}#simpay-global-settings .simpay-currency-symbol-left,#simpay-form-settings .simpay-currency-symbol-left{border-width:1px 0 1px 1px}#simpay-global-settings .simpay-currency-symbol-left+.simpay-field-amount,#simpay-form-settings .simpay-currency-symbol-left+.simpay-field-amount{border-radius:0 4px 4px 0}#simpay-global-settings .simpay-currency-symbol-right,#simpay-form-settings .simpay-currency-symbol-right{border-width:1px 1px 1px 0}#simpay-global-settings .simpay-field-amount,#simpay-form-settings .simpay-field-amount{margin:0;padding-left:8px;padding-right:8px;font-size:14px;width:6em;position:relative;z-index:2;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px}#simpay-global-settings .simpay-error,#simpay-form-settings .simpay-error{color:red}#simpay-global-settings .simpay-docs-link-wrap,#simpay-form-settings .simpay-docs-link-wrap{position:absolute;right:0;bottom:0;color:#666;font-size:13px;font-style:italic;padding:15px 18px}#simpay-global-settings .simpay-docs-link-wrap a .dashicons-editor-help,#simpay-form-settings .simpay-docs-link-wrap a .dashicons-editor-help{color:#666;text-decoration:none;width:17px;height:17px;font-size:17px;padding-left:4px}#simpay-global-settings .simpay-docs-icon,#simpay-form-settings .simpay-docs-icon{color:#666}#simpay-global-settings .simpay-docs-icon,#simpay-global-settings .simpay-docs-icon .dashicons-editor-help,#simpay-form-settings .simpay-docs-icon,#simpay-form-settings .simpay-docs-icon .dashicons-editor-help{text-decoration:none;width:17px;height:17px;font-size:17px}.button.button-primary.simpay-upgrade-btn{background-color:#428bca;border:1px solid #428bca;color:#fff;display:inline-block}.button.button-primary.simpay-upgrade-btn:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #2d6ca2}.button.button-primary.simpay-upgrade-btn:hover{background-color:#037ad0;border:1px solid #428bca}.simpay-upgrade-btn-subtext{color:#3c434a;font-size:14px;line-height:1.5;text-align:center;margin:40px 0 0;padding:30px 35px 20px;background-color:#fcf9e8;border:3px solid #ebe29a;border-radius:4px;position:relative}.simpay-upgrade-btn-subtext svg{background:#00a32a;fill:#fff;border-radius:50%;border:3px solid #ebe29a;width:28px;height:28px;position:absolute;top:-14px;left:50%;margin-left:-14px}.simpay-upgrade-btn-subtext u{text-decoration:none;font-weight:bold;color:#00a32a}.simpay-upgrade-btn-subtext a{text-decoration:none;display:block;margin-top:6px;font-weight:bold}.post-type-simple-pay #post-body-content{display:none}.simpay-card{margin:0 0 20px;padding:30px;background:#fff;border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04)}.simpay-card,.simpay-card p{line-height:1.5;font-size:16px}.simpay-card h3{line-height:1.6;font-size:18px;margin:0 0 20px;color:#23282c}.simpay-card p{margin:0 0 20px}.simpay-card p:last-child,.simpay-card ul:last-child{margin-bottom:0}.simpay-card figure{float:right;margin:0 0 30px 30px;max-width:400px}.simpay-card figure iframe,.simpay-card figure img{max-width:100%}.simpay-card figure figcaption{text-align:center}@media screen and (max-width: 782px){.simpay-card figure{margin:0 0 30px;max-width:100%;float:none}}.simpay-doc-suggestions{width:100%;display:flex;flex-wrap:wrap;padding:0}.simpay-doc-suggestion{text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:0 1 33.333%;padding:30px;border-right:1px solid #c3c4c7;box-sizing:border-box}.simpay-doc-suggestion:nth-child(3n){border-right:0}@media screen and (max-width: 782px){.simpay-doc-suggestion{flex:0 1 100%;border-bottom:1px solid #c3c4c7;border-right:0}.simpay-doc-suggestion:last-child{border-bottom:0}}.simpay-doc-suggestion h3{font-size:20px;margin-bottom:10px}.simpay-doc-suggestion p{font-size:15px}.simpay-doc-suggestion .dashicons{font-size:40px;width:40px;height:40px;display:block;margin-bottom:10px}.simpay-doc-suggestion .button-large{font-size:16px}.simpay-addons{display:flex;flex-wrap:wrap;justify-content:space-between;margin:20px 0}.simpay-addon{background:#fff;border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04);margin-bottom:20px;display:flex;flex-direction:column;flex-basis:calc(33% - 10px);box-sizing:border-box}@media screen and (max-width: 782px){.simpay-addon{flex-basis:100%}}.simpay-addon img{float:left;max-width:75px}.simpay-addon h5{margin:0 0 10px 100px;font-size:16px}.simpay-addon__details{padding:20px;flex:1 0 auto}.simpay-addon__actions{display:flex;align-items:center;justify-content:space-between;flex:0 1 auto;background-color:#f7f7f7;border-top:1px solid #ddd;margin-top:auto;padding:20px;position:relative}.simpay-addon__actions .msg{text-align:center;justify-content:center;display:flex;align-items:center;position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;background-color:#f7f7f7;z-index:3}.simpay-addon .error,.simpay-addon .status-label.status-installed{color:#d63638}.simpay-addon .success,.simpay-addon .status-label.status-active{color:#00a32a}.simpay-addon .addon-desc{margin:0 0 0 100px}.form-table td .simpay-stripe-connect-help{margin:15px 0;display:flex;align-items:center}.form-table td .simpay-stripe-connect-help .dashicons{margin-right:4px}.simpay-currency-field{display:flex;align-items:center}>.simpay-currency-field:focus{position:relative;z-index:5}.simpay-currency-symbol{margin:0;padding-left:8px;padding-right:8px;line-height:28px;font-size:14px}@media screen and (max-width: 782px){.simpay-currency-symbol{line-height:38px}}.simpay-currency-symbol-left{border-top-left-radius:4px;border-bottom-left-radius:4px}.simpay-currency-symbol-right{border-top-right-radius:4px;border-bottom-right-radius:4px}div.simpay-currency-symbol{border-color:#7e8993;border-style:solid;background-color:#fff}select.simpay-currency-symbol{padding-right:25px}.simpay-currency-symbol-left{border-width:1px 0 1px 1px}.simpay-currency-symbol-left+.simpay-field-amount{border-radius:0 4px 4px 0}.simpay-currency-symbol-right{border-width:1px 1px 1px 0}.simpay-field-amount{margin:0;padding-left:8px;padding-right:8px;font-size:14px;width:6em;position:relative;z-index:2;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.simpay-template-explorer-open .show-settings{display:none !important}.simpay-branding-bar{margin:0 -20px;padding:14px 22px;background:#fff;border-bottom:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04);width:calc(100% + 20px);display:flex;justify-content:space-between;box-sizing:border-box}.site-health .simpay-branding-bar{display:none}.simpay-branding-bar__title{display:flex;align-items:center;margin:8px 0}.simpay-branding-bar__logo{width:200px}.simpay-branding-bar__divider{color:#dadbdf;font-size:23px;font-weight:400;margin:0 15px}.simpay-branding-bar__actions{display:flex;align-items:center}.simpay-branding-bar__actions>div{margin-left:10px;min-width:40px}.simpay-branding-bar__actions-button{color:#000;cursor:pointer;padding:10px;width:40px;height:40px;background-color:#f3f4f5;border-radius:50%;border:0;box-shadow:none;position:relative;transition:background-color .2s ease;box-sizing:border-box;display:block}.simpay-branding-bar__actions-button:hover{background-color:#e5e5e5}.simpay-branding-bar__actions-button:active,.simpay-branding-bar__actions-button:focus{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.simpay-branding-bar__actions-button-count{font-weight:600;font-size:10px;line-height:16px;color:#fff;margin:0;background-color:#df2a4a;border-radius:100%;width:16px;height:16px;position:absolute;top:-8px;left:50%;margin-left:-8px}.simpay-branding-bar .wp-heading-inline{font-size:23px;font-weight:400;margin:0}.simpay-branding-bar .page-title-action{font-weight:600;font-size:13px;line-height:normal;cursor:pointer;text-shadow:none;text-decoration:none;margin-left:10px;padding:4px 8px;border:1px solid currentColor;border-radius:2px;background:#f6f7f7}.simpay-landing-zone{text-align:center;max-width:700px;margin:40px auto}.simpay-landing-zone__title{font-size:26px;font-weight:600;margin:0 0 1.5rem;padding:0}.simpay-landing-zone__subtitle{font-size:17px;color:#666;margin:.25rem 0}.simpay-landing-zone__subtitle strong{color:#444}.simpay-landing-zone section{margin:2rem 0}.simpay-landing-zone__empty-state-graphic img{width:425px}.simpay-landing-zone__screenshot>*{vertical-align:middle}.simpay-landing-zone__screenshot-img{display:inline-block;position:relative;width:315px;padding:5px;background-color:#fff;box-shadow:0px 2px 5px 0px rgba(0,0,0,.05);border-radius:3px}.simpay-landing-zone__screenshot-img img{max-width:100%;display:block}.simpay-landing-zone__screenshot-img .hover{position:absolute;opacity:0;height:calc(100% - 10px);width:calc(100% - 10px);top:0;left:0;border:5px solid #fff;background-color:rgba(0,0,0,.15);background-image:url(data:image/svg+xml;base64,PHN2ZyBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjojZmZmZmZmMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCIgaGVpZ2h0PSIxMDAiPjxwYXRoIGQ9Ik01MCAwYzI3LjYxNCAwIDUwIDIyLjM4NiA1MCA1MHMtMjIuMzg2IDUwLTUwIDUwUzAgNzcuNjE0IDAgNTAgMjIuMzg2IDAgNTAgMHoiIGZpbGw9IiMxNjg1YjciLz48cGF0aCBkPSJNNzMuMDIzIDY3LjA2N2wtOS4zNDQtOS4zNDRhMi4yNDcgMi4yNDcgMCAwMC0xLjU5My0uNjU2aC0xLjUyOGExOS4zOTkgMTkuMzk5IDAgMDA0LjEyNC0xMS45OTZjMC0xMC43Ny04LjcyNS0xOS40OTUtMTkuNDk0LTE5LjQ5NS0xMC43NjggMC0xOS40OTQgOC43MjYtMTkuNDk0IDE5LjQ5NSAwIDEwLjc2OCA4LjcyNiAxOS40OTMgMTkuNDk0IDE5LjQ5M2ExOS40IDE5LjQgMCAwMDExLjk5Ny00LjEyM3YxLjUyN2MwIC42LjIzNCAxLjE3Mi42NTUgMS41OTRsOS4zNDQgOS4zNDRhMi4yNCAyLjI0IDAgMDAzLjE3OCAwbDIuNjUyLTIuNjUzYTIuMjYgMi4yNiAwIDAwLjAxLTMuMTg2em0tMjcuODM1LTEwYy02LjYyNiAwLTExLjk5Ni01LjM2MS0xMS45OTYtMTEuOTk2IDAtNi42MjcgNS4zNi0xMS45OTcgMTEuOTk2LTExLjk5NyA2LjYyNiAwIDExLjk5NyA1LjM2MSAxMS45OTcgMTEuOTk3IDAgNi42MjYtNS4zNjEgMTEuOTk2LTExLjk5NyAxMS45OTZ6IiBmaWxsPSIjZmZmIi8+PC9zdmc+);background-repeat:no-repeat;background-position:center;background-size:50px;transition:all .3s}.simpay-landing-zone__screenshot-img:hover .hover{opacity:1;transition:all .3s}.simpay-landing-zone__screenshot ul{text-align:left;display:inline-block;margin:0 0 0 30px;list-style-type:none;max-width:calc(100% - 350px)}@media screen and (max-width: 782px){.simpay-landing-zone__screenshot ul{text-align:center;margin:30px auto;max-width:100%;display:block}}.simpay-landing-zone__screenshot li{margin:16px 0;padding:0;font-size:15px;color:#777;position:relative}.simpay-landing-zone__screenshot li:before{content:"";background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjc3NjIgNi40NTYwNUw4LjcyMDMyIDEuNDAwMDVDOC41NzU5OSAxLjI1NTcyIDguMzgzNjQgMS4xNzY1IDguMTc4NTMgMS4xNzY1QzcuOTczMiAxLjE3NjUgNy43ODA5NiAxLjI1NTg0IDcuNjM2NjQgMS40MDAwNUw3LjE3NzYgMS44NTkyQzcuMDMzMzkgMi4wMDMyOSA2Ljk1Mzk1IDIuMTk1NzYgNi45NTM5NSAyLjQwMDk4QzYuOTUzOTUgMi42MDYwOCA3LjAzMzM5IDIuODA1MDQgNy4xNzc2IDIuOTQ5MTRMMTAuMTI3MSA1LjkwNTE2SDAuNzU2MzM0QzAuMzMzODM0IDUuOTA1MTYgMCA2LjIzNTkyIDAgNi42NTg1NFY3LjMwNzY1QzAgNy43MzAyNyAwLjMzMzgzNCA4LjA5NDM4IDAuNzU2MzM0IDguMDk0MzhIMTAuMTYwNkw3LjE3NzcyIDExLjA2NjlDNy4wMzM1MSAxMS4yMTEyIDYuOTU0MDYgMTEuMzk4NSA2Ljk1NDA2IDExLjYwMzdDNi45NTQwNiAxMS44MDg3IDcuMDMzNTEgMTEuOTk4NiA3LjE3NzcyIDEyLjE0MjhMNy42MzY3NSAxMi42MDA1QzcuNzgxMDcgMTIuNzQ0OCA3Ljk3MzMyIDEyLjgyMzUgOC4xNzg2NSAxMi44MjM1QzguMzgzNzUgMTIuODIzNSA4LjU3NjExIDEyLjc0MzggOC43MjA0MyAxMi41OTk1TDEzLjc3NjMgNy41NDM2QzEzLjkyMSA3LjM5ODgyIDE0LjAwMDUgNy4yMDU1NiAxNCA3LjAwMDExQzE0LjAwMDQgNi43OTM5OCAxMy45MjEgNi42MDA2IDEzLjc3NjIgNi40NTYwNVY2LjQ1NjA1WiIgZmlsbD0iIzQyOEJDQSIvPgo8L3N2Zz4K);background-position:center;background-repeat:no-repeat;background-size:14px;width:14px;height:14px;display:inline-block;margin:-3px 5px 0 0;vertical-align:middle}.simpay-landing-zone .button.button-large{font-size:17px;line-height:30px;padding:10px 20px}.simpay-landing-zone__purchased{display:block;margin:15px 0 0}.simpay-upgrade-modal,.simpay-upgrade-upe-modal{padding:0 !important}.simpay-upgrade-modal *,.simpay-upgrade-upe-modal *{box-sizing:border-box}.simpay-upgrade-modal__content,.simpay-upgrade-upe-modal__content{text-align:center;display:flex;flex-direction:column;align-items:center;padding:16px 32px 32px}.simpay-upgrade-modal__content>.dashicons,.simpay-upgrade-upe-modal__content>.dashicons{color:#333;font-size:48px;width:48px;height:48px}.simpay-upgrade-modal__title,.simpay-upgrade-upe-modal__title{font-size:22px;line-height:1.5;display:block;margin:12px 0 0}.simpay-upgrade-modal__description,.simpay-upgrade-upe-modal__description{color:#777;font-size:16px;margin:16px 0 24px}.simpay-upgrade-modal__description strong,.simpay-upgrade-upe-modal__description strong{color:#333}.simpay-upgrade-modal__discount,.simpay-upgrade-upe-modal__discount{font-size:15px;text-align:center;margin:32px -32px -32px;padding:24px 40px;background-color:#fcf9e8;position:relative}.simpay-upgrade-modal__discount svg,.simpay-upgrade-upe-modal__discount svg{background:#00a32a;fill:#fff;border-radius:50%;border:4px solid #fff;width:32px;height:32px;position:absolute;top:-16px;left:50%;margin-left:-16px}.simpay-upgrade-modal__discount u,.simpay-upgrade-upe-modal__discount u{text-decoration:none;font-weight:bold;color:#00a32a}.simpay-upgrade-modal .button-large,.simpay-upgrade-upe-modal .button-large{font-size:16px;font-weight:bold;margin:0 0 15px;padding:8px 30px !important;height:auto}.simpay-teaser-float{margin:50px;position:relative}.simpay-teaser-float__card{text-align:center;padding:30px;background:#fff;border-radius:4px;box-shadow:0 0 30px 15px rgba(0,0,0,.18);position:relative;z-index:2}#poststuff .simpay-teaser-float h2,.simpay-teaser-float h2{font-size:24px;font-weight:600;margin:0;padding:0}.simpay-teaser-float p{font-size:15px;line-height:1.35;color:#666}.simpay-teaser-float p strong{color:#444}.simpay-teaser-float ul{text-align:left;display:inline-block;margin:-10px 0 20px;list-style-type:none}.simpay-teaser-float li{margin:16px 0;padding:0 0 0 24px;font-size:15px;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjc3NjIgNi40NTYwNUw4LjcyMDMyIDEuNDAwMDVDOC41NzU5OSAxLjI1NTcyIDguMzgzNjQgMS4xNzY1IDguMTc4NTMgMS4xNzY1QzcuOTczMiAxLjE3NjUgNy43ODA5NiAxLjI1NTg0IDcuNjM2NjQgMS40MDAwNUw3LjE3NzYgMS44NTkyQzcuMDMzMzkgMi4wMDMyOSA2Ljk1Mzk1IDIuMTk1NzYgNi45NTM5NSAyLjQwMDk4QzYuOTUzOTUgMi42MDYwOCA3LjAzMzM5IDIuODA1MDQgNy4xNzc2IDIuOTQ5MTRMMTAuMTI3MSA1LjkwNTE2SDAuNzU2MzM0QzAuMzMzODM0IDUuOTA1MTYgMCA2LjIzNTkyIDAgNi42NTg1NFY3LjMwNzY1QzAgNy43MzAyNyAwLjMzMzgzNCA4LjA5NDM4IDAuNzU2MzM0IDguMDk0MzhIMTAuMTYwNkw3LjE3NzcyIDExLjA2NjlDNy4wMzM1MSAxMS4yMTEyIDYuOTU0MDYgMTEuMzk4NSA2Ljk1NDA2IDExLjYwMzdDNi45NTQwNiAxMS44MDg3IDcuMDMzNTEgMTEuOTk4NiA3LjE3NzcyIDEyLjE0MjhMNy42MzY3NSAxMi42MDA1QzcuNzgxMDcgMTIuNzQ0OCA3Ljk3MzMyIDEyLjgyMzUgOC4xNzg2NSAxMi44MjM1QzguMzgzNzUgMTIuODIzNSA4LjU3NjExIDEyLjc0MzggOC43MjA0MyAxMi41OTk1TDEzLjc3NjMgNy41NDM2QzEzLjkyMSA3LjM5ODgyIDE0LjAwMDUgNy4yMDU1NiAxNCA3LjAwMDExQzE0LjAwMDQgNi43OTM5OCAxMy45MjEgNi42MDA2IDEzLjc3NjIgNi40NTYwNVY2LjQ1NjA1WiIgZmlsbD0iIzQyOEJDQSIvPgo8L3N2Zz4K);background-position:left 3px;background-repeat:no-repeat;background-size:14px;color:#777}.simpay-teaser-float .button.button-large{font-size:17px;line-height:30px;padding:10px 20px}.simpay-teaser-float .simpay-notice-dismiss{position:absolute;top:0;right:0;font-size:20px;color:#666;font-weight:bold;text-decoration:none;margin-left:5px;padding:6px 10px;z-index:2}.simpay-teaser-float .simpay-notice-dismiss:hover,.simpay-teaser-float .simpay-notice-dismiss:active,.simpay-teaser-float .simpay-notice-dismiss:focus{color:#666;text-decoration:none}.simpay-teaser-float:after,.simpay-teaser-float:before{opacity:.75;z-index:0;content:"";position:absolute;left:-30px;right:-30px;top:-35px;width:calc(100% + 60px);height:170px;background-image:linear-gradient(#ddd, #ddd),linear-gradient(#eee, #eee),linear-gradient(#ddd, #ddd),linear-gradient(#eee, #eee);background-repeat:no-repeat;background-size:100% 20px,100% 40px,100% 20px,100% 40px;background-position:0 0,0 30px,0 100px,0 130px}.simpay-teaser-float:before{top:170px}.simpay-teaser-float .simpay-upgrade-btn-subtext{margin:24px -30px -30px;padding:32px 40px;border-bottom-left-radius:2px;border-bottom-right-radius:2px;border:0}.simpay-teaser-float .simpay-upgrade-btn-subtext svg{border-color:#fff}.simpay-teaser-float--inline{margin:40px 30px 30px}.simpay-teaser-float--inline .simpay-teaser-float__card{padding:30px;box-shadow:0 0 12px 6px rgba(0,0,0,.16)}#poststuff .simpay-teaser-float--inline h2,.simpay-teaser-float--inline h2{font-size:20px}.simpay-teaser-float--inline p{font-size:15px;margin:.75rem 0}.simpay-teaser-float--inline .button.button-large{font-size:15px;line-height:24px;margin:1rem 0;padding:8px 14px;display:inline-block}.simpay-teaser-float--inline:before,.simpay-teaser-float--inline:after{opacity:.6}.simpay-teaser-float--inline:before{display:none}.simpay-teaser-float--inline:after{top:15px}.simpay-form-settings-notice{font-weight:normal;color:#1d2327;position:relative;margin:18px 18px 0;padding:14px;border-radius:4px;background:#f5f5ff}.simpay-form-settings-notice a{color:#635aff}.simpay-form-settings-notice .simpay-external-link .dashicons-external{margin:1px 0 0 2px}.simpay-form-settings-notice strong{font-size:14px}.simpay-form-settings-notice p{margin:5px 0 0 23px}.simpay-form-settings-notice .simpay-notice-dismiss{font-size:20px;color:#b0b0f0;font-weight:bold;line-height:1;position:absolute;top:0;right:5px;text-decoration:none;padding:0 5px;z-index:2}.simpay-form-settings-notice .simpay-notice-dismiss:hover,.simpay-form-settings-notice .simpay-notice-dismiss:active,.simpay-form-settings-notice .simpay-notice-dismiss:focus{color:#9191ef;text-decoration:none;background:none}.simpay-settings .simpay-form-settings-notice{border:2px solid #645aff;box-shadow:0 1px 1px rgba(0,0,0,.04)}.post-type-simple-pay .lity{z-index:999999999;padding:20px}.post-type-simple-pay .lity-close{margin:10px}.post-type-simple-pay .lity-content{max-width:80vw;max-height:80vh}.post-type-simple-pay .lity-content img{max-height:80vh !important;max-width:80vw !important}#wpsp-api-keys-row-hide{display:none}.post-type-simple-pay #post-preview:not(.simpay-preview-button){display:none}.simpay-license-field-wrapper{margin:20px 0}#simpay-settings-license-key-license-key{margin:0}#simpay-settings-license-key-license-key[readonly]{background:#fff}.simpay-license-message__loading,.simpay-license-field{display:flex;align-items:center}.wp-core-ui .button.simpay-license-button.button-primary,.wp-core-ui .button.simpay-license-button.button-secondary{font-size:1rem;line-height:1;margin:0 8px;padding:13px}.simpay-license-message{font-size:15px;margin-top:8px}.simpay-license-message--valid{color:#15803d}.simpay-license-message--invalid{color:#b91c1c}.simpay-recaptcha-payment-form-feedback .dashicons{margin-top:-1px;display:inline-block}.simpay-recaptcha-payment-form-feedback .dashicons-update-alt{animation:rotation 2s infinite linear}.simpay-form-builder-inset-settings{margin:3px 0 0 24px}fieldset.simpay-form-builder-inset-settings>*:not(legend){margin:5px 0 8px}.simpay-form-builder-inset-settings>*:last-child{margin-bottom:0}.simpay-form-builder-inventory-control{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;padding:6px 8px;box-shadow:0 0 0 rgba(0,0,0,0);transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;margin:0;padding:0;width:auto;display:inline-flex;align-items:center}@media(prefers-reduced-motion: reduce){.simpay-form-builder-inventory-control{transition-duration:0s;transition-delay:0s}}@media(min-width: 600px){.simpay-form-builder-inventory-control{font-size:13px;line-height:normal}}.simpay-form-builder-inventory-control:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid rgba(0,0,0,0)}.simpay-form-builder-inventory-control::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.simpay-form-builder-inventory-control::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.simpay-form-builder-inventory-control:-ms-input-placeholder{color:rgba(30,30,30,.62)}.simpay-form-builder-inventory-control:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid rgba(0,0,0,0)}.simpay-form-builder-inventory-control input[type=number]{border:0;box-shadow:none;background:none;border-radius:0;width:75px}.simpay-form-builder-inventory-control input[type=number]:focus{border:0;box-shadow:none;outline:0}.simpay-form-builder-inventory-control+label{margin-left:8px}.simpay-form-builder-inventory-control__initial{color:#757575;font-size:16px;line-height:normal;padding-right:8px}@media(min-width: 600px){.simpay-form-builder-inventory-control__initial{font-size:13px;line-height:normal}}.simpay-form-builder-inventory-control__initial:before{content:"/";display:inline-block;vertical-align:top;margin-top:-1px}.simpay-form-builder-purchase-restrictions__restriction-item{display:flex;align-items:center;margin-top:8px;margin-bottom:8px}.simpay-form-builder-purchase-restrictions__restriction-item label{margin-left:8px}.simpay-form-builder-purchase-restrictions__restriction-item-datetime{display:flex;align-items:center}.simpay-form-builder-purchase-restrictions__restriction-item-datetime>*{margin-right:10px}.simpay-form-builder-purchase-restrictions__restriction-item-datetime span{color:#757575}.simpay-form-builder-fee-recovery__amounts{display:flex;align-items:center;margin-top:5px}.simpay-form-builder-fee-recovery ::-webkit-input-placeholder{color:#b7bec7}.simpay-form-builder-fee-recovery ::-moz-placeholder{color:#b7bec7;opacity:1}.simpay-form-builder-fee-recovery :-ms-input-placeholder{color:#b7bec7}.simpay-form-builder-fee-recovery>*{margin-right:8px}.simpay-form-builder-fee-percent-control{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;padding:6px 8px;box-shadow:0 0 0 rgba(0,0,0,0);transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;margin:0;padding:0;width:auto;display:inline-flex;align-items:center}@media(prefers-reduced-motion: reduce){.simpay-form-builder-fee-percent-control{transition-duration:0s;transition-delay:0s}}@media(min-width: 600px){.simpay-form-builder-fee-percent-control{font-size:13px;line-height:normal}}.simpay-form-builder-fee-percent-control:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid rgba(0,0,0,0)}.simpay-form-builder-fee-percent-control::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.simpay-form-builder-fee-percent-control::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.simpay-form-builder-fee-percent-control:-ms-input-placeholder{color:rgba(30,30,30,.62)}.simpay-form-builder-fee-percent-control:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid rgba(0,0,0,0)}.simpay-form-builder-fee-percent-control input[type=number]{border:0;box-shadow:none;background:none;border-radius:0;width:75px}.simpay-form-builder-fee-percent-control input[type=number]:focus{border:0;box-shadow:none;outline:0}.simpay-form-builder-fee-percent-control+label{margin-left:8px}.simpay-form-builder-fee-percent-control__suffix{color:#757575;font-size:16px;line-height:normal;padding-right:8px}@media(min-width: 600px){.simpay-form-builder-fee-percent-control__suffix{font-size:13px;line-height:normal}}.simpay-form-builder-automations__cta{margin:24px 0 6px;text-align:center}.simpay-form-builder-automator{padding:16px 4px 26px !important}.simpay-form-builder-automator,.simpay-form-builder-automator *{box-sizing:border-box}.simpay-form-builder-automator input[type=search]{font-size:15px;padding:2px 8px}.simpay-form-builder-automator__integrations{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));grid-column-gap:16px;grid-row-gap:16px;margin:18px -18px 0;padding:0 18px 10px;width:calc(100% + 36px);max-height:400px;overflow-y:scroll}.simpay-form-builder-automator__integrations-integration{color:initial;text-align:center;text-decoration:none;background:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 1px 3px 0 rgba(0,0,0,.03);transition:all ease-in .15s}.simpay-form-builder-automator__integrations-integration img{display:block;margin:16px auto;height:50px}.simpay-form-builder-automator__integrations-integration span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:8px 16px;display:block;border-top:1px solid #eee}.simpay-form-builder-automator__integrations-integration:hover{cursor:pointer;border-color:#ddd;box-shadow:0 2px 4px 0 rgba(0,0,0,.06)}body.site-health #wpbody-content,body.post-type-simple-pay #wpbody-content{padding-bottom:200px}#wpfooter .simpay-footer-promotion{text-align:center;font-weight:400;font-size:13px;line-height:16px;color:#787c82;padding:20px 0 30px 0;margin-bottom:20px}#wpfooter .simpay-footer-promotion p{font-weight:600}#wpfooter .simpay-footer-promotion-links,#wpfooter .simpay-footer-promotion-social{display:flex;justify-content:center;align-items:center}#wpfooter .simpay-footer-promotion-links{margin:9px 0 0}#wpfooter .simpay-footer-promotion-links span{color:#c3c4c7;padding:0 7px}#wpfooter .simpay-footer-promotion-social{margin:10px 0 0 0;gap:10px}#wpfooter .simpay-footer-promotion-social li{margin-bottom:0}#wpfooter .simpay-footer-promotion-social li:hover path{fill:#50575e}#wpfooter .simpay-footer-promotion-social a{display:block;height:16px}.simpay-settings-is_upe td{background:#fff;border:1px solid #c3c4c7;border-left-width:4px;border-left-color:#2271b1;box-shadow:0 1px 1px rgba(0,0,0,.04);padding:12px 18px}
+.simpay-settings-subsections{display:flex;align-items:center;box-shadow:inset 0 -1px 0 0 #ccc}.simpay-settings-subsections__subsection{font-weight:500;text-decoration:none;padding:15px;display:flex;align-items:center}.simpay-settings-subsections__subsection .dashicons{width:18px;height:18px;font-size:18px;margin-right:4px}.simpay-settings-subsections__subsection.is-active{box-shadow:inset 0 -4px 0 0 currentColor;position:relative;z-index:1}.simpay-settings-subsections__subsection:not(.is-active){color:#23282d}.simpay-settings form>h2:not(.nav-tab-wrapper){clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px}.simpay-settings .form-table td fieldset+p,.simpay-settings .form-table td label+p,.simpay-settings .form-table td select+p,.simpay-settings .form-table td input+p{color:#666;font-style:italic}.simpay-settings .simpay-settings-subsections__subsection{display:flex;align-items:center}.simpay-settings .simpay-settings-subsections__subsection .simpay-settings-bubble{margin-left:5px}.simpay-settings .simpay-settings-visual-toggles{margin:30px 0 0;display:flex}.simpay-settings .simpay-settings-visual-toggles input[type=radio]{display:none}.simpay-settings .simpay-settings-visual-toggles__toggle{-webkit-user-select:none;-moz-user-select:none;user-select:none;min-width:180px;margin:0 30px 0 0 !important;position:relative;display:block;background-color:#fff;border-radius:4px;border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04)}.simpay-settings .simpay-settings-visual-toggles__toggle:hover{border:1px solid #999;box-shadow:0 1px 2px rgba(0,0,0,.1)}.simpay-settings .simpay-settings-visual-toggles input[type=radio]:checked+.simpay-settings-visual-toggles__toggle{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.simpay-settings .simpay-settings-visual-toggles__toggle-recommended,.simpay-settings .simpay-settings-visual-toggles__toggle-not-recommended{text-align:center;font-size:12px;text-transform:uppercase;font-weight:bold;margin:0;padding:5px 0;display:block;border-top-right-radius:4px;border-top-left-radius:4px}.simpay-settings .simpay-settings-visual-toggles__toggle-recommended{color:#0f8569;background:#f4f9f7}.simpay-settings .simpay-settings-visual-toggles__toggle-not-recommended{color:#b91c1b;background:#fef2f2}.simpay-settings .simpay-settings-visual-toggles__toggle-icon{margin:20px auto 15px;padding:0 15px;display:block}.simpay-settings .simpay-settings-visual-toggles__toggle-label{line-height:1.5;text-align:center;font-size:16px;font-weight:500;margin:15px;display:block}.simpay-settings .simpay-settings-visual-toggles__toggle-label small{color:#666;font-weight:normal;font-size:13px;line-height:1;display:block;margin:4px 0}.simpay-settings .simpay-settings-visual-toggles.simpay-settings-captcha-type .simpay-settings-visual-toggles__toggle{min-height:160px}.simpay-settings .simpay-settings-visual-toggles.simpay-settings-captcha-type .simpay-settings-visual-toggles__toggle-icon{width:80px;height:80px}.simpay-settings .simpay-settings-visual-toggles.simpay-settings-captcha-type input[type=radio].simpay-settings-captcha-type--is-recommended:checked+.simpay-settings-visual-toggles__toggle{border-color:#0f8569;box-shadow:0 0 0 1px #0f8569}.simpay-settings .simpay-settings-visual-toggles.simpay-settings-captcha-type input[type=radio].simpay-settings-captcha-type--is-not-recommended:checked+.simpay-settings-visual-toggles__toggle{border-color:#b91c1b;box-shadow:0 0 0 1px #b91c1b}.simpay-settings .simpay-settings-visual-toggles.simpay-settings-captcha-type label[for=simpay-settings-captcha-type-cloudflare-turnstile] .simpay-settings-visual-toggles__toggle-icon{width:120px}.simpay-settings-general-recaptcha-no_captcha_warning th,.simpay-settings-general-recaptcha-no_captcha_warning td,.simpay-settings-hcaptcha_secret_key th,.simpay-settings-hcaptcha_secret_key td,.simpay-settings-cloudflare_turnstile_secret_key th,.simpay-settings-cloudflare_turnstile_secret_key td,.simpay-settings-recaptcha_score_threshold th,.simpay-settings-recaptcha_score_threshold td{padding-bottom:50px !important}.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-summary-report,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-payment-confirmation,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-payment-notification,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-upcoming-invoice,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-manage-subscriptions,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-payment-processing-confirmation,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-payment-processing-notification,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-payment-refunded-confirmation,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-subscription-cancel-confirmation,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-subscription-cancel-notification,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-invoice-confirmation{display:none}.simpay-settings .simpay-settings-subsection-emails-tools{margin-left:auto}.simpay-admin-charts-period-over-period{position:relative;padding-bottom:12px}.simpay-admin-charts-period-over-period *{box-sizing:border-box}.simpay-admin-charts-period-over-period__tooltip{position:absolute;background:#fff;border:1px solid #c3c3c3;box-shadow:0 2px 6px rgba(0,0,0,.05);border-radius:2px;padding:10px 14px;display:flex;flex-direction:column;z-Index:10000;min-width:175px}.simpay-admin-charts-period-over-period__tooltip-data{white-space:nowrap;margin-bottom:8px;display:grid;grid-template-columns:1fr auto;grid-auto-rows:auto;-moz-column-gap:16px;column-gap:16px}.simpay-admin-charts-period-over-period__tooltip-data:last-child{margin-bottom:0}.simpay-admin-charts-period-over-period__tooltip-data[data-dataset="1"]{opacity:.65}.simpay-admin-charts-period-over-period__tooltip-data em{font-style:normal;text-align:right}.simpay-admin-charts-period-over-period__tooltip-delta{font-size:12px;margin:0 -14px -10px;padding:8px 14px;border-top:1px solid #eee;background:#fdfdfd;border-radius:2px;display:flex;align-items:center;justify-content:center}.simpay-admin-charts-period-over-period__tooltip-delta .simpay-admin-charts-badge{margin-right:4px}.simpay-admin-charts-period-over-period__tooltip-delta strong.is-positive{color:#006908}.simpay-admin-charts-period-over-period__tooltip-delta strong.is-negative{color:#b3093c}.simpay-admin-charts-badge{color:#2f2f2f;font-size:12px;font-weight:500;font-style:normal;line-height:1;padding:3px 6px;display:inline-flex;align-items:center;background:#f0f0f0;border-radius:100px}.simpay-admin-charts-badge.is-positive{color:#006908;background-color:#d7f7c2}.simpay-admin-charts-badge.is-negative{color:#b3093c;background-color:#ffe7f2}.simpay-admin-charts-badge__icon{width:15px;height:15px}.simpay-admin-charts-no-data{position:absolute;top:0;left:0;display:flex;justify-content:center;align-items:center;background:rgba(255,255,255,.5);z-index:2}.simpay-admin-charts-no-data>div{text-align:center;padding:24px;background:#fff;border:1px solid #c3c3c3;box-shadow:0 2px 6px rgba(0,0,0,.1);border-radius:2px;max-width:60%}.simpay-admin-charts-no-data strong{font-size:15px;margin-bottom:8px;display:block}.button.button-large.simpay-button-large{font-size:14px;line-height:30px;padding:4px 12px}.simpay-copy-hidden-input{clip:rect(1px, 1px, 1px, 1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.fixed .column-livemode{width:15%;text-align:right}@media screen and (max-width: 782px){.fixed .column-livemode{text-align:left}}.fixed .column-livemode .simpay-badge{margin-top:3px}.fixed .column-shortcode{width:25%}.fixed .column-shortcode .simpay-shortcode{clip:rect(1px, 1px, 1px, 1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.post-type-simple-pay .misc-pub-curtime,.post-type-simple-pay .misc-pub-visibility{display:none}.simpay-metabox-title{border:1px solid #eee}.simpay-shortcode-section{border-top:1px solid #ddd;border-width:1px 0;padding-top:15px;padding-bottom:15px;position:relative}.simpay-shortcode-section label{display:block;margin-bottom:6px}.simpay-shortcode-section label .dashicons{color:#8c8f94;margin-right:3px}.simpay-shortcode-section .simpay-copy-button{line-height:normal;position:absolute;right:20px;bottom:20px;border:0;background:none;box-shadow:none;padding:0}.simpay-shortcode-section .simpay-copy-button:hover{border:0;background:none;box-shadow:none}.simpay-shortcode-section .simpay-copy-button .dashicons{color:#3c434a}.simpay-shortcode{width:100%;padding:8px;line-height:1;margin:0;height:32px;resize:none}.simpay-badge{color:#3f3f46;text-align:center;line-height:1;padding:5px 7px;border-radius:3px;background:#e4e4e7;border:0;box-shadow:none;display:inline-flex;align-items:center}button.simpay-badge{cursor:pointer}button.simpay-badge:hover{background:#d4d4d8}.simpay-badge__icon{opacity:.8;margin:2px 5px 0 0}.simpay-badge--green{color:#0e6245;background:#cbf4c9}.simpay-badge--yellow{color:#983705;background:#f8e5b9}.simpay-stripe-account-info{display:flex;align-items:center;margin-bottom:8px;position:relative}.simpay-stripe-account-info .spinner{float:none;margin-top:0;margin-left:0}.simple-pay_page_simpay_settings .simpay-settings-upgrade,.post-type-simple-pay .simpay-settings-upgrade{margin-top:20px;padding:1px;position:relative;background:#fff;border-radius:4px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2),0 5px 10px rgba(0,0,0,.1);max-width:677px}.simple-pay_page_simpay_settings .simpay-settings-upgrade__inner,.post-type-simple-pay .simpay-settings-upgrade__inner{text-align:center;margin:0;padding:30px}.simple-pay_page_simpay_settings .simpay-settings-upgrade h3,.post-type-simple-pay .simpay-settings-upgrade h3{line-height:1.5;font-size:22px;margin:0 0 1.5rem}.simple-pay_page_simpay_settings .simpay-settings-upgrade ul,.post-type-simple-pay .simpay-settings-upgrade ul{margin:1.5rem 0 calc(1.5rem - 6px);display:flex;flex-wrap:wrap;justify-content:center}@media screen and (min-width: 782px){.simple-pay_page_simpay_settings .simpay-settings-upgrade ul,.post-type-simple-pay .simpay-settings-upgrade ul{margin-left:4rem;margin-right:4rem}}.simple-pay_page_simpay_settings .simpay-settings-upgrade li,.post-type-simple-pay .simpay-settings-upgrade li{font-size:15px;margin:6px 0;width:100%}.simple-pay_page_simpay_settings .simpay-settings-upgrade li a,.post-type-simple-pay .simpay-settings-upgrade li a{color:#3c434a;text-decoration:none}.simple-pay_page_simpay_settings .simpay-settings-upgrade li a:hover,.post-type-simple-pay .simpay-settings-upgrade li a:hover{color:var(--wp-admin-theme-color);text-decoration:underline}@media screen and (min-width: 782px){.simple-pay_page_simpay_settings .simpay-settings-upgrade li,.post-type-simple-pay .simpay-settings-upgrade li{text-align:left;width:50%}}.simple-pay_page_simpay_settings .simpay-settings-upgrade .button.button-large,.post-type-simple-pay .simpay-settings-upgrade .button.button-large{font-size:17px;line-height:30px;padding:10px 20px}.simple-pay_page_simpay_settings .simpay-settings-upgrade small,.post-type-simple-pay .simpay-settings-upgrade small{color:#666;margin:15px 0 0;display:block}.simple-pay_page_simpay_settings .simpay-settings-upgrade .dashicons-yes,.post-type-simple-pay .simpay-settings-upgrade .dashicons-yes{color:#428bca}.simple-pay_page_simpay_settings .simpay-settings-upgrade .button-link,.post-type-simple-pay .simpay-settings-upgrade .button-link{position:absolute;top:0;right:0;font-size:20px;color:#666;font-weight:bold;text-decoration:none;margin-left:5px;padding:6px 10px;z-index:2}.simple-pay_page_simpay_settings .simpay-settings-upgrade .button-link:hover,.simple-pay_page_simpay_settings .simpay-settings-upgrade .button-link:active,.simple-pay_page_simpay_settings .simpay-settings-upgrade .button-link:focus,.post-type-simple-pay .simpay-settings-upgrade .button-link:hover,.post-type-simple-pay .simpay-settings-upgrade .button-link:active,.post-type-simple-pay .simpay-settings-upgrade .button-link:focus{color:#666;text-decoration:none}.simple-pay_page_simpay_settings .simpay-settings-upgrade .simpay-upgrade-btn-subtext,.post-type-simple-pay .simpay-settings-upgrade .simpay-upgrade-btn-subtext{text-align:center;margin:0;padding:30px 20px 20px;background-color:#fcf9e8;border:1px solid #edeac9;border-width:1px 0 0;position:relative;border-radius:0;border-bottom-left-radius:4px;border-bottom-right-radius:4px}@media screen and (min-width: 782px){.simple-pay_page_simpay_settings .simpay-settings-upgrade .simpay-upgrade-btn-subtext,.post-type-simple-pay .simpay-settings-upgrade .simpay-upgrade-btn-subtext{padding-left:4rem;padding-right:4rem}}.simple-pay_page_simpay_settings .simpay-settings-upgrade .simpay-upgrade-btn-subtext svg,.post-type-simple-pay .simpay-settings-upgrade .simpay-upgrade-btn-subtext svg{background:#00a32a;fill:#fff;border-radius:50%;border:4px solid #fff;box-shadow:0 0 0 1px #edeac9;width:28px;height:28px;position:absolute;top:-18px;left:50%;margin-left:-18px}.simple-pay_page_simpay_settings .simpay-settings-upgrade .simpay-upgrade-btn-subtext u,.post-type-simple-pay .simpay-settings-upgrade .simpay-upgrade-btn-subtext u{text-decoration:none;font-weight:bold;color:#00a32a}.simple-pay_page_simpay_settings .simpay-settings-upgrade .simpay-upgrade-btn-subtext a,.post-type-simple-pay .simpay-settings-upgrade .simpay-upgrade-btn-subtext a{font-weight:normal;display:inline-block}#simpay-payment-form-settings table{width:100%;border-collapse:collapse}#simpay-payment-form-settings ::-webkit-input-placeholder{color:#9ba1a9}#simpay-payment-form-settings ::-moz-placeholder{color:#9ba1a9;opacity:1}#simpay-payment-form-settings :-ms-input-placeholder{color:#9ba1a9}#simpay-payment-form-settings .inside{margin:0;padding:0}#simpay-payment-form-settings .simpay-panel-field .toolbar{margin-bottom:-4px}#simpay-payment-form-settings .simpay-panel-field .toolbar .simpay-field-select{margin:0 0 4px;width:auto;max-width:70%}#simpay-payment-form-settings .simpay-tabs{margin:0;padding:0;list-style:none;background:#fafafa;border-right:1px solid #ccd0d4;line-height:1em;position:relative;flex:0 0 25%}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-tabs{flex-basis:100%;flex-grow:1;border-right:0}}#simpay-payment-form-settings .simpay-tabs li{margin:0;padding:0}#simpay-payment-form-settings .simpay-tabs li:first-child{margin-top:12px}#simpay-payment-form-settings .simpay-tabs li:last-child{margin-bottom:20px}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-tabs li:last-child{margin-bottom:0}}#simpay-payment-form-settings .simpay-tabs li.active{margin-left:-1px;box-shadow:0 1px 1px rgba(0,0,0,.04);position:relative}#simpay-payment-form-settings .simpay-tabs li.active:focus:after{display:none}#simpay-payment-form-settings .simpay-tabs li.active:before,#simpay-payment-form-settings .simpay-tabs li.active:after{content:"";width:calc(100% + 1px);height:1px;background:#ccd0d4;position:absolute;top:0;left:0;right:0;z-index:2}#simpay-payment-form-settings .simpay-tabs li.active:after{top:auto;bottom:0}#simpay-payment-form-settings .simpay-tabs li.active a{font-weight:bold;background-color:#fff;position:relative;margin-right:-1px}#simpay-payment-form-settings .simpay-tabs li.active a:before{content:"";position:absolute;top:0;left:0;bottom:0;width:4px;height:100%;background:currentColor;z-index:3}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-tabs li.active a{margin-right:0}}#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item{display:flex;align-items:center;line-height:20px;margin:0;padding:8px 10px 8px 14px;text-decoration:none;transition:all .05s ease-in-out}#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item svg,#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item .dashicons{margin-right:6px}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item{padding:18px}}#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item:focus{outline:0;position:relative;z-index:3;box-shadow:inset 0 0 0 1px currentColor,0 0 0 1px currentColor}#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item[href="#purchase-restrictions-settings-panel"],#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item[href="#confirmation-settings-panel"]{margin-bottom:20px;position:relative}#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item[href="#purchase-restrictions-settings-panel"]:after,#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item[href="#confirmation-settings-panel"]:after{content:"";position:absolute;left:14px;right:14px;bottom:-10px;width:calc(100% - 28px);height:1px;background:#eaeaea}#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item span>span{color:#f18500;font-size:12px;font-weight:600;margin:0 0 0 5px;display:inline-block}#simpay-payment-form-settings .simpay-tabs li:not(.active) .simpay-tab-item{color:inherit}#simpay-payment-form-settings .simpay-panels-wrap{background:#fff;display:flex}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-panels-wrap{flex-direction:column}}#simpay-payment-form-settings .simpay-panels{flex:0 0 75%;display:flex}@media screen and (min-width: 1400px){#simpay-payment-form-settings .simpay-panels{flex-basis:75%}}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-panels{flex-basis:100%}}#simpay-payment-form-settings .simpay-panel,#simpay-payment-form-settings .simpay-panel-section{width:100%}#simpay-payment-form-settings .simpay-panel>table,#simpay-payment-form-settings .simpay-panel>table>tr,#simpay-payment-form-settings .simpay-panel>table>tbody,#simpay-payment-form-settings .simpay-panel>table>tbody>tr,#simpay-payment-form-settings .simpay-panel>table>thead,#simpay-payment-form-settings .simpay-panel>table>thead>tr{display:block;width:100%}#simpay-payment-form-settings .simpay-panel>table:last-child>tbody:last-child>tr:last-child>td{border-bottom:0}#simpay-payment-form-settings .simpay-panel-field--requires-upgrade{position:relative}#simpay-payment-form-settings .simpay-panel-field--requires-upgrade td>div{margin-right:80px}#simpay-payment-form-settings .simpay-panel-field--requires-upgrade td>div .button-small{position:absolute;top:calc(50% - 13px);right:18px}#simpay-payment-form-settings .simpay-panel-field,#simpay-payment-form-settings .simpay-panel-field>td,#simpay-payment-form-settings .simpay-panel-field>th{text-align:left;display:block}#simpay-payment-form-settings .simpay-panel-field>td,#simpay-payment-form-settings .simpay-panel-field>th{width:calc(100% - 36px);margin-left:18px;margin-right:18px}#simpay-payment-form-settings .simpay-panel-field th{font-weight:bold;padding-top:18px;padding-bottom:5px}#simpay-payment-form-settings .simpay-panel-field td{border-bottom:1px solid #ddd;padding-bottom:18px}#simpay-payment-form-settings .simpay-panel-field p.description{margin-top:4px}#simpay-payment-form-settings .simpay-panel-field p.description:last-of-type{margin-bottom:0}#simpay-payment-form-settings .simpay-panel-field .simpay-panel-field__nested{margin-top:18px}#simpay-payment-form-settings .simpay-panel-field .simpay-panel-field__nested label{font-weight:bold;display:block;margin-bottom:4px}#simpay-payment-form-settings .simpay-panel-field .simpay-field-select,#simpay-payment-form-settings .simpay-panel-field .simpay-field-text{min-width:75%;max-width:100%}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-panel-field .simpay-field-select,#simpay-payment-form-settings .simpay-panel-field .simpay-field-text{min-width:0;width:100%}}#simpay-payment-form-settings .simpay-panel-field .simpay-field-textarea{width:100%;max-width:100%}#simpay-payment-form-settings .simpay-panel-field .notice:last-of-type{margin-bottom:0}#simpay-payment-form-settings .simpay-panel-field .error,#simpay-payment-form-settings .simpay-panel-field .simpay-important{color:#a94442;font-weight:normal}#simpay-payment-form-settings .simpay-panel-field .simpay-image-preview-wrap{position:relative;margin-top:12px}#simpay-payment-form-settings .simpay-panel-field .simpay-image-preview-wrap .simpay-remove-image-preview{position:absolute;top:-15px;left:-15px;cursor:pointer;background-color:#fff}#simpay-payment-form-settings .simpay-panel-field .simpay-image-preview-wrap .simpay-remove-image-preview::before{font-size:22px;line-height:26px}#simpay-payment-form-settings .simpay-panel-field .simpay-image-preview-wrap .simpay-image-preview{max-height:128px;max-width:128px;border:1px solid #ddd}#simpay-payment-form-settings .simpay-panel .simpay-promo-under-box{background-color:#f4f4f4;border:1px solid #e5e5e5;padding:18px;margin-top:18px;position:relative}#simpay-payment-form-settings .simpay-panel .simpay-promo-under-box__dismiss{color:inherit;text-decoration:none;position:absolute;top:8px;right:8px}#simpay-payment-form-settings .simpay-panel .simpay-promo-under-box__dismiss .dashicons-dismiss{font-size:16px;width:16px;height:16px}#simpay-payment-form-settings .simpay-panel .simpay-promo-under-box h3{font-size:18px;font-weight:600;margin:0;padding:0}#simpay-payment-form-settings .simpay-panel .simpay-promo-under-box p{font-size:14px}#simpay-payment-form-settings .simpay-panel .simpay-promo-under-box p:last-child{margin-bottom:0}#simpay-payment-form-settings .simpay-metabox-content{margin-bottom:-1px;background-color:#f5f5f5;border:1px solid #c3c4c7;border-width:1px 0;box-shadow:0 1px 1px rgba(0,0,0,.04);position:relative}#simpay-payment-form-settings .simpay-show-if,#simpay-payment-form-settings .simpay-panel-hidden{display:none}#simpay-payment-form-settings .simpay-payment-methods{border:1px solid #ccd0d4;border-radius:4px;box-shadow:0 1px 1px rgba(0,0,0,.04)}#simpay-payment-form-settings .simpay-panel-field-payment-method{display:block;border-top:1px solid #ccd0d4;padding:7px;box-sizing:border-box}#simpay-payment-form-settings .simpay-panel-field-payment-method:first-child{border-top:0;border-top-left-radius:4px;border-top-right-radius:4px}#simpay-payment-form-settings .simpay-panel-field-payment-method__enable{display:flex;align-items:center}#simpay-payment-form-settings .simpay-panel-field-payment-method__enable input[type=checkbox]{margin-top:0;margin-right:8px}#simpay-payment-form-settings .simpay-panel-field-payment-method__help{text-decoration:none}#simpay-payment-form-settings .simpay-panel-field-payment-method__help .dashicons{font-size:18px;width:18px;height:18px}#simpay-payment-form-settings .simpay-panel-field-payment-method__restrictions,#simpay-payment-form-settings .simpay-panel-field-payment-method__restrictions-ach{margin-left:72px}#simpay-payment-form-settings .simpay-panel-field-payment-method__icon{border-radius:3px;overflow:hidden;margin:0 8px 0 5px;width:30px;height:30px;flex-shrink:0}#simpay-payment-form-settings .simpay-panel-field-payment-method__icon svg{width:30px;height:30px}#simpay-payment-form-settings .simpay-panel-field-payment-method__configure{display:flex;align-items:center;justify-content:center}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metaboxes:not(.is-empty),#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metaboxes:not(.is-empty){border:1px solid #ccd0d4;box-shadow:0 1px 1px rgba(0,0,0,.04);border-radius:4px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-handlediv,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-handlediv{display:none;float:right;width:36px;height:36px;margin:0;padding:0;border:0;background:none;cursor:pointer;display:block}#simpay-global-settings .simpay-metaboxes-wrapper .postbox.closed .simpay-handlediv .toggle-indicator:before,#simpay-form-settings .simpay-metaboxes-wrapper .postbox.closed .simpay-handlediv .toggle-indicator:before{content:""}#simpay-global-settings .simpay-metaboxes-wrapper .postbox .simpay-handlediv:focus,#simpay-form-settings .simpay-metaboxes-wrapper .postbox .simpay-handlediv:focus{outline:0}#simpay-global-settings .simpay-metaboxes-wrapper .postbox .simpay-handlediv:focus .toggle-indicator:before,#simpay-form-settings .simpay-metaboxes-wrapper .postbox .simpay-handlediv:focus .toggle-indicator:before{box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}#simpay-global-settings .simpay-metaboxes-wrapper .postbox .simpay-handlediv .toggle-indicator:before,#simpay-form-settings .simpay-metaboxes-wrapper .postbox .simpay-handlediv .toggle-indicator:before{margin-top:4px;width:20px;border-radius:50%;text-indent:-1px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox{background:#fff;border:1px solid #ccd0d4;margin:0 -1px -1px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .hndle,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .hndle{border:0}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox select,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox select{font-weight:400}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox:first-of-type,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox:first-of-type{margin-top:-1px;border-top-left-radius:4px;border-top-right-radius:4px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox:last-of-type,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox:last-of-type{margin-bottom:-1px;border-bottom-left-radius:4px;border-bottom-right-radius:4px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox:last-of-type .simpay-metabox-content,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox:last-of-type .simpay-metabox-content{border-bottom-left-radius:4px;border-bottom-right-radius:4px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2{cursor:pointer;display:flex;align-items:center;padding:10px 0 10px 12px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .simpay-field-type,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .simpay-field-type{font-size:90%;color:gray;font-weight:normal;text-decoration:none;margin-left:10px}@media screen and (max-width: 782px){#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .simpay-field-type,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .simpay-field-type{display:none}}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .dashicons-handle,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .dashicons-handle{cursor:move}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 strong,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 strong{font-size:95%;margin-left:8px;display:flex;align-items:center;flex-grow:1}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 svg,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 svg{border-radius:3px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 select,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 select{font-family:sans-serif;max-width:20%;margin:.25em .25em .25em 0}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2.fixed,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2.fixed{cursor:pointer !important}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .dashicons-menu,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .dashicons-menu{cursor:move}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions{padding:9px 18px;justify-content:space-between;display:flex;align-items:center}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions__field-id,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions__field-id{display:flex;align-items:center}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions__field-id input,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions__field-id input{margin:0 2px 0 5px;width:50px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions__field-id a,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions__field-id a{text-decoration:none}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .button-link.simpay-remove-field-link,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .button-link.simpay-remove-field-link{color:#a00}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .button-link.simpay-remove-field-link:hover,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .button-link.simpay-remove-field-link:hover{color:#dc3232}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox table,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox table{border-spacing:0;width:100%}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox table.simpay-inner-table,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox table.simpay-inner-table{border:none;padding:0 1em}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox table tr td,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox table tr td{border-bottom-color:#ccd0d4}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-remove-plan,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-remove-plan{color:#a00}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-custom-field-payment-button .dashicons-menu,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-custom-field-payment-button .dashicons-menu{visibility:hidden}#simpay-global-settings .sortable-placeholder,#simpay-form-settings .sortable-placeholder{margin:5px;display:block;min-height:36px}#simpay-global-settings .chosen-container,#simpay-form-settings .chosen-container{min-width:20em;max-width:30em}#simpay-global-settings .simpay-field.simpay-small-text,#simpay-form-settings .simpay-field.simpay-small-text{width:7em}#simpay-global-settings .simpay-field.simpay-medium-text,#simpay-form-settings .simpay-field.simpay-medium-text{width:15em}#simpay-global-settings .simpay-field-radios ul,#simpay-form-settings .simpay-field-radios ul{margin:0}#simpay-global-settings .simpay-field-radios>i,#simpay-form-settings .simpay-field-radios>i{margin-left:5px;vertical-align:middle}#simpay-global-settings ul.simpay-field-radios-inline,#simpay-form-settings ul.simpay-field-radios-inline{margin:0 0 -10px}#simpay-global-settings ul.simpay-field-radios-inline li,#simpay-form-settings ul.simpay-field-radios-inline li{display:inline-block;margin:0 10px 10px 0}#simpay-global-settings ul.simpay-field-radios-inline li:last-child,#simpay-form-settings ul.simpay-field-radios-inline li:last-child{margin-right:0}#simpay-global-settings .simpay-currency-field,#simpay-form-settings .simpay-currency-field{display:flex;align-items:center}>#simpay-global-settings .simpay-currency-field:focus,>#simpay-form-settings .simpay-currency-field:focus{position:relative;z-index:5}#simpay-global-settings .simpay-currency-symbol,#simpay-form-settings .simpay-currency-symbol{margin:0;padding-left:8px;padding-right:8px;line-height:28px;font-size:14px}@media screen and (max-width: 782px){#simpay-global-settings .simpay-currency-symbol,#simpay-form-settings .simpay-currency-symbol{line-height:38px}}#simpay-global-settings .simpay-currency-symbol-left,#simpay-form-settings .simpay-currency-symbol-left{border-top-left-radius:4px;border-bottom-left-radius:4px}#simpay-global-settings .simpay-currency-symbol-right,#simpay-form-settings .simpay-currency-symbol-right{border-top-right-radius:4px;border-bottom-right-radius:4px}#simpay-global-settings div.simpay-currency-symbol,#simpay-form-settings div.simpay-currency-symbol{border-color:#7e8993;border-style:solid;background-color:#fff}#simpay-global-settings select.simpay-currency-symbol,#simpay-form-settings select.simpay-currency-symbol{padding-right:25px}#simpay-global-settings .simpay-currency-symbol-left,#simpay-form-settings .simpay-currency-symbol-left{border-width:1px 0 1px 1px}#simpay-global-settings .simpay-currency-symbol-left+.simpay-field-amount,#simpay-form-settings .simpay-currency-symbol-left+.simpay-field-amount{border-radius:0 4px 4px 0}#simpay-global-settings .simpay-currency-symbol-right,#simpay-form-settings .simpay-currency-symbol-right{border-width:1px 1px 1px 0}#simpay-global-settings .simpay-field-amount,#simpay-form-settings .simpay-field-amount{margin:0;padding-left:8px;padding-right:8px;font-size:14px;width:6em;position:relative;z-index:2;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px}#simpay-global-settings .simpay-error,#simpay-form-settings .simpay-error{color:red}#simpay-global-settings .simpay-docs-link-wrap,#simpay-form-settings .simpay-docs-link-wrap{position:absolute;right:0;bottom:0;color:#666;font-size:13px;font-style:italic;padding:15px 18px}#simpay-global-settings .simpay-docs-link-wrap a .dashicons-editor-help,#simpay-form-settings .simpay-docs-link-wrap a .dashicons-editor-help{color:#666;text-decoration:none;width:17px;height:17px;font-size:17px;padding-left:4px}#simpay-global-settings .simpay-docs-icon,#simpay-form-settings .simpay-docs-icon{color:#666}#simpay-global-settings .simpay-docs-icon,#simpay-global-settings .simpay-docs-icon .dashicons-editor-help,#simpay-form-settings .simpay-docs-icon,#simpay-form-settings .simpay-docs-icon .dashicons-editor-help{text-decoration:none;width:17px;height:17px;font-size:17px}.button.button-primary.simpay-upgrade-btn{background-color:#428bca;border:1px solid #428bca;color:#fff;display:inline-block}.button.button-primary.simpay-upgrade-btn:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #2d6ca2}.button.button-primary.simpay-upgrade-btn:hover{background-color:#037ad0;border:1px solid #428bca}.simpay-upgrade-btn-subtext{color:#3c434a;font-size:14px;line-height:1.5;text-align:center;margin:40px 0 0;padding:30px 35px 20px;background-color:#fcf9e8;border:3px solid #ebe29a;border-radius:4px;position:relative}.simpay-upgrade-btn-subtext svg{background:#00a32a;fill:#fff;border-radius:50%;border:3px solid #ebe29a;width:28px;height:28px;position:absolute;top:-14px;left:50%;margin-left:-14px}.simpay-upgrade-btn-subtext u{text-decoration:none;font-weight:bold;color:#00a32a}.simpay-upgrade-btn-subtext a{text-decoration:none;display:block;margin-top:6px;font-weight:bold}.post-type-simple-pay #post-body-content{display:none}.simpay-card{margin:0 0 20px;padding:30px;background:#fff;border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04)}.simpay-card,.simpay-card p{line-height:1.5;font-size:16px}.simpay-card h3{line-height:1.6;font-size:18px;margin:0 0 20px;color:#23282c}.simpay-card p{margin:0 0 20px}.simpay-card p:last-child,.simpay-card ul:last-child{margin-bottom:0}.simpay-card figure{float:right;margin:0 0 30px 30px;max-width:400px}.simpay-card figure iframe,.simpay-card figure img{max-width:100%}.simpay-card figure figcaption{text-align:center}@media screen and (max-width: 782px){.simpay-card figure{margin:0 0 30px;max-width:100%;float:none}}.simpay-doc-suggestions{width:100%;display:flex;flex-wrap:wrap;padding:0}.simpay-doc-suggestion{text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:0 1 33.333%;padding:30px;border-right:1px solid #c3c4c7;box-sizing:border-box}.simpay-doc-suggestion:nth-child(3n){border-right:0}@media screen and (max-width: 782px){.simpay-doc-suggestion{flex:0 1 100%;border-bottom:1px solid #c3c4c7;border-right:0}.simpay-doc-suggestion:last-child{border-bottom:0}}.simpay-doc-suggestion h3{font-size:20px;margin-bottom:10px}.simpay-doc-suggestion p{font-size:15px}.simpay-doc-suggestion .dashicons{font-size:40px;width:40px;height:40px;display:block;margin-bottom:10px}.simpay-doc-suggestion .button-large{font-size:16px}.simpay-addons{display:flex;flex-wrap:wrap;justify-content:space-between;margin:20px 0}.simpay-addon{background:#fff;border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04);margin-bottom:20px;display:flex;flex-direction:column;flex-basis:calc(33% - 10px);box-sizing:border-box}@media screen and (max-width: 782px){.simpay-addon{flex-basis:100%}}.simpay-addon img{float:left;max-width:75px}.simpay-addon h5{margin:0 0 10px 100px;font-size:16px}.simpay-addon__details{padding:20px;flex:1 0 auto}.simpay-addon__actions{display:flex;align-items:center;justify-content:space-between;flex:0 1 auto;background-color:#f7f7f7;border-top:1px solid #ddd;margin-top:auto;padding:20px;position:relative}.simpay-addon__actions .msg{text-align:center;justify-content:center;display:flex;align-items:center;position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;background-color:#f7f7f7;z-index:3}.simpay-addon .error,.simpay-addon .status-label.status-installed{color:#d63638}.simpay-addon .success,.simpay-addon .status-label.status-active{color:#00a32a}.simpay-addon .addon-desc{margin:0 0 0 100px}.form-table td .simpay-stripe-connect-help{margin:15px 0;display:flex;align-items:center}.form-table td .simpay-stripe-connect-help .dashicons{margin-right:4px}.simpay-currency-field{display:flex;align-items:center}>.simpay-currency-field:focus{position:relative;z-index:5}.simpay-currency-symbol{margin:0;padding-left:8px;padding-right:8px;line-height:28px;font-size:14px}@media screen and (max-width: 782px){.simpay-currency-symbol{line-height:38px}}.simpay-currency-symbol-left{border-top-left-radius:4px;border-bottom-left-radius:4px}.simpay-currency-symbol-right{border-top-right-radius:4px;border-bottom-right-radius:4px}div.simpay-currency-symbol{border-color:#7e8993;border-style:solid;background-color:#fff}select.simpay-currency-symbol{padding-right:25px}.simpay-currency-symbol-left{border-width:1px 0 1px 1px}.simpay-currency-symbol-left+.simpay-field-amount{border-radius:0 4px 4px 0}.simpay-currency-symbol-right{border-width:1px 1px 1px 0}.simpay-field-amount{margin:0;padding-left:8px;padding-right:8px;font-size:14px;width:6em;position:relative;z-index:2;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.simpay-template-explorer-open .show-settings{display:none !important}.simpay-branding-bar{margin:0 -20px;padding:14px 22px;background:#fff;border-bottom:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04);width:calc(100% + 20px);display:flex;justify-content:space-between;box-sizing:border-box}.site-health .simpay-branding-bar{display:none}.simpay-branding-bar__title{display:flex;align-items:center;margin:8px 0}.simpay-branding-bar__logo{width:200px}.simpay-branding-bar__divider{color:#dadbdf;font-size:23px;font-weight:400;margin:0 15px}.simpay-branding-bar__actions{display:flex;align-items:center}.simpay-branding-bar__actions>div{margin-left:10px;min-width:40px}.simpay-branding-bar__actions-button{color:#000;cursor:pointer;padding:10px;width:40px;height:40px;background-color:#f3f4f5;border-radius:50%;border:0;box-shadow:none;position:relative;transition:background-color .2s ease;box-sizing:border-box;display:block}.simpay-branding-bar__actions-button:hover{background-color:#e5e5e5}.simpay-branding-bar__actions-button:active,.simpay-branding-bar__actions-button:focus{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.simpay-branding-bar__actions-button-count{font-weight:600;font-size:10px;line-height:16px;color:#fff;margin:0;background-color:#df2a4a;border-radius:100%;width:16px;height:16px;position:absolute;top:-8px;left:50%;margin-left:-8px}.simpay-branding-bar .wp-heading-inline{font-size:23px;font-weight:400;margin:0}.simpay-branding-bar .page-title-action{font-weight:600;font-size:13px;line-height:normal;cursor:pointer;text-shadow:none;text-decoration:none;margin-left:10px;padding:4px 8px;border:1px solid currentColor;border-radius:2px;background:#f6f7f7}.simpay-landing-zone{text-align:center;max-width:700px;margin:40px auto}.simpay-landing-zone__title{font-size:26px;font-weight:600;margin:0 0 1.5rem;padding:0}.simpay-landing-zone__subtitle{font-size:17px;color:#666;margin:.25rem 0}.simpay-landing-zone__subtitle strong{color:#444}.simpay-landing-zone section{margin:2rem 0}.simpay-landing-zone__empty-state-graphic img{width:425px}.simpay-landing-zone__screenshot>*{vertical-align:middle}.simpay-landing-zone__screenshot-img{display:inline-block;position:relative;width:315px;padding:5px;background-color:#fff;box-shadow:0px 2px 5px 0px rgba(0,0,0,.05);border-radius:3px}.simpay-landing-zone__screenshot-img img{max-width:100%;display:block}.simpay-landing-zone__screenshot-img .hover{position:absolute;opacity:0;height:calc(100% - 10px);width:calc(100% - 10px);top:0;left:0;border:5px solid #fff;background-color:rgba(0,0,0,.15);background-image:url(data:image/svg+xml;base64,PHN2ZyBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjojZmZmZmZmMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCIgaGVpZ2h0PSIxMDAiPjxwYXRoIGQ9Ik01MCAwYzI3LjYxNCAwIDUwIDIyLjM4NiA1MCA1MHMtMjIuMzg2IDUwLTUwIDUwUzAgNzcuNjE0IDAgNTAgMjIuMzg2IDAgNTAgMHoiIGZpbGw9IiMxNjg1YjciLz48cGF0aCBkPSJNNzMuMDIzIDY3LjA2N2wtOS4zNDQtOS4zNDRhMi4yNDcgMi4yNDcgMCAwMC0xLjU5My0uNjU2aC0xLjUyOGExOS4zOTkgMTkuMzk5IDAgMDA0LjEyNC0xMS45OTZjMC0xMC43Ny04LjcyNS0xOS40OTUtMTkuNDk0LTE5LjQ5NS0xMC43NjggMC0xOS40OTQgOC43MjYtMTkuNDk0IDE5LjQ5NSAwIDEwLjc2OCA4LjcyNiAxOS40OTMgMTkuNDk0IDE5LjQ5M2ExOS40IDE5LjQgMCAwMDExLjk5Ny00LjEyM3YxLjUyN2MwIC42LjIzNCAxLjE3Mi42NTUgMS41OTRsOS4zNDQgOS4zNDRhMi4yNCAyLjI0IDAgMDAzLjE3OCAwbDIuNjUyLTIuNjUzYTIuMjYgMi4yNiAwIDAwLjAxLTMuMTg2em0tMjcuODM1LTEwYy02LjYyNiAwLTExLjk5Ni01LjM2MS0xMS45OTYtMTEuOTk2IDAtNi42MjcgNS4zNi0xMS45OTcgMTEuOTk2LTExLjk5NyA2LjYyNiAwIDExLjk5NyA1LjM2MSAxMS45OTcgMTEuOTk3IDAgNi42MjYtNS4zNjEgMTEuOTk2LTExLjk5NyAxMS45OTZ6IiBmaWxsPSIjZmZmIi8+PC9zdmc+);background-repeat:no-repeat;background-position:center;background-size:50px;transition:all .3s}.simpay-landing-zone__screenshot-img:hover .hover{opacity:1;transition:all .3s}.simpay-landing-zone__screenshot ul{text-align:left;display:inline-block;margin:0 0 0 30px;list-style-type:none;max-width:calc(100% - 350px)}@media screen and (max-width: 782px){.simpay-landing-zone__screenshot ul{text-align:center;margin:30px auto;max-width:100%;display:block}}.simpay-landing-zone__screenshot li{margin:16px 0;padding:0;font-size:15px;color:#777;position:relative}.simpay-landing-zone__screenshot li:before{content:"";background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjc3NjIgNi40NTYwNUw4LjcyMDMyIDEuNDAwMDVDOC41NzU5OSAxLjI1NTcyIDguMzgzNjQgMS4xNzY1IDguMTc4NTMgMS4xNzY1QzcuOTczMiAxLjE3NjUgNy43ODA5NiAxLjI1NTg0IDcuNjM2NjQgMS40MDAwNUw3LjE3NzYgMS44NTkyQzcuMDMzMzkgMi4wMDMyOSA2Ljk1Mzk1IDIuMTk1NzYgNi45NTM5NSAyLjQwMDk4QzYuOTUzOTUgMi42MDYwOCA3LjAzMzM5IDIuODA1MDQgNy4xNzc2IDIuOTQ5MTRMMTAuMTI3MSA1LjkwNTE2SDAuNzU2MzM0QzAuMzMzODM0IDUuOTA1MTYgMCA2LjIzNTkyIDAgNi42NTg1NFY3LjMwNzY1QzAgNy43MzAyNyAwLjMzMzgzNCA4LjA5NDM4IDAuNzU2MzM0IDguMDk0MzhIMTAuMTYwNkw3LjE3NzcyIDExLjA2NjlDNy4wMzM1MSAxMS4yMTEyIDYuOTU0MDYgMTEuMzk4NSA2Ljk1NDA2IDExLjYwMzdDNi45NTQwNiAxMS44MDg3IDcuMDMzNTEgMTEuOTk4NiA3LjE3NzcyIDEyLjE0MjhMNy42MzY3NSAxMi42MDA1QzcuNzgxMDcgMTIuNzQ0OCA3Ljk3MzMyIDEyLjgyMzUgOC4xNzg2NSAxMi44MjM1QzguMzgzNzUgMTIuODIzNSA4LjU3NjExIDEyLjc0MzggOC43MjA0MyAxMi41OTk1TDEzLjc3NjMgNy41NDM2QzEzLjkyMSA3LjM5ODgyIDE0LjAwMDUgNy4yMDU1NiAxNCA3LjAwMDExQzE0LjAwMDQgNi43OTM5OCAxMy45MjEgNi42MDA2IDEzLjc3NjIgNi40NTYwNVY2LjQ1NjA1WiIgZmlsbD0iIzQyOEJDQSIvPgo8L3N2Zz4K);background-position:center;background-repeat:no-repeat;background-size:14px;width:14px;height:14px;display:inline-block;margin:-3px 5px 0 0;vertical-align:middle}.simpay-landing-zone .button.button-large{font-size:17px;line-height:30px;padding:10px 20px}.simpay-landing-zone__purchased{display:block;margin:15px 0 0}.simpay-upgrade-modal,.simpay-upgrade-upe-modal{padding:0 !important}.simpay-upgrade-modal *,.simpay-upgrade-upe-modal *{box-sizing:border-box}.simpay-upgrade-modal__content,.simpay-upgrade-upe-modal__content{text-align:center;display:flex;flex-direction:column;align-items:center;padding:16px 32px 32px}.simpay-upgrade-modal__content>.dashicons,.simpay-upgrade-upe-modal__content>.dashicons{color:#333;font-size:48px;width:48px;height:48px}.simpay-upgrade-modal__title,.simpay-upgrade-upe-modal__title{font-size:22px;line-height:1.5;display:block;margin:12px 0 0}.simpay-upgrade-modal__description,.simpay-upgrade-upe-modal__description{color:#777;font-size:16px;margin:16px 0 24px}.simpay-upgrade-modal__description strong,.simpay-upgrade-upe-modal__description strong{color:#333}.simpay-upgrade-modal__discount,.simpay-upgrade-upe-modal__discount{font-size:15px;text-align:center;margin:32px -32px -32px;padding:24px 40px;background-color:#fcf9e8;position:relative}.simpay-upgrade-modal__discount svg,.simpay-upgrade-upe-modal__discount svg{background:#00a32a;fill:#fff;border-radius:50%;border:4px solid #fff;width:32px;height:32px;position:absolute;top:-16px;left:50%;margin-left:-16px}.simpay-upgrade-modal__discount u,.simpay-upgrade-upe-modal__discount u{text-decoration:none;font-weight:bold;color:#00a32a}.simpay-upgrade-modal .button-large,.simpay-upgrade-upe-modal .button-large{font-size:16px;font-weight:bold;margin:0 0 15px;padding:8px 30px !important;height:auto}.simpay-teaser-float{margin:50px;position:relative}.simpay-teaser-float__card{text-align:center;padding:30px;background:#fff;border-radius:4px;box-shadow:0 0 30px 15px rgba(0,0,0,.18);position:relative;z-index:2}#poststuff .simpay-teaser-float h2,.simpay-teaser-float h2{font-size:24px;font-weight:600;margin:0;padding:0}.simpay-teaser-float p{font-size:15px;line-height:1.35;color:#666}.simpay-teaser-float p strong{color:#444}.simpay-teaser-float ul{text-align:left;display:inline-block;margin:-10px 0 20px;list-style-type:none}.simpay-teaser-float li{margin:16px 0;padding:0 0 0 24px;font-size:15px;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjc3NjIgNi40NTYwNUw4LjcyMDMyIDEuNDAwMDVDOC41NzU5OSAxLjI1NTcyIDguMzgzNjQgMS4xNzY1IDguMTc4NTMgMS4xNzY1QzcuOTczMiAxLjE3NjUgNy43ODA5NiAxLjI1NTg0IDcuNjM2NjQgMS40MDAwNUw3LjE3NzYgMS44NTkyQzcuMDMzMzkgMi4wMDMyOSA2Ljk1Mzk1IDIuMTk1NzYgNi45NTM5NSAyLjQwMDk4QzYuOTUzOTUgMi42MDYwOCA3LjAzMzM5IDIuODA1MDQgNy4xNzc2IDIuOTQ5MTRMMTAuMTI3MSA1LjkwNTE2SDAuNzU2MzM0QzAuMzMzODM0IDUuOTA1MTYgMCA2LjIzNTkyIDAgNi42NTg1NFY3LjMwNzY1QzAgNy43MzAyNyAwLjMzMzgzNCA4LjA5NDM4IDAuNzU2MzM0IDguMDk0MzhIMTAuMTYwNkw3LjE3NzcyIDExLjA2NjlDNy4wMzM1MSAxMS4yMTEyIDYuOTU0MDYgMTEuMzk4NSA2Ljk1NDA2IDExLjYwMzdDNi45NTQwNiAxMS44MDg3IDcuMDMzNTEgMTEuOTk4NiA3LjE3NzcyIDEyLjE0MjhMNy42MzY3NSAxMi42MDA1QzcuNzgxMDcgMTIuNzQ0OCA3Ljk3MzMyIDEyLjgyMzUgOC4xNzg2NSAxMi44MjM1QzguMzgzNzUgMTIuODIzNSA4LjU3NjExIDEyLjc0MzggOC43MjA0MyAxMi41OTk1TDEzLjc3NjMgNy41NDM2QzEzLjkyMSA3LjM5ODgyIDE0LjAwMDUgNy4yMDU1NiAxNCA3LjAwMDExQzE0LjAwMDQgNi43OTM5OCAxMy45MjEgNi42MDA2IDEzLjc3NjIgNi40NTYwNVY2LjQ1NjA1WiIgZmlsbD0iIzQyOEJDQSIvPgo8L3N2Zz4K);background-position:left 3px;background-repeat:no-repeat;background-size:14px;color:#777}.simpay-teaser-float .button.button-large{font-size:17px;line-height:30px;padding:10px 20px}.simpay-teaser-float .simpay-notice-dismiss{position:absolute;top:0;right:0;font-size:20px;color:#666;font-weight:bold;text-decoration:none;margin-left:5px;padding:6px 10px;z-index:2}.simpay-teaser-float .simpay-notice-dismiss:hover,.simpay-teaser-float .simpay-notice-dismiss:active,.simpay-teaser-float .simpay-notice-dismiss:focus{color:#666;text-decoration:none}.simpay-teaser-float:after,.simpay-teaser-float:before{opacity:.75;z-index:0;content:"";position:absolute;left:-30px;right:-30px;top:-35px;width:calc(100% + 60px);height:170px;background-image:linear-gradient(#ddd, #ddd),linear-gradient(#eee, #eee),linear-gradient(#ddd, #ddd),linear-gradient(#eee, #eee);background-repeat:no-repeat;background-size:100% 20px,100% 40px,100% 20px,100% 40px;background-position:0 0,0 30px,0 100px,0 130px}.simpay-teaser-float:before{top:170px}.simpay-teaser-float .simpay-upgrade-btn-subtext{margin:24px -30px -30px;padding:32px 40px;border-bottom-left-radius:2px;border-bottom-right-radius:2px;border:0}.simpay-teaser-float .simpay-upgrade-btn-subtext svg{border-color:#fff}.simpay-teaser-float--inline{margin:40px 30px 30px}.simpay-teaser-float--inline .simpay-teaser-float__card{padding:30px;box-shadow:0 0 12px 6px rgba(0,0,0,.16)}#poststuff .simpay-teaser-float--inline h2,.simpay-teaser-float--inline h2{font-size:20px}.simpay-teaser-float--inline p{font-size:15px;margin:.75rem 0}.simpay-teaser-float--inline .button.button-large{font-size:15px;line-height:24px;margin:1rem 0;padding:8px 14px;display:inline-block}.simpay-teaser-float--inline:before,.simpay-teaser-float--inline:after{opacity:.6}.simpay-teaser-float--inline:before{display:none}.simpay-teaser-float--inline:after{top:15px}.simpay-form-settings-notice{font-weight:normal;color:#1d2327;position:relative;margin:18px 18px 0;padding:14px;border-radius:4px;background:#f5f5ff}.simpay-form-settings-notice a{color:#635aff}.simpay-form-settings-notice .simpay-external-link .dashicons-external{margin:1px 0 0 2px}.simpay-form-settings-notice strong{font-size:14px}.simpay-form-settings-notice p{margin:5px 0 0 23px}.simpay-form-settings-notice .simpay-notice-dismiss{font-size:20px;color:#b0b0f0;font-weight:bold;line-height:1;position:absolute;top:0;right:5px;text-decoration:none;padding:0 5px;z-index:2}.simpay-form-settings-notice .simpay-notice-dismiss:hover,.simpay-form-settings-notice .simpay-notice-dismiss:active,.simpay-form-settings-notice .simpay-notice-dismiss:focus{color:#9191ef;text-decoration:none;background:none}.simpay-settings .simpay-form-settings-notice{border:2px solid #645aff;box-shadow:0 1px 1px rgba(0,0,0,.04)}.post-type-simple-pay .lity{z-index:999999999;padding:20px}.post-type-simple-pay .lity-close{margin:10px}.post-type-simple-pay .lity-content{max-width:80vw;max-height:80vh}.post-type-simple-pay .lity-content img{max-height:80vh !important;max-width:80vw !important}#wpsp-api-keys-row-hide{display:none}.post-type-simple-pay #post-preview:not(.simpay-preview-button){display:none}.simpay-license-field-wrapper{margin:20px 0}#simpay-settings-license-key-license-key{margin:0}#simpay-settings-license-key-license-key[readonly]{background:#fff}.simpay-license-message__loading,.simpay-license-field{display:flex;align-items:center}.wp-core-ui .button.simpay-license-button.button-primary,.wp-core-ui .button.simpay-license-button.button-secondary{font-size:1rem;line-height:1;margin:0 8px;padding:13px}.simpay-license-message{font-size:15px;margin-top:8px}.simpay-license-message--valid{color:#15803d}.simpay-license-message--invalid{color:#b91c1c}.simpay-recaptcha-payment-form-feedback .dashicons{margin-top:-1px;display:inline-block}.simpay-recaptcha-payment-form-feedback .dashicons-update-alt{animation:rotation 2s infinite linear}.simpay-form-builder-inset-settings{margin:3px 0 0 24px}fieldset.simpay-form-builder-inset-settings>*:not(legend){margin:5px 0 8px}.simpay-form-builder-inset-settings>*:last-child{margin-bottom:0}.simpay-form-builder-inventory-control{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;padding:6px 8px;box-shadow:0 0 0 rgba(0,0,0,0);transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;margin:0;padding:0;width:auto;display:inline-flex;align-items:center}@media(prefers-reduced-motion: reduce){.simpay-form-builder-inventory-control{transition-duration:0s;transition-delay:0s}}@media(min-width: 600px){.simpay-form-builder-inventory-control{font-size:13px;line-height:normal}}.simpay-form-builder-inventory-control:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid rgba(0,0,0,0)}.simpay-form-builder-inventory-control::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.simpay-form-builder-inventory-control::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.simpay-form-builder-inventory-control:-ms-input-placeholder{color:rgba(30,30,30,.62)}.simpay-form-builder-inventory-control:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid rgba(0,0,0,0)}.simpay-form-builder-inventory-control input[type=number]{border:0;box-shadow:none;background:none;border-radius:0;width:75px}.simpay-form-builder-inventory-control input[type=number]:focus{border:0;box-shadow:none;outline:0}.simpay-form-builder-inventory-control+label{margin-left:8px}.simpay-form-builder-inventory-control__initial{color:#757575;font-size:16px;line-height:normal;padding-right:8px}@media(min-width: 600px){.simpay-form-builder-inventory-control__initial{font-size:13px;line-height:normal}}.simpay-form-builder-inventory-control__initial:before{content:"/";display:inline-block;vertical-align:top;margin-top:-1px}.simpay-form-builder-purchase-restrictions__restriction-item{display:flex;align-items:center;margin-top:8px;margin-bottom:8px}.simpay-form-builder-purchase-restrictions__restriction-item label{margin-left:8px}.simpay-form-builder-purchase-restrictions__restriction-item-datetime{display:flex;align-items:center}.simpay-form-builder-purchase-restrictions__restriction-item-datetime>*{margin-right:10px}.simpay-form-builder-purchase-restrictions__restriction-item-datetime span{color:#757575}.simpay-form-builder-fee-recovery__amounts{display:flex;align-items:center;margin-top:5px}.simpay-form-builder-fee-recovery ::-webkit-input-placeholder{color:#b7bec7}.simpay-form-builder-fee-recovery ::-moz-placeholder{color:#b7bec7;opacity:1}.simpay-form-builder-fee-recovery :-ms-input-placeholder{color:#b7bec7}.simpay-form-builder-fee-recovery>*{margin-right:8px}.simpay-form-builder-fee-percent-control{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;padding:6px 8px;box-shadow:0 0 0 rgba(0,0,0,0);transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;margin:0;padding:0;width:auto;display:inline-flex;align-items:center}@media(prefers-reduced-motion: reduce){.simpay-form-builder-fee-percent-control{transition-duration:0s;transition-delay:0s}}@media(min-width: 600px){.simpay-form-builder-fee-percent-control{font-size:13px;line-height:normal}}.simpay-form-builder-fee-percent-control:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid rgba(0,0,0,0)}.simpay-form-builder-fee-percent-control::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.simpay-form-builder-fee-percent-control::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.simpay-form-builder-fee-percent-control:-ms-input-placeholder{color:rgba(30,30,30,.62)}.simpay-form-builder-fee-percent-control:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid rgba(0,0,0,0)}.simpay-form-builder-fee-percent-control input[type=number]{border:0;box-shadow:none;background:none;border-radius:0;width:75px}.simpay-form-builder-fee-percent-control input[type=number]:focus{border:0;box-shadow:none;outline:0}.simpay-form-builder-fee-percent-control+label{margin-left:8px}.simpay-form-builder-fee-percent-control__suffix{color:#757575;font-size:16px;line-height:normal;padding-right:8px}@media(min-width: 600px){.simpay-form-builder-fee-percent-control__suffix{font-size:13px;line-height:normal}}.simpay-form-builder-automations__cta{margin:24px 0 6px;text-align:center}.simpay-form-builder-automator{padding:16px 4px 26px !important}.simpay-form-builder-automator,.simpay-form-builder-automator *{box-sizing:border-box}.simpay-form-builder-automator input[type=search]{font-size:15px;padding:2px 8px}.simpay-form-builder-automator__integrations{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));grid-column-gap:16px;grid-row-gap:16px;margin:18px -18px 0;padding:0 18px 10px;width:calc(100% + 36px);max-height:400px;overflow-y:scroll}.simpay-form-builder-automator__integrations-integration{color:initial;text-align:center;text-decoration:none;background:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 1px 3px 0 rgba(0,0,0,.03);transition:all ease-in .15s}.simpay-form-builder-automator__integrations-integration img{display:block;margin:16px auto;height:50px}.simpay-form-builder-automator__integrations-integration span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:8px 16px;display:block;border-top:1px solid #eee}.simpay-form-builder-automator__integrations-integration:hover{cursor:pointer;border-color:#ddd;box-shadow:0 2px 4px 0 rgba(0,0,0,.06)}body.site-health #wpbody-content,body.post-type-simple-pay #wpbody-content{padding-bottom:200px}#wpfooter .simpay-footer-promotion{text-align:center;font-weight:400;font-size:13px;line-height:16px;color:#787c82;padding:20px 0 30px 0;margin-bottom:20px}#wpfooter .simpay-footer-promotion p{font-weight:600}#wpfooter .simpay-footer-promotion-links,#wpfooter .simpay-footer-promotion-social{display:flex;justify-content:center;align-items:center}#wpfooter .simpay-footer-promotion-links{margin:9px 0 0}#wpfooter .simpay-footer-promotion-links span{color:#c3c4c7;padding:0 7px}#wpfooter .simpay-footer-promotion-social{margin:10px 0 0 0;gap:10px}#wpfooter .simpay-footer-promotion-social li{margin-bottom:0}#wpfooter .simpay-footer-promotion-social li:hover path{fill:#50575e}#wpfooter .simpay-footer-promotion-social a{display:block;height:16px}.simpay-settings-is_upe td{background:#fff;border:1px solid #c3c4c7;border-left-width:4px;border-left-color:#2271b1;box-shadow:0 1px 1px rgba(0,0,0,.04);padding:12px 18px}.payment-page-background-color-selector{display:flex;align-items:center;flex-wrap:wrap;position:relative}.simpay-payment-page-background-color{margin:0 8px 8px 0}.simpay-payment-page-background-color label{width:88px;height:50px;border-radius:4px;display:flex;justify-content:center;align-items:center;border:2px solid rgba(0,0,0,0);position:relative;box-sizing:border-box}.simpay-payment-page-background-color input{position:absolute;top:0;left:0;z-index:-1}.simpay-payment-page-background-color input:checked+label,.simpay-payment-page-background-color .wp-picker-container .wp-color-result.button.is-selected{box-shadow:inset 0 0 0 2px #fff}.simpay-payment-page-background-color input:checked+label:after,.simpay-payment-page-background-color .wp-picker-container .wp-color-result.button.is-selected:after{color:#fff;font-size:20px;font-weight:bold;content:"✓";position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}.simpay-payment-page-background-color .wp-picker-container .wp-color-result.button{width:80px;height:50px;border-radius:4px;border:2px solid rgba(0,0,0,0);box-sizing:border-box;margin:0;position:relative}.simpay-payment-page-background-color .wp-picker-container .wp-color-result.button:after{content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 512 512'%3E%3C!--! Font Awesome Free 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M482.8 29.23c38.9 38.98 38.9 102.17 0 141.17L381.2 271.9l9.4 9.5c12.5 12.5 12.5 32.7 0 45.2s-32.7 12.5-45.2 0l-160-160c-12.5-12.5-12.5-32.7 0-45.2s32.7-12.5 45.2 0l9.5 9.4L341.6 29.23c39-38.974 102.2-38.974 141.2 0zM55.43 323.3 176.1 202.6l45.3 45.3-120.7 120.7c-3.01 3-4.7 7-4.7 11.3V416h36.1c4.3 0 8.3-1.7 11.3-4.7l120.7-120.7 45.3 45.3-120.7 120.7c-15 15-35.4 23.4-56.6 23.4H89.69l-39.94 26.6c-12.69 8.5-29.59 6.8-40.377-4-10.786-10.8-12.459-27.7-3.998-40.4L32 422.3v-42.4c0-21.2 8.43-41.6 23.43-56.6z' fill='%23fff' /%3E%3C/svg%3E");position:absolute;top:58%;left:50%;transform:translate3d(-50%, -50%, 0)}.simpay-payment-page-background-color .wp-picker-container .wp-color-result.button:hover,.simpay-payment-page-background-color .wp-picker-container .wp-color-result.button:focus{color:#fff;border:2px solid rgba(0,0,0,0);box-shadow:none}.simpay-payment-page-background-color .wp-picker-container .wp-color-result.button:hover:after,.simpay-payment-page-background-color .wp-picker-container .wp-color-result.button:focus:after{color:#fff;border:0}.simpay-payment-page-background-color .wp-picker-holder{position:absolute;z-index:10}.simpay-payment-page-background-color .wp-picker-container .wp-picker-clear,.simpay-payment-page-background-color .wp-picker-container .wp-color-result-text{display:none}.simpay-payment-page-background-color .wp-picker-open+.wp-picker-input-wrap{display:none}
diff --git a/includes/core/assets/js/dist/simpay-admin-dashboard-widget-report.asset.php b/includes/core/assets/js/dist/simpay-admin-dashboard-widget-report.asset.php
index 990f5c8e..e636090d 100644
--- a/includes/core/assets/js/dist/simpay-admin-dashboard-widget-report.asset.php
+++ b/includes/core/assets/js/dist/simpay-admin-dashboard-widget-report.asset.php
@@ -1 +1 @@
- array('lodash', 'react', 'wp-api-fetch', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-primitives', 'wp-url'), 'version' => '38c85620585476bbd62c1c2e85cb53e8');
\ No newline at end of file
+ array('lodash', 'react', 'wp-api-fetch', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-primitives', 'wp-url'), 'version' => '84ce2259cd5bd16f300d867549f42a0e');
\ No newline at end of file
diff --git a/includes/core/assets/js/dist/simpay-admin-form-template-explorer.asset.php b/includes/core/assets/js/dist/simpay-admin-form-template-explorer.asset.php
index 9f71f1e9..7f296d4a 100644
--- a/includes/core/assets/js/dist/simpay-admin-form-template-explorer.asset.php
+++ b/includes/core/assets/js/dist/simpay-admin-form-template-explorer.asset.php
@@ -1 +1 @@
- array('lodash', 'wp-a11y', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-url'), 'version' => 'b6ae19d94aa17b2127536341fff8ed48');
\ No newline at end of file
+ array('lodash', 'wp-a11y', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-url'), 'version' => '128a5eacf4f4f2055bff18db16c9ae8f');
\ No newline at end of file
diff --git a/includes/core/assets/js/dist/simpay-admin-help.asset.php b/includes/core/assets/js/dist/simpay-admin-help.asset.php
index 3f51c303..26fa1c01 100644
--- a/includes/core/assets/js/dist/simpay-admin-help.asset.php
+++ b/includes/core/assets/js/dist/simpay-admin-help.asset.php
@@ -1 +1 @@
- array('lodash', 'wp-a11y', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-primitives', 'wp-url'), 'version' => '6e145ab4db2f4a0e8506bfa24f5e784f');
\ No newline at end of file
+ array('lodash', 'wp-a11y', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-primitives', 'wp-url'), 'version' => 'a4a94d1076b88f6a55a3fc2607303dcf');
\ No newline at end of file
diff --git a/includes/core/assets/js/dist/simpay-admin-notices.js b/includes/core/assets/js/dist/simpay-admin-notices.js
index c5bee559..70891575 100644
--- a/includes/core/assets/js/dist/simpay-admin-notices.js
+++ b/includes/core/assets/js/dist/simpay-admin-notices.js
@@ -1 +1 @@
-!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=45)}({0:function(e,t,n){"use strict";function o(e){"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e()}n.d(t,"a",(function(){return o}))},45:function(e,t,n){"use strict";n.r(t),function(e){var t=n(0);Object(t.a)((function(){var t;(t=document.querySelector('#adminmenu a[href^="https://wpsimplepay.com/lite-vs-pro"]'))&&t.setAttribute("target","_blank"),e(".simpay-notice").each((function(){var t=e(this),n=t.data("id"),o=t.data("nonce"),i=t.data("lifespan");t.on("click",".notice-dismiss, .simpay-notice-dismiss",(function(){wp.ajax.send("simpay_dismiss_admin_notice",{data:{notice_id:n,nonce:o,lifespan:i},success:function(){t.slideUp("fast");var e=userSettings.uid,o=void 0===e?0:e,i="simpay-notice-".concat(n,"-seen-").concat(o);window.localStorage.removeItem(i)}})}))}));var n=e(".simpay-admin-notice-top-of-page");if(n.length>0){var o=n.detach();e("#wpcontent").prepend(o);var i=userSettings.uid,r=void 0===i?0:i,a=o.data("id"),c="simpay-notice-".concat(a,"-seen-").concat(r);window.localStorage.getItem(c)?o.show():setTimeout((function(){window.localStorage.setItem(c,!0),n.slideDown()}),1500)}}))}.call(this,n(7))},7:function(e,t){e.exports=jQuery}});
\ No newline at end of file
+!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=46)}({0:function(e,t,n){"use strict";function o(e){"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e()}n.d(t,"a",(function(){return o}))},46:function(e,t,n){"use strict";n.r(t),function(e){var t=n(0);Object(t.a)((function(){var t;(t=document.querySelector('#adminmenu a[href^="https://wpsimplepay.com/lite-vs-pro"]'))&&t.setAttribute("target","_blank"),e(".simpay-notice").each((function(){var t=e(this),n=t.data("id"),o=t.data("nonce"),i=t.data("lifespan");t.on("click",".notice-dismiss, .simpay-notice-dismiss",(function(){wp.ajax.send("simpay_dismiss_admin_notice",{data:{notice_id:n,nonce:o,lifespan:i},success:function(){t.slideUp("fast");var e=userSettings.uid,o=void 0===e?0:e,i="simpay-notice-".concat(n,"-seen-").concat(o);window.localStorage.removeItem(i)}})}))}));var n=e(".simpay-admin-notice-top-of-page");if(n.length>0){var o=n.detach();e("#wpcontent").prepend(o);var i=userSettings.uid,r=void 0===i?0:i,a=o.data("id"),c="simpay-notice-".concat(a,"-seen-").concat(r);window.localStorage.getItem(c)?o.show():setTimeout((function(){window.localStorage.setItem(c,!0),n.slideDown()}),1500)}}))}.call(this,n(6))},6:function(e,t){e.exports=jQuery}});
\ No newline at end of file
diff --git a/includes/core/assets/js/dist/simpay-admin-notifications.asset.php b/includes/core/assets/js/dist/simpay-admin-notifications.asset.php
index 948ce188..bd091753 100644
--- a/includes/core/assets/js/dist/simpay-admin-notifications.asset.php
+++ b/includes/core/assets/js/dist/simpay-admin-notifications.asset.php
@@ -1 +1 @@
- array('lodash', 'moment', 'react', 'react-dom', 'wp-api-fetch', 'wp-autop', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '3960de8850d66e054d601d7f5b765cd5');
\ No newline at end of file
+ array('lodash', 'moment', 'react', 'react-dom', 'wp-api-fetch', 'wp-autop', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'd2ed2f9effcfd07e000a9546afa3c06f');
\ No newline at end of file
diff --git a/includes/core/assets/js/dist/simpay-admin-page-activity-reports.asset.php b/includes/core/assets/js/dist/simpay-admin-page-activity-reports.asset.php
index 6a2b0f37..400334f5 100644
--- a/includes/core/assets/js/dist/simpay-admin-page-activity-reports.asset.php
+++ b/includes/core/assets/js/dist/simpay-admin-page-activity-reports.asset.php
@@ -1 +1 @@
- array('lodash', 'react', 'wp-api-fetch', 'wp-components', 'wp-core-data', 'wp-data', 'wp-date', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-primitives', 'wp-url'), 'version' => 'd58cefddd24203f4cc2c4dc025526219');
\ No newline at end of file
+ array('lodash', 'react', 'wp-api-fetch', 'wp-components', 'wp-core-data', 'wp-data', 'wp-date', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-primitives', 'wp-url'), 'version' => 'db9fe5d1db4bf31992965b941c70587a');
\ No newline at end of file
diff --git a/includes/core/assets/js/dist/simpay-admin-page-setup-wizard.asset.php b/includes/core/assets/js/dist/simpay-admin-page-setup-wizard.asset.php
index 366d217f..44c11e3d 100644
--- a/includes/core/assets/js/dist/simpay-admin-page-setup-wizard.asset.php
+++ b/includes/core/assets/js/dist/simpay-admin-page-setup-wizard.asset.php
@@ -1 +1 @@
- array('lodash', 'react', 'wp-api-fetch', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-url'), 'version' => '742bc3a9b3de5b96ad5daa7476fa4918');
\ No newline at end of file
+ array('lodash', 'react', 'wp-api-fetch', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-url'), 'version' => 'e64c533313c54b39783d6749f9fbc532');
\ No newline at end of file
diff --git a/includes/core/assets/js/dist/simpay-admin-page-setup-wizard.js b/includes/core/assets/js/dist/simpay-admin-page-setup-wizard.js
index 487ba8e2..8b553f26 100644
--- a/includes/core/assets/js/dist/simpay-admin-page-setup-wizard.js
+++ b/includes/core/assets/js/dist/simpay-admin-page-setup-wizard.js
@@ -1,2 +1,2 @@
-!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=75)}([function(e,t){e.exports=window.wp.element},,function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.wp.components},,function(e,t){e.exports=window.React},function(e,t,n){var r=n(26),a=n(27),i=n(21),c=n(28);e.exports=function(e,t){return r(e)||a(e,t)||i(e,t)||c()},e.exports.__esModule=!0,e.exports.default=e.exports},,,function(e,t){e.exports=window.wp.primitives},function(e,t){e.exports=window.wp.url},function(e,t,n){var r=n(30);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=window.lodash},,function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},,,,,,,,function(e,t){e.exports=window.wp.notices},function(e,t,n){"use strict";e.exports=n(62)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for,a=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,c=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,p=r?Symbol.for("react.async_mode"):60111,m=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,b=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,h=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,O=r?Symbol.for("react.responder"):60118,j=r?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case p:case m:case c:case s:case o:case d:return e;default:switch(e=e&&e.$$typeof){case u:case f:case h:case y:case l:return e;default:return t}}case i:return t}}}function x(e){return _(e)===m}t.AsyncMode=p,t.ConcurrentMode=m,t.ContextConsumer=u,t.ContextProvider=l,t.Element=a,t.ForwardRef=f,t.Fragment=c,t.Lazy=h,t.Memo=y,t.Portal=i,t.Profiler=s,t.StrictMode=o,t.Suspense=d,t.isAsyncMode=function(e){return x(e)||_(e)===p},t.isConcurrentMode=x,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return _(e)===f},t.isFragment=function(e){return _(e)===c},t.isLazy=function(e){return _(e)===h},t.isMemo=function(e){return _(e)===y},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===o},t.isSuspense=function(e){return _(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===c||e===m||e===s||e===o||e===d||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===y||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===v||e.$$typeof===O||e.$$typeof===j||e.$$typeof===g)},t.typeOf=_},function(e,t){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0),a=n(9);const i=Object(r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(a.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),a=n(9);const i=Object(r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(a.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"}));t.a=i},,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(6),a=n.n(r),i=n(0),c=(n(60),n(3)),o=n(2),s=n(10),l=n(37),u=n(12),p=n(24),m=n.n(p),f=n(44),d=n(65),b=n(18),y=n.n(b),h=n(15),g=n.n(h),v=n(5);function O(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var j=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,_=O((function(e){return j.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));function x(){return(x=Object.assign?Object.assign.bind():function(e){for(var t=1;t2||J(V)>3?"":" "}function ae(e,t){for(;--t&&Y()&&!(V<48||V>102||V>57&&V<65||V>70&&V<97););return K(e,Q()+(t<6&&32==X()&&32==Y()))}function ie(e,t){for(;Y()&&e+V!==57&&(e+V!==84||47!==X()););return"/*"+K(t,Z-1)+"*"+A(47===e?e:Y())}function ce(e){for(;!J(X());)Y();return K(e,Z)}function oe(e,t,n,r,a,i,c,o,s,l,u){for(var p=a-1,m=0===a?i:[""],f=D(m),d=0,b=0,y=0;d0?m[h]+" "+g:$(g,/&\f/g,m[h])))&&(s[y++]=v);return G(e,t,n,0===a?k:o,s,l,u)}function se(e,t,n){return G(e,t,n,S,A(V),F(e,2,-2),0)}function le(e,t,n,r){return G(e,t,n,C,F(e,0,r),F(e,r+1,-1),r)}function ue(e,t){for(var n="",r=D(e),a=0;a-1&&!e.return)switch(e.type){case C:e.return=function e(t,n){switch(a=n,45^T(r=t,0)?(((a<<2^T(r,0))<<2^T(r,1))<<2^T(r,2))<<2^T(r,3):0){case 5103:return E+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return E+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return E+t+"-moz-"+t+"-ms-"+t+t;case 6828:case 4268:return E+t+"-ms-"+t+t;case 6165:return E+t+"-ms-flex-"+t+t;case 5187:return E+t+$(t,/(\w+).+(:[^]+)/,E+"box-$1$2-ms-flex-$1$2")+t;case 5443:return E+t+"-ms-flex-item-"+$(t,/flex-|-self/,"")+t;case 4675:return E+t+"-ms-flex-line-pack"+$(t,/align-content|flex-|-self/,"")+t;case 5548:return E+t+"-ms-"+$(t,"shrink","negative")+t;case 5292:return E+t+"-ms-"+$(t,"basis","preferred-size")+t;case 6060:return E+"box-"+$(t,"-grow","")+E+t+"-ms-"+$(t,"grow","positive")+t;case 4554:return E+$(t,/([^-])(transform)/g,"$1"+E+"$2")+t;case 6187:return $($($(t,/(zoom-|grab)/,E+"$1"),/(image-set)/,E+"$1"),t,"")+t;case 5495:case 3959:return $(t,/(image-set\([^]*)/,E+"$1$`$1");case 4968:return $($(t,/(.+:)(flex-)?(.*)/,E+"box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+E+t+t;case 4095:case 3583:case 4068:case 2532:return $(t,/(.+)-inline(.+)/,E+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(L(t)-1-n>6)switch(T(t,n+1)){case 109:if(45!==T(t,n+4))break;case 102:return $(t,/(.+:)(.+)-([^]+)/,"$1"+E+"$2-$3$1-moz-"+(108==T(t,n+3)?"$3":"$2-$3"))+t;case 115:return~R(t,"stretch")?e($(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==T(t,n+1))break;case 6444:switch(T(t,L(t)-3-(~R(t,"!important")&&10))){case 107:return $(t,":",":"+E)+t;case 101:return $(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+E+(45===T(t,14)?"inline-":"")+"box$3$1"+E+"$2$3$1-ms-$2box$3")+t}break;case 5936:switch(T(t,n+11)){case 114:return E+t+"-ms-"+$(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return E+t+"-ms-"+$(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return E+t+"-ms-"+$(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return E+t+"-ms-"+t+t}var r,a;return t}(e.value,e.length);break;case P:return ue([q(e,{value:$(e.value,"@","@"+E)})],r);case k:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch((n=/(::plac\w+|:read-\w+)/.exec(n=t))?n[0]:n){case":read-only":case":read-write":return ue([q(e,{props:[$(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ue([q(e,{props:[$(t,/:(plac\w+)/,":"+E+"input-$1")]}),q(e,{props:[$(t,/:(plac\w+)/,":-moz-$1")]}),q(e,{props:[$(t,/:(plac\w+)/,"-ms-input-$1")]})],r)}var n;return""}))}}],ge=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,a,i=e.stylisPlugins||he,c={},o=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n0&&L(w)-m&&B(d>32?le(w+";",a,r,m-1):le($(w," ","")+";",a,r,m-2),l);break;case 59:w+=";";default:if(B(x=oe(w,n,r,u,p,i,s,O,j=[],_=[],m),c),123===v)if(0===p)e(w,n,x,x,j,c,m,s,_);else switch(99===f&&110===T(w,3)?100:f){case 100:case 108:case 109:case 115:e(t,x,x,a&&B(oe(t,x,x,0,0,i,s,O,i,j=[],m),_),i,_,m,s,a?j:_);break;default:e(w,x,x,x,[""],_,0,s,_)}}u=p=d=0,y=g=1,O=w="",m=o;break;case 58:m=1+L(w),d=b;default:if(y<1)if(123==v)--y;else if(125==v&&0==y++&&125==(V=Z>0?T(H,--Z):0,W--,10===V&&(W=1,U--),V))continue;switch(w+=A(v),v*y){case 38:g=p>0?1:(w+="\f",-1);break;case 44:s[u++]=(L(w)-1)*g,g=1;break;case 64:45===X()&&(w+=ne(Y())),f=X(),p=m=L(O=w+=ce(Q())),v++;break;case 45:45===b&&2==L(w)&&(y=0)}}return c}("",null,null,null,[""],e=ee(e),0,[0],e))}(e?e+"{"+t.styles+"}":t.styles),p),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new w({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:c,registered:{},insert:a};return m.sheet.hydrate(o),m};function ve(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}n(51);var Oe=function(e,t,n){!function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)}(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+r:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}},je={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},_e=/[A-Z]|^ms/g,xe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,we=function(e){return 45===e.charCodeAt(1)},Ee=function(e){return null!=e&&"boolean"!=typeof e},Se=O((function(e){return we(e)?e:e.replace(_e,"-$&").toLowerCase()})),ke=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(xe,(function(e,t,n){return Pe={name:t,styles:n,next:Pe},t}))}return 1===je[e]||we(e)||"number"!=typeof t||0===t?t:t+"px"};function Ce(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Pe={name:n.name,styles:n.styles,next:Pe},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Pe={name:r.name,styles:r.styles,next:Pe},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(a)+s,styles:a,next:Pe}},Me=(!!v.useInsertionEffect&&v.useInsertionEffect||v.useLayoutEffect,v.createContext("undefined"!=typeof HTMLElement?ge({key:"css"}):null));Me.Provider;var Ne=function(e){return Object(v.forwardRef)((function(t,n){var r=Object(v.useContext)(Me);return e(t,r,n)}))},$e=v.createContext({}),Re=_,Te=function(e){return"theme"!==e},Fe=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Re:Te},Le=function(e,t,n){var r;if(t){var a=t.shouldForwardProp;r=e.__emotion_forwardProp&&a?function(t){return e.__emotion_forwardProp(t)&&a(t)}:a}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},De=function(){return null},Be=function e(t,n){var r,a,i=t.__emotion_real===t,c=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,a=n.target);var o=Le(t,n,i),s=o||Fe(c),l=!s("as");return function(){var u=arguments,p=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&p.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)p.push.apply(p,u);else{p.push(u[0][0]);for(var m=u.length,f=1;f div {\n\t\tmargin-left: 8px;\n\t}\n\n\tsvg {\n\t\tdisplay: block;\n\n\t\t&:hover {\n\t\t\tcursor: pointer;\n\t\t}\n\t}\n"]))),Ke=Ye(c.Popover)(Ie||(Ie=y()(["\n\t.components-popover__content {\n\t\tpadding: 20px;\n\t\twidth: 200px;\n\t}\n"]))),Je=Ye(c.ToggleControl)(Ze||(Ze=y()(["\n\t&& {\n\t\t.components-base-control__field {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\t}\n"]))),et=n(52),tt=n.n(et),nt=Ye(c.Card)(Ve||(Ve=y()(["\n\tpadding: 30px;\n\n\t&& {\n\t\tbox-shadow: 0 2px 6px 0 rgba( 0, 0, 0, 0.05 );\n\t\tborder: 1px solid #ccc;\n\t\twidth: 100%;\n\t}\n"]))),rt=Ye(c.CardHeader)(He||(He=y()(["\n\t&&& {\n\t\tpadding: 0 0 30px;\n\t}\n\n\th1 {\n\t\tfont-size: 26px;\n\t\tline-height: 1;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\n\tsmall {\n\t\tcolor: #c0c0c0;\n\t\tfont-size: 13px;\n\t\tfont-weight: normal;\n\t\tdisplay: block;\n\t\tmargin: 0 0 3px;\n\t}\n"]))),at=Ye(c.CardFooter)(Ge||(Ge=y()(["\n\t&&& {\n\t\tpadding: 30px 0 0;\n\t}\n"]))),it=Ye(c.CardBody)(qe||(qe=y()(["\n\t&&& {\n\t\tpadding: 30px 0;\n\t}\n\n\t> * {\n\t\tmargin: 0 0 2rem;\n\n\t\t&:last-child {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\t}\n\n\t> p {\n\t\tcolor: #555555;\n\t\tfont-size: 15px;\n\t}\n"]))),ct=["title","supTitle","children"];function ot(e){return Object(i.createElement)(nt,e)}function st(e){var t=e.title,n=e.supTitle,r=e.children,a=tt()(e,ct);return Object(i.createElement)(rt,a,Object(i.createElement)("div",null,n&&Object(i.createElement)("small",null,n),t&&Object(i.createElement)("h1",null,t)),r)}function lt(e){return Object(i.createElement)(at,e)}function ut(e){return Object(i.createElement)(it,e)}var pt,mt=simpaySetupWizard.adminUrl;function ft(e){var t=e.isFirst,n=Object(i.useState)(!1),r=a()(n,2),s=r[0],l=r[1];return Object(i.createElement)(c.Flex,{justify:"center"},s&&Object(i.createElement)(c.Modal,{title:Object(o.__)("Are you sure you want to exit the wizard?","stripe"),onRequestClose:function(){return l(!1)}},Object(i.createElement)("p",{style:{marginBottom:"2rem"}},Object(o.__)("Manual setup is only recommended for experienced users.","stripe")),Object(i.createElement)(c.Flex,null,Object(i.createElement)(c.Button,{href:mt,isDestructive:!0,variant:"destructive"},Object(o.__)("Exit Setup Wizard","stripe")),Object(i.createElement)(c.Button,{variant:"primary",isPrimary:!0,onClick:function(){return l(!1)}},Object(o.__)("Continue Setup","stripe")))),Object(i.createElement)(c.Button,{isLink:!0,variant:"link",className:"simpay-setup-wizard-subtle-link",onClick:function(){return l(!0)}},t?Object(o.__)("Go back to the Dashboard","stripe"):Object(o.__)("Close and exit the Setup Wizard","stripe")))}var dt=Ye(c.Button)(pt||(pt=y()(["\n\t&& {\n\t\tfont-size: 16px;\n\t\tfont-weight: bold;\n\t\tpadding: 15px 30px !important;\n\t\theight: auto;\n\t}\n"]))),bt=Object(i.forwardRef)((function(e,t){return Object(i.createElement)(dt,g()({isPrimary:!0,variant:"primary"},e,{ref:t}))}));function yt(e){return e.width,Object(i.createElement)("svg",{width:"311",height:"41",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(i.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.352 0C1.052 0 0 1.02 0 2.277v30.746C0 34.281 1.053 35.3 2.352 35.3h28.806c.975 0 1.764-.764 1.764-1.708 0-.943-.79-1.708-1.763-1.708H5.29c-.974 0-1.764-.765-1.764-1.708v-17.08c0-.944.79-1.709 1.764-1.709h44.092c1.299 0 2.352-1.02 2.352-2.277V2.277C51.735 1.02 50.682 0 49.383 0H2.352Zm55.262 24.198h-1.47v-1.993c0-4.088-3.422-7.402-7.643-7.402-4.22 0-7.642 3.314-7.642 7.402v1.993H38.8c-1.299 0-2.352 1.02-2.352 2.277v11.387c0 1.258 1.053 2.278 2.352 2.278h18.813c1.299 0 2.351-1.02 2.351-2.278V26.475c0-1.258-1.053-2.277-2.351-2.277Zm-4.997-1.993v1.993h-8.23v-1.993c0-2.201 1.842-3.985 4.114-3.985 2.273 0 4.116 1.784 4.116 3.985ZM8.23 20.497c0-.629.526-1.139 1.175-1.139H28.22c.65 0 1.176.51 1.176 1.139s-.527 1.139-1.176 1.139H9.406c-.649 0-1.175-.51-1.175-1.139Zm0 5.124c0-.629.526-1.138 1.175-1.138h7.055c.65 0 1.176.51 1.176 1.138 0 .63-.527 1.139-1.176 1.139H9.406c-.649 0-1.175-.51-1.175-1.139Zm31.158 11.672V27.045h17.637v10.248H39.389Z",fill:"#428BCA"}),Object(i.createElement)("path",{d:"M81.08 30.745h5.288l5.41-17.186 5.596 17.187h5.289l7.84-24.29h-5.288l-5.289 17.956L94.7 6.457h-5.842L83.785 24.38 78.528 6.457h-5.289l7.84 24.288Zm31.511 0h4.796v-8.793h6.456c5.319 0 8.302-3.228 8.302-7.963 0-4.735-2.983-7.532-8.302-7.532h-11.252v24.288Zm4.796-13.405V11.1h5.288c2.952 0 4.52 1.168 4.52 3.104 0 1.968-1.507 3.136-4.366 3.136h-5.442Zm35.473 13.897c6.303 0 10.023-3.197 10.023-7.747 0-10.3-14.789-4.581-14.789-10.085 0-1.906 1.599-3.013 4.52-3.013 2.859 0 4.519 1.322 4.704 3.567h5.288c0-4.92-4.089-7.994-9.9-7.994-5.872 0-9.562 2.89-9.562 7.502 0 10.268 14.758 4.642 14.758 10.084 0 1.998-1.752 3.26-4.919 3.26-3.228 0-5.073-1.6-5.165-4.305h-5.381c0 5.503 4.274 8.731 10.423 8.731Zm15.137-18.447c1.66 0 2.89-1.23 2.89-2.89 0-1.66-1.23-2.829-2.89-2.829-1.691 0-2.921 1.169-2.921 2.83 0 1.66 1.23 2.89 2.921 2.89Zm-2.306 17.956h4.581V14.758h-4.581v15.988Zm7.696-.001h4.55v-8.178c0-2.644 1.384-4.366 3.597-4.366 1.968 0 3.136 1.415 3.136 3.751v8.793h4.612v-8.178c0-2.644 1.384-4.366 3.597-4.366 1.968 0 3.136 1.415 3.136 3.751v8.793h4.643v-9.039c0-4.888-1.968-7.44-5.965-7.44-2.459 0-4.642.86-6.21 3.044-.892-2.03-2.583-3.044-5.135-3.044-2.552 0-4.335 1.076-5.411 2.798v-2.306h-4.55v15.988Zm30.183 6.15h4.551v-8.24c1.106 1.63 2.859 2.582 5.38 2.582 4.028 0 6.887-3.504 6.887-8.424 0-5.011-2.859-8.547-6.887-8.547-2.521 0-4.274.953-5.38 2.583v-2.091h-4.551v22.137Zm8.363-9.593c-2.244 0-3.843-1.875-3.843-4.52 0-2.674 1.599-4.58 3.843-4.58 2.275 0 3.874 1.906 3.874 4.58 0 2.645-1.599 4.52-3.874 4.52Zm10.651 3.443h4.551V6.457h-4.551v24.288Zm15.443.492c3.905 0 6.918-2.213 7.41-5.688h-4.551c-.184 1.107-1.229 1.968-2.828 1.968-2.368 0-3.536-1.353-3.751-3.412h11.222v-1.476c0-5.104-3.259-8.363-7.502-8.363-4.919 0-8.363 3.505-8.363 8.455 0 4.98 3.444 8.516 8.363 8.516Zm-3.689-9.93c.276-1.845 1.352-3.106 3.505-3.106 1.937 0 3.013 1.322 3.105 3.106h-6.61Zm22.358 9.438h4.796v-8.793h6.457c5.319 0 8.301-3.228 8.301-7.963 0-4.735-2.982-7.532-8.301-7.532h-11.253v24.288Zm4.796-13.405V11.1h5.288c2.952 0 4.52 1.168 4.52 3.104 0 1.968-1.507 3.136-4.366 3.136h-5.442Zm20.704 13.897c2.736 0 4.458-1.23 5.257-3.228.4 2.183 2.152 3.413 5.688 2.613v-3.259c-1.261.123-1.507-.338-1.507-1.66v-5.411c0-3.782-2.644-6.026-7.317-6.026-4.612 0-7.317 2.275-7.317 6.118h4.488c0-1.383 1.015-2.183 2.768-2.183 1.906 0 2.859.769 2.828 2.091v.492l-3.659.43c-4.519.523-7.071 2.368-7.071 5.258 0 2.429 1.722 4.765 5.842 4.765Zm.922-3.382c-1.414 0-2.183-.645-2.183-1.63 0-1.167 1.507-1.629 4.397-1.998l1.568-.153c-.277 2.152-1.599 3.781-3.782 3.781Zm11.126 9.04h1.967c3.936 0 6.641-1.077 8.271-4.981L311 14.758h-4.766l-3.996 10.669-4.797-10.67h-4.796l7.225 16.234c-1.014 1.446-2.06 1.907-4.058 1.876h-1.568v4.028Z",fill:"#428BCA"}))}var ht=n(17);function gt(e){var t=Object(ht.useSelect)((function(e){return Object(u.filter)(e("core/notices").getNotices(),{type:"snackbar"})}),[]),n=Object(ht.useDispatch)("core/notices").removeNotice;return 0===t.length?null:Object(i.createElement)(c.SnackbarList,g()({onRemove:n,notices:t},e))}var vt,Ot,jt,_t,xt,wt=n(64),Et=Ye.div(vt||(vt=y()(["\n\tmax-width: 80%;\n\tdisplay: flex;\n\talign-items: center;\n\n\t> * {\n\t\tmargin-right: 8px;\n\n\t\t&:last-child {\n\t\t\tmargin-right: 0;\n\t\t}\n\t}\n"]))),St={current:"var(--wp-admin-theme-color)",complete:"var(--wp-admin-theme-color)",incomplete:"#c0c0c0"},kt=Ye.div(Ot||(Ot=y()(["\n\twidth: 16px;\n\theight: 16px;\n\tborder-radius: 50%;\n\tbackground-color: ",";\n\tflex-shrink: 0;\n\tposition: relative;\n\ttransition: backgroundColor 0.2s ease-in-out;\n\n\tsvg {\n\t\tfill: #fff;\n\t\tposition: absolute;\n\t\tleft: -1px;\n\t\ttop: -1px;\n\t\ttransition: opacity 0.2s ease-in-out;\n\t\topacity: ",";\n\t}\n\n\tdiv {\n\t\topacity: ",";\n\t}\n\n\tpath {\n\t\tstroke: #fff;\n\t}\n"])),(function(e){return St[e.status]}),(function(e){return e.isComplete?"1":"0"}),(function(e){var t=e.isCurrent,n=e.isComplete;return t&&!n?"1":"0"})),Ct=Ye.div(jt||(jt=y()(["\n\twidth: 6px;\n\theight: 6px;\n\tbackground-color: #f0f0f1;\n\tborder-radius: 50%;\n\tposition: absolute;\n\ttop: 5px;\n\tleft: 5px;\n\ttransition: opacity 0.2s ease-in-out;\n"]))),Pt=Ye.div(_t||(_t=y()(["\n\twidth: 100%;\n\theight: 2px;\n\tbackground-color: rgba( 192, 192, 192, 0.5 );\n\twidth: 100px;\n"])));function zt(e){for(var t=e.current,n=e.total,r=[],a=1;a<=n;a++){var c="incomplete";a * {\n\t\tmargin: 25px 0;\n\t}\n"])));function Nt(e){return Object(i.createElement)(Mt,e)}var $t=Ye(c.Button)(At||(At=y()(["\n\t&&&& {\n\t\tfont-size: 16px;\n\t\tfont-weight: bold;\n\t\tpadding: 13px 30px 12px !important;\n\t\theight: auto;\n\t\tbackground-color: #635bff;\n\n\t\t&:focus {\n\t\t\tbackground-color: #635bff;\n\t\t\tbox-shadow: inset 0 0 0 1px #fff,\n\t\t\t\t0 0 0 var( --wp-admin-border-width-focus ) #635bff;\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground-color: #0a2540 !important;\n\t\t}\n\n\t\t&:focus:hover {\n\t\t\tbox-shadow: inset 0 0 0 1px #fff,\n\t\t\t\t0 0 0 var( --wp-admin-border-width-focus ) #0a2540;\n\t\t}\n\n\t\tsvg {\n\t\t\tmargin-left: 5px;\n\t\t}\n\t}\n"]))),Rt=Object(i.forwardRef)((function(e,t){return Object(i.createElement)($t,g()({isPrimary:!0,variant:"primary"},e,{ref:t}))}));function Tt(){return Object(i.createElement)("svg",{width:56,height:23,fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(i.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M55.742 11.884c0-3.93-1.92-7.032-5.59-7.032-3.684 0-5.914 3.101-5.914 7.001 0 4.622 2.632 6.955 6.41 6.955 1.843 0 3.236-.414 4.29-.998v-3.07c-1.053.522-2.261.844-3.794.844-1.502 0-2.834-.522-3.004-2.334h7.572c0-.2.03-.998.03-1.366Zm-7.649-1.459c0-1.735 1.069-2.456 2.044-2.456.945 0 1.951.721 1.951 2.456h-3.995Zm-9.832-5.573c-1.517 0-2.493.706-3.035 1.197l-.201-.952h-3.407V23l3.871-.814.016-4.345c.557.4 1.378.967 2.74.967 2.772 0 5.296-2.21 5.296-7.078-.015-4.452-2.57-6.878-5.28-6.878Zm-.929 10.579c-.913 0-1.456-.323-1.827-.722l-.016-5.696c.403-.446.96-.753 1.843-.753 1.41 0 2.385 1.566 2.385 3.578 0 2.057-.96 3.593-2.385 3.593ZM26.292 3.946l3.886-.83V0l-3.886.814v3.132Zm0 1.167h3.886v13.434h-3.886V5.113Zm-4.165 1.136-.248-1.136h-3.345v13.434h3.871V9.443c.914-1.183 2.462-.968 2.942-.799V5.113c-.495-.184-2.307-.522-3.22 1.136Zm-7.742-4.468-3.778.798-.016 12.299c0 2.272 1.719 3.946 4.01 3.946 1.27 0 2.2-.23 2.71-.507V15.2c-.495.2-2.942.906-2.942-1.366v-5.45h2.942V5.112H14.37l.016-3.332ZM3.917 9.013c0-.6.496-.83 1.317-.83 1.176 0 2.663.354 3.84.983V5.558c-1.286-.507-2.555-.706-3.84-.706C2.09 4.852 0 6.479 0 9.197c0 4.238 5.884 3.562 5.884 5.39 0 .705-.62.936-1.487.936-1.285 0-2.926-.522-4.227-1.229v3.655c1.44.614 2.896.875 4.227.875 3.221 0 5.435-1.582 5.435-4.33-.015-4.575-5.915-3.762-5.915-5.481Z",fill:"#fff"}))}var Ft=n(11),Lt=n.n(Ft);function Dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;tWP Simple Pay account or purchase receipt email.","stripe"),{strong:Object(i.createElement)("strong",null),a:Object(i.createElement)("a",{href:Jt,target:"_blank",rel:"noopener noreferrer"})})),Object(i.createElement)(c.TextControl,{label:Object(o.__)("License Key","stripe"),value:l,className:_,onChange:function(e){return u(e)},disabled:d,help:g||Object(o.__)("An active license ensures automatic updates and the latest features.","stripe"),ref:j})),Object(i.createElement)(lt,{justify:"flex-end",align:"center"},Object(i.createElement)(bt,{onClick:function(){b(!0);var e=new FormData;e.append("action","simpay_activate_license"),e.append("nonce",en),e.append("license",l),m()({url:Kt,method:"POST",body:e}).then((function(e){var r=e.success,a=e.data,i=a.message,c=a.license;if(!r)throw{message:i};n(c),O(Object(o.__)("License activated","stripe"),{type:"snackbar"}),b(!1),t()})).catch((function(e){var t=e.message;v(t),b(!1)}))},disabled:""===l||d,isBusy:d},Object(o.__)("Activate and Continue →","stripe"))))}},{id:"stripe",title:Object(o.__)("Connect to Stripe","stripe"),content:wn},{id:"emails",title:Object(o.__)("Configure Emails","stripe"),content:function(e){var t=e.goPrev,n=e.goNext,r=e.licenseData,a=Wt(),s=a.settings,l=a.rawSettings,p=a.discardChanges,m=a.editSettings,f=a.saveSettings,d=Object(i.useRef)();if(Object(i.useLayoutEffect)((function(){d.current&&d.current.focus()}),[l]),Object(u.isEmpty)(s))return Object(i.createElement)(ut,null,Object(i.createElement)(c.Spinner,null));var b=s["email_payment-confirmation"],y=s["email_payment-notification"],h=s["email_payment-notification_to"],g=s["email_upcoming-invoice"],v=s["email_invoice-confirmation"],O=r.features,j=O.subscriptions,_=O.enhanced_subscriptions;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(ut,null,Object(i.createElement)("ul",{className:"simpay-setup-wizard-toggle-list"},Object(i.createElement)("li",null,Object(i.createElement)("label",{htmlFor:"email_payment-confirmation"},Object(i.createElement)("h3",null,Object(o.__)("Payment Receipt","stripe")),Object(i.createElement)("p",null,Object(o.__)("Send a payment receipt email to the customer upon successful payment.","stripe"))),Object(i.createElement)(c.FormToggle,{id:"email_payment-confirmation",checked:"no"!==b,onChange:function(e){var t=e.target;return m({"email_payment-confirmation":t.checked?"yes":"no"})}})),Object(i.createElement)("li",null,Object(i.createElement)("label",{htmlFor:"email_payment-notification"},Object(i.createElement)("h3",null,Object(o.__)("Payment Notification","stripe")),Object(i.createElement)("p",null,Object(o.__)("Receive an email notification when a new payment is made.","stripe"))),Object(i.createElement)(c.FormToggle,{id:"email_payment-notification",checked:"no"!==y,onChange:function(e){var t=e.target;return m({"email_payment-notification":t.checked?"yes":"no"})}})),"no"!==y&&Object(i.createElement)("li",{className:"simpay-setup-wizard-toggle-list__child"},Object(i.createElement)(c.TextControl,{label:Object(o.__)("Send to:","stripe"),value:h,onChange:function(e){return m({"email_payment-notification_to":e})}})),_&&Object(i.createElement)("li",null,Object(i.createElement)("label",{htmlFor:"email_invoice-confirmation"},Object(i.createElement)("h3",null,Object(o.__)("Invoice Receipt","stripe")),Object(i.createElement)("p",null,Object(o.__)("Send a payment receipt email to the customer upon successful invoice.","stripe"))),Object(i.createElement)(c.FormToggle,{id:"email_payment-confirmation",checked:"no"!==v,onChange:function(e){var t=e.target;return m({"email_invoice-confirmation":t.checked?"yes":"no"})}})),j&&Object(i.createElement)("li",null,Object(i.createElement)("label",{htmlFor:"email_upcoming-invoice"},Object(i.createElement)("h3",null,Object(o.__)("Upcoming Invoice","stripe")),Object(i.createElement)("p",null,Object(o.__)("Remind customers of upcoming invoices and allow payment method changes.","stripe"))),Object(i.createElement)(c.FormToggle,{id:"email_upcoming-invoice",checked:"no"!==g,onChange:function(e){var t=e.target;return m({"email_upcoming-invoice":t.checked?"yes":"no"})}})))),Object(i.createElement)(lt,{justify:"space-between",align:"center"},Object(i.createElement)("div",null,Object(i.createElement)(c.Button,{isLink:!0,variant:"link",onClick:t,className:"simpay-setup-wizard-subtle-link"},Object(o.__)("← Previous Step","stripe"))),Object(i.createElement)("div",{style:{display:"flex",justifyContent:"center"}},Object(i.createElement)(c.Button,{isLink:!0,variant:"link",onClick:function(){p(),n()},style:{marginRight:"16px"},className:"simpay-setup-wizard-subtle-link"},Object(o.__)("Skip Step","stripe")),Object(i.createElement)(bt,{onClick:function(){f(),n()},ref:d},Object(o.__)("Save and Continue →","stripe")))))}},{id:"next-steps",title:Object(o.__)("🎉 Setup Complete","stripe"),content:function(){return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(ut,null,Object(i.createElement)("div",{className:"simpay-setup-wizard-content-list"},Object(i.createElement)("div",{className:"simpay-setup-wizard-content-list__content"},Object(i.createElement)("p",null,Object(o.__)("Congratulations, you’re ready to start accepting payments!","stripe")),Object(i.createElement)("p",null,Object(o.__)("WP Simple Pay is just that: simple. Create your first payment form below to start collecting payments, or fine-tune your setup through some of these suggestions:","stripe"))),Object(i.createElement)("div",{className:"simpay-setup-wizard-content-list__list"},Object(i.createElement)("ul",{className:"simpay-setup-wizard-bullet-list"},Object(i.createElement)("li",null,Object(i.createElement)("a",{href:bn,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("Collect tax or GST","stripe"))),Object(i.createElement)("li",null,Object(i.createElement)("a",{href:yn,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("Add anti-spam protection","stripe"))),Object(i.createElement)("li",null,Object(i.createElement)("a",{href:hn,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("Change the default currency","stripe"))),Object(i.createElement)("li",null,Object(i.createElement)("a",{href:gn,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("Customize receipts","stripe")))))),Object(i.createElement)("hr",null),Object(i.createElement)("div",{className:"simpay-setup-wizard-doc-suggestions"},Object(i.createElement)("div",null,Object(i.createElement)("h3",null,Object(o.__)("Accept Donations","stripe")),Object(i.createElement)("p",null,Object(o.__)("Easily fundraise or accept donations online via 135+ supported currencies. Offer one-time or recurring donations of fixed or user-defined amounts.","stripe")),Object(i.createElement)(c.Button,{href:vn,variant:"secondary",isSecondary:!0,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("View Walkthrough","stripe"))),Object(i.createElement)("div",null,Object(i.createElement)("h3",null,Object(o.__)("Reconcile Invoices","stripe")),Object(i.createElement)("p",null,Object(o.__)("Collect additional custom data on your payment forms such as an Invoice ID to reconcile invoices against your own invoicing system.","stripe")),Object(i.createElement)(c.Button,{href:On,variant:"secondary",isSecondary:!0,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("View Walkthrough","stripe"))))),Object(i.createElement)(lt,{justify:"space-between",align:"center"},Object(i.createElement)("div",{style:{flexBasis:"100%"}},Object(i.createElement)(c.Button,{isLink:!0,variant:"link",href:fn,className:"simpay-setup-wizard-subtle-link",icon:Object(i.createElement)(f.a,{icon:rn})},Object(o.__)("Return to Dashboard","stripe"))),Object(i.createElement)(c.Flex,{justify:"flex-end",gap:4},Object(i.createElement)(bt,{href:dn},Object(o.__)("Create a Payment Form →","stripe")))))}}],lite:[{id:"stripe",title:Object(o.__)("Connect to Stripe","stripe"),content:wn},{id:"analytics",title:Object(o.__)("Help Improve WP Simple Pay + Smart Recommendations","stripe"),content:function(e){var t=e.goPrev,n=e.goNext,r=Wt(),s=r.settings,l=r.rawSettings,p=r.discardChanges,b=r.editSettings,y=r.saveSettings,h=Object(i.useState)(!0),g=a()(h,2),v=g[0],O=g[1],j=Object(i.useState)(Ht),_=a()(j,2),x=_[0],w=_[1],E=Object(i.useState)(!1),S=a()(E,2),k=S[0],C=S[1],P=Object(i.useState)(!1),z=a()(P,2),A=z[0],M=z[1],N=Object(i.useRef)();return Object(i.useLayoutEffect)((function(){N.current&&N.current.focus()}),[l]),Object(u.isEmpty)(s)?Object(i.createElement)(ut,null,Object(i.createElement)(c.Spinner,null)):Object(i.createElement)(i.Fragment,null,Object(i.createElement)(ut,null,Object(i.createElement)("p",null,Object(o.__)("Get helpful suggestions from WP Simple Pay on how to optimize your payment forms and grow your business or increase donations.","stripe")),Object(i.createElement)(c.TextControl,{label:Object(o.__)("Your Email Address:","stripe"),value:x,className:"simpay-setup-wizard-large-input",onChange:function(e){return w(e)},help:Object(o.__)("Your email is needed so you receive recommendations.","stripe"),ref:N,disabled:k}),Object(i.createElement)("hr",null),Object(i.createElement)(Xe,null,Object(i.createElement)(Qe,null,Object(o.__)("Help make WP Simple Pay better for everyone","stripe"),Object(i.createElement)("div",null,A&&Object(i.createElement)(Ke,{position:"top center"},Object(o.__)("By allowing us to track usage data we can better help you because we know which WordPress configurations, themes, and plugins we should test.","stripe")),Object(i.createElement)(f.a,{size:20,icon:d.a,onMouseEnter:function(){return M(!0)},onMouseLeave:function(){return M(!1)}}))),Object(i.createElement)(Je,{label:Object(o.__)("Yes, count me in","stripe"),id:"email_payment-confirmation",checked:v,disabled:k,onChange:function(e){O(e)}}))),Object(i.createElement)(lt,{justify:"space-between",align:"center"},Object(i.createElement)("div",null,Object(i.createElement)(c.Button,{isLink:!0,variant:"link",onClick:t,className:"simpay-setup-wizard-subtle-link",disabled:k},Object(o.__)("← Previous Step","stripe"))),Object(i.createElement)("div",{style:{display:"flex",justifyContent:"center"}},Object(i.createElement)(c.Button,{isLink:!0,variant:"link",onClick:function(){p(),n()},style:{marginRight:"16px"},className:"simpay-setup-wizard-subtle-link",disabled:k},Object(o.__)("Skip Step","stripe")),Object(i.createElement)(bt,{onClick:function(){C(!0),b({usage_tracking_opt_in:v?"yes":"no"}),y();var e=new FormData;e.append("action","simpay_setup_wizard_subscribe_email"),e.append("nonce",Gt),e.append("email",x),m()({url:qt,method:"POST",body:e}).finally((function(){C(!1),n()}))},isBusy:k,disabled:k},Object(o.__)("Save and Continue →","stripe")))))}},{id:"next-steps",title:Object(o.__)("🎉 Setup Complete","stripe"),content:function(){return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(ut,null,Object(i.createElement)(c.Flex,{justify:"space-between",align:"center",className:"simpay-setup-wizard-content-list"},Object(i.createElement)("div",{className:"simpay-setup-wizard-content-list__content"},Object(i.createElement)("p",null,Object(o.__)("Congratulations, you’re ready to start easily and securely accepting payments with WP Simple Pay!","stripe"))),Object(i.createElement)("div",null,Object(i.createElement)(bt,{href:ln},Object(o.__)("Create a Payment Form →","stripe")))),Object(i.createElement)("hr",null),Object(i.createElement)(an,null,Object(i.createElement)("h4",null,Object(o.__)("Special Upgrade Offer - Save 50%","stripe")),Object(i.createElement)("h3",null,Object(o.__)("Upgrade to WP Simple Pay Pro Today and Save","stripe")),Object(i.createElement)(cn,{className:"simpay-setup-wizard-check-list"},pn.map((function(e){return Object(i.createElement)("li",{key:e},Object(i.createElement)(f.a,{icon:wt.a}),e)}))),Object(i.createElement)(c.Button,{isLarge:!0,isSecondary:!0,variant:"secondary",href:un,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("Upgrade to WP Simple Pay Pro","stripe")))),Object(i.createElement)(lt,{justify:"center"},Object(i.createElement)(c.Button,{isLink:!0,variant:"link",href:sn,className:"simpay-setup-wizard-subtle-link",icon:Object(i.createElement)(f.a,{icon:rn})},Object(o.__)("Return to Dashboard","stripe"))))}}]},Cn=simpaySetupWizard,Pn=Cn.license,zn=Cn.adminUrl,An=Pn.is_lite;Object(i.render)(Object(i.createElement)((function(){var e=kn[!0===An?"lite":"pro"],t=Object(s.getQueryArg)(window.location.href,"step"),n=Object(i.useState)(Pn),r=a()(n,2),u=r[0],p=r[1],m=function(e){var t=e.steps,n=e.currentStepId,r=t.findIndex((function(e){return e.id===n}))||0,c=Object(i.useState)(r),o=a()(c,2),l=o[0],u=o[1];function p(e){u(e),window.history.pushState({},"",Object(s.addQueryArgs)(window.location.href,{step:t[e].id}))}return Object(i.useEffect)((function(){var e=function(){var e=Object(s.getQueryArg)(window.location.search,"step"),n=t.findIndex((function(t){return t.id===e}))||0;u(n)};return window.addEventListener("popstate",e),window.addEventListener("pushstate",e),function(){window.removeEventListener("popstate",e),window.removeEventListener("pushstate",e)}}),[]),{currentStep:l,setCurrentStep:u,hasNext:l0}}({steps:e,currentStepId:t}),f=m.currentStep,d=m.goNext,b=m.goPrev,y=m.hasNext,h=m.hasPrev;if(-1===f)return Object(i.createElement)(Sn,{steps:e,goNext:d});var g=e[f],v=g.content;return Object(i.createElement)(c.SlotFillProvider,null,Object(i.createElement)(l.EntityProvider,{kind:"root",type:"site"},Object(i.createElement)(Nt,null,Object(i.createElement)("a",{href:zn},Object(i.createElement)(yt,{width:"250px"})),Object(i.createElement)(zt,{current:f+1,total:e.length}),Object(i.createElement)(ot,{isRounded:!0},Object(i.createElement)(st,{supTitle:Object(o.sprintf)(/* translators: %1$d current step count. %2$d total step count*/
+!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=75)}([function(e,t){e.exports=window.wp.element},,function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.wp.components},,function(e,t){e.exports=window.React},function(e,t,n){var r=n(26),a=n(27),i=n(21),c=n(28);e.exports=function(e,t){return r(e)||a(e,t)||i(e,t)||c()},e.exports.__esModule=!0,e.exports.default=e.exports},,,function(e,t){e.exports=window.wp.primitives},function(e,t){e.exports=window.wp.url},function(e,t,n){var r=n(30);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=window.lodash},,function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;te.length)&&(t=e.length);for(var n=0,r=Array(t);n2||J(V)>3?"":" "}function ae(e,t){for(;--t&&Y()&&!(V<48||V>102||V>57&&V<65||V>70&&V<97););return K(e,Q()+(t<6&&32==X()&&32==Y()))}function ie(e,t){for(;Y()&&e+V!==57&&(e+V!==84||47!==X()););return"/*"+K(t,Z-1)+"*"+A(47===e?e:Y())}function ce(e){for(;!J(X());)Y();return K(e,Z)}function oe(e,t,n,r,a,i,c,o,s,l,u){for(var p=a-1,m=0===a?i:[""],f=D(m),d=0,b=0,y=0;d0?m[h]+" "+g:$(g,/&\f/g,m[h])))&&(s[y++]=v);return G(e,t,n,0===a?k:o,s,l,u)}function se(e,t,n){return G(e,t,n,S,A(V),F(e,2,-2),0)}function le(e,t,n,r){return G(e,t,n,C,F(e,0,r),F(e,r+1,-1),r)}function ue(e,t){for(var n="",r=D(e),a=0;a-1&&!e.return)switch(e.type){case C:e.return=function e(t,n){switch(a=n,45^T(r=t,0)?(((a<<2^T(r,0))<<2^T(r,1))<<2^T(r,2))<<2^T(r,3):0){case 5103:return E+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return E+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return E+t+"-moz-"+t+"-ms-"+t+t;case 6828:case 4268:return E+t+"-ms-"+t+t;case 6165:return E+t+"-ms-flex-"+t+t;case 5187:return E+t+$(t,/(\w+).+(:[^]+)/,E+"box-$1$2-ms-flex-$1$2")+t;case 5443:return E+t+"-ms-flex-item-"+$(t,/flex-|-self/,"")+t;case 4675:return E+t+"-ms-flex-line-pack"+$(t,/align-content|flex-|-self/,"")+t;case 5548:return E+t+"-ms-"+$(t,"shrink","negative")+t;case 5292:return E+t+"-ms-"+$(t,"basis","preferred-size")+t;case 6060:return E+"box-"+$(t,"-grow","")+E+t+"-ms-"+$(t,"grow","positive")+t;case 4554:return E+$(t,/([^-])(transform)/g,"$1"+E+"$2")+t;case 6187:return $($($(t,/(zoom-|grab)/,E+"$1"),/(image-set)/,E+"$1"),t,"")+t;case 5495:case 3959:return $(t,/(image-set\([^]*)/,E+"$1$`$1");case 4968:return $($(t,/(.+:)(flex-)?(.*)/,E+"box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+E+t+t;case 4095:case 3583:case 4068:case 2532:return $(t,/(.+)-inline(.+)/,E+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(L(t)-1-n>6)switch(T(t,n+1)){case 109:if(45!==T(t,n+4))break;case 102:return $(t,/(.+:)(.+)-([^]+)/,"$1"+E+"$2-$3$1-moz-"+(108==T(t,n+3)?"$3":"$2-$3"))+t;case 115:return~R(t,"stretch")?e($(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==T(t,n+1))break;case 6444:switch(T(t,L(t)-3-(~R(t,"!important")&&10))){case 107:return $(t,":",":"+E)+t;case 101:return $(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+E+(45===T(t,14)?"inline-":"")+"box$3$1"+E+"$2$3$1-ms-$2box$3")+t}break;case 5936:switch(T(t,n+11)){case 114:return E+t+"-ms-"+$(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return E+t+"-ms-"+$(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return E+t+"-ms-"+$(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return E+t+"-ms-"+t+t}var r,a;return t}(e.value,e.length);break;case P:return ue([q(e,{value:$(e.value,"@","@"+E)})],r);case k:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch((n=/(::plac\w+|:read-\w+)/.exec(n=t))?n[0]:n){case":read-only":case":read-write":return ue([q(e,{props:[$(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ue([q(e,{props:[$(t,/:(plac\w+)/,":"+E+"input-$1")]}),q(e,{props:[$(t,/:(plac\w+)/,":-moz-$1")]}),q(e,{props:[$(t,/:(plac\w+)/,"-ms-input-$1")]})],r)}var n;return""}))}}],ge=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,a,i=e.stylisPlugins||he,c={},o=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n0&&L(w)-m&&B(d>32?le(w+";",a,r,m-1):le($(w," ","")+";",a,r,m-2),l);break;case 59:w+=";";default:if(B(x=oe(w,n,r,u,p,i,s,O,j=[],_=[],m),c),123===v)if(0===p)e(w,n,x,x,j,c,m,s,_);else switch(99===f&&110===T(w,3)?100:f){case 100:case 108:case 109:case 115:e(t,x,x,a&&B(oe(t,x,x,0,0,i,s,O,i,j=[],m),_),i,_,m,s,a?j:_);break;default:e(w,x,x,x,[""],_,0,s,_)}}u=p=d=0,y=g=1,O=w="",m=o;break;case 58:m=1+L(w),d=b;default:if(y<1)if(123==v)--y;else if(125==v&&0==y++&&125==(V=Z>0?T(H,--Z):0,W--,10===V&&(W=1,U--),V))continue;switch(w+=A(v),v*y){case 38:g=p>0?1:(w+="\f",-1);break;case 44:s[u++]=(L(w)-1)*g,g=1;break;case 64:45===X()&&(w+=ne(Y())),f=X(),p=m=L(O=w+=ce(Q())),v++;break;case 45:45===b&&2==L(w)&&(y=0)}}return c}("",null,null,null,[""],e=ee(e),0,[0],e))}(e?e+"{"+t.styles+"}":t.styles),p),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new w({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:c,registered:{},insert:a};return m.sheet.hydrate(o),m};function ve(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}n(51);var Oe=function(e,t,n){!function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)}(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+r:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}},je={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},_e=/[A-Z]|^ms/g,xe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,we=function(e){return 45===e.charCodeAt(1)},Ee=function(e){return null!=e&&"boolean"!=typeof e},Se=O((function(e){return we(e)?e:e.replace(_e,"-$&").toLowerCase()})),ke=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(xe,(function(e,t,n){return Pe={name:t,styles:n,next:Pe},t}))}return 1===je[e]||we(e)||"number"!=typeof t||0===t?t:t+"px"};function Ce(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Pe={name:n.name,styles:n.styles,next:Pe},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Pe={name:r.name,styles:r.styles,next:Pe},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(a)+s,styles:a,next:Pe}},Me=(!!v.useInsertionEffect&&v.useInsertionEffect||v.useLayoutEffect,v.createContext("undefined"!=typeof HTMLElement?ge({key:"css"}):null));Me.Provider;var Ne=function(e){return Object(v.forwardRef)((function(t,n){var r=Object(v.useContext)(Me);return e(t,r,n)}))},$e=v.createContext({}),Re=_,Te=function(e){return"theme"!==e},Fe=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Re:Te},Le=function(e,t,n){var r;if(t){var a=t.shouldForwardProp;r=e.__emotion_forwardProp&&a?function(t){return e.__emotion_forwardProp(t)&&a(t)}:a}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},De=function(){return null},Be=function e(t,n){var r,a,i=t.__emotion_real===t,c=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,a=n.target);var o=Le(t,n,i),s=o||Fe(c),l=!s("as");return function(){var u=arguments,p=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&p.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)p.push.apply(p,u);else{p.push(u[0][0]);for(var m=u.length,f=1;f div {\n\t\tmargin-left: 8px;\n\t}\n\n\tsvg {\n\t\tdisplay: block;\n\n\t\t&:hover {\n\t\t\tcursor: pointer;\n\t\t}\n\t}\n"]))),Ke=Ye(c.Popover)(Ie||(Ie=y()(["\n\t.components-popover__content {\n\t\tpadding: 20px;\n\t\twidth: 200px;\n\t}\n"]))),Je=Ye(c.ToggleControl)(Ze||(Ze=y()(["\n\t&& {\n\t\t.components-base-control__field {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\t}\n"]))),et=n(52),tt=n.n(et),nt=Ye(c.Card)(Ve||(Ve=y()(["\n\tpadding: 30px;\n\n\t&& {\n\t\tbox-shadow: 0 2px 6px 0 rgba( 0, 0, 0, 0.05 );\n\t\tborder: 1px solid #ccc;\n\t\twidth: 100%;\n\t}\n"]))),rt=Ye(c.CardHeader)(He||(He=y()(["\n\t&&& {\n\t\tpadding: 0 0 30px;\n\t}\n\n\th1 {\n\t\tfont-size: 26px;\n\t\tline-height: 1;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\n\tsmall {\n\t\tcolor: #c0c0c0;\n\t\tfont-size: 13px;\n\t\tfont-weight: normal;\n\t\tdisplay: block;\n\t\tmargin: 0 0 3px;\n\t}\n"]))),at=Ye(c.CardFooter)(Ge||(Ge=y()(["\n\t&&& {\n\t\tpadding: 30px 0 0;\n\t}\n"]))),it=Ye(c.CardBody)(qe||(qe=y()(["\n\t&&& {\n\t\tpadding: 30px 0;\n\t}\n\n\t> * {\n\t\tmargin: 0 0 2rem;\n\n\t\t&:last-child {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\t}\n\n\t> p {\n\t\tcolor: #555555;\n\t\tfont-size: 15px;\n\t}\n"]))),ct=["title","supTitle","children"];function ot(e){return Object(i.createElement)(nt,e)}function st(e){var t=e.title,n=e.supTitle,r=e.children,a=tt()(e,ct);return Object(i.createElement)(rt,a,Object(i.createElement)("div",null,n&&Object(i.createElement)("small",null,n),t&&Object(i.createElement)("h1",null,t)),r)}function lt(e){return Object(i.createElement)(at,e)}function ut(e){return Object(i.createElement)(it,e)}var pt,mt=simpaySetupWizard.adminUrl;function ft(e){var t=e.isFirst,n=Object(i.useState)(!1),r=a()(n,2),s=r[0],l=r[1];return Object(i.createElement)(c.Flex,{justify:"center"},s&&Object(i.createElement)(c.Modal,{title:Object(o.__)("Are you sure you want to exit the wizard?","stripe"),onRequestClose:function(){return l(!1)}},Object(i.createElement)("p",{style:{marginBottom:"2rem"}},Object(o.__)("Manual setup is only recommended for experienced users.","stripe")),Object(i.createElement)(c.Flex,null,Object(i.createElement)(c.Button,{href:mt,isDestructive:!0,variant:"destructive"},Object(o.__)("Exit Setup Wizard","stripe")),Object(i.createElement)(c.Button,{variant:"primary",isPrimary:!0,onClick:function(){return l(!1)}},Object(o.__)("Continue Setup","stripe")))),Object(i.createElement)(c.Button,{isLink:!0,variant:"link",className:"simpay-setup-wizard-subtle-link",onClick:function(){return l(!0)}},t?Object(o.__)("Go back to the Dashboard","stripe"):Object(o.__)("Close and exit the Setup Wizard","stripe")))}var dt=Ye(c.Button)(pt||(pt=y()(["\n\t&& {\n\t\tfont-size: 16px;\n\t\tfont-weight: bold;\n\t\tpadding: 15px 30px !important;\n\t\theight: auto;\n\t}\n"]))),bt=Object(i.forwardRef)((function(e,t){return Object(i.createElement)(dt,g()({isPrimary:!0,variant:"primary"},e,{ref:t}))}));function yt(e){return e.width,Object(i.createElement)("svg",{width:"311",height:"41",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(i.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.352 0C1.052 0 0 1.02 0 2.277v30.746C0 34.281 1.053 35.3 2.352 35.3h28.806c.975 0 1.764-.764 1.764-1.708 0-.943-.79-1.708-1.763-1.708H5.29c-.974 0-1.764-.765-1.764-1.708v-17.08c0-.944.79-1.709 1.764-1.709h44.092c1.299 0 2.352-1.02 2.352-2.277V2.277C51.735 1.02 50.682 0 49.383 0H2.352Zm55.262 24.198h-1.47v-1.993c0-4.088-3.422-7.402-7.643-7.402-4.22 0-7.642 3.314-7.642 7.402v1.993H38.8c-1.299 0-2.352 1.02-2.352 2.277v11.387c0 1.258 1.053 2.278 2.352 2.278h18.813c1.299 0 2.351-1.02 2.351-2.278V26.475c0-1.258-1.053-2.277-2.351-2.277Zm-4.997-1.993v1.993h-8.23v-1.993c0-2.201 1.842-3.985 4.114-3.985 2.273 0 4.116 1.784 4.116 3.985ZM8.23 20.497c0-.629.526-1.139 1.175-1.139H28.22c.65 0 1.176.51 1.176 1.139s-.527 1.139-1.176 1.139H9.406c-.649 0-1.175-.51-1.175-1.139Zm0 5.124c0-.629.526-1.138 1.175-1.138h7.055c.65 0 1.176.51 1.176 1.138 0 .63-.527 1.139-1.176 1.139H9.406c-.649 0-1.175-.51-1.175-1.139Zm31.158 11.672V27.045h17.637v10.248H39.389Z",fill:"#428BCA"}),Object(i.createElement)("path",{d:"M81.08 30.745h5.288l5.41-17.186 5.596 17.187h5.289l7.84-24.29h-5.288l-5.289 17.956L94.7 6.457h-5.842L83.785 24.38 78.528 6.457h-5.289l7.84 24.288Zm31.511 0h4.796v-8.793h6.456c5.319 0 8.302-3.228 8.302-7.963 0-4.735-2.983-7.532-8.302-7.532h-11.252v24.288Zm4.796-13.405V11.1h5.288c2.952 0 4.52 1.168 4.52 3.104 0 1.968-1.507 3.136-4.366 3.136h-5.442Zm35.473 13.897c6.303 0 10.023-3.197 10.023-7.747 0-10.3-14.789-4.581-14.789-10.085 0-1.906 1.599-3.013 4.52-3.013 2.859 0 4.519 1.322 4.704 3.567h5.288c0-4.92-4.089-7.994-9.9-7.994-5.872 0-9.562 2.89-9.562 7.502 0 10.268 14.758 4.642 14.758 10.084 0 1.998-1.752 3.26-4.919 3.26-3.228 0-5.073-1.6-5.165-4.305h-5.381c0 5.503 4.274 8.731 10.423 8.731Zm15.137-18.447c1.66 0 2.89-1.23 2.89-2.89 0-1.66-1.23-2.829-2.89-2.829-1.691 0-2.921 1.169-2.921 2.83 0 1.66 1.23 2.89 2.921 2.89Zm-2.306 17.956h4.581V14.758h-4.581v15.988Zm7.696-.001h4.55v-8.178c0-2.644 1.384-4.366 3.597-4.366 1.968 0 3.136 1.415 3.136 3.751v8.793h4.612v-8.178c0-2.644 1.384-4.366 3.597-4.366 1.968 0 3.136 1.415 3.136 3.751v8.793h4.643v-9.039c0-4.888-1.968-7.44-5.965-7.44-2.459 0-4.642.86-6.21 3.044-.892-2.03-2.583-3.044-5.135-3.044-2.552 0-4.335 1.076-5.411 2.798v-2.306h-4.55v15.988Zm30.183 6.15h4.551v-8.24c1.106 1.63 2.859 2.582 5.38 2.582 4.028 0 6.887-3.504 6.887-8.424 0-5.011-2.859-8.547-6.887-8.547-2.521 0-4.274.953-5.38 2.583v-2.091h-4.551v22.137Zm8.363-9.593c-2.244 0-3.843-1.875-3.843-4.52 0-2.674 1.599-4.58 3.843-4.58 2.275 0 3.874 1.906 3.874 4.58 0 2.645-1.599 4.52-3.874 4.52Zm10.651 3.443h4.551V6.457h-4.551v24.288Zm15.443.492c3.905 0 6.918-2.213 7.41-5.688h-4.551c-.184 1.107-1.229 1.968-2.828 1.968-2.368 0-3.536-1.353-3.751-3.412h11.222v-1.476c0-5.104-3.259-8.363-7.502-8.363-4.919 0-8.363 3.505-8.363 8.455 0 4.98 3.444 8.516 8.363 8.516Zm-3.689-9.93c.276-1.845 1.352-3.106 3.505-3.106 1.937 0 3.013 1.322 3.105 3.106h-6.61Zm22.358 9.438h4.796v-8.793h6.457c5.319 0 8.301-3.228 8.301-7.963 0-4.735-2.982-7.532-8.301-7.532h-11.253v24.288Zm4.796-13.405V11.1h5.288c2.952 0 4.52 1.168 4.52 3.104 0 1.968-1.507 3.136-4.366 3.136h-5.442Zm20.704 13.897c2.736 0 4.458-1.23 5.257-3.228.4 2.183 2.152 3.413 5.688 2.613v-3.259c-1.261.123-1.507-.338-1.507-1.66v-5.411c0-3.782-2.644-6.026-7.317-6.026-4.612 0-7.317 2.275-7.317 6.118h4.488c0-1.383 1.015-2.183 2.768-2.183 1.906 0 2.859.769 2.828 2.091v.492l-3.659.43c-4.519.523-7.071 2.368-7.071 5.258 0 2.429 1.722 4.765 5.842 4.765Zm.922-3.382c-1.414 0-2.183-.645-2.183-1.63 0-1.167 1.507-1.629 4.397-1.998l1.568-.153c-.277 2.152-1.599 3.781-3.782 3.781Zm11.126 9.04h1.967c3.936 0 6.641-1.077 8.271-4.981L311 14.758h-4.766l-3.996 10.669-4.797-10.67h-4.796l7.225 16.234c-1.014 1.446-2.06 1.907-4.058 1.876h-1.568v4.028Z",fill:"#428BCA"}))}var ht=n(17);function gt(e){var t=Object(ht.useSelect)((function(e){return Object(u.filter)(e("core/notices").getNotices(),{type:"snackbar"})}),[]),n=Object(ht.useDispatch)("core/notices").removeNotice;return 0===t.length?null:Object(i.createElement)(c.SnackbarList,g()({onRemove:n,notices:t},e))}var vt,Ot,jt,_t,xt,wt=n(64),Et=Ye.div(vt||(vt=y()(["\n\tmax-width: 80%;\n\tdisplay: flex;\n\talign-items: center;\n\n\t> * {\n\t\tmargin-right: 8px;\n\n\t\t&:last-child {\n\t\t\tmargin-right: 0;\n\t\t}\n\t}\n"]))),St={current:"var(--wp-admin-theme-color)",complete:"var(--wp-admin-theme-color)",incomplete:"#c0c0c0"},kt=Ye.div(Ot||(Ot=y()(["\n\twidth: 16px;\n\theight: 16px;\n\tborder-radius: 50%;\n\tbackground-color: ",";\n\tflex-shrink: 0;\n\tposition: relative;\n\ttransition: backgroundColor 0.2s ease-in-out;\n\n\tsvg {\n\t\tfill: #fff;\n\t\tposition: absolute;\n\t\tleft: -1px;\n\t\ttop: -1px;\n\t\ttransition: opacity 0.2s ease-in-out;\n\t\topacity: ",";\n\t}\n\n\tdiv {\n\t\topacity: ",";\n\t}\n\n\tpath {\n\t\tstroke: #fff;\n\t}\n"])),(function(e){return St[e.status]}),(function(e){return e.isComplete?"1":"0"}),(function(e){var t=e.isCurrent,n=e.isComplete;return t&&!n?"1":"0"})),Ct=Ye.div(jt||(jt=y()(["\n\twidth: 6px;\n\theight: 6px;\n\tbackground-color: #f0f0f1;\n\tborder-radius: 50%;\n\tposition: absolute;\n\ttop: 5px;\n\tleft: 5px;\n\ttransition: opacity 0.2s ease-in-out;\n"]))),Pt=Ye.div(_t||(_t=y()(["\n\twidth: 100%;\n\theight: 2px;\n\tbackground-color: rgba( 192, 192, 192, 0.5 );\n\twidth: 100px;\n"])));function zt(e){for(var t=e.current,n=e.total,r=[],a=1;a<=n;a++){var c="incomplete";a * {\n\t\tmargin: 25px 0;\n\t}\n"])));function Nt(e){return Object(i.createElement)(Mt,e)}var $t=Ye(c.Button)(At||(At=y()(["\n\t&&&& {\n\t\tfont-size: 16px;\n\t\tfont-weight: bold;\n\t\tpadding: 13px 30px 12px !important;\n\t\theight: auto;\n\t\tbackground-color: #635bff;\n\n\t\t&:focus {\n\t\t\tbackground-color: #635bff;\n\t\t\tbox-shadow: inset 0 0 0 1px #fff,\n\t\t\t\t0 0 0 var( --wp-admin-border-width-focus ) #635bff;\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground-color: #0a2540 !important;\n\t\t}\n\n\t\t&:focus:hover {\n\t\t\tbox-shadow: inset 0 0 0 1px #fff,\n\t\t\t\t0 0 0 var( --wp-admin-border-width-focus ) #0a2540;\n\t\t}\n\n\t\tsvg {\n\t\t\tmargin-left: 5px;\n\t\t}\n\t}\n"]))),Rt=Object(i.forwardRef)((function(e,t){return Object(i.createElement)($t,g()({isPrimary:!0,variant:"primary"},e,{ref:t}))}));function Tt(){return Object(i.createElement)("svg",{width:56,height:23,fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(i.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M55.742 11.884c0-3.93-1.92-7.032-5.59-7.032-3.684 0-5.914 3.101-5.914 7.001 0 4.622 2.632 6.955 6.41 6.955 1.843 0 3.236-.414 4.29-.998v-3.07c-1.053.522-2.261.844-3.794.844-1.502 0-2.834-.522-3.004-2.334h7.572c0-.2.03-.998.03-1.366Zm-7.649-1.459c0-1.735 1.069-2.456 2.044-2.456.945 0 1.951.721 1.951 2.456h-3.995Zm-9.832-5.573c-1.517 0-2.493.706-3.035 1.197l-.201-.952h-3.407V23l3.871-.814.016-4.345c.557.4 1.378.967 2.74.967 2.772 0 5.296-2.21 5.296-7.078-.015-4.452-2.57-6.878-5.28-6.878Zm-.929 10.579c-.913 0-1.456-.323-1.827-.722l-.016-5.696c.403-.446.96-.753 1.843-.753 1.41 0 2.385 1.566 2.385 3.578 0 2.057-.96 3.593-2.385 3.593ZM26.292 3.946l3.886-.83V0l-3.886.814v3.132Zm0 1.167h3.886v13.434h-3.886V5.113Zm-4.165 1.136-.248-1.136h-3.345v13.434h3.871V9.443c.914-1.183 2.462-.968 2.942-.799V5.113c-.495-.184-2.307-.522-3.22 1.136Zm-7.742-4.468-3.778.798-.016 12.299c0 2.272 1.719 3.946 4.01 3.946 1.27 0 2.2-.23 2.71-.507V15.2c-.495.2-2.942.906-2.942-1.366v-5.45h2.942V5.112H14.37l.016-3.332ZM3.917 9.013c0-.6.496-.83 1.317-.83 1.176 0 2.663.354 3.84.983V5.558c-1.286-.507-2.555-.706-3.84-.706C2.09 4.852 0 6.479 0 9.197c0 4.238 5.884 3.562 5.884 5.39 0 .705-.62.936-1.487.936-1.285 0-2.926-.522-4.227-1.229v3.655c1.44.614 2.896.875 4.227.875 3.221 0 5.435-1.582 5.435-4.33-.015-4.575-5.915-3.762-5.915-5.481Z",fill:"#fff"}))}var Ft=n(11),Lt=n.n(Ft);function Dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;tWP Simple Pay account or purchase receipt email.","stripe"),{strong:Object(i.createElement)("strong",null),a:Object(i.createElement)("a",{href:Jt,target:"_blank",rel:"noopener noreferrer"})})),Object(i.createElement)(c.TextControl,{label:Object(o.__)("License Key","stripe"),value:l,className:_,onChange:function(e){return u(e)},disabled:d,help:g||Object(o.__)("An active license ensures automatic updates and the latest features.","stripe"),ref:j})),Object(i.createElement)(lt,{justify:"flex-end",align:"center"},Object(i.createElement)(bt,{onClick:function(){b(!0);var e=new FormData;e.append("action","simpay_activate_license"),e.append("nonce",en),e.append("license",l),m()({url:Kt,method:"POST",body:e}).then((function(e){var r=e.success,a=e.data,i=a.message,c=a.license;if(!r)throw{message:i};n(c),O(Object(o.__)("License activated","stripe"),{type:"snackbar"}),b(!1),t()})).catch((function(e){var t=e.message;v(t),b(!1)}))},disabled:""===l||d,isBusy:d},Object(o.__)("Activate and Continue →","stripe"))))}},{id:"stripe",title:Object(o.__)("Connect to Stripe","stripe"),content:wn},{id:"emails",title:Object(o.__)("Configure Emails","stripe"),content:function(e){var t=e.goPrev,n=e.goNext,r=e.licenseData,a=Wt(),s=a.settings,l=a.rawSettings,p=a.discardChanges,m=a.editSettings,f=a.saveSettings,d=Object(i.useRef)();if(Object(i.useLayoutEffect)((function(){d.current&&d.current.focus()}),[l]),Object(u.isEmpty)(s))return Object(i.createElement)(ut,null,Object(i.createElement)(c.Spinner,null));var b=s["email_payment-confirmation"],y=s["email_payment-notification"],h=s["email_payment-notification_to"],g=s["email_upcoming-invoice"],v=s["email_invoice-confirmation"],O=r.features,j=O.subscriptions,_=O.enhanced_subscriptions;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(ut,null,Object(i.createElement)("ul",{className:"simpay-setup-wizard-toggle-list"},Object(i.createElement)("li",null,Object(i.createElement)("label",{htmlFor:"email_payment-confirmation"},Object(i.createElement)("h3",null,Object(o.__)("Payment Receipt","stripe")),Object(i.createElement)("p",null,Object(o.__)("Send a payment receipt email to the customer upon successful payment.","stripe"))),Object(i.createElement)(c.FormToggle,{id:"email_payment-confirmation",checked:"no"!==b,onChange:function(e){var t=e.target;return m({"email_payment-confirmation":t.checked?"yes":"no"})}})),Object(i.createElement)("li",null,Object(i.createElement)("label",{htmlFor:"email_payment-notification"},Object(i.createElement)("h3",null,Object(o.__)("Payment Notification","stripe")),Object(i.createElement)("p",null,Object(o.__)("Receive an email notification when a new payment is made.","stripe"))),Object(i.createElement)(c.FormToggle,{id:"email_payment-notification",checked:"no"!==y,onChange:function(e){var t=e.target;return m({"email_payment-notification":t.checked?"yes":"no"})}})),"no"!==y&&Object(i.createElement)("li",{className:"simpay-setup-wizard-toggle-list__child"},Object(i.createElement)(c.TextControl,{label:Object(o.__)("Send to:","stripe"),value:h,onChange:function(e){return m({"email_payment-notification_to":e})}})),_&&Object(i.createElement)("li",null,Object(i.createElement)("label",{htmlFor:"email_invoice-confirmation"},Object(i.createElement)("h3",null,Object(o.__)("Invoice Receipt","stripe")),Object(i.createElement)("p",null,Object(o.__)("Send a payment receipt email to the customer upon successful invoice.","stripe"))),Object(i.createElement)(c.FormToggle,{id:"email_payment-confirmation",checked:"no"!==v,onChange:function(e){var t=e.target;return m({"email_invoice-confirmation":t.checked?"yes":"no"})}})),j&&Object(i.createElement)("li",null,Object(i.createElement)("label",{htmlFor:"email_upcoming-invoice"},Object(i.createElement)("h3",null,Object(o.__)("Upcoming Invoice","stripe")),Object(i.createElement)("p",null,Object(o.__)("Remind customers of upcoming invoices and allow payment method changes.","stripe"))),Object(i.createElement)(c.FormToggle,{id:"email_upcoming-invoice",checked:"no"!==g,onChange:function(e){var t=e.target;return m({"email_upcoming-invoice":t.checked?"yes":"no"})}})))),Object(i.createElement)(lt,{justify:"space-between",align:"center"},Object(i.createElement)("div",null,Object(i.createElement)(c.Button,{isLink:!0,variant:"link",onClick:t,className:"simpay-setup-wizard-subtle-link"},Object(o.__)("← Previous Step","stripe"))),Object(i.createElement)("div",{style:{display:"flex",justifyContent:"center"}},Object(i.createElement)(c.Button,{isLink:!0,variant:"link",onClick:function(){p(),n()},style:{marginRight:"16px"},className:"simpay-setup-wizard-subtle-link"},Object(o.__)("Skip Step","stripe")),Object(i.createElement)(bt,{onClick:function(){f(),n()},ref:d},Object(o.__)("Save and Continue →","stripe")))))}},{id:"next-steps",title:Object(o.__)("🎉 Setup Complete","stripe"),content:function(){return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(ut,null,Object(i.createElement)("div",{className:"simpay-setup-wizard-content-list"},Object(i.createElement)("div",{className:"simpay-setup-wizard-content-list__content"},Object(i.createElement)("p",null,Object(o.__)("Congratulations, you’re ready to start accepting payments!","stripe")),Object(i.createElement)("p",null,Object(o.__)("WP Simple Pay is just that: simple. Create your first payment form below to start collecting payments, or fine-tune your setup through some of these suggestions:","stripe"))),Object(i.createElement)("div",{className:"simpay-setup-wizard-content-list__list"},Object(i.createElement)("ul",{className:"simpay-setup-wizard-bullet-list"},Object(i.createElement)("li",null,Object(i.createElement)("a",{href:bn,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("Collect tax or GST","stripe"))),Object(i.createElement)("li",null,Object(i.createElement)("a",{href:yn,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("Add anti-spam protection","stripe"))),Object(i.createElement)("li",null,Object(i.createElement)("a",{href:hn,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("Change the default currency","stripe"))),Object(i.createElement)("li",null,Object(i.createElement)("a",{href:gn,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("Customize receipts","stripe")))))),Object(i.createElement)("hr",null),Object(i.createElement)("div",{className:"simpay-setup-wizard-doc-suggestions"},Object(i.createElement)("div",null,Object(i.createElement)("h3",null,Object(o.__)("Accept Donations","stripe")),Object(i.createElement)("p",null,Object(o.__)("Easily fundraise or accept donations online via 135+ supported currencies. Offer one-time or recurring donations of fixed or user-defined amounts.","stripe")),Object(i.createElement)(c.Button,{href:vn,variant:"secondary",isSecondary:!0,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("View Walkthrough","stripe"))),Object(i.createElement)("div",null,Object(i.createElement)("h3",null,Object(o.__)("Reconcile Invoices","stripe")),Object(i.createElement)("p",null,Object(o.__)("Collect additional custom data on your payment forms such as an Invoice ID to reconcile invoices against your own invoicing system.","stripe")),Object(i.createElement)(c.Button,{href:On,variant:"secondary",isSecondary:!0,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("View Walkthrough","stripe"))))),Object(i.createElement)(lt,{justify:"space-between",align:"center"},Object(i.createElement)("div",{style:{flexBasis:"100%"}},Object(i.createElement)(c.Button,{isLink:!0,variant:"link",href:fn,className:"simpay-setup-wizard-subtle-link",icon:Object(i.createElement)(f.a,{icon:rn})},Object(o.__)("Return to Dashboard","stripe"))),Object(i.createElement)(c.Flex,{justify:"flex-end",gap:4},Object(i.createElement)(bt,{href:dn},Object(o.__)("Create a Payment Form →","stripe")))))}}],lite:[{id:"stripe",title:Object(o.__)("Connect to Stripe","stripe"),content:wn},{id:"analytics",title:Object(o.__)("Help Improve WP Simple Pay + Smart Recommendations","stripe"),content:function(e){var t=e.goPrev,n=e.goNext,r=Wt(),s=r.settings,l=r.rawSettings,p=r.discardChanges,b=r.editSettings,y=r.saveSettings,h=Object(i.useState)(!0),g=a()(h,2),v=g[0],O=g[1],j=Object(i.useState)(Ht),_=a()(j,2),x=_[0],w=_[1],E=Object(i.useState)(!1),S=a()(E,2),k=S[0],C=S[1],P=Object(i.useState)(!1),z=a()(P,2),A=z[0],M=z[1],N=Object(i.useRef)();return Object(i.useLayoutEffect)((function(){N.current&&N.current.focus()}),[l]),Object(u.isEmpty)(s)?Object(i.createElement)(ut,null,Object(i.createElement)(c.Spinner,null)):Object(i.createElement)(i.Fragment,null,Object(i.createElement)(ut,null,Object(i.createElement)("p",null,Object(o.__)("Get helpful suggestions from WP Simple Pay on how to optimize your payment forms and grow your business or increase donations.","stripe")),Object(i.createElement)(c.TextControl,{label:Object(o.__)("Your Email Address:","stripe"),value:x,className:"simpay-setup-wizard-large-input",onChange:function(e){return w(e)},help:Object(o.__)("Your email is needed so you receive recommendations.","stripe"),ref:N,disabled:k}),Object(i.createElement)("hr",null),Object(i.createElement)(Xe,null,Object(i.createElement)(Qe,null,Object(o.__)("Help make WP Simple Pay better for everyone","stripe"),Object(i.createElement)("div",null,A&&Object(i.createElement)(Ke,{position:"top center"},Object(o.__)("By allowing us to track usage data we can better help you because we know which WordPress configurations, themes, and plugins we should test.","stripe")),Object(i.createElement)(f.a,{size:20,icon:d.a,onMouseEnter:function(){return M(!0)},onMouseLeave:function(){return M(!1)}}))),Object(i.createElement)(Je,{label:Object(o.__)("Yes, count me in","stripe"),id:"email_payment-confirmation",checked:v,disabled:k,onChange:function(e){O(e)}}))),Object(i.createElement)(lt,{justify:"space-between",align:"center"},Object(i.createElement)("div",null,Object(i.createElement)(c.Button,{isLink:!0,variant:"link",onClick:t,className:"simpay-setup-wizard-subtle-link",disabled:k},Object(o.__)("← Previous Step","stripe"))),Object(i.createElement)("div",{style:{display:"flex",justifyContent:"center"}},Object(i.createElement)(c.Button,{isLink:!0,variant:"link",onClick:function(){p(),n()},style:{marginRight:"16px"},className:"simpay-setup-wizard-subtle-link",disabled:k},Object(o.__)("Skip Step","stripe")),Object(i.createElement)(bt,{onClick:function(){C(!0),b({usage_tracking_opt_in:v?"yes":"no"}),y();var e=new FormData;e.append("action","simpay_setup_wizard_subscribe_email"),e.append("nonce",Gt),e.append("email",x),m()({url:qt,method:"POST",body:e}).finally((function(){C(!1),n()}))},isBusy:k,disabled:k},Object(o.__)("Save and Continue →","stripe")))))}},{id:"next-steps",title:Object(o.__)("🎉 Setup Complete","stripe"),content:function(){return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(ut,null,Object(i.createElement)(c.Flex,{justify:"space-between",align:"center",className:"simpay-setup-wizard-content-list"},Object(i.createElement)("div",{className:"simpay-setup-wizard-content-list__content"},Object(i.createElement)("p",null,Object(o.__)("Congratulations, you’re ready to start easily and securely accepting payments with WP Simple Pay!","stripe"))),Object(i.createElement)("div",null,Object(i.createElement)(bt,{href:ln},Object(o.__)("Create a Payment Form →","stripe")))),Object(i.createElement)("hr",null),Object(i.createElement)(an,null,Object(i.createElement)("h4",null,Object(o.__)("Special Upgrade Offer - Save 50%","stripe")),Object(i.createElement)("h3",null,Object(o.__)("Upgrade to WP Simple Pay Pro Today and Save","stripe")),Object(i.createElement)(cn,{className:"simpay-setup-wizard-check-list"},pn.map((function(e){return Object(i.createElement)("li",{key:e},Object(i.createElement)(f.a,{icon:wt.a}),e)}))),Object(i.createElement)(c.Button,{isLarge:!0,isSecondary:!0,variant:"secondary",href:un,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("Upgrade to WP Simple Pay Pro","stripe")))),Object(i.createElement)(lt,{justify:"center"},Object(i.createElement)(c.Button,{isLink:!0,variant:"link",href:sn,className:"simpay-setup-wizard-subtle-link",icon:Object(i.createElement)(f.a,{icon:rn})},Object(o.__)("Return to Dashboard","stripe"))))}}]},Cn=simpaySetupWizard,Pn=Cn.license,zn=Cn.adminUrl,An=Pn.is_lite;Object(i.render)(Object(i.createElement)((function(){var e=kn[!0===An?"lite":"pro"],t=Object(s.getQueryArg)(window.location.href,"step"),n=Object(i.useState)(Pn),r=a()(n,2),u=r[0],p=r[1],m=function(e){var t=e.steps,n=e.currentStepId,r=t.findIndex((function(e){return e.id===n}))||0,c=Object(i.useState)(r),o=a()(c,2),l=o[0],u=o[1];function p(e){u(e),window.history.pushState({},"",Object(s.addQueryArgs)(window.location.href,{step:t[e].id}))}return Object(i.useEffect)((function(){var e=function(){var e=Object(s.getQueryArg)(window.location.search,"step"),n=t.findIndex((function(t){return t.id===e}))||0;u(n)};return window.addEventListener("popstate",e),window.addEventListener("pushstate",e),function(){window.removeEventListener("popstate",e),window.removeEventListener("pushstate",e)}}),[]),{currentStep:l,setCurrentStep:u,hasNext:l0}}({steps:e,currentStepId:t}),f=m.currentStep,d=m.goNext,b=m.goPrev,y=m.hasNext,h=m.hasPrev;if(-1===f)return Object(i.createElement)(Sn,{steps:e,goNext:d});var g=e[f],v=g.content;return Object(i.createElement)(c.SlotFillProvider,null,Object(i.createElement)(l.EntityProvider,{kind:"root",type:"site"},Object(i.createElement)(Nt,null,Object(i.createElement)("a",{href:zn},Object(i.createElement)(yt,{width:"250px"})),Object(i.createElement)(zt,{current:f+1,total:e.length}),Object(i.createElement)(ot,{isRounded:!0},Object(i.createElement)(st,{supTitle:Object(o.sprintf)(/* translators: %1$d current step count. %2$d total step count*/
Object(o.__)("Step %1$d of %2$d","stripe"),f+1,e.length),title:g.title}),Object(i.createElement)(v,{steps:e,currentStep:f,goPrev:b,goNext:d,hasNext:y,hasPrev:h,licenseData:u,setLicenseData:p})),y&&Object(i.createElement)(ft,null)),Object(i.createElement)(gt,{className:"simpay-setup-wizard-toasts"}),Object(i.createElement)(c.Popover.Slot,null)))}),null),document.getElementById("simpay-setup-wizard"))}]);
\ No newline at end of file
diff --git a/includes/core/assets/js/dist/simpay-admin-page-smtp.js b/includes/core/assets/js/dist/simpay-admin-page-smtp.js
index 3edc9715..a0f48c7d 100644
--- a/includes/core/assets/js/dist/simpay-admin-page-smtp.js
+++ b/includes/core/assets/js/dist/simpay-admin-page-smtp.js
@@ -1 +1 @@
-!function(t){var e={};function s(a){if(e[a])return e[a].exports;var n=e[a]={i:a,l:!1,exports:{}};return t[a].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.m=t,s.c=e,s.d=function(t,e,a){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(s.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)s.d(a,n,function(e){return t[e]}.bind(null,n));return a},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="",s(s.s=46)}({46:function(t,e,s){"use strict";(function(t){(window.SimPaySMTP||function(t,e,s){var a={},n={init:function(){s(n.ready)},ready:function(){n.initVars(),n.events()},initVars:function(){a={$stepInstall:s("section.step-install"),$stepInstallNum:s("section.step-install .num img"),$stepSetup:s("section.step-setup"),$stepSetupNum:s("section.step-setup .num img")}},events:function(){a.$stepInstall.on("click","button",n.stepInstallClick),a.$stepSetup.on("click","button",n.gotoURL)},stepInstallClick:function(t){t.preventDefault();var i=s(this),r=i.attr("data-action"),l=i.attr("data-plugin"),p=i.text(),u="";if(!i.hasClass("disabled")){switch(r){case"activate":u="simpay_activate_plugin",i.text(simpay_smtp.activating);break;case"install":u="simpay_install_plugin",i.text(simpay_smtp.installing);break;case"goto-url":return void(e.location.href=i.attr("data-url"));default:return}i.addClass("disabled"),n.showSpinner(a.$stepInstallNum);var o={action:u,nonce:simpay_smtp.nonce,plugin:l};s.post(simpay_smtp.ajax_url,o).done((function(t){n.stepInstallDone(t,i,r)})).fail((function(){i.removeClass("disabled"),i.text(p)})).always((function(){n.hideSpinner(a.$stepInstallNum)}))}},stepInstallDone:function(t,e,s){if("install"===s?t.success&&t.data.is_activated:t.success)return a.$stepInstallNum.attr("src",a.$stepInstallNum.attr("src").replace("step-1.","step-complete.")),e.addClass("grey").removeClass("button-primary").text(simpay_smtp.activated),void n.stepInstallPluginStatus();var i="install"===s&&t.success&&!t.data.is_activated||"activate"===s,r=i?simpay_smtp.manual_activate_url:simpay_smtp.manual_install_url,l=i?simpay_smtp.error_could_not_activate:simpay_smtp.error_could_not_install,p=i?simpay_smtp.plugins_page:simpay_smtp.download_now;e.removeClass("grey disabled").text(p).attr("data-action","goto-url").attr("data-url",r),e.after(''+l+"
")},stepInstallPluginStatus:function(){var t={action:"simpay_smtp_page_check_plugin_status",nonce:simpay_smtp.nonce};s.post(simpay_smtp.ajax_url,t).done(n.stepInstallPluginStatusDone)},stepInstallPluginStatusDone:function(t){if(t.success){if(a.$stepSetup.removeClass("grey"),a.$stepSetupBtn=a.$stepSetup.find("button"),a.$stepSetupBtn.removeClass("grey disabled").addClass("button-primary"),t.data.setup_status>0)return a.$stepSetupNum.attr("src",a.$stepSetupNum.attr("src").replace("step-2.svg","step-complete.svg")),void a.$stepSetupBtn.attr("data-url",simpay_smtp.smtp_settings_url).text(simpay_smtp.smtp_settings);a.$stepSetupBtn.attr("data-url",simpay_smtp.smtp_wizard_url).text(simpay_smtp.smtp_wizard)}},gotoURL:function(){var t=s(this);t.hasClass("disabled")||(e.location.href=t.attr("data-url"))},showSpinner:function(t){t.siblings(".loader").removeClass("hidden")},hideSpinner:function(t){t.siblings(".loader").addClass("hidden")}};return n}(document,window,t)).init()}).call(this,s(7))},7:function(t,e){t.exports=jQuery}});
\ No newline at end of file
+!function(t){var e={};function s(a){if(e[a])return e[a].exports;var n=e[a]={i:a,l:!1,exports:{}};return t[a].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.m=t,s.c=e,s.d=function(t,e,a){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(s.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)s.d(a,n,function(e){return t[e]}.bind(null,n));return a},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="",s(s.s=47)}({47:function(t,e,s){"use strict";(function(t){(window.SimPaySMTP||function(t,e,s){var a={},n={init:function(){s(n.ready)},ready:function(){n.initVars(),n.events()},initVars:function(){a={$stepInstall:s("section.step-install"),$stepInstallNum:s("section.step-install .num img"),$stepSetup:s("section.step-setup"),$stepSetupNum:s("section.step-setup .num img")}},events:function(){a.$stepInstall.on("click","button",n.stepInstallClick),a.$stepSetup.on("click","button",n.gotoURL)},stepInstallClick:function(t){t.preventDefault();var i=s(this),r=i.attr("data-action"),l=i.attr("data-plugin"),p=i.text(),u="";if(!i.hasClass("disabled")){switch(r){case"activate":u="simpay_activate_plugin",i.text(simpay_smtp.activating);break;case"install":u="simpay_install_plugin",i.text(simpay_smtp.installing);break;case"goto-url":return void(e.location.href=i.attr("data-url"));default:return}i.addClass("disabled"),n.showSpinner(a.$stepInstallNum);var o={action:u,nonce:simpay_smtp.nonce,plugin:l};s.post(simpay_smtp.ajax_url,o).done((function(t){n.stepInstallDone(t,i,r)})).fail((function(){i.removeClass("disabled"),i.text(p)})).always((function(){n.hideSpinner(a.$stepInstallNum)}))}},stepInstallDone:function(t,e,s){if("install"===s?t.success&&t.data.is_activated:t.success)return a.$stepInstallNum.attr("src",a.$stepInstallNum.attr("src").replace("step-1.","step-complete.")),e.addClass("grey").removeClass("button-primary").text(simpay_smtp.activated),void n.stepInstallPluginStatus();var i="install"===s&&t.success&&!t.data.is_activated||"activate"===s,r=i?simpay_smtp.manual_activate_url:simpay_smtp.manual_install_url,l=i?simpay_smtp.error_could_not_activate:simpay_smtp.error_could_not_install,p=i?simpay_smtp.plugins_page:simpay_smtp.download_now;e.removeClass("grey disabled").text(p).attr("data-action","goto-url").attr("data-url",r),e.after(''+l+"
")},stepInstallPluginStatus:function(){var t={action:"simpay_smtp_page_check_plugin_status",nonce:simpay_smtp.nonce};s.post(simpay_smtp.ajax_url,t).done(n.stepInstallPluginStatusDone)},stepInstallPluginStatusDone:function(t){if(t.success){if(a.$stepSetup.removeClass("grey"),a.$stepSetupBtn=a.$stepSetup.find("button"),a.$stepSetupBtn.removeClass("grey disabled").addClass("button-primary"),t.data.setup_status>0)return a.$stepSetupNum.attr("src",a.$stepSetupNum.attr("src").replace("step-2.svg","step-complete.svg")),void a.$stepSetupBtn.attr("data-url",simpay_smtp.smtp_settings_url).text(simpay_smtp.smtp_settings);a.$stepSetupBtn.attr("data-url",simpay_smtp.smtp_wizard_url).text(simpay_smtp.smtp_wizard)}},gotoURL:function(){var t=s(this);t.hasClass("disabled")||(e.location.href=t.attr("data-url"))},showSpinner:function(t){t.siblings(".loader").removeClass("hidden")},hideSpinner:function(t){t.siblings(".loader").addClass("hidden")}};return n}(document,window,t)).init()}).call(this,s(6))},6:function(t,e){t.exports=jQuery}});
\ No newline at end of file
diff --git a/includes/core/assets/js/dist/simpay-admin.js b/includes/core/assets/js/dist/simpay-admin.js
index 5e721bc2..0eb79bea 100644
--- a/includes/core/assets/js/dist/simpay-admin.js
+++ b/includes/core/assets/js/dist/simpay-admin.js
@@ -1 +1 @@
-!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=33)}([function(e,t,n){"use strict";function r(e){"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e()}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var r=n(10),a=n.n(r),i=n(5),o=n.n(i);function c(_x,e){return s.apply(this,arguments)}function s(){return(s=a()(o.a.mark((function t(n,r){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.ajax({data:r,method:"POST",url:"".concat(wpApiSettings.root,"wpsp/").concat(n),beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",wpApiSettings.nonce)}});case 3:return t.abrupt("return",t.sent);case 6:throw t.prev=6,t.t0=t.catch(0),t.t0.responseJSON;case 10:case"end":return t.stop()}}),t,null,[[0,6]])})))).apply(this,arguments)}}).call(this,n(7))},function(e,t,n){var r=n(19);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(28);n.o(r,"maybeBlockButtonWithUpgradeModal")&&n.d(t,"maybeBlockButtonWithUpgradeModal",(function(){return r.maybeBlockButtonWithUpgradeModal})),n.o(r,"maybeBlockCheckboxWithUpgradeModal")&&n.d(t,"maybeBlockCheckboxWithUpgradeModal",(function(){return r.maybeBlockCheckboxWithUpgradeModal})),n.o(r,"maybeBlockSelectWithUpgradeModal")&&n.d(t,"maybeBlockSelectWithUpgradeModal",(function(){return r.maybeBlockSelectWithUpgradeModal})),n.o(r,"upgradeModal")&&n.d(t,"upgradeModal",(function(){return r.upgradeModal})),n(16);var a=n(29);n.d(t,"maybeBlockButtonWithUpgradeModal",(function(){return a.a})),n.d(t,"maybeBlockCheckboxWithUpgradeModal",(function(){return a.b})),n.d(t,"maybeBlockSelectWithUpgradeModal",(function(){return a.c})),n.d(t,"upgradeModal",(function(){return a.d}))},function(e,t){var n=/^(?:submit|button|image|reset|file)$/i,r=/^(?:input|select|textarea|keygen)/i,a=/(\[[^\[\]]*\])/g;function i(e,t,n){if(t.match(a))!function e(t,n,r){if(0===n.length)return r;var a=n.shift(),i=a.match(/^\[(.+?)\]$/);if("[]"===a)return t=t||[],Array.isArray(t)?t.push(e(null,n,r)):(t._values=t._values||[],t._values.push(e(null,n,r))),t;if(i){var o=i[1],c=+o;isNaN(c)?(t=t||{})[o]=e(t[o],n,r):(t=t||[])[c]=e(t[c],n,r)}else t[a]=e(t[a],n,r);return t}(e,function(e){var t=[],n=new RegExp(a),r=/^([^\[\]]*)/.exec(e);for(r[1]&&t.push(r[1]);null!==(r=n.exec(e));)t.push(r[1]);return t}(t),n);else{var r=e[t];r?(Array.isArray(r)||(e[t]=[r]),e[t].push(n)):e[t]=n}return e}function o(e,t,n){return n=n.replace(/(\r)?\n/g,"\r\n"),n=(n=encodeURIComponent(n)).replace(/%20/g,"+"),e+(e?"&":"")+encodeURIComponent(t)+"="+n}e.exports=function(e,t){"object"!=typeof t?t={hash:!!t}:void 0===t.hash&&(t.hash=!0);for(var a=t.hash?{}:"",c=t.serializer||(t.hash?i:o),s=e&&e.elements?e.elements:[],l=Object.create(null),u=0;u3&&void 0!==arguments[3]?arguments[3]:10;if(a(t)&&r(n))if("function"==typeof i)if("number"==typeof o){var c={callback:i,priority:o,namespace:n};if(e[t]){var s,l=e[t].handlers;for(s=l.length;s>0&&!(o>=l[s-1].priority);s--);s===l.length?l[s]=c:l.splice(s,0,c),(e.__current||[]).forEach((function(e){e.name===t&&e.currentIndex>=s&&e.currentIndex++}))}else e[t]={handlers:[c],runs:0};"hookAdded"!==t&&f("hookAdded",t,n,i,o)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}},o=function(e,t){return function(n,i){if(a(n)&&(t||r(i))){if(!e[n])return 0;var o=0;if(t)o=e[n].handlers.length,e[n]={runs:e[n].runs,handlers:[]};else for(var c=e[n].handlers,s=function(t){c[t].namespace===i&&(c.splice(t,1),o++,(e.__current||[]).forEach((function(e){e.name===n&&e.currentIndex>=t&&e.currentIndex--})))},l=c.length-1;l>=0;l--)s(l);return"hookRemoved"!==n&&f("hookRemoved",n,i),o}}},c=function(e){return function(t,n){return void 0!==n?t in e&&e[t].handlers.some((function(e){return e.namespace===n})):t in e}},s=function(e,t){return function(n){e[n]||(e[n]={handlers:[],runs:0}),e[n].runs++;for(var r=e[n].handlers,a=arguments.length,i=new Array(a>1?a-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.id,r=t.getFormData;return Object(i.a)("v2/customer",d({form_values:l()(t[0],{hash:!0}),form_data:r(),form_id:n},e))}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.id,r=t.getFormData;return Object(i.a)("v2/checkout-session",f({form_values:l()(t[0],{hash:!0}),form_data:r(),form_id:n},e))}n(10),n(5),n(11)},,function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;I(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:M(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},n}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(6).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},Number.isSafeInteger=Number.isSafeInteger||function(e){return Number.isInteger(e)&&Math.abs(e)<=Number.MAX_SAFE_INTEGER},Number.MAX_SAFE_INTEGER||(Number.MAX_SAFE_INTEGER=9007199254740991)},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return u}));var r=n(2),a=n.n(r);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};e(".simpay-upgrade-modal").dialog(o({position:{my:"center",at:"center",of:window},modal:!0,width:600,resizable:!1,draggable:!1,open:function(){var t=e(this);t.parent().find(".ui-dialog-titlebar").css({borderBottom:0}),t.find(".simpay-upgrade-modal__title").html(n),t.find(".simpay-upgrade-modal__description").html(r),t.find(".simpay-upgrade-modal__upgrade-url").attr("href",a),t.find(".simpay-upgrade-modal__upgrade-purchased-url").attr("href",i)}},c))}}).call(this,n(7))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(0);function a(e,t){var n=document.getElementById("simpay-test-mode-toggle-notice");if(n)if(e!==t){var r=document.getElementById("simpay-toggle-notice-status"),a=document.getElementById("simpay-toggle-notice-status-link");n.style.display="block",r&&a&&(r.innerHTML=""+r.dataset[e]+"",a.href=a.dataset[e])}else n.style.display="none"}function i(){var t=document.querySelectorAll(".simpay-disconnect-link");if(t){var n=simpayAdmin.i18n,r=n.disconnectConfirm,a=n.disconnectCancel;t.forEach((function(t){t.addEventListener("click",(function(n){n.preventDefault(),e(".simpay-disconnect-confirm").dialog({resizable:!1,height:"auto",width:400,modal:!0,draggable:!1,open:function(){e(".ui-dialog-buttonset .ui-button").removeClass("ui-button").last().css({marginLeft:"10px"}).focus()},buttons:[{text:a,click:function(){e(this).dialog("close")},class:"button button-secondary"},{text:r,click:function(){window.location.href=t.href},class:"button button-primary"}]})}))}))}}Object(r.a)((function(){var e;(e=document.getElementById("simpay-stripe-account-info"))&&wp.ajax.send("simpay_stripe_connect_account_information",{data:{nonce:e.dataset.nonce},success:function(t){e.querySelector("p").innerHTML=t.message,e.style.display="block","simpay-stripe-activated-account-actions"===t.actions?e.classList.add("notice-info"):e.classList.add("notice-warning");var n=document.getElementById(t.actions);n&&(n.style.display="block"),i()},error:function(t){e.querySelector("p").innerHTML=t.message,e.style.display="block",e.classList.add("notice-error");var n=document.getElementById(t.actions);n&&(n.style.display="block",i())}})}))}).call(this,n(7))},,,function(e,t,n){"use strict";n.r(t),function(e){var t=n(9),r=n.n(t),a=n(8),i=(n(34),n(35),n(36),n(30));n(37),n(38),n(60),n(43),n(44),window.wpsp=window.wpsp||{hooks:a.b};var o,c,s,l=simpayAdmin,u=l.licenseLevel,d=l.i18n.trashFormConfirm,p={};p={init:function(){c=o(document.body),s=c.find("#simpay-form-settings"),this.handleMetaboxTabClick(),window.postboxes&&window.postboxes.handle_click&&s.on("click",".postbox .simpay-hndle, .postbox .simpay-handlediv",window.postboxes.handle_click),a.b.addAction("settings.toggleTestMode","wpsp/settings/stripe-connect",i.a),this.handleFormBuilderSettingToggles(),a.b.addAction("customFieldAdded","wpsp/payment-form",this.handleFormBuilderSettingToggles),s.on("click.simpayTabLink",".simpay-tab-link",(function(e){e.preventDefault(),p.handleInternalLinkToTabClicks(o(this))})),o(document).on("click.simpayImagePreview",".simpay-remove-image-preview",(function(e){p.handleRemoveImagePreviewClick(e)})),this.setupChosen(),this.addMediaFields(),this.stripeConnect(),this.initSortableFields(s.find(".simpay-custom-fields")),s.find(".add-field").on("click.simpayAddField",this.addField),s.find(".simpay-custom-fields").on("click",".simpay-remove-field-link",this.removeField);var e=o(".simpay-payment-modes");e.length&&e.find("input").each((function(){var t=o(this);e.hasClass("simpay-payment-mode--"+t.val())||t.attr("disabled",!0)})),this.bindTrashWarning(),c.trigger("simpayAdminInit"),o(".show-settings").detach().prependTo(".simpay-branding-bar__actions").removeClass().addClass("simpay-branding-bar__actions-button").html('').on("click",window.screenMeta.toggleEvent)},handleFormBuilderSettingToggles:function(){["_amount_type","_success_redirect_type","_subscription_type","_subscription_custom_amount","_form_type","_tax_status","_enable_payment_page","_inventory","_inventory_behavior","_schedule_start","_schedule_end",".simpay-total-amount-label-recurring",".simpay-total-amount-label-tax",".simpay-shipping-address",".simpay-text-multiline",".simpay-dropdown-type",".simpay-radio-type",".simpay-price-enable-custom",".simpay-price-type input",".simpay-email-link-enabled",".simpay-phone-smart-enabled"].forEach((function(e){var t=o(e),n=!1;"."!==e.substring(0,1)?t='[name="'.concat(e,'"]'):(t=e,n=!0),o("#simpay-form-settings").on("change",t,(function(){var t=o("#simpay-form-settings");!0===n&&(t=o(this).closest(".simpay-field-data"));var r=o(this).val();o(this).is(":checkbox")&&(r=o(this).is(":checked")?"yes":"no"),t.find(o('.simpay-show-if[data-if="'.concat(e,'"]'))).each((function(){var e=o(this),t=e.data("is");e.hide(),t.includes(r)&&e.show().css("display","block")}))})),o(t).filter(":checkbox").trigger("change"),o(t).filter(":checked").trigger("change"),o(t).is("select")&&o(t).trigger("change")}))},handleRemoveImagePreviewClick:function(e){e.preventDefault(),o(e.target).parents("td").find(".simpay-image-preview-wrap").val("").hide(),o(e.target).parents("td").find(".simpay-field-image-url").val(""),o(e.target).parents("td").find(".simpay-remove-image-preview").hide()},addMediaFields:function(){o(".simpay-media-uploader").on("click",(function(e){e.preventDefault();var t=wp.media.frames.file_frame=wp.media({title:simpayAdmin.i18n.mediaTitle,button:{text:simpayAdmin.i18n.mediaButtonText},multiple:!1}),n=o(this);t.on("select",(function(){var e=t.state().get("selection").first().toJSON(),r=n.parents("td").find(".simpay-field-image-url"),a="id"===r.data("fvalue")?e.id:e.url;n.parents("td").find(".simpay-image-preview-wrap").show(),n.parents("td").find(".simpay-remove-image-preview").show(),n.parents("td").find(".simpay-image-preview").prop("src",a),r.val(a)})),t.open()}))},setupChosen:function(){var e=o(".simpay-chosen-select, .simpay-chosen-search");e.chosen({disable_search_threshold:20}),e.chosen()},handleMetaboxTabClick:function(){var e=o('ul.simpay-tabs li:not([data-available="no"]) a'),t=o("div.simpay-panel"),n=e.parents("li");e.on("click",(function(e){e.preventDefault();var r=o(this).parent(),a=o(o(this).attr("href")),i=o(this).attr("href");history.pushState(null,null,i),setTimeout((function(){window.scrollTo(0,0)}),1),o('[name="simpay_form_settings_tab"]').val(i),o(".simpay-panels > .spinner").hide(),n.removeClass("active"),r.addClass("active"),t.addClass("simpay-panel-hidden"),a.removeClass("simpay-panel-hidden")}));var r="#form-display-options-settings-panel";location.hash.length&&(r=location.hash);var a=o('ul.simpay-tabs a[href="'+r+'"]');o('[name="simpay_form_settings_tab"]').val(r),a.length&&a.click()},stripeConnect:function(){var e="tr:nth-child(2), tr:nth-child(3), tr:nth-child(4), tr:nth-child(5)";o(".simpay-settings.stripe-account .form-table").find(e).hide(),o("#wpsp-api-keys-row-reveal button").on("click",(function(t){t.preventDefault(),o(".simpay-settings.stripe-account .form-table").find(e).show(),o("#wpsp-api-keys-row-hide").show(),o(this).parent().hide(),o(".wpsp-manual-key-warning").show()})),o("#wpsp-api-keys-row-hide button").on("click",(function(t){t.preventDefault(),o(".simpay-settings.stripe-account .form-table").find(e).hide(),o("#wpsp-api-keys-row-reveal").show(),o(this).parent().hide(),o(".wpsp-manual-key-warning").hide()}))},handleInternalLinkToTabClicks:function(e){var t=e.data("show-tab");c.find("."+t+"-tab a").click()},bindTrashWarning:function(){["plus","professional","elite","ultimate"].includes(u)&&(o(".post-type-simple-pay .submitdelete").click((function(e){confirm(d)||e.preventDefault()})),o(".post-type-simple-pay #posts-filter").submit((function(e){"trash"===o(this).find('select[name="action"]').val()&&(confirm(d)||e.preventDefault())})))},initSortableFields:function(e){e.sortable({items:".simpay-field-metabox:not(.simpay-custom-field-payment-button):not(.simpay-custom-field-checkout-button)",containment:"#simpay-form-settings",handle:".simpay-hndle",placeholder:"sortable-placeholder",cursor:"move",delay:o(document.body).hasClass("mobile")?200:0,distance:2,tolerance:"pointer",forcePlaceholderSize:!0,opacity:.65,stop:function(e,t){p.orderFields()},helper:function(e,t){return t.clone().find(":input").attr("name",(function(e,t){return"sort_"+parseInt(1e5*Math.random(),10).toString()+"_"+t})).end()}})},addField:function(e){var t=s.find(".simpay-custom-fields .simpay-field-metabox").length,n=o("#simpay-custom-fields-wrap").find(".simpay-metaboxes"),i=s.find("#custom-field-select"),c=i.val(),l=r()(document.querySelectorAll(".field-uid")).map((function(e){return parseInt(e.value)})),u={action:"simpay_add_field",post_id:o("#post_ID").val(),fieldType:c,counter:parseInt(t)+1,nextUid:parseInt(_.max(l))+1,addFieldNonce:s.find("#simpay_custom_fields_nonce").val()};e.preventDefault(),s.find(".postbox").each((function(){o(this).is(":visible")&&o(this).addClass("closed")})),o.ajax({url:ajaxurl,method:"POST",data:u,success:function(e){var t=o("").append(e);["payment_button","checkout_button"].includes(c)?n.append(t.html()):n.prepend(t.html()),i.prop("selectedIndex",0),p.orderFields(),a.b.doAction("customFieldAdded",e)},error:function(e){window.spShared.debugLog(e)}})},removeField:function(e){if(e.preventDefault(),s.find("#custom-field-select"),window.confirm("Are you sure you want to remove this field?")){var t=o(this).closest(".simpay-field-metabox");t.data("type"),t.remove(),a.b.doAction("customFieldRemoved")}},orderFields:function(){o(".simpay-custom-fields .simpay-field-metabox").each((function(e,t){var n=parseInt(o(t).index(".simpay-custom-fields .simpay-field-metabox"));o(".field-order",t).val(n+1)}))}},(o=e)(document).ready((function(e){p.init()}))}.call(this,n(7))},function(e,t,n){"use strict";var r=n(9),a=n.n(r),i=n(0),o=simpayAdminSettingToggles||[];function c(e){var t=e.id,n=document.querySelector(".simpay-settings-".concat(t));if(!n)return{};var r=n.querySelectorAll('input[name="simpay_settings['.concat(t,']"]'));0===r.length&&(r=n.querySelectorAll('select[name="'.concat(t,'"]')));var i=r[0].value;if(["radio","checkbox"].includes(r[0].type)){var o=a()(r).filter((function(e){return e.checked}));i=0===o.length?"no":o[0].value}return{setting:r,currentValue:i}}function s(e){var t=e.id,n=e.value,r=e.toggles,a=e.compare;if("none"!==document.querySelector(".simpay-settings-".concat(t)).style.display){var i=c(e).currentValue;r.map((function(e){return document.querySelector(".simpay-settings-".concat(e))})).forEach((function(e){e&&(e.style.display="IS NOT"===a?i===n?"none":"table-row":i===n?"table-row":"none")})),r.forEach((function(e){var t=_.find(o,{id:e});t&&s(t)}))}}Object(i.a)((function(){o.forEach((function(e){s(e),c(e).setting.forEach((function(t){t.addEventListener("change",(function(){s(e)}))}))}))}))},function(e,t,n){"use strict";var r=n(0);Object(r.a)((function(){var e=window.wpsp.hooks,t=document.querySelectorAll('[name="simpay_settings[test_mode]"]');if(0!==t.length){var n="enabled"===document.querySelector('[name="simpay_settings[test_mode]"]:checked').value?"test":"live";e.doAction("settings.toggleTestMode",n,n),_.each(t,(function(t){return t.addEventListener("change",(function(t){var r="enabled"===t.target.value?"test":"live";e.doAction("settings.toggleTestMode",r,n)}))}))}}))},function(e,t,n){"use strict";var r=n(0);function a(e){var t=document.getElementById("simpay-connect-license-feedback"),n=document.getElementById("simpay-connect-license-submit");e.message?(t.innerText=e.message,t.classList.remove("simpay-license-message--valid"),t.classList.add("simpay-license-message--invalid"),t.style.display="block"):t.style.display="none",e.reload?setTimeout((function(){window.location.reload()}),2e3):(n.disabled=!1,n.innerText=n.dataset.connect)}function i(e){var t=document.getElementById("simpay-connect-license-feedback");e.message?(t.innerText=e.message,t.classList.remove("simpay-license-message--invalid"),t.classList.add("simpay-license-message--valid"),t.style.display="block"):t.style.display="none",e.reload?setTimeout((function(){window.location.reload()}),2e3):window.location=e.url}function o(){var e=document.getElementById("simpay-connect-license-key"),t=document.getElementById("simpay-connect-license-nonce"),n=document.getElementById("simpay-connect-license-submit");n.disabled=!0,n.innerText=n.dataset.connecting,wp.ajax.send("simpay_get_connect_url",{data:{nonce:t.value,key:e.value},success:i,error:a})}Object(r.a)((function(){var e=document.getElementById("simpay-connect-license-key");if(e){var t=document.getElementById("simpay-connect-license-submit");e.addEventListener("keypress",(function(e){"Enter"===e.key&&(e.preventDefault(),o())})),t.addEventListener("click",(function(e){e.preventDefault(),t.disabled=!0,o()}))}}))},function(e,t,n){"use strict";var r=n(0),a=[".simpay-settings-hcaptcha_setup",".simpay-settings-hcaptcha_site_key",".simpay-settings-hcaptcha_secret_key",".simpay-settings-recaptcha_setup",".simpay-settings-recaptcha_site_key",".simpay-settings-recaptcha_secret_key",".simpay-settings-recaptcha_score_threshold",".simpay-settings-cloudflare_turnstile_setup",".simpay-settings-cloudflare_turnstile_site_key",".simpay-settings-cloudflare_turnstile_secret_key",".simpay-settings-no_captcha_warning"];function i(e){var t,n=e.target.value;switch(n){case"none":t="no_captcha";break;case"recaptcha-v3":t="recaptcha";break;case"cloudflare-turnstile":t="cloudflare_turnstile";break;default:t=n}a.forEach((function(e){var n=document.querySelector(e);n&&(n.style.display=e.includes(t)?"table-row":"none")}))}Object(r.a)((function(){var e=document.querySelectorAll('input[name="simpay_settings[captcha_type]"]');if(0!==e.length){a.forEach((function(e){var t=document.querySelector(e);t&&(t.style.display="none")})),e.forEach((function(e){return e.addEventListener("change",i)}));var t=document.querySelector('input[name="simpay_settings[captcha_type]"]:checked');t&&t.dispatchEvent(new Event("change")),function(){var e=document.querySelector(".simpay-recaptcha-feedback");if(e){var t=simpayGoogleRecaptcha,n=t.siteKey,r=t.i18n;""!==n&&grecaptcha.ready((function(){var e=document.querySelector(".grecaptcha-badge");e&&(e.style.display="none");try{grecaptcha.execute(n,{action:"simple_pay_admin_test"}).then((function(e){wp.ajax.send("simpay_validate_recaptcha_source",{data:{token:e,recaptcha_action:"simple_pay_admin_test"},error:a})})).catch(a)}catch(e){a()}}))}function a(){e.style.display="block",e.classList.add("notice-error"),e.innerHTML="";var t=document.createElement("p");t.innerText=r.invalid,e.appendChild(t)}}()}}))},function(e,t,n){"use strict";var r=n(0),a=n(3);Object(r.a)((function(){var e=document.querySelector(".simpay-settings-emails-configure");e&&(document.querySelector(".simpay-settings-subsection-delivery").after(e),function(e){var t=e.querySelector("select");t&&t.addEventListener("change",(function(e){var n=e.target,r=n.options[n.selectedIndex].dataset,i=r.available,o=r.upgradeTitle,c=r.upgradeDescription,s=r.upgradeUrl,l=r.upgradePurchasedUrl;"no"===i&&(Object(a.upgradeModal)({title:o,description:c,url:s,purchasedUrl:l}),t.value="",t.selectedIndex=0)}))}(e))}))},function(e,t,n){"use strict";(function(e){var t=n(4),r=n.n(t),a=n(0),i=n(3);Object(a.a)((function(){var t,n,a,o,c=document.querySelector(".post-type-simple-pay #post");if(c){var s=r()(c,{hash:!0});delete s.simpay_form_settings_tab,function(t){function n(e){var n=r()(document.querySelector(".post-type-simple-pay form#post"),{hash:!0});if(delete n.simpay_form_settings_tab,delete n.simpay_save_preview,JSON.stringify(n)!==t)return e.preventDefault(),simpayAdmin.i18n.leavePageConfirm}window.addEventListener("beforeunload",n),window.onbeforeunload=n,e(".post-type-simple-pay form#post").off("submit").on("submit",(function(){window.removeEventListener("beforeunload",n),window.onbeforeunload=null}))}(JSON.stringify(s)),a=document.getElementById("form-type-select"),o=document.getElementById("is-overlay"),a.addEventListener("change",(function(e){var t=e.target,n=t.options[t.selectedIndex],r=n.value;"on-site"===r&&Object(i.maybeBlockSelectWithUpgradeModal)(e),"off-site"===r&&(o.querySelector("input").checked=!1),o.style.display="yes"===n.dataset.available&&"on-site"===r?"block":"none"})),(n=document.getElementById("_recaptcha"))&&n.addEventListener("change",(function(e){e.preventDefault(),e.target.checked=!e.target.checked,window.open(e.target.dataset.settingsUrl,"_blank")})),function(){var e=document.getElementById("_email_verification");e&&e.addEventListener("change",(function(e){e.preventDefault(),e.target.checked=!e.target.checked,window.open(e.target.dataset.settingsUrl,"_blank")}))}(),(t=document.querySelector("#_company_name"))&&(t.addEventListener("blur",(function(){0===t.value.length?(t.nextElementSibling.classList.remove("hidden"),t.value=simpayAdmin.siteTitle):t.nextElementSibling.classList.add("hidden")})),t.addEventListener("focus",(function(){0!==t.value.length&&t.nextElementSibling.classList.add("hidden")})))}}))}).call(this,n(7))},function(e,t,n){"use strict";(function(e,t){var r=n(9),a=n.n(r),i=n(0),o=n(8),c=n(3),s=n(14);function l(){var e=document.querySelector(".simpay-custom-field-plan-select"),t=document.getElementById("simpay-prices");if(e&&t){var n=t.querySelectorAll(".simpay-price").length,r=document.querySelector("#_allow_purchasing_multiple_line_items");if(r&&r.checked){var i=document.querySelectorAll('input.simpay-price-enable-optional-subscription[type="checkbox"]'),o=document.querySelectorAll('.simpay-quantity-toggle input.simpay-price-quantity[type="checkbox"]'),c=document.querySelectorAll(".simpay-price-enable-custom-amount");[].concat(a()(i),a()(o),a()(c)).some((function(e){return e.checked}))?e.style.display="block":e.style.display=n>1?"block":"none"}else e.style.display=n>1?"block":"none"}}function u(){var e=document.getElementById("simpay-prices");if(e){var t=e.querySelectorAll(".simpay-price").length;document.querySelectorAll(".simpay-price-label-default").forEach((function(e){return e.style.display=t>1?"none":"block"})),document.querySelectorAll(".simpay-price-label-display").forEach((function(e){return e.style.display=t>1?"block":"none"})),document.querySelectorAll(".simpay-price-option-label").forEach((function(e){if(t>1)e.style.display="block";else{var n=e.querySelector("input");n&&""!==n.value.trim()?e.style.display="block":e.style.display="none"}})),document.querySelectorAll(".simpay-price-default-check").forEach((function(e){return e.style.display=t>1?"block":"none"})),l()}}function d(e){var t,n=e.querySelector(".simpay-price-label-display"),r=e.querySelector(".simpay-price-label"),a=simpayAdmin,i=a.currencyPosition,c=a.i18n,s=c.recurringIntervals,l=c.recurringIntervalDisplay,u=c.customAmountLabel;if(""!==r.value)t=r.value;else{var d=e.querySelector(".simpay-price-currency"),p=e.querySelector(".simpay-price-amount"),m=e.querySelector(".simpay-price-amount-type"),f=e.querySelector(".simpay-price-custom-amount input"),y=e.querySelector(".simpay-price-enable-custom-amount"),h=d.options[d.selectedIndex].dataset.symbol;switch(t=!0===y.checked?f.value:p.value,i){case"left":t="".concat(h).concat(t);break;case"left_space":t="".concat(h," ").concat(t);break;case"right":t="".concat(t).concat(h);break;case"right_space":t="".concat(t," ").concat(h)}if(!0===y.checked&&(t=u.replace("%s",t)),"recurring"===m.value){var v=e.querySelector(".simpay-price-recurring-interval"),g=e.querySelector(".simpay-price-recurring-interval-count");if(!v||!g)return;var b=s[v.options[v.selectedIndex].value];t=l.replace("%1$s",t).replace("%2$s",g.value).replace("%3$s","1"===g.value?b[0]:b[1])}}n.innerHTML=t,Object(o.c)("simpayFormBuilderPriceOptionLabelUpdated",t,e)}function p(e,t){var n=t.dataset.amountType,r=e.querySelector(".simpay-price-can-recur-label"),a=e.querySelector(".simpay-price-enable-optional-subscription"),i=e.querySelector(".simpay-false-recurring-checkbox");if("recurring"===n){var o=simpayAdmin.i18n.priceRecurring;a.checked&&(o=simpayAdmin.i18n.priceOptionalRecurring),r.innerHTML=o,a.style.display="none",i.style.display="",a.checked=!1}else r.innerHTML=simpayAdmin.i18n.priceOptionalRecurring,a.style.display="",i.style.display="none"}function m(e){var t=e.querySelector(".simpay-price-recurring-interval"),n=e.querySelector(".simpay-price-recurring-interval-count");if(t&&n){var r=parseInt(n.value);switch(t.options[t.selectedIndex].value){case"day":r>365&&(n.value=365);break;case"week":r>52&&(n.value=52);break;case"month":r>12&&(n.value=12);break;case"year":r>1&&(n.value=1)}var i=JSON.parse(t.dataset.intervals);a()(t.options).forEach((function(e,r){var a=e.value;t.options[r].text=1===parseInt(n.value)?i[a][0]:i[a][1]}))}}function f(){document.querySelectorAll(".simpay-price").forEach((function(e){e.querySelector(".simpay-price-label").addEventListener("keyup",(function(){return d(e)})),d(e),e.querySelector(".simpay-price-currency").addEventListener("change",(function(){!function(e){var t=e.querySelector(".simpay-price-currency"),n=t.options[t.selectedIndex].dataset.symbol;e.querySelectorAll(".simpay-price-currency-symbol").forEach((function(e){return e.innerText=n}))}(e),d(e)}));var n=e.querySelectorAll(".simpay-price-amount-type .button");n.length>0&&n.forEach((function(t){t.classList.contains("button-primary")&&p(e,t),t.addEventListener("click",(function(t){t.preventDefault();var n=t.target.dataset,r=n.available,a=n.upgradeTitle,i=n.upgradeDescription,o=n.upgradeUrl,l=n.upgradePurchasedUrl;"no"===r?Object(c.upgradeModal)({title:a,description:i,url:o,purchasedUrl:l}):(function(e,t){e.querySelectorAll(".simpay-price-amount-type .button").forEach((function(e){return e.classList.remove("button-primary")}));var n=t.dataset.amountType;t.classList.add("button-primary"),p(e,t),Object(s.c)(e),e.querySelector(".simpay-price-amount-type").value=n}(e,t.target),d(e))}))})),e.querySelector(".simpay-price-amount").addEventListener("keyup",(function(){return d(e)}));var r=e.querySelector(".simpay-price-enable-optional-subscription");r&&r.addEventListener("click",(function(t){var n=t.target,r=n.dataset,a=r.available,i=r.upgradeTitle,o=r.upgradeDescription,u=r.upgradeUrl,p=r.upgradePurchasedUrl;"no"===a?(n.checked=!1,t.preventDefault(),Object(c.upgradeModal)({title:i,description:o,url:u,purchasedUrl:p})):(d(e),l(),Object(s.c)(e))})),e.querySelector(".simpay-price-enable-custom-amount").addEventListener("change",(function(){d(e),l()}));var a=e.querySelector(".simpay-price-recurring-interval"),i=e.querySelector(".simpay-price-recurring-interval-count");a&&i&&(a.addEventListener("change",(function(){d(e),m(e)})),m(e),i.addEventListener("keyup",(function(){m(e),d(e)})),i.addEventListener("change",(function(){m(e),d(e)})));var f=e.querySelector(".simpay-price-legacy-setting-toggle");f&&f.addEventListener("click",(function(t){t.preventDefault(),function(e){e.querySelectorAll(".simpay-price-legacy-setting").forEach((function(e){return e.style.display="block"===e.style.display?"none":"block"}))}(e)})),e.querySelector(".simpay-price-default").addEventListener("change",(function(){return function(e){document.querySelectorAll(".simpay-price-default").forEach((function(e){return e.checked=!1})),e.querySelector(".simpay-price-default").checked=!0}(e)})),e.querySelector(".simpay-price-remove").addEventListener("click",(function(t){t.preventDefault(),function(e){e.remove(),y(),u(),Object(o.c)("simpayFormBuilderPriceRemoved",e.id)}(e)})),e.querySelectorAll(".simpay-price-configure-btn").forEach((function(e){var n=e.classList.contains("simpay-price-locked");e.addEventListener("click",(function(r){if(r.preventDefault(),!n){var a,i,o=e.getAttribute("data-target-id");a=e.getAttribute("data-dialog-title"),(i=t("#".concat(o))).dialog({title:a,position:{my:"center",at:"center",of:window},modal:!0,width:500,resizable:!1,draggable:!1,appendTo:i.parent().parent(),open:function(e){var n=this;t(e.target).find(".update, .simpay-tab-link").on("click",(function(e){e.preventDefault(),t(n).dialog("close")}))},create:function(){t(".ui-dialog-titlebar-close").addClass("ui-button")}}),t("#".concat(o)).dialog("open")}}))}));var h=e.querySelector('.simpay-quantity-toggle input.simpay-price-quantity[type="checkbox"]');h&&h.addEventListener("change",(function(){l()}))})),u(),l()}function y(){var e=document.querySelectorAll(".simpay-price");document.querySelector(".simpay-price-default:checked")||(e[0].querySelector(".simpay-price-default").checked=!0)}Object(i.a)((function(){var t,n,r,a,i,l,d;e(".simpay-prices").sortable({items:".simpay-field-metabox",containment:"#simpay-prices",handle:".simpay-hndle",placeholder:"sortable-placeholder",cursor:"move",delay:e(document.body).hasClass("mobile")?200:0,distance:2,tolerance:"pointer",forcePlaceholderSize:!0,opacity:.65,helper:function(e,t){return t.clone().find(":input").attr("name",(function(e,t){return"sort_"+parseInt(1e5*Math.random(),10).toString()+"_"+t})).end()}}),f(),t=document.getElementById("simpay-prices-advanced-toggle"),n=document.getElementById("simpay-prices-advanced"),t&&n&&t.addEventListener("click",(function(e){e.preventDefault(),n.style.display="block"===n.style.display?"none":"block"})),(d=document.getElementById("simpay-prices-advanced-add"))&&d.addEventListener("click",(function(t){var n,r,a,i,o,c;t.preventDefault(),a=(r=(n=d).dataset).nonce,i=r.formId,o=document.getElementById("simpay-prices"),c=document.getElementById("simpay-prices-advanced-plan-id"),n.classList.add("disabled"),wp.ajax.send("simpay_add_plan",{data:{_wpnonce:a,form_id:i,plan_id:c.value},success:function(t){e(o).append(t),f(),document.getElementById("simpay-prices-advanced").style.display="none",c.value="",n.classList.remove("disabled"),u()},error:function(e){var t=e.message;window.alert(t),n.classList.remove("disabled")}})})),function(){var t=document.getElementById("simpay-add-price");t&&t.addEventListener("click",(function(n){var r,a,i,c,l;n.preventDefault(),i=(a=(r=t).dataset).nonce,c=a.formId,l=document.getElementById("simpay-prices"),r.classList.add("disabled"),wp.ajax.send("simpay_add_price",{data:{_wpnonce:i,form_id:c},success:function(t){e(l).append(t),f(),y(),r.classList.remove("disabled"),u(),Object(s.a)(),Object(o.c)("simpayFormBuilderPriceAdded",t)},error:function(e){var t=e.message;window.alert(t),r.classList.remove("disabled")}})}))}(),(r=document.getElementById("simpay-add-price-lite"))&&r.addEventListener("click",c.maybeBlockButtonWithUpgradeModal),(a=document.getElementById("simpay-amount-type-lite"))&&a.addEventListener("click",c.maybeBlockButtonWithUpgradeModal),(i=document.getElementById("simpay-can-recur-lite"))&&i.addEventListener("click",c.maybeBlockButtonWithUpgradeModal),(l=document.getElementById("simpay-custom-lite"))&&l.addEventListener("click",c.maybeBlockButtonWithUpgradeModal)}))}).call(this,n(7),n(7))},function(e,t,n){"use strict";(function(e){var t=n(0),r=n(3);Object(t.a)((function(){var t;document.querySelector(".post-type-simple-pay #post")&&(t=e("#simpay-form-settings").find("#lite-add-field"))&&t.on("click.simpayAddField",(function(e){var t=e,n=document.querySelectorAll(".simpay-custom-fields > div").length;t.target.dataset.available=n>=3?"no":"yes",Object(r.maybeBlockButtonWithUpgradeModal)(t)&&e.stopImmediatePropagation()}))}))}).call(this,n(7))},function(e,t,n){"use strict";(function(e){var t=n(0),r=n(3);Object(t.a)((function(){var t,n,a;(t=document.querySelector('[name="_enable_payment_page"]'))&&t.addEventListener("change",r.maybeBlockCheckboxWithUpgradeModal),(n=document.querySelector('[name="_payment_page_powered_by"]'))&&n.addEventListener("change",r.maybeBlockCheckboxWithUpgradeModal),function(){if(document.getElementById("payment-page-background-color-custom")){e("#payment-page-background-color-custom").wpColorPicker();var t=document.querySelector(".simpay-payment-page-background-color .wp-color-result"),n=document.querySelectorAll(".simpay-payment-page-background-color");t.addEventListener("click",(function(t){n.forEach((function(e){e.querySelector("input").checked=!1})),t.target.classList.add("is-selected"),e(t.target).parent().find("input").prop("checked",!0)})),n.forEach((function(e){e.querySelector("input").addEventListener("change",(function(){t.classList.remove("is-selected")}))}))}}(),(a=document.querySelector('[name="_payment_page_slug"]'))&&a.addEventListener("keyup",(function(e){var t=document.querySelector(".simpay-payment-page-url");t&&(t.dataset.clipboardText="".concat(window.location.origin,"/").concat(e.target.value))}))}))}).call(this,n(7))},function(e,t,n){"use strict";(function(e){var t=n(6),r=n.n(t),a=n(0),i='',o='',c=simpayAdmin,s=c.nonce,l=c.ajaxUrl,u=c.i18n,d=u.addonActivated,p=u.addonActivate,m=u.addonActive,f=u.addonDeactivate,y=u.addonInactive,h=u.addonInstall,v=u.addonError,g=u.pluginError;function b(t){t.preventDefault();var n,a,c,u,b,_,k=e(t.target);if(k.hasClass("status-go-to-url"))window.open(k.attr("data-plugin"),"_blank");else{var w=k.attr("data-type");if(k.prop("disabled",!0).addClass("loading"),k.html(''),k.hasClass("status-active"))n="deactivate",a="status-installed","plugin"===w&&(a+=" button button-secondary"),c=y,u=p,b=f,"addon"===w&&(u=i+u,b=o+b);else if(k.hasClass("status-installed"))n="activate",a="status-active","plugin"===w&&(a+=" button button-secondary disabled"),c=m,u=f,"addon"===w?(u=o+u,b=i+p):"plugin"===w&&(u=d,b=p);else{if(!k.hasClass("status-missing"))return;n="install",a="status-active","plugin"===w&&(a+=" button disabled"),c=m,u=d,b='',"addon"===w&&(u=i+f,b+=h)}var E=k.closest(".simpay-addon");!function(t,n,r,a){var i={activate:"simpay_activate_addon",install:"simpay_install_addon",deactivate:"simpay_deactivate_addon"}[n];if(i){var o={action:i,nonce:s,plugin:t,type:r};e.post(l,o,a).fail((function(e){console.log(e.responseText)}))}}(k.attr("data-plugin"),n,w,(function(e){e.success?("install"===n?(k.attr("data-plugin",e.data.basename),_=e.data.msg,e.data.is_activated||(c=y,u="plugin"===w?p:i+p,a="plugin"===w?"status-installed button button-secondary":"status-installed")):_=e.data,E.find(".simpay-addon__actions").append(''+_+"
"),E.find("span.status-label").removeClass("status-active status-installed status-missing").addClass(a).removeClass("button button-primary button-secondary disabled").text(c),k.removeClass("status-active status-installed status-missing").removeClass("button button-primary button-secondary disabled").addClass(a).html(u)):("object"===r()(e.data)?"addon"===w?E.find(".simpay-addon__actions").append(''+v+"
"):E.find(".simpay-addon__actions").append(''+g+"
"):E.find(".simpay-addon__actions").append(''+e.data+"
"),"install"===n&&"plugin"===w&&k.addClass("status-go-to-url").removeClass("status-missing"),k.html(b)),k.prop("disabled",!1).removeClass("loading"),setTimeout((function(){E.find(".msg").remove()}),3e3)}))}}Object(a.a)((function(){document.querySelector(".simpay-addons")&&document.querySelectorAll(".simpay-addon").forEach((function(e){e.querySelector("button").addEventListener("click",b)}))}))}).call(this,n(7))},function(e,t,n){"use strict";var r=n(0);Object(r.a)((function(){var e=new ClipboardJS(".simpay-copy-button");e.on("success",(function(t){var n=t.trigger,r=n.dataset.copied,a=n.innerHTML;clearTimeout(i),n.innerHTML=r,n.classList.contains("button-secondary")&&(n.style.color="green",n.style.borderColor="green"),t.clearSelection();var i=setTimeout((function(){n.innerHTML=a,n.classList.contains("button-secondary")&&(n.style.color="",n.style.borderColor=""),e.clipboardAction.fakeElem&&e.clipboardAction.removeFake&&e.clipboardAction.removeFake()}),3e3);wp.a11y.speak(r)}))}))},,,,,,,,,,,,,,,,function(e,t,n){"use strict";n(39),n(40);var r=n(9),a=n.n(r),i=n(0),o=n(3),c=n(14);function s(e){var t=e.target,n=t.options[t.selectedIndex].value,r=document.getElementById("_allow_purchasing_multiple_line_items"),i=document.querySelectorAll(".simpay-panel-field-payment-method[data-payment-method]");a()(i).forEach((function(e){var t="popular"===JSON.parse(e.dataset.paymentMethod).scope?"block":"none";e.style.display="all"===n?"block":t,Object(c.b)(r)}))}Object(i.a)((function(){var e=document.querySelectorAll(".simpay-panel-field-payment-method-filter");0!==e.length&&a()(e).forEach((function(e){e.addEventListener("change",s)}));var t=document.querySelectorAll(".simpay-payment-method-lite");t&&t.forEach((function(e){return e.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal)}));var n=document.querySelectorAll(".simpay-payment-method-fee-recovery-lite");n&&n.forEach((function(e){return e.addEventListener("click",o.maybeBlockButtonWithUpgradeModal)}))})),Object(i.a)((function(){var e=document.getElementById("_tax_status_lite");e&&e.addEventListener("change",o.maybeBlockSelectWithUpgradeModal)})),n(41),Object(i.a)((function(){var e,t;(e=document.getElementById("_enable_tax_id"))&&e.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal),(t=document.getElementById("_enable_promotion_codes"))&&t.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal)})),n(42),Object(i.a)((function(){var e=document.getElementById("_inventory");e&&e.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal);var t=document.getElementById("_inventory_behavior_individual");t&&t.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal);var n=document.getElementById("_schedule_start");n&&n.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal);var r=document.getElementById("_schedule_end");r&&r.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal)})),Object(i.a)((function(){var e=document.getElementById("automations-search");if(e){var t=document.querySelectorAll(".simpay-form-builder-automator__integrations-integration");e.addEventListener("input",(function(){var n=e.value.toLowerCase();t.forEach((function(e){for(var t=Object.values(e.dataset),r=0;r3&&void 0!==arguments[3]?arguments[3]:10;if(a(t)&&r(n))if("function"==typeof i)if("number"==typeof o){var c={callback:i,priority:o,namespace:n};if(e[t]){var s,l=e[t].handlers;for(s=l.length;s>0&&!(o>=l[s-1].priority);s--);s===l.length?l[s]=c:l.splice(s,0,c),(e.__current||[]).forEach((function(e){e.name===t&&e.currentIndex>=s&&e.currentIndex++}))}else e[t]={handlers:[c],runs:0};"hookAdded"!==t&&f("hookAdded",t,n,i,o)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}},o=function(e,t){return function(n,i){if(a(n)&&(t||r(i))){if(!e[n])return 0;var o=0;if(t)o=e[n].handlers.length,e[n]={runs:e[n].runs,handlers:[]};else for(var c=e[n].handlers,s=function(t){c[t].namespace===i&&(c.splice(t,1),o++,(e.__current||[]).forEach((function(e){e.name===n&&e.currentIndex>=t&&e.currentIndex--})))},l=c.length-1;l>=0;l--)s(l);return"hookRemoved"!==n&&f("hookRemoved",n,i),o}}},c=function(e){return function(t,n){return void 0!==n?t in e&&e[t].handlers.some((function(e){return e.namespace===n})):t in e}},s=function(e,t){return function(n){e[n]||(e[n]={handlers:[],runs:0}),e[n].runs++;for(var r=e[n].handlers,a=arguments.length,i=new Array(a>1?a-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.id,r=t.getFormData;return Object(i.a)("v2/customer",d({form_values:l()(t[0],{hash:!0}),form_data:r(),form_id:n},e))}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.id,r=t.getFormData;return Object(i.a)("v2/checkout-session",f({form_values:l()(t[0],{hash:!0}),form_data:r(),form_id:n},e))}n(10),n(5),n(11)},,function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),q(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;q(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:M(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},n}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(7).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},Number.isSafeInteger=Number.isSafeInteger||function(e){return Number.isInteger(e)&&Math.abs(e)<=Number.MAX_SAFE_INTEGER},Number.MAX_SAFE_INTEGER||(Number.MAX_SAFE_INTEGER=9007199254740991)},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return u}));var r=n(2),a=n.n(r);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};e(".simpay-upgrade-modal").dialog(o({position:{my:"center",at:"center",of:window},modal:!0,width:600,resizable:!1,draggable:!1,open:function(){var t=e(this);t.parent().find(".ui-dialog-titlebar").css({borderBottom:0}),t.find(".simpay-upgrade-modal__title").html(n),t.find(".simpay-upgrade-modal__description").html(r),t.find(".simpay-upgrade-modal__upgrade-url").attr("href",a),t.find(".simpay-upgrade-modal__upgrade-purchased-url").attr("href",i)}},c))}}).call(this,n(6))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(0);function a(e,t){var n=document.getElementById("simpay-test-mode-toggle-notice");if(n)if(e!==t){var r=document.getElementById("simpay-toggle-notice-status"),a=document.getElementById("simpay-toggle-notice-status-link");n.style.display="block",r&&a&&(r.innerHTML=""+r.dataset[e]+"",a.href=a.dataset[e])}else n.style.display="none"}function i(){var t=document.querySelectorAll(".simpay-disconnect-link");if(t){var n=simpayAdmin.i18n,r=n.disconnectConfirm,a=n.disconnectCancel;t.forEach((function(t){t.addEventListener("click",(function(n){n.preventDefault(),e(".simpay-disconnect-confirm").dialog({resizable:!1,height:"auto",width:400,modal:!0,draggable:!1,open:function(){e(".ui-dialog-buttonset .ui-button").removeClass("ui-button").last().css({marginLeft:"10px"}).focus()},buttons:[{text:a,click:function(){e(this).dialog("close")},class:"button button-secondary"},{text:r,click:function(){window.location.href=t.href},class:"button button-primary"}]})}))}))}}Object(r.a)((function(){var e;(e=document.getElementById("simpay-stripe-account-info"))&&wp.ajax.send("simpay_stripe_connect_account_information",{data:{nonce:e.dataset.nonce},success:function(t){e.querySelector("p").innerHTML=t.message,e.style.display="block","simpay-stripe-activated-account-actions"===t.actions?e.classList.add("notice-info"):e.classList.add("notice-warning");var n=document.getElementById(t.actions);n&&(n.style.display="block"),i()},error:function(t){e.querySelector("p").innerHTML=t.message,e.style.display="block",e.classList.add("notice-error");var n=document.getElementById(t.actions);n&&(n.style.display="block",i())}})}))}).call(this,n(6))},,,function(e,t,n){"use strict";n.r(t),function(e){var t=n(9),r=n.n(t),a=n(8),i=(n(34),n(35),n(36),n(30));n(37),n(38),n(62),n(44),n(45),window.wpsp=window.wpsp||{hooks:a.b};var o,c,s,l=simpayAdmin,u=l.licenseLevel,d=l.i18n.trashFormConfirm,p={};p={init:function(){c=o(document.body),s=c.find("#simpay-form-settings"),this.handleMetaboxTabClick(),window.postboxes&&window.postboxes.handle_click&&s.on("click",".postbox .simpay-hndle, .postbox .simpay-handlediv",window.postboxes.handle_click),a.b.addAction("settings.toggleTestMode","wpsp/settings/stripe-connect",i.a),this.handleFormBuilderSettingToggles(),a.b.addAction("customFieldAdded","wpsp/payment-form",this.handleFormBuilderSettingToggles),o(document).on("click.simpayTabLink",".simpay-tab-link",(function(e){e.preventDefault(),p.handleInternalLinkToTabClicks(o(this))})),o(document).on("click.simpayImagePreview",".simpay-remove-image-preview",(function(e){p.handleRemoveImagePreviewClick(e)})),this.setupChosen(),this.addMediaFields(),this.stripeConnect(),this.initSortableFields(s.find(".simpay-custom-fields")),s.find(".add-field").on("click.simpayAddField",this.addField),s.find(".simpay-custom-fields").on("click",".simpay-remove-field-link",this.removeField);var e=o(".simpay-payment-modes");e.length&&e.find("input").each((function(){var t=o(this);e.hasClass("simpay-payment-mode--"+t.val())||t.attr("disabled",!0)})),this.bindTrashWarning(),c.trigger("simpayAdminInit"),o(".show-settings").detach().prependTo(".simpay-branding-bar__actions").removeClass().addClass("simpay-branding-bar__actions-button").html('').on("click",window.screenMeta.toggleEvent),this.onDedicatedPaymentPageToggle()},handleFormBuilderSettingToggles:function(){["_amount_type","_success_redirect_type","_subscription_type","_subscription_custom_amount","_form_type","_tax_status","_enable_payment_page","_inventory","_inventory_behavior","_schedule_start","_schedule_end",".simpay-total-amount-label-recurring",".simpay-total-amount-label-tax",".simpay-shipping-address",".simpay-text-multiline",".simpay-dropdown-type",".simpay-radio-type",".simpay-price-enable-custom",".simpay-price-type input",".simpay-email-link-enabled",".simpay-phone-smart-enabled"].forEach((function(e){var t=o(e),n=!1;"."!==e.substring(0,1)?t='[name="'.concat(e,'"]'):(t=e,n=!0),o("#simpay-form-settings").on("change",t,(function(){var t=o("#simpay-form-settings");!0===n&&(t=o(this).closest(".simpay-field-data"));var r=o(this).val();o(this).is(":checkbox")&&(r=o(this).is(":checked")?"yes":"no"),t.find(o('.simpay-show-if[data-if="'.concat(e,'"]'))).each((function(){var e=o(this),t=e.data("is");e.hide(),t.includes(r)&&e.show().css("display","block")}))})),o(t).filter(":checkbox").trigger("change"),o(t).filter(":checked").trigger("change"),o(t).is("select")&&o(t).trigger("change")}))},handleRemoveImagePreviewClick:function(e){e.preventDefault(),o(e.target).parents("td").find(".simpay-image-preview-wrap").val("").hide(),o(e.target).parents("td").find(".simpay-field-image-url").val(""),o(e.target).parents("td").find(".simpay-remove-image-preview").hide()},addMediaFields:function(){o(".simpay-media-uploader").on("click",(function(e){e.preventDefault();var t=wp.media.frames.file_frame=wp.media({title:simpayAdmin.i18n.mediaTitle,button:{text:simpayAdmin.i18n.mediaButtonText},multiple:!1}),n=o(this);t.on("select",(function(){var e=t.state().get("selection").first().toJSON(),r=n.parents("td").find(".simpay-field-image-url"),a="id"===r.data("fvalue")?e.id:e.url;n.parents("td").find(".simpay-image-preview-wrap").show(),n.parents("td").find(".simpay-remove-image-preview").show(),n.parents("td").find(".simpay-image-preview").prop("src",a),r.val(a)})),t.open()}))},setupChosen:function(){var e=o(".simpay-chosen-select, .simpay-chosen-search");e.chosen({disable_search_threshold:20}),e.chosen()},handleMetaboxTabClick:function(){var e=o('ul.simpay-tabs li:not([data-available="no"]) a'),t=o("div.simpay-panel"),n=e.parents("li");e.on("click",(function(e){e.preventDefault();var r=o(this).parent(),a=o(o(this).attr("href")),i=o(this).attr("href");history.pushState(null,null,i),setTimeout((function(){window.scrollTo(0,0)}),1),o('[name="simpay_form_settings_tab"]').val(i),o(".simpay-panels > .spinner").hide(),n.removeClass("active"),r.addClass("active"),t.addClass("simpay-panel-hidden"),a.removeClass("simpay-panel-hidden")}));var r="#form-display-options-settings-panel";location.hash.length&&(r=location.hash);var a=o('ul.simpay-tabs a[href="'+r+'"]');o('[name="simpay_form_settings_tab"]').val(r),a.length&&a.click()},stripeConnect:function(){var e="tr:nth-child(2), tr:nth-child(3), tr:nth-child(4), tr:nth-child(5)";o(".simpay-settings.stripe-account .form-table").find(e).hide(),o("#wpsp-api-keys-row-reveal button").on("click",(function(t){t.preventDefault(),o(".simpay-settings.stripe-account .form-table").find(e).show(),o("#wpsp-api-keys-row-hide").show(),o(this).parent().hide(),o(".wpsp-manual-key-warning").show()})),o("#wpsp-api-keys-row-hide button").on("click",(function(t){t.preventDefault(),o(".simpay-settings.stripe-account .form-table").find(e).hide(),o("#wpsp-api-keys-row-reveal").show(),o(this).parent().hide(),o(".wpsp-manual-key-warning").hide()}))},handleInternalLinkToTabClicks:function(e){var t=e.data("show-tab");c.find("."+t+"-tab a").click()},bindTrashWarning:function(){["plus","professional","elite","ultimate"].includes(u)&&(o(".post-type-simple-pay .submitdelete").click((function(e){confirm(d)||e.preventDefault()})),o(".post-type-simple-pay #posts-filter").submit((function(e){"trash"===o(this).find('select[name="action"]').val()&&(confirm(d)||e.preventDefault())})))},initSortableFields:function(e){e.sortable({items:".simpay-field-metabox:not(.simpay-custom-field-payment-button):not(.simpay-custom-field-checkout-button)",containment:"#simpay-form-settings",handle:".simpay-hndle",placeholder:"sortable-placeholder",cursor:"move",delay:o(document.body).hasClass("mobile")?200:0,distance:2,tolerance:"pointer",forcePlaceholderSize:!0,opacity:.65,stop:function(e,t){p.orderFields()},helper:function(e,t){return t.clone().find(":input").attr("name",(function(e,t){return"sort_"+parseInt(1e5*Math.random(),10).toString()+"_"+t})).end()}})},addField:function(e){var t=s.find(".simpay-custom-fields .simpay-field-metabox").length,n=o("#simpay-custom-fields-wrap").find(".simpay-metaboxes"),i=s.find("#custom-field-select"),c=i.val(),l=r()(document.querySelectorAll(".field-uid")).map((function(e){return parseInt(e.value)})),u={action:"simpay_add_field",post_id:o("#post_ID").val(),fieldType:c,counter:parseInt(t)+1,nextUid:parseInt(_.max(l))+1,addFieldNonce:s.find("#simpay_custom_fields_nonce").val()};e.preventDefault(),s.find(".postbox").each((function(){o(this).is(":visible")&&o(this).addClass("closed")})),o.ajax({url:ajaxurl,method:"POST",data:u,success:function(e){var t=o("").append(e);["payment_button","checkout_button"].includes(c)?n.append(t.html()):n.prepend(t.html()),i.prop("selectedIndex",0),p.orderFields(),a.b.doAction("customFieldAdded",e)},error:function(e){window.spShared.debugLog(e)}})},removeField:function(e){if(e.preventDefault(),s.find("#custom-field-select"),window.confirm("Are you sure you want to remove this field?")){var t=o(this).closest(".simpay-field-metabox");t.data("type"),t.remove(),a.b.doAction("customFieldRemoved")}},orderFields:function(){o(".simpay-custom-fields .simpay-field-metabox").each((function(e,t){var n=parseInt(o(t).index(".simpay-custom-fields .simpay-field-metabox"));o(".field-order",t).val(n+1)}))},onDedicatedPaymentPageToggle:function(){var e=document.getElementById("_enable_payment_page"),t=document.getElementById("simpay-payment-url-shortcode-section");if(e&&t){var n=function(){e.checked?t.style.display="block":t.style.display="none"};n(),e.addEventListener("change",n)}}},(o=e)(document).ready((function(e){p.init()}))}.call(this,n(6))},function(e,t,n){"use strict";var r=n(9),a=n.n(r),i=n(0),o=simpayAdminSettingToggles||[];function c(e){var t=e.id,n=document.querySelector(".simpay-settings-".concat(t));if(!n)return{};var r=n.querySelectorAll('input[name="simpay_settings['.concat(t,']"]'));0===r.length&&(r=n.querySelectorAll('select[name="'.concat(t,'"]')));var i=r[0].value;if(["radio","checkbox"].includes(r[0].type)){var o=a()(r).filter((function(e){return e.checked}));i=0===o.length?"no":o[0].value}return{setting:r,currentValue:i}}function s(e){var t=e.id,n=e.value,r=e.toggles,a=e.compare;if("none"!==document.querySelector(".simpay-settings-".concat(t)).style.display){var i=c(e).currentValue;r.map((function(e){return document.querySelector(".simpay-settings-".concat(e))})).forEach((function(e){e&&(e.style.display="IS NOT"===a?i===n?"none":"table-row":i===n?"table-row":"none")})),r.forEach((function(e){var t=_.find(o,{id:e});t&&s(t)}))}}Object(i.a)((function(){o.forEach((function(e){s(e),c(e).setting.forEach((function(t){t.addEventListener("change",(function(){s(e)}))}))}))}))},function(e,t,n){"use strict";var r=n(0);Object(r.a)((function(){var e=window.wpsp.hooks,t=document.querySelectorAll('[name="simpay_settings[test_mode]"]');if(0!==t.length){var n="enabled"===document.querySelector('[name="simpay_settings[test_mode]"]:checked').value?"test":"live";e.doAction("settings.toggleTestMode",n,n),_.each(t,(function(t){return t.addEventListener("change",(function(t){var r="enabled"===t.target.value?"test":"live";e.doAction("settings.toggleTestMode",r,n)}))}))}}))},function(e,t,n){"use strict";var r=n(0);function a(e){var t=document.getElementById("simpay-connect-license-feedback"),n=document.getElementById("simpay-connect-license-submit");e.message?(t.innerText=e.message,t.classList.remove("simpay-license-message--valid"),t.classList.add("simpay-license-message--invalid"),t.style.display="block"):t.style.display="none",e.reload?setTimeout((function(){window.location.reload()}),2e3):(n.disabled=!1,n.innerText=n.dataset.connect)}function i(e){var t=document.getElementById("simpay-connect-license-feedback");e.message?(t.innerText=e.message,t.classList.remove("simpay-license-message--invalid"),t.classList.add("simpay-license-message--valid"),t.style.display="block"):t.style.display="none",e.reload?setTimeout((function(){window.location.reload()}),2e3):window.location=e.url}function o(){var e=document.getElementById("simpay-connect-license-key"),t=document.getElementById("simpay-connect-license-nonce"),n=document.getElementById("simpay-connect-license-submit");n.disabled=!0,n.innerText=n.dataset.connecting,wp.ajax.send("simpay_get_connect_url",{data:{nonce:t.value,key:e.value},success:i,error:a})}Object(r.a)((function(){var e=document.getElementById("simpay-connect-license-key");if(e){var t=document.getElementById("simpay-connect-license-submit");e.addEventListener("keypress",(function(e){"Enter"===e.key&&(e.preventDefault(),o())})),t.addEventListener("click",(function(e){e.preventDefault(),t.disabled=!0,o()}))}}))},function(e,t,n){"use strict";var r=n(0),a=[".simpay-settings-hcaptcha_setup",".simpay-settings-hcaptcha_site_key",".simpay-settings-hcaptcha_secret_key",".simpay-settings-recaptcha_setup",".simpay-settings-recaptcha_site_key",".simpay-settings-recaptcha_secret_key",".simpay-settings-recaptcha_score_threshold",".simpay-settings-cloudflare_turnstile_setup",".simpay-settings-cloudflare_turnstile_site_key",".simpay-settings-cloudflare_turnstile_secret_key",".simpay-settings-no_captcha_warning"];function i(e){var t,n=e.target.value;switch(n){case"none":t="no_captcha";break;case"recaptcha-v3":t="recaptcha";break;case"cloudflare-turnstile":t="cloudflare_turnstile";break;default:t=n}a.forEach((function(e){var n=document.querySelector(e);n&&(n.style.display=e.includes(t)?"table-row":"none")}))}Object(r.a)((function(){var e=document.querySelectorAll('input[name="simpay_settings[captcha_type]"]');if(0!==e.length){a.forEach((function(e){var t=document.querySelector(e);t&&(t.style.display="none")})),e.forEach((function(e){return e.addEventListener("change",i)}));var t=document.querySelector('input[name="simpay_settings[captcha_type]"]:checked');t&&t.dispatchEvent(new Event("change")),function(){var e=document.querySelector(".simpay-recaptcha-feedback");if(e){var t=simpayGoogleRecaptcha,n=t.siteKey,r=t.i18n;""!==n&&grecaptcha.ready((function(){var e=document.querySelector(".grecaptcha-badge");e&&(e.style.display="none");try{grecaptcha.execute(n,{action:"simple_pay_admin_test"}).then((function(e){wp.ajax.send("simpay_validate_recaptcha_source",{data:{token:e,recaptcha_action:"simple_pay_admin_test"},error:a})})).catch(a)}catch(e){a()}}))}function a(){e.style.display="block",e.classList.add("notice-error"),e.innerHTML="";var t=document.createElement("p");t.innerText=r.invalid,e.appendChild(t)}}()}}))},function(e,t,n){"use strict";var r=n(0),a=n(3);Object(r.a)((function(){var e=document.querySelector(".simpay-settings-emails-configure");e&&(document.querySelector(".simpay-settings-subsection-delivery").after(e),function(e){var t=e.querySelector("select");t&&t.addEventListener("change",(function(e){var n=e.target,r=n.options[n.selectedIndex].dataset,i=r.available,o=r.upgradeTitle,c=r.upgradeDescription,s=r.upgradeUrl,l=r.upgradePurchasedUrl;"no"===i&&(Object(a.upgradeModal)({title:o,description:c,url:s,purchasedUrl:l}),t.value="",t.selectedIndex=0)}))}(e))}))},function(e,t,n){"use strict";(function(e){var t=n(4),r=n.n(t),a=n(0),i=n(3);Object(a.a)((function(){var t,n,a,o,c=document.querySelector(".post-type-simple-pay #post");if(c){var s=r()(c,{hash:!0});delete s.simpay_form_settings_tab,function(t){function n(e){var n=r()(document.querySelector(".post-type-simple-pay form#post"),{hash:!0});if(delete n.simpay_form_settings_tab,delete n.simpay_save_preview,JSON.stringify(n)!==t)return e.preventDefault(),simpayAdmin.i18n.leavePageConfirm}window.addEventListener("beforeunload",n),window.onbeforeunload=n,e(".post-type-simple-pay form#post").off("submit").on("submit",(function(){window.removeEventListener("beforeunload",n),window.onbeforeunload=null}))}(JSON.stringify(s)),a=document.getElementById("form-type-select"),o=document.getElementById("is-overlay"),a.addEventListener("change",(function(e){var t=e.target,n=t.options[t.selectedIndex],r=n.value;"on-site"===r&&Object(i.maybeBlockSelectWithUpgradeModal)(e),"off-site"===r&&(o.querySelector("input").checked=!1),o.style.display="yes"===n.dataset.available&&"on-site"===r?"block":"none"})),(n=document.getElementById("_recaptcha"))&&n.addEventListener("change",(function(e){e.preventDefault(),e.target.checked=!e.target.checked,window.open(e.target.dataset.settingsUrl,"_blank")})),function(){var e=document.getElementById("_email_verification");e&&e.addEventListener("change",(function(e){e.preventDefault(),e.target.checked=!e.target.checked,window.open(e.target.dataset.settingsUrl,"_blank")}))}(),(t=document.querySelector("#_company_name"))&&(t.addEventListener("blur",(function(){0===t.value.length?(t.nextElementSibling.classList.remove("hidden"),t.value=simpayAdmin.siteTitle):t.nextElementSibling.classList.add("hidden")})),t.addEventListener("focus",(function(){0!==t.value.length&&t.nextElementSibling.classList.add("hidden")})))}}))}).call(this,n(6))},function(e,t,n){"use strict";(function(e,t){var r=n(9),a=n.n(r),i=n(0),o=n(8),c=n(3),s=n(14);function l(){var e=document.querySelector(".simpay-custom-field-plan-select"),t=document.getElementById("simpay-prices");if(e&&t){var n=t.querySelectorAll(".simpay-price").length,r=document.querySelector("#_allow_purchasing_multiple_line_items");if(r&&r.checked){var i=document.querySelectorAll('input.simpay-price-enable-optional-subscription[type="checkbox"]'),o=document.querySelectorAll('.simpay-quantity-toggle input.simpay-price-quantity[type="checkbox"]'),c=document.querySelectorAll(".simpay-price-enable-custom-amount");[].concat(a()(i),a()(o),a()(c)).some((function(e){return e.checked}))?e.style.display="block":e.style.display=n>1?"block":"none"}else e.style.display=n>1?"block":"none"}}function u(){var e=document.getElementById("simpay-prices");if(e){var t=e.querySelectorAll(".simpay-price").length;document.querySelectorAll(".simpay-price-label-default").forEach((function(e){return e.style.display=t>1?"none":"block"})),document.querySelectorAll(".simpay-price-label-display").forEach((function(e){return e.style.display=t>1?"block":"none"})),document.querySelectorAll(".simpay-price-option-label").forEach((function(e){if(t>1)e.style.display="block";else{var n=e.querySelector("input");n&&""!==n.value.trim()?e.style.display="block":e.style.display="none"}})),document.querySelectorAll(".simpay-price-default-check").forEach((function(e){return e.style.display=t>1?"block":"none"})),l()}}function d(e){var t,n=e.querySelector(".simpay-price-label-display"),r=e.querySelector(".simpay-price-label"),a=simpayAdmin,i=a.currencyPosition,c=a.i18n,s=c.recurringIntervals,l=c.recurringIntervalDisplay,u=c.customAmountLabel;if(""!==r.value)t=r.value;else{var d=e.querySelector(".simpay-price-currency"),p=e.querySelector(".simpay-price-amount"),m=e.querySelector(".simpay-price-amount-type"),f=e.querySelector(".simpay-price-custom-amount input"),y=e.querySelector(".simpay-price-enable-custom-amount"),h=d.options[d.selectedIndex].dataset.symbol;switch(t=!0===y.checked?f.value:p.value,i){case"left":t="".concat(h).concat(t);break;case"left_space":t="".concat(h," ").concat(t);break;case"right":t="".concat(t).concat(h);break;case"right_space":t="".concat(t," ").concat(h)}if(!0===y.checked&&(t=u.replace("%s",t)),"recurring"===m.value){var v=e.querySelector(".simpay-price-recurring-interval"),g=e.querySelector(".simpay-price-recurring-interval-count");if(!v||!g)return;var b=s[v.options[v.selectedIndex].value];t=l.replace("%1$s",t).replace("%2$s",g.value).replace("%3$s","1"===g.value?b[0]:b[1])}}n.innerHTML=t,Object(o.c)("simpayFormBuilderPriceOptionLabelUpdated",t,e)}function p(e,t){var n=t.dataset.amountType,r=e.querySelector(".simpay-price-can-recur-label"),a=e.querySelector(".simpay-price-enable-optional-subscription"),i=e.querySelector(".simpay-false-recurring-checkbox");if("recurring"===n){var o=simpayAdmin.i18n.priceRecurring;a.checked&&(o=simpayAdmin.i18n.priceOptionalRecurring),r.innerHTML=o,a.style.display="none",i.style.display="",a.checked=!1}else r.innerHTML=simpayAdmin.i18n.priceOptionalRecurring,a.style.display="",i.style.display="none"}function m(e){var t=e.querySelector(".simpay-price-recurring-interval"),n=e.querySelector(".simpay-price-recurring-interval-count");if(t&&n){var r=parseInt(n.value);switch(t.options[t.selectedIndex].value){case"day":r>365&&(n.value=365);break;case"week":r>52&&(n.value=52);break;case"month":r>12&&(n.value=12);break;case"year":r>1&&(n.value=1)}var i=JSON.parse(t.dataset.intervals);a()(t.options).forEach((function(e,r){var a=e.value;t.options[r].text=1===parseInt(n.value)?i[a][0]:i[a][1]}))}}function f(){document.querySelectorAll(".simpay-price").forEach((function(e){e.querySelector(".simpay-price-label").addEventListener("keyup",(function(){return d(e)})),d(e),e.querySelector(".simpay-price-currency").addEventListener("change",(function(){!function(e){var t=e.querySelector(".simpay-price-currency"),n=t.options[t.selectedIndex].dataset.symbol;e.querySelectorAll(".simpay-price-currency-symbol").forEach((function(e){return e.innerText=n}))}(e),d(e)}));var n=e.querySelectorAll(".simpay-price-amount-type .button");n.length>0&&n.forEach((function(t){t.classList.contains("button-primary")&&p(e,t),t.addEventListener("click",(function(t){t.preventDefault();var n=t.target.dataset,r=n.available,a=n.upgradeTitle,i=n.upgradeDescription,o=n.upgradeUrl,l=n.upgradePurchasedUrl;"no"===r?Object(c.upgradeModal)({title:a,description:i,url:o,purchasedUrl:l}):(function(e,t){e.querySelectorAll(".simpay-price-amount-type .button").forEach((function(e){return e.classList.remove("button-primary")}));var n=t.dataset.amountType;t.classList.add("button-primary"),p(e,t),Object(s.c)(e),e.querySelector(".simpay-price-amount-type").value=n}(e,t.target),d(e))}))})),e.querySelector(".simpay-price-amount").addEventListener("keyup",(function(){return d(e)}));var r=e.querySelector(".simpay-price-enable-optional-subscription");r&&r.addEventListener("click",(function(t){var n=t.target,r=n.dataset,a=r.available,i=r.upgradeTitle,o=r.upgradeDescription,u=r.upgradeUrl,p=r.upgradePurchasedUrl;"no"===a?(n.checked=!1,t.preventDefault(),Object(c.upgradeModal)({title:i,description:o,url:u,purchasedUrl:p})):(d(e),l(),Object(s.c)(e))})),e.querySelector(".simpay-price-enable-custom-amount").addEventListener("change",(function(){d(e),l()}));var a=e.querySelector(".simpay-price-recurring-interval"),i=e.querySelector(".simpay-price-recurring-interval-count");a&&i&&(a.addEventListener("change",(function(){d(e),m(e)})),m(e),i.addEventListener("keyup",(function(){m(e),d(e)})),i.addEventListener("change",(function(){m(e),d(e)})));var f=e.querySelector(".simpay-price-legacy-setting-toggle");f&&f.addEventListener("click",(function(t){t.preventDefault(),function(e){e.querySelectorAll(".simpay-price-legacy-setting").forEach((function(e){return e.style.display="block"===e.style.display?"none":"block"}))}(e)})),e.querySelector(".simpay-price-default").addEventListener("change",(function(){return function(e){document.querySelectorAll(".simpay-price-default").forEach((function(e){return e.checked=!1})),e.querySelector(".simpay-price-default").checked=!0}(e)})),e.querySelector(".simpay-price-remove").addEventListener("click",(function(t){t.preventDefault(),function(e){e.remove(),y(),u(),Object(o.c)("simpayFormBuilderPriceRemoved",e.id)}(e)})),e.querySelectorAll(".simpay-price-configure-btn").forEach((function(e){var n=e.classList.contains("simpay-price-locked");e.addEventListener("click",(function(r){if(r.preventDefault(),!n){var a,i,o=e.getAttribute("data-target-id");a=e.getAttribute("data-dialog-title"),(i=t("#".concat(o))).dialog({title:a,position:{my:"center",at:"center",of:window},modal:!0,width:500,resizable:!1,draggable:!1,appendTo:i.parent().parent(),open:function(e){var n=this;t(e.target).find(".update, .simpay-tab-link").on("click",(function(e){e.preventDefault(),t(n).dialog("close")}))},create:function(){t(".ui-dialog-titlebar-close").addClass("ui-button")}}),t("#".concat(o)).dialog("open")}}))}));var h=e.querySelector('.simpay-quantity-toggle input.simpay-price-quantity[type="checkbox"]');h&&h.addEventListener("change",(function(){l()}))})),u(),l()}function y(){var e=document.querySelectorAll(".simpay-price");document.querySelector(".simpay-price-default:checked")||(e[0].querySelector(".simpay-price-default").checked=!0)}Object(i.a)((function(){var t,n,r,a,i,l,d;e(".simpay-prices").sortable({items:".simpay-field-metabox",containment:"#simpay-prices",handle:".simpay-hndle",placeholder:"sortable-placeholder",cursor:"move",delay:e(document.body).hasClass("mobile")?200:0,distance:2,tolerance:"pointer",forcePlaceholderSize:!0,opacity:.65,helper:function(e,t){return t.clone().find(":input").attr("name",(function(e,t){return"sort_"+parseInt(1e5*Math.random(),10).toString()+"_"+t})).end()}}),f(),t=document.getElementById("simpay-prices-advanced-toggle"),n=document.getElementById("simpay-prices-advanced"),t&&n&&t.addEventListener("click",(function(e){e.preventDefault(),n.style.display="block"===n.style.display?"none":"block"})),(d=document.getElementById("simpay-prices-advanced-add"))&&d.addEventListener("click",(function(t){var n,r,a,i,o,c;t.preventDefault(),a=(r=(n=d).dataset).nonce,i=r.formId,o=document.getElementById("simpay-prices"),c=document.getElementById("simpay-prices-advanced-plan-id"),n.classList.add("disabled"),wp.ajax.send("simpay_add_plan",{data:{_wpnonce:a,form_id:i,plan_id:c.value},success:function(t){e(o).append(t),f(),document.getElementById("simpay-prices-advanced").style.display="none",c.value="",n.classList.remove("disabled"),u()},error:function(e){var t=e.message;window.alert(t),n.classList.remove("disabled")}})})),function(){var t=document.getElementById("simpay-add-price");t&&t.addEventListener("click",(function(n){var r,a,i,c,l;n.preventDefault(),i=(a=(r=t).dataset).nonce,c=a.formId,l=document.getElementById("simpay-prices"),r.classList.add("disabled"),wp.ajax.send("simpay_add_price",{data:{_wpnonce:i,form_id:c},success:function(t){e(l).append(t),f(),y(),r.classList.remove("disabled"),u(),Object(s.a)(),Object(o.c)("simpayFormBuilderPriceAdded",t)},error:function(e){var t=e.message;window.alert(t),r.classList.remove("disabled")}})}))}(),(r=document.getElementById("simpay-add-price-lite"))&&r.addEventListener("click",c.maybeBlockButtonWithUpgradeModal),(a=document.getElementById("simpay-amount-type-lite"))&&a.addEventListener("click",c.maybeBlockButtonWithUpgradeModal),(i=document.getElementById("simpay-can-recur-lite"))&&i.addEventListener("click",c.maybeBlockButtonWithUpgradeModal),(l=document.getElementById("simpay-custom-lite"))&&l.addEventListener("click",c.maybeBlockButtonWithUpgradeModal)}))}).call(this,n(6),n(6))},function(e,t,n){"use strict";(function(e){var t=n(0),r=n(3);Object(t.a)((function(){var t;document.querySelector(".post-type-simple-pay #post")&&(t=e("#simpay-form-settings").find("#lite-add-field"))&&t.on("click.simpayAddField",(function(e){var t=e,n=document.querySelectorAll(".simpay-custom-fields > div").length;t.target.dataset.available=n>=3?"no":"yes",Object(r.maybeBlockButtonWithUpgradeModal)(t)&&e.stopImmediatePropagation()}))}))}).call(this,n(6))},function(e,t,n){"use strict";(function(e){var t=n(0),r=n(3);Object(t.a)((function(){var t,n,a;(t=document.querySelector('[name="_enable_payment_page"]'))&&t.addEventListener("change",r.maybeBlockCheckboxWithUpgradeModal),(n=document.querySelector('[name="_payment_page_powered_by"]'))&&n.addEventListener("change",r.maybeBlockCheckboxWithUpgradeModal),function(){if(document.getElementById("payment-page-background-color-custom")){e("#payment-page-background-color-custom").wpColorPicker();var t=document.querySelector(".simpay-payment-page-background-color .wp-color-result"),n=document.querySelectorAll(".simpay-payment-page-background-color");t.addEventListener("click",(function(t){n.forEach((function(e){e.querySelector("input").checked=!1})),t.target.classList.add("is-selected"),e(t.target).parent().find("input").prop("checked",!0)})),n.forEach((function(e){e.querySelector("input").addEventListener("change",(function(){t.classList.remove("is-selected")}))}))}}(),(a=document.querySelector('[name="_payment_page_slug"]'))&&a.addEventListener("keyup",(function(e){var t=document.querySelector(".simpay-payment-page-url");t&&(t.dataset.clipboardText="".concat(window.location.origin,"/").concat(e.target.value))}))}))}).call(this,n(6))},function(e,t,n){"use strict";(function(e){var t=n(0);function r(){var e=document.getElementById("_confirmation_page_use_payment_page_config"),t=document.getElementById("simpay-dedicated-confimration-page-customization-options"),n=document.getElementById("_enable_payment_page"),r=document.getElementsByName("_success_redirect_type"),a=!1;r.forEach((function(e){"dedicated"===e.value&&e.checked&&(a=!0)})),setTimeout((function(){n.checked&&e.checked&&a?t.classList.add("simpay-panel-hidden"):t.classList.remove("simpay-panel-hidden")}),100)}Object(t.a)((function(){!function(){if(document.getElementById("confirmation-page-background-color-custom")){e("#confirmation-page-background-color-custom").wpColorPicker();var t=document.querySelector(".simpay-payment-page-background-color .wp-color-result"),n=document.querySelectorAll(".simpay-payment-page-background-color");t.addEventListener("click",(function(t){n.forEach((function(e){e.querySelector("input").checked=!1})),t.target.classList.add("is-selected"),e(t.target).parent().find("input").prop("checked",!0)})),n.forEach((function(e){e.querySelector("input").addEventListener("change",(function(){t.classList.remove("is-selected")}))}))}}(),function(){var e=document.getElementById("_enable_payment_page");if(e){var t=function(){var t=document.getElementById("_confirmation_page_use_payment_page_config_wrapper");if(t){var n=document.getElementById("simpay-dedicated-confimration-page-customization-options");e.checked?(t.style.display="",r()):setTimeout((function(){t.style.display="none",n.classList.remove("simpay-panel-hidden"),r()}),100)}};t(),e.addEventListener("change",t),document.getElementById("_confirmation_page_use_payment_page_config").addEventListener("change",(function(){r()})),r()}}()}))}).call(this,n(6))},function(e,t,n){"use strict";(function(e){var t=n(7),r=n.n(t),a=n(0),i='',o='',c=simpayAdmin,s=c.nonce,l=c.ajaxUrl,u=c.i18n,d=u.addonActivated,p=u.addonActivate,m=u.addonActive,f=u.addonDeactivate,y=u.addonInactive,h=u.addonInstall,v=u.addonError,g=u.pluginError;function b(t){t.preventDefault();var n,a,c,u,b,_,k=e(t.target);if(k.hasClass("status-go-to-url"))window.open(k.attr("data-plugin"),"_blank");else{var w=k.attr("data-type");if(k.prop("disabled",!0).addClass("loading"),k.html(''),k.hasClass("status-active"))n="deactivate",a="status-installed","plugin"===w&&(a+=" button button-secondary"),c=y,u=p,b=f,"addon"===w&&(u=i+u,b=o+b);else if(k.hasClass("status-installed"))n="activate",a="status-active","plugin"===w&&(a+=" button button-secondary disabled"),c=m,u=f,"addon"===w?(u=o+u,b=i+p):"plugin"===w&&(u=d,b=p);else{if(!k.hasClass("status-missing"))return;n="install",a="status-active","plugin"===w&&(a+=" button disabled"),c=m,u=d,b='',"addon"===w&&(u=i+f,b+=h)}var E=k.closest(".simpay-addon");!function(t,n,r,a){var i={activate:"simpay_activate_addon",install:"simpay_install_addon",deactivate:"simpay_deactivate_addon"}[n];if(i){var o={action:i,nonce:s,plugin:t,type:r};e.post(l,o,a).fail((function(e){console.log(e.responseText)}))}}(k.attr("data-plugin"),n,w,(function(e){e.success?("install"===n?(k.attr("data-plugin",e.data.basename),_=e.data.msg,e.data.is_activated||(c=y,u="plugin"===w?p:i+p,a="plugin"===w?"status-installed button button-secondary":"status-installed")):_=e.data,E.find(".simpay-addon__actions").append(''+_+"
"),E.find("span.status-label").removeClass("status-active status-installed status-missing").addClass(a).removeClass("button button-primary button-secondary disabled").text(c),k.removeClass("status-active status-installed status-missing").removeClass("button button-primary button-secondary disabled").addClass(a).html(u)):("object"===r()(e.data)?"addon"===w?E.find(".simpay-addon__actions").append(''+v+"
"):E.find(".simpay-addon__actions").append(''+g+"
"):E.find(".simpay-addon__actions").append(''+e.data+"
"),"install"===n&&"plugin"===w&&k.addClass("status-go-to-url").removeClass("status-missing"),k.html(b)),k.prop("disabled",!1).removeClass("loading"),setTimeout((function(){E.find(".msg").remove()}),3e3)}))}}Object(a.a)((function(){document.querySelector(".simpay-addons")&&document.querySelectorAll(".simpay-addon").forEach((function(e){e.querySelector("button").addEventListener("click",b)}))}))}).call(this,n(6))},function(e,t,n){"use strict";var r=n(0);Object(r.a)((function(){var e=new ClipboardJS(".simpay-copy-button");e.on("success",(function(t){var n=t.trigger,r=n.dataset.copied,a=n.innerHTML;clearTimeout(i),n.innerHTML=r,n.classList.contains("button-secondary")&&(n.style.color="green",n.style.borderColor="green"),t.clearSelection();var i=setTimeout((function(){n.innerHTML=a,n.classList.contains("button-secondary")&&(n.style.color="",n.style.borderColor=""),e.clipboardAction.fakeElem&&e.clipboardAction.removeFake&&e.clipboardAction.removeFake()}),3e3);wp.a11y.speak(r)}))}))},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n(39),n(40);var r=n(9),a=n.n(r),i=n(0),o=n(3),c=n(14);function s(e){var t=e.target,n=t.options[t.selectedIndex].value,r=document.getElementById("_allow_purchasing_multiple_line_items"),i=document.querySelectorAll(".simpay-panel-field-payment-method[data-payment-method]");a()(i).forEach((function(e){var t="popular"===JSON.parse(e.dataset.paymentMethod).scope?"block":"none";e.style.display="all"===n?"block":t,Object(c.b)(r)}))}Object(i.a)((function(){var e=document.querySelectorAll(".simpay-panel-field-payment-method-filter");0!==e.length&&a()(e).forEach((function(e){e.addEventListener("change",s)}));var t=document.querySelectorAll(".simpay-payment-method-lite");t&&t.forEach((function(e){return e.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal)}));var n=document.querySelectorAll(".simpay-payment-method-fee-recovery-lite");n&&n.forEach((function(e){return e.addEventListener("click",o.maybeBlockButtonWithUpgradeModal)}))})),Object(i.a)((function(){var e=document.getElementById("_tax_status_lite");e&&e.addEventListener("change",o.maybeBlockSelectWithUpgradeModal)})),n(41),Object(i.a)((function(){var e,t;(e=document.getElementById("_enable_tax_id"))&&e.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal),(t=document.getElementById("_enable_promotion_codes"))&&t.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal)})),n(42),Object(i.a)((function(){var e=document.getElementById("_inventory");e&&e.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal);var t=document.getElementById("_inventory_behavior_individual");t&&t.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal);var n=document.getElementById("_schedule_start");n&&n.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal);var r=document.getElementById("_schedule_end");r&&r.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal)})),Object(i.a)((function(){var e=document.getElementById("automations-search");if(e){var t=document.querySelectorAll(".simpay-form-builder-automator__integrations-integration");e.addEventListener("input",(function(){var n=e.value.toLowerCase();t.forEach((function(e){for(var t=Object.values(e.dataset),r=0;r array('wp-block-editor', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-primitives'), 'version' => '00172db84ef1041569d965faeaaa8efb');
\ No newline at end of file
+ array('wp-block-editor', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-primitives'), 'version' => 'ddb98e1f2550fd026d0dd257d2d39359');
\ No newline at end of file
diff --git a/includes/core/assets/js/dist/simpay-public-shared.js b/includes/core/assets/js/dist/simpay-public-shared.js
index fc2d12d3..edafd65a 100644
--- a/includes/core/assets/js/dist/simpay-public-shared.js
+++ b/includes/core/assets/js/dist/simpay-public-shared.js
@@ -1 +1 @@
-!function(e){var n={};function r(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=n,r.d=function(e,n,t){r.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,n){if(1&n&&(e=r(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(r.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)r.d(t,o,function(n){return e[n]}.bind(null,o));return t},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.p="",r(r.s=52)}({52:function(e,n,r){(function(e){!function(e){"use strict";window.spShared={init:function(){e(document.body)},unformatCurrency:function(e){return Math.abs(accounting.unformat(e,spGeneral.strings.decimalSeparator))},formatCurrency:function(e,n,r,t){var o,a=n||!1,i=r||spGeneral.strings.currencySymbol,u=t||!1,s="%s%v";if(a)switch(spGeneral.strings.currencyPosition){case"left_space":s="%s %v";break;case"right":s="%v%s";break;case"right_space":s="%v %s"}return o={symbol:a?i:"",decimal:spGeneral.strings.decimalSeparator,thousand:spGeneral.strings.thousandSeparator,precision:u?0:spGeneral.integers.decimalPlaces,format:s},accounting.formatMoney(e,o)},convertToDollars:function(e){return spGeneral.booleans.isZeroDecimal||(e=accounting.toFixed(e/100,2)),e},convertToCents:function(e){return spGeneral.booleans.isZeroDecimal||(e=Number(accounting.toFixed(100*e,0))),e},validateAndUpdateAmountInput:function(e){var n=e.val(),r=Math.abs(spGeneral.integers.minAmount);n=spShared.unformatCurrency(n),e.hasClass("simpay-allow-blank-amount")&&0===n?e.val(""):(e.hasClass("simpay-minimum-amount-required")&&n1&&void 0!==arguments[1]&&arguments[1];e.formId=parseInt(e.dataset.simpayFormId),n||(n=t[e.formId]),(e=Object.assign(e,n)).addEventListener("submit",r)}window.document.addEventListener("DOMContentLoaded",(function(){var e=document.querySelectorAll(".simpay-checkout-form");0!==e.length&&e.forEach((function(e){o(e)}))})),window.wpsp={initPaymentForm:o}}});
\ No newline at end of file
+!function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=53)}({53:function(e,n){var t=window.simplePayForms;function r(e){e.preventDefault();var n=e.target,t=n.formId,r=n.i18n,o=n.querySelector(".simpay-payment-btn"),i=o.querySelector("span"),a=o.innerHTML;o.disabled=!0,i.innerText=r.paymentButtonLoadingText;var u=n.querySelector(".simpay-errors");u.innerHTML="",function(e){if(window.simpayGoogleRecaptcha){var n=window.simpayGoogleRecaptcha.siteKey;return new Promise((function(e){grecaptcha.execute(n,{action:"simpay_payment"}).then((function(n){return e(n)})).catch((function(){return e(null)}))}))}var t=e.querySelector('[name="h-captcha-response"]');if(t)return Promise.resolve(t.value);var r=e.querySelector('[name="cf-turnstile-response"]');return r?Promise.resolve(r.value):Promise.resolve(null)}(n).then((function(e){return window.wp.apiFetch({path:"wpsp/__internal__/payment/create",method:"POST",data:{token:e,form_id:t,price_id:Object.values(n.settings.prices)[0].id,quantity:1}}).then((function(e){var n=e.redirect;window.location.href=n}))})).catch((function(e){var n=e.message;o.disabled=!1,u.innerHTML=n,o.innerHTML=a,wp.a11y.speak(n,"assertive")}))}function o(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.formId=parseInt(e.dataset.simpayFormId),n||(n=t[e.formId]),(e=Object.assign(e,n)).addEventListener("submit",r)}window.document.addEventListener("DOMContentLoaded",(function(){var e=document.querySelectorAll(".simpay-checkout-form");0!==e.length&&e.forEach((function(e){o(e)}))})),window.wpsp={initPaymentForm:o}}});
\ No newline at end of file
diff --git a/includes/core/assets/js/dist/simpay-public.js b/includes/core/assets/js/dist/simpay-public.js
index ed91f621..b73c494c 100644
--- a/includes/core/assets/js/dist/simpay-public.js
+++ b/includes/core/assets/js/dist/simpay-public.js
@@ -1 +1 @@
-!function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=47)}([,function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return u}));var n=r(10),i=r.n(n),o=r(5),a=r.n(o);function u(_x,t){return c.apply(this,arguments)}function c(){return(c=i()(a.a.mark((function e(r,n){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.ajax({data:n,method:"POST",url:"".concat(wpApiSettings.root,"wpsp/").concat(r),beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",wpApiSettings.nonce)}});case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),e.t0.responseJSON;case 10:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}}).call(this,r(7))},function(t,e,r){var n=r(19);t.exports=function(t,e,r){return(e=n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports},,function(t,e){var r=/^(?:submit|button|image|reset|file)$/i,n=/^(?:input|select|textarea|keygen)/i,i=/(\[[^\[\]]*\])/g;function o(t,e,r){if(e.match(i))!function t(e,r,n){if(0===r.length)return n;var i=r.shift(),o=i.match(/^\[(.+?)\]$/);if("[]"===i)return e=e||[],Array.isArray(e)?e.push(t(null,r,n)):(e._values=e._values||[],e._values.push(t(null,r,n))),e;if(o){var a=o[1],u=+a;isNaN(u)?(e=e||{})[a]=t(e[a],r,n):(e=e||[])[u]=t(e[u],r,n)}else e[i]=t(e[i],r,n);return e}(t,function(t){var e=[],r=new RegExp(i),n=/^([^\[\]]*)/.exec(t);for(n[1]&&e.push(n[1]);null!==(n=r.exec(t));)e.push(n[1]);return e}(e),r);else{var n=t[e];n?(Array.isArray(n)||(t[e]=[n]),t[e].push(r)):t[e]=r}return t}function a(t,e,r){return r=r.replace(/(\r)?\n/g,"\r\n"),r=(r=encodeURIComponent(r)).replace(/%20/g,"+"),t+(t?"&":"")+encodeURIComponent(e)+"="+r}t.exports=function(t,e){"object"!=typeof e?e={hash:!!e}:void 0===e.hash&&(e.hash=!0);for(var i=e.hash?{}:"",u=e.serializer||(e.hash?o:a),c=t&&t.elements?t.elements:[],s=Object.create(null),l=0;l3&&void 0!==arguments[3]?arguments[3]:10;if(i(e)&&n(r))if("function"==typeof o)if("number"==typeof a){var u={callback:o,priority:a,namespace:r};if(t[e]){var c,s=t[e].handlers;for(c=s.length;c>0&&!(a>=s[c-1].priority);c--);c===s.length?s[c]=u:s.splice(c,0,u),(t.__current||[]).forEach((function(t){t.name===e&&t.currentIndex>=c&&t.currentIndex++}))}else t[e]={handlers:[u],runs:0};"hookAdded"!==e&&h("hookAdded",e,r,o,a)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}},a=function(t,e){return function(r,o){if(i(r)&&(e||n(o))){if(!t[r])return 0;var a=0;if(e)a=t[r].handlers.length,t[r]={runs:t[r].runs,handlers:[]};else for(var u=t[r].handlers,c=function(e){u[e].namespace===o&&(u.splice(e,1),a++,(t.__current||[]).forEach((function(t){t.name===r&&t.currentIndex>=e&&t.currentIndex--})))},s=u.length-1;s>=0;s--)c(s);return"hookRemoved"!==r&&h("hookRemoved",r,o),a}}},u=function(t){return function(e,r){return void 0!==r?e in t&&t[e].handlers.some((function(t){return t.namespace===r})):e in t}},c=function(t,e){return function(r){t[r]||(t[r]={handlers:[],runs:0}),t[r].runs++;for(var n=t[r].handlers,i=arguments.length,o=new Array(i>1?i-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r=e.id,n=e.getFormData;return Object(o.a)("v2/customer",f({form_values:s()(e[0],{hash:!0}),form_data:n(),form_id:r},t))}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r=e.id,n=e.getFormData;return Object(o.a)("v2/checkout-session",h({form_values:s()(e[0],{hash:!0}),form_data:n(),form_id:r},t))}r(10),r(5),r(11)},function(t,e){function r(e){return t.exports=r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0;--i){var o=this.tryEntries[i],u=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;L(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:M(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},r}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var n=r(6).default;t.exports=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},,,,function(t,e,r){var n=r(48);t.exports=function(t,e){if(null==t)return{};var r,i,o=n(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i=0||{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";(function(t){var r=window.spShared,n=r.convertToDollars,i=r.formatCurrency;e.a={init:_.noop,setupCoreForm:_.noop,isStripeCheckoutForm:function(t){return void 0===t.formDisplayType||"stripe_checkout"===t.formDisplayType},setCoreFinalAmount:function(e,r){r.finalAmount=e.cart.getTotalDueToday(),t(document.body).trigger("simpayFinalizeCoreAmount",[e,r])},disableForm:function(t,e,r){var n=t.find(".simpay-payment-btn"),i=e.paymentButtonLoadingText;t.addClass("simpay-checkout-form--loading"),window.simpayApp.isStripeCheckoutForm(e)||(n=t.find(".simpay-checkout-btn"),i=e.checkoutButtonLoadingText),n.prop("disabled",!0),!0===r&&n.addClass("simpay-disabled").find("span").html(i)},enableForm:function(e,r){var o=e.cart;if(void 0!==o){var a=e.find(".simpay-payment-btn"),u=r.paymentButtonLoadingText,c=r.paymentButtonText;e.removeClass("simpay-checkout-form--loading"),window.simpayApp.isStripeCheckoutForm(r)||(a=e.find(".simpay-checkout-btn"),u=r.checkoutButtonLoadingText,c=r.checkoutButtonText),a.prop("disabled",!1).removeClass("simpay-disabled");var s=document.createElement("div");if(s.innerHTML=u,t(s).html()===a.find("span").html())if(0===o.getTotalDueToday()){var l=r.checkoutButtonTrialText;a.find("span").text(l)}else{var f=i(o.isZeroDecimal()?o.getTotalDueToday():n(o.getTotalDueToday()),!0,o.getCurrencySymbol(),o.isZeroDecimal()),p=''.concat(f,"");c=c.replace("{{amount}}",p),a.find("span").html(c)}}},showError:function(t,e,r){return t.find(".simpay-errors").html(r)},triggerBrowserValidation:function(e,r){return t("").attr({type:"submit",style:{display:"none"}}).appendTo(e).click().remove()}}}).call(this,r(7))},,,,,,,,,,,,,,,function(t,e,r){"use strict";r.r(e),function(t){var e=r(31),n=r.n(e),i=r(2),o=r.n(i),a=r(8),u=r(15),c=r(32),s=(r(59),["order","customer","paymentMethods"]);function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(t){for(var e=1;e1&&void 0!==arguments[1]&&arguments[1],c=window.simpayApp.formCount;if(e.attr("data-simpay-form-instance",c),!1===o){var l=window.simplePayForms;r=l[i=e.data("simpay-form-id")]}else r=o,i=o.id;var p=r,d=p.type,h=p.form,m=h.prices,y=h.livemode,v=h.config,g=void 0===v?{}:v,b=g.taxRates,x=void 0===b?[]:b,w=g.paymentMethods,O=void 0===w?[]:w,T=g.taxStatus,k=void 0===T?"fixed-global":T,j=f(f(f(f(f({formId:i,formInstance:c,quantity:1,isValid:!0,stripeParams:f(f({},r.stripe.strings),r.stripe.bools),prices:m},r.form.bools),r.form.integers),r.form.i18n),r.form.strings),r.form.config);e.__unstableLegacyFormData=j;var P=u.getPaymentFormType(d);_.each(P,(function(t,r){e[r]=_.isFunction(t)?_.bind(t,e,e):t})),e.id=i,e.state={isValid:!0,customAmount:!1,coupon:!1,price:_.find(m,(function(t){return!0===t.default})),paymentMethod:_.first(O),taxRates:x,taxStatus:k,paymentMethods:O,livemode:y,displayType:j.formDisplayType},e.setState=function(t){e.state=f(f({},e.state),t)},e.getFormData=function(){var t=f(f({},e.__unstableLegacyFormData),e.state),r=(t.order,t.customer,t.paymentMethods,n()(t,s));return JSON.stringify(r)};var F=r.stripe.strings,S=F.key,I=F.stripe_api_version,L=F.elementsLocale;e.stripeInstance=Stripe(S,{apiVersion:I,locale:L||"auto"}),Object(a.c)("simpaySetupPaymentForm",e),window.simpayApp.spFormData[i]=j,window.simpayApp.spFormElems[i]=e,t(document.body).trigger("simpayCoreFormVarsInitialized",[e,j]).trigger("simpayBindCoreFormEventsAndTriggers",[e,j]).trigger("simpaySetupCoreForm",[e])}window.wpsp={hooks:a.b,paymentForms:u,initPaymentForm:p},window.simpayApp=f({formCount:0,spFormElList:{},spFormData:{},spFormElems:{}},c.a),t((function(){return e=t(document.body).find(".simpay-checkout-form:not(.simpay-update-payment-method)"),window.simpayApp.spFormElList=e,void e.each((function(){window.simpayApp.formCount++,p(t(this))}));var e}))}.call(this,r(7))},function(t,e){t.exports=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function r(e,n){return t.exports=r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e,n)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},,,,,,,,,function(t,e,r){"use strict";var n=r(10),i=r.n(n),o=r(5),a=r.n(o),u=r(15),c=r(8),s=r(12),l=r.n(s),f=r(13),p=r.n(f),d=r(20),h=r.n(d),m=r(17),y=r.n(m),v=r(21),g=r.n(v),b=r(9),x=r.n(b),_=r(6),w=r.n(_),O=r(2),T=r.n(O);function k(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function j(t){for(var e=1;e0&&(this.price.can_recur&&this.isOptionallyRecurring||!this.price.can_recur&&this.price.recurring)&&this.fees.forEach((function(e){t+=e.unit_amount})),t}},{key:"getQuantity",value:function(){return this.quantity}},{key:"getDiscount",value:function(){var t=this.cart.getDiscount();if(0===t)return 0;var e=this.cart.getLineItems().filter((function(t){return!t.hasFreeTrial()&&0!==t.getUnitPrice()}));return Math.round(t/e.length)}},{key:"getSubtotal",value:function(){if(this.hasFreeTrial())return 0;var t=this.getUnitPrice()*this.getQuantity()+this.getFees();return 0===t?t:this.cart.coupon.amount_off&&"setup-fee"!==this.id&&t<=this.getDiscount()?0:Math.round(t-this.getDiscount())}},{key:"getInclusiveTaxAmount",value:function(){var t=this.cart.getTaxPercent("inclusive")/100,e=this.getSubtotal(),r=Math.round(e-e/(1+t));return Math.round(e-(e-r))}},{key:"getTaxableAmount",value:function(){var t=this.getSubtotal(),e=this.getInclusiveTaxAmount();return Math.round(t-e)}},{key:"getTax",value:function(){if("automatic"===this.cart.taxStatus||"none"===this.cart.taxStatus)return 0;var t=this.getTaxableAmount(),e=this.cart.getTaxPercent("exclusive");return Math.round(t*(e/100))}},{key:"getTotal",value:function(){return this.getSubtotal()+this.getTax()}},{key:"hasFreeTrial",value:function(){var t=this.price;return!!t&&(!!(t.can_recur&&this.isOptionallyRecurring&&t.recurring&&t.recurring.trial_period_days)||!t.can_recur&&t.recurring&&t.recurring.trial_period_days)}}])}(),F=P;function S(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function I(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:L,e=this.getLineItems().reduce((function(t,e){return t+e.getTotal()}),0),r=t.includeFeeRecovery?this.getFeeRecoveryForAmount(e):0;return e+r}},{key:"getTotalDueToday",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L,e=0;"exclusive"===this.taxBehavior&&this.automaticTax&&0!==this.getSubtotal()&&(e=parseInt(this.automaticTax.amount_tax||e));var r=this.getLineItems().reduce((function(t,e){var r=0;return null!=e&&e.fees&&e.fees.length>0&&e.checked&&(r=e.fees.reduce((function(t,e){return t+e.unit_amount}),0)),e.hasFreeTrial()?t+r:t+e.getTotal()}),e),n=0!==r&&t.includeFeeRecovery?this.getFeeRecoveryForAmount(r):0;return r+n}},{key:"getRecurringTotal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L,e=this.getLineItems().reduce((function(t,e){var r,n;return null!==(r=e.price)&&void 0!==r&&null!==(r=r.recurring)&&void 0!==r&&r.interval?null!==(n=e.price)&&void 0!==n&&n.can_recur&&!0===e.price.can_recur&&!1===e.isOptionallyRecurring?t:t+e.getUnitPrice()*e.getQuantity():t}),0);e=Math.round(e-this.getDiscount());var r=this.getTaxRates(),n=this.getTaxPercent("inclusive")/100,i=Math.round(e-e/(1+n)),o=Math.round(e-i),a=r.reduce((function(t,e){var r=e.percentage;return"inclusive"===e.calculation?t:t+Math.round(o*(r/100))}),0),u=Math.round(e+a),c=t.includeFeeRecovery?this.getFeeRecoveryForAmount(u):0;return u+c}},{key:"getRecurringNoDiscountTotal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L,e=this.getLineItems().reduce((function(t,e){var r,n;return null!==(r=e.price)&&void 0!==r&&null!==(r=r.recurring)&&void 0!==r&&r.interval?null!==(n=e.price)&&void 0!==n&&n.can_recur&&!0===e.price.can_recur&&!1===e.isOptionallyRecurring?t:t+e.getUnitPrice()*e.getQuantity():t}),0),r=0;if("automatic"!==this.taxStatus&&"none"!==this.taxStatus){var n=this.getTaxRates(),i=this.getTaxPercent("inclusive")/100,o=Math.round(e-e/(1+i)),a=Math.round(e-o);r=n.reduce((function(t,e){var r=e.percentage;return"inclusive"===e.calculation?t:t+Math.round(a*(r/100))}),0)}else if("automatic"===this.taxStatus&&"exclusive"===this.taxBehavior&&this.automaticTax){var u;r=(null===(u=this.automaticTax.upcomingInvoice)||void 0===u?void 0:u.amount_tax)||0}var c=Math.round(e+r),s=t.includeFeeRecovery?this.getFeeRecoveryForAmount(c):0;return c+s}},{key:"getNextInvoiceTotal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L,e=this.getCoupon(),r=e.percent_off,n=e.amount_off,i=e.duration,o=this.getLineItems().reduce((function(t,e){var r;return null!==(r=e.price)&&void 0!==r&&null!==(r=r.recurring)&&void 0!==r&&r.interval?t+e.getUnitPrice()*e.getQuantity():t}),0);if(e&&"once"!==i){var a=0;r?a+=Math.round(o*(r/100)):n&&(a+=n),o=Math.round(o-a)}var u=0;if("automatic"!==this.taxStatus&&"none"!==this.taxStatus){var c=this.getTaxRates(),s=this.getTaxPercent("inclusive")/100,l=Math.round(o-o/(1+s)),f=Math.round(o-l);u=c.reduce((function(t,e){var r=e.percentage;return"inclusive"===e.calculation?t:t+Math.round(f*(r/100))}),0)}else if("automatic"===this.taxStatus&&"exclusive"===this.taxBehavior&&this.automaticTax){var p;u=(null===(p=this.automaticTax.upcomingInvoice)||void 0===p?void 0:p.amount_tax)||0}var d=Math.round(o+u),h=t.includeFeeRecovery?this.getFeeRecoveryForAmount(d):0;return d+h<0?0:d+h}},{key:"getLineItem",value:function(t){var e=this.getLineItems().filter((function(e){return e.id===t}));if(0===e.length)throw{id:"invalid-line-item",message:'Unable to retrieve line item "'.concat(t,'"')};return e[0]}},{key:"addLineItem",value:function(t){var e;return e=1==t instanceof F?t:new this.LineItem(t,this),this.items.push(e),e}},{key:"updateLineItem",value:function(t,e){var r=this,n=this.getLineItems().map((function(n){return n.price&&n.price.id===t?new r.LineItem(e,r):n}));this.items=n}},{key:"getBaseItemPriceId",value:function(){return this.getLineItem("base").price.id}},{key:"removeLineItem",value:function(t){var e=this.getLineItems().filter((function(e){return e.id!==t}));this.items=e}},{key:"isLineItemExists",value:function(t){return this.getLineItems().filter((function(e){return e.id===t})).length>0}},{key:"removeDuplicateLineItems",value:function(){var t=this.getLineItems().filter((function(t,e,r){var n=t.id;return e===r.findIndex((function(t){return t.id===n}))}));this.items=t}},{key:"hasFreeTrial",value:function(){if("no"===this.paymentForm.settings.allowMultipleLineItem){var t,e,r,n=this.getLineItem("base");return!!(null!==(t=n.price)&&void 0!==t&&t.can_recur&&!0===n.isOptionallyRecurring||(null===(e=n.price)||void 0===e||!e.can_recur)&&null!==(r=n.price)&&void 0!==r&&r.recurring)&&n.hasFreeTrial()}return this.getLineItems().filter((function(t){var e=t.price,r=t.checked,n=t.isOptionallyRecurring;return(r&&(null==e?void 0:e.recurring)&&e.can_recur&&!0===n||r&&(null==e?void 0:e.recurring)&&!e.can_recur)&&e.recurring.trial_period_days})).length>0}},{key:"isRecurring",value:function(){if("no"===this.paymentForm.settings.allowMultipleLineItem){var t,e,r,n=this.getLineItem("base");return!(null!==(t=n.price)&&void 0!==t&&t.can_recur)&&(null===(e=n.price)||void 0===e?void 0:e.recurring)||(null===(r=n.price)||void 0===r?void 0:r.can_recur)&&n.isOptionallyRecurring}return this.getLineItems().filter((function(t){var e=t.price,r=t.checked,n=t.isOptionallyRecurring;return r&&(null==e?void 0:e.recurring)&&e.can_recur&&!0===n||r&&(null==e?void 0:e.recurring)&&!e.can_recur})).length>0}},{key:"getFeeRecoveryForAmount",value:function(t){var e=this.paymentForm.state,r=e.paymentMethod,n=e.isCoveringFees;if(!r||!r.config)return 0;var i=r.config.fee_recovery;return i&&n?Math.round((t+parseInt(i.amount))/(1-parseFloat(i.percent)/100)-t):0}},{key:"getPriceIds",value:function(){var t=[];return this.getLineItems().forEach((function(e){e.checked&&t.push({price_id:e.price.id,quantity:e.quantity,is_optionally_recurring:e.isOptionallyRecurring,custom_amount:e.amount,price_data:e.price})})),t}}])}();function M(t,e,r){return e=y()(e),h()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return!!t}()?Reflect.construct(e,r||[],y()(t).constructor):e.apply(t,r))}var D=function(t){function e(){return p()(this,e),M(this,e,arguments)}return g()(e,t),l()(e)}(P);var E=function(t){function e(t){var r,n,i,o;return p()(this,e),(n=this,i=e,o=[t],i=y()(i),r=h()(n,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return!!t}()?Reflect.construct(i,o||[],y()(n).constructor):i.apply(n,o))).LineItem=D,r}return g()(e,t),l()(e)}(A),R=r(16);function C(){return(C=i()(a.a.mark((function t(e){var r,n,i,o,u,c,s,l,f,p;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.error,n=e.disable,i=e.__unstableLegacyFormData,o=null,u=i.hasCustomerFields,r(""),n(),!u){t.next=13;break}return t.next=8,R.a.create({},e).catch(r);case 8:if(c=t.sent){t.next=11;break}return t.abrupt("return");case 11:s=c.customer.id,o=s;case 13:return t.next=15,R.b.create({customer_id:o,payment_method_type:i.paymentMethods?i.paymentMethods[0].id:"card"},e).catch(r);case 15:if(l=t.sent){t.next=18;break}return t.abrupt("return");case 18:if(f=l.sessionId,p=l.session.url,"stripe"!==l.redirect_type){t.next=21;break}return t.abrupt("return",e.stripeInstance.redirectToCheckout({sessionId:f}).then((function(t){return t.error&&r(t.error),t})));case 21:window.location.href=p;case 22:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var B=window.spShared,N=B.convertToDollars,q=B.formatCurrency,U="stripe-checkout";Object(u.registerPaymentFormType)(U,{type:U,setup:function(t){var e=t.enable;(0,t.disable)(),t.cart=Object(u.__unstableUpdatePaymentFormCart)(t,new E({paymentForm:t}));var r=t.find(".simpay-payment-btn")[0];r&&(r.addEventListener("click",(function(e){e.preventDefault();var r=window.simpayApp.triggerBrowserValidation;t[0].checkValidity()?Object(c.c)("simpaySubmitPaymentForm",t):r(t)})),e())},submit:function(_x){return C.apply(this,arguments)},enable:function(t){var e=t.cart,r=t.__unstableLegacyFormData,n=r.paymentButtonText,i=r.paymentButtonTrialText;t.removeClass("simpay-checkout-form--loading");var o=t.find(".simpay-payment-btn");if(o.prop("disabled",!1).removeClass("simpay-disabled"),0===e.getTotalDueToday())o.find("span").text(i);else{var a=q(e.isZeroDecimal()?e.getTotalDueToday():N(e.getTotalDueToday()),!0,e.getCurrencySymbol(),e.isZeroDecimal()),u=''.concat(a,"");o.find("span").html(n.replace("{{amount}}",u))}},disable:function(t){var e=t.__unstableLegacyFormData.paymentButtonLoadingText;t.addClass("simpay-checkout-form--loading"),t.find(".simpay-payment-btn").prop("disabled",!0).addClass("simpay-disabled").find("span").html(e)},error:function(t,e){var r,n=t.enable,i=t.__unstableLegacyFormData,o=i.stripeErrorMessages,a=i.unknownError;if(e&&""===e)r="";else if(void 0!==e){var u=e.message,c=e.code;r=u||e,c&&o[c]&&(r=o[c])}else r=a;t.find(".simpay-errors").html(r),n()}});var G=r(11);function Z(){return(Z=i()(a.a.mark((function t(e){var r,n,i,o,u,c,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.id,n=e.setState,i=e.submit,o=e.disable,u=e.enable,c=e.error,s=e.__unstableLegacyFormData,o(),e.trigger("simpayBeforeStripePayment",[e,s]),s.isValid){t.next=6;break}return u(),t.abrupt("return");case 6:return t.prev=6,t.next=9,Object(G.a)("simple_pay_form_".concat(r,"_customer")).then((function(t){n({customerCaptchaToken:t})}));case 9:return t.next=11,Object(G.a)("simple_pay_form_".concat(r,"_payment")).then((function(t){n({paymentCaptchaToken:t})}));case 11:i(),t.next=17;break;case 14:t.prev=14,t.t0=t.catch(6),c(t.t0);case 17:case"end":return t.stop()}}),t,null,[[6,14]])})))).apply(this,arguments)}Object(c.a)("simpaySetupPaymentForm","wpsp/paymentForm",(function(t){return(0,t.setup)()})),Object(c.a)("simpaySubmitPaymentForm","wpsp/paymentForm",(function(_x){return Z.apply(this,arguments)}))}]);
\ No newline at end of file
+!function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=48)}([,function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return u}));var n=r(10),i=r.n(n),o=r(5),a=r.n(o);function u(_x,t){return c.apply(this,arguments)}function c(){return(c=i()(a.a.mark((function e(r,n){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.ajax({data:n,method:"POST",url:"".concat(wpApiSettings.root,"wpsp/").concat(r),beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",wpApiSettings.nonce)}});case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),e.t0.responseJSON;case 10:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}}).call(this,r(6))},function(t,e,r){var n=r(19);t.exports=function(t,e,r){return(e=n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports},,function(t,e){var r=/^(?:submit|button|image|reset|file)$/i,n=/^(?:input|select|textarea|keygen)/i,i=/(\[[^\[\]]*\])/g;function o(t,e,r){if(e.match(i))!function t(e,r,n){if(0===r.length)return n;var i=r.shift(),o=i.match(/^\[(.+?)\]$/);if("[]"===i)return e=e||[],Array.isArray(e)?e.push(t(null,r,n)):(e._values=e._values||[],e._values.push(t(null,r,n))),e;if(o){var a=o[1],u=+a;isNaN(u)?(e=e||{})[a]=t(e[a],r,n):(e=e||[])[u]=t(e[u],r,n)}else e[i]=t(e[i],r,n);return e}(t,function(t){var e=[],r=new RegExp(i),n=/^([^\[\]]*)/.exec(t);for(n[1]&&e.push(n[1]);null!==(n=r.exec(t));)e.push(n[1]);return e}(e),r);else{var n=t[e];n?(Array.isArray(n)||(t[e]=[n]),t[e].push(r)):t[e]=r}return t}function a(t,e,r){return r=r.replace(/(\r)?\n/g,"\r\n"),r=(r=encodeURIComponent(r)).replace(/%20/g,"+"),t+(t?"&":"")+encodeURIComponent(e)+"="+r}t.exports=function(t,e){"object"!=typeof e?e={hash:!!e}:void 0===e.hash&&(e.hash=!0);for(var i=e.hash?{}:"",u=e.serializer||(e.hash?o:a),c=t&&t.elements?t.elements:[],s=Object.create(null),l=0;l3&&void 0!==arguments[3]?arguments[3]:10;if(i(e)&&n(r))if("function"==typeof o)if("number"==typeof a){var u={callback:o,priority:a,namespace:r};if(t[e]){var c,s=t[e].handlers;for(c=s.length;c>0&&!(a>=s[c-1].priority);c--);c===s.length?s[c]=u:s.splice(c,0,u),(t.__current||[]).forEach((function(t){t.name===e&&t.currentIndex>=c&&t.currentIndex++}))}else t[e]={handlers:[u],runs:0};"hookAdded"!==e&&h("hookAdded",e,r,o,a)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}},a=function(t,e){return function(r,o){if(i(r)&&(e||n(o))){if(!t[r])return 0;var a=0;if(e)a=t[r].handlers.length,t[r]={runs:t[r].runs,handlers:[]};else for(var u=t[r].handlers,c=function(e){u[e].namespace===o&&(u.splice(e,1),a++,(t.__current||[]).forEach((function(t){t.name===r&&t.currentIndex>=e&&t.currentIndex--})))},s=u.length-1;s>=0;s--)c(s);return"hookRemoved"!==r&&h("hookRemoved",r,o),a}}},u=function(t){return function(e,r){return void 0!==r?e in t&&t[e].handlers.some((function(t){return t.namespace===r})):e in t}},c=function(t,e){return function(r){t[r]||(t[r]={handlers:[],runs:0}),t[r].runs++;for(var n=t[r].handlers,i=arguments.length,o=new Array(i>1?i-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r=e.id,n=e.getFormData;return Object(o.a)("v2/customer",f({form_values:s()(e[0],{hash:!0}),form_data:n(),form_id:r},t))}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r=e.id,n=e.getFormData;return Object(o.a)("v2/checkout-session",h({form_values:s()(e[0],{hash:!0}),form_data:n(),form_id:r},t))}r(10),r(5),r(11)},function(t,e){function r(e){return t.exports=r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0;--i){var o=this.tryEntries[i],u=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;L(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:M(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},r}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var n=r(7).default;t.exports=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},,,,function(t,e,r){var n=r(49);t.exports=function(t,e){if(null==t)return{};var r,i,o=n(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i'.concat(f,"");c=c.replace("{{amount}}",p),a.find("span").html(c)}}},showError:function(t,e,r){return t.find(".simpay-errors").html(r)},triggerBrowserValidation:function(e,r){return t("").attr({type:"submit",style:{display:"none"}}).appendTo(e).click().remove()}}}).call(this,r(6))},,,,,,,,,,,,,,,,function(t,e,r){"use strict";r.r(e),function(t){var e=r(31),n=r.n(e),i=r(2),o=r.n(i),a=r(8),u=r(15),c=r(32),s=(r(61),["order","customer","paymentMethods"]);function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(t){for(var e=1;e1&&void 0!==arguments[1]&&arguments[1],c=window.simpayApp.formCount;if(e.attr("data-simpay-form-instance",c),!1===o){var l=window.simplePayForms;r=l[i=e.data("simpay-form-id")]}else r=o,i=o.id;var p=r,d=p.type,h=p.form,m=h.prices,y=h.livemode,v=h.config,g=void 0===v?{}:v,b=g.taxRates,x=void 0===b?[]:b,w=g.paymentMethods,O=void 0===w?[]:w,T=g.taxStatus,k=void 0===T?"fixed-global":T,j=f(f(f(f(f({formId:i,formInstance:c,quantity:1,isValid:!0,stripeParams:f(f({},r.stripe.strings),r.stripe.bools),prices:m},r.form.bools),r.form.integers),r.form.i18n),r.form.strings),r.form.config);e.__unstableLegacyFormData=j;var P=u.getPaymentFormType(d);_.each(P,(function(t,r){e[r]=_.isFunction(t)?_.bind(t,e,e):t})),e.id=i,e.state={isValid:!0,customAmount:!1,coupon:!1,price:_.find(m,(function(t){return!0===t.default})),paymentMethod:_.first(O),taxRates:x,taxStatus:k,paymentMethods:O,livemode:y,displayType:j.formDisplayType},e.setState=function(t){e.state=f(f({},e.state),t)},e.getFormData=function(){var t=f(f({},e.__unstableLegacyFormData),e.state),r=(t.order,t.customer,t.paymentMethods,n()(t,s));return JSON.stringify(r)};var F=r.stripe.strings,I=F.key,S=F.stripe_api_version,L=F.elementsLocale;e.stripeInstance=Stripe(I,{apiVersion:S,locale:L||"auto"}),Object(a.c)("simpaySetupPaymentForm",e),window.simpayApp.spFormData[i]=j,window.simpayApp.spFormElems[i]=e,t(document.body).trigger("simpayCoreFormVarsInitialized",[e,j]).trigger("simpayBindCoreFormEventsAndTriggers",[e,j]).trigger("simpaySetupCoreForm",[e])}window.wpsp={hooks:a.b,paymentForms:u,initPaymentForm:p},window.simpayApp=f({formCount:0,spFormElList:{},spFormData:{},spFormElems:{}},c.a),t((function(){return e=t(document.body).find(".simpay-checkout-form:not(.simpay-update-payment-method)"),window.simpayApp.spFormElList=e,void e.each((function(){window.simpayApp.formCount++,p(t(this))}));var e}))}.call(this,r(6))},function(t,e){t.exports=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.includes(n))continue;r[n]=t[n]}return r},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function r(e,n){return t.exports=r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e,n)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t){throw new TypeError('"'+t+'" is read-only')},t.exports.__esModule=!0,t.exports.default=t.exports},,,,,,,,,function(t,e,r){"use strict";var n=r(10),i=r.n(n),o=r(5),a=r.n(o),u=r(15),c=r(8),s=r(12),l=r.n(s),f=r(13),p=r.n(f),d=r(20),h=r.n(d),m=r(17),y=r.n(m),v=r(21),g=r.n(v),b=r(9),x=r.n(b),_=(r(52),r(7)),w=r.n(_),O=r(2),T=r.n(O);function k(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function j(t){for(var e=1;e0&&(this.price.can_recur&&this.isOptionallyRecurring||!this.price.can_recur&&this.price.recurring)&&this.fees.forEach((function(e){t+=e.unit_amount})),t}},{key:"getQuantity",value:function(){return this.quantity}},{key:"getDiscount",value:function(){var t=this.cart.getDiscount();if(0===t)return 0;var e=this.cart.getLineItems().filter((function(t){return!t.hasFreeTrial()&&0!==t.getUnitPrice()}));return Math.round(t/e.length)}},{key:"getSubtotal",value:function(){if(this.hasFreeTrial())return 0;var t=this.getUnitPrice()*this.getQuantity()+this.getFees();return 0===t?t:this.cart.coupon.amount_off&&"setup-fee"!==this.id&&t<=this.getDiscount()?0:Math.round(t-this.getDiscount())}},{key:"getInclusiveTaxAmount",value:function(){var t=this.cart.getTaxPercent("inclusive")/100,e=this.getSubtotal(),r=Math.round(e-e/(1+t));return Math.round(e-(e-r))}},{key:"getTaxableAmount",value:function(){var t=this.getSubtotal(),e=this.getInclusiveTaxAmount();return Math.round(t-e)}},{key:"getTax",value:function(){if("automatic"===this.cart.taxStatus||"none"===this.cart.taxStatus)return 0;var t=this.getTaxableAmount(),e=this.cart.getTaxPercent("exclusive");return Math.round(t*(e/100))}},{key:"getTotal",value:function(){return this.getSubtotal()+this.getTax()}},{key:"hasFreeTrial",value:function(){var t=this.price;return!!t&&(!!(t.can_recur&&this.isOptionallyRecurring&&t.recurring&&t.recurring.trial_period_days)||!t.can_recur&&t.recurring&&t.recurring.trial_period_days)}}])}(),F=P;function I(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function S(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:L,e=this.getLineItems().reduce((function(t,e){return t+e.getTotal()}),0),r=t.includeFeeRecovery?this.getFeeRecoveryForAmount(e):0;return e+r}},{key:"getTotalDueToday",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L,e=0;"exclusive"===this.taxBehavior&&this.automaticTax&&0!==this.getSubtotal()&&(e=parseInt(this.automaticTax.amount_tax||e));var r=this.getLineItems().reduce((function(t,e){var r=0;return null!=e&&e.fees&&e.fees.length>0&&e.checked&&(r=e.fees.reduce((function(t,e){return t+e.unit_amount}),0)),e.hasFreeTrial()?t+r:t+e.getTotal()}),e),n=0!==r&&t.includeFeeRecovery?this.getFeeRecoveryForAmount(r):0;return r+n}},{key:"getRecurringTotal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L,e=this.getLineItems().reduce((function(t,e){var r,n;return null!==(r=e.price)&&void 0!==r&&null!==(r=r.recurring)&&void 0!==r&&r.interval?null!==(n=e.price)&&void 0!==n&&n.can_recur&&!0===e.price.can_recur&&!1===e.isOptionallyRecurring?t:t+e.getUnitPrice()*e.getQuantity():t}),0);e=Math.round(e-this.getDiscount());var r=this.getTaxRates(),n=this.getTaxPercent("inclusive")/100,i=Math.round(e-e/(1+n)),o=Math.round(e-i),a=r.reduce((function(t,e){var r=e.percentage;return"inclusive"===e.calculation?t:t+Math.round(o*(r/100))}),0),u=Math.round(e+a),c=t.includeFeeRecovery?this.getFeeRecoveryForAmount(u):0;return u+c}},{key:"getRecurringNoDiscountTotal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L,e=this.getLineItems().reduce((function(t,e){var r,n;return null!==(r=e.price)&&void 0!==r&&null!==(r=r.recurring)&&void 0!==r&&r.interval?null!==(n=e.price)&&void 0!==n&&n.can_recur&&!0===e.price.can_recur&&!1===e.isOptionallyRecurring?t:t+e.getUnitPrice()*e.getQuantity():t}),0),r=0;if("automatic"!==this.taxStatus&&"none"!==this.taxStatus){var n=this.getTaxRates(),i=this.getTaxPercent("inclusive")/100,o=Math.round(e-e/(1+i)),a=Math.round(e-o);r=n.reduce((function(t,e){var r=e.percentage;return"inclusive"===e.calculation?t:t+Math.round(a*(r/100))}),0)}else if("automatic"===this.taxStatus&&"exclusive"===this.taxBehavior&&this.automaticTax){var u;r=(null===(u=this.automaticTax.upcomingInvoice)||void 0===u?void 0:u.amount_tax)||0}var c=Math.round(e+r),s=t.includeFeeRecovery?this.getFeeRecoveryForAmount(c):0;return c+s}},{key:"getNextInvoiceTotal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L,e=this.getCoupon(),r=e.percent_off,n=e.amount_off,i=e.duration,o=this.getLineItems().reduce((function(t,e){var r;return null!==(r=e.price)&&void 0!==r&&null!==(r=r.recurring)&&void 0!==r&&r.interval?t+e.getUnitPrice()*e.getQuantity():t}),0);if(e&&"once"!==i){var a=0;r?a+=Math.round(o*(r/100)):n&&(a+=n),o=Math.round(o-a)}var u=0;if("automatic"!==this.taxStatus&&"none"!==this.taxStatus){var c=this.getTaxRates(),s=this.getTaxPercent("inclusive")/100,l=Math.round(o-o/(1+s)),f=Math.round(o-l);u=c.reduce((function(t,e){var r=e.percentage;return"inclusive"===e.calculation?t:t+Math.round(f*(r/100))}),0)}else if("automatic"===this.taxStatus&&"exclusive"===this.taxBehavior&&this.automaticTax){var p;u=(null===(p=this.automaticTax.upcomingInvoice)||void 0===p?void 0:p.amount_tax)||0}var d=Math.round(o+u),h=t.includeFeeRecovery?this.getFeeRecoveryForAmount(d):0;return d+h<0?0:d+h}},{key:"getLineItem",value:function(t){var e=this.getLineItems().filter((function(e){return e.id===t}));if(0===e.length)throw{id:"invalid-line-item",message:'Unable to retrieve line item "'.concat(t,'"')};return e[0]}},{key:"addLineItem",value:function(t){var e;return e=1==t instanceof F?t:new this.LineItem(t,this),this.items.push(e),e}},{key:"updateLineItem",value:function(t,e){var r=this,n=this.getLineItems().map((function(n){return n.price&&n.price.id===t?new r.LineItem(e,r):n}));this.items=n}},{key:"getBaseItemPriceId",value:function(){return this.getLineItem("base").price.id}},{key:"removeLineItem",value:function(t){var e=this.getLineItems().filter((function(e){return e.id!==t}));this.items=e}},{key:"isLineItemExists",value:function(t){return this.getLineItems().filter((function(e){return e.id===t})).length>0}},{key:"removeDuplicateLineItems",value:function(){var t=this.getLineItems().filter((function(t,e,r){var n=t.id;return e===r.findIndex((function(t){return t.id===n}))}));this.items=t}},{key:"hasFreeTrial",value:function(){if("no"===this.paymentForm.settings.allowMultipleLineItem){var t,e,r,n=this.getLineItem("base");return!!(null!==(t=n.price)&&void 0!==t&&t.can_recur&&!0===n.isOptionallyRecurring||(null===(e=n.price)||void 0===e||!e.can_recur)&&null!==(r=n.price)&&void 0!==r&&r.recurring)&&n.hasFreeTrial()}return this.getLineItems().filter((function(t){var e=t.price,r=t.checked,n=t.isOptionallyRecurring;return(r&&(null==e?void 0:e.recurring)&&e.can_recur&&!0===n||r&&(null==e?void 0:e.recurring)&&!e.can_recur)&&e.recurring.trial_period_days})).length>0}},{key:"isRecurring",value:function(){if("no"===this.paymentForm.settings.allowMultipleLineItem){var t,e,r,n=this.getLineItem("base");return!(null!==(t=n.price)&&void 0!==t&&t.can_recur)&&(null===(e=n.price)||void 0===e?void 0:e.recurring)||(null===(r=n.price)||void 0===r?void 0:r.can_recur)&&n.isOptionallyRecurring}return this.getLineItems().filter((function(t){var e=t.price,r=t.checked,n=t.isOptionallyRecurring;return r&&(null==e?void 0:e.recurring)&&e.can_recur&&!0===n||r&&(null==e?void 0:e.recurring)&&!e.can_recur})).length>0}},{key:"getFeeRecoveryForAmount",value:function(t){var e=this.paymentForm.state,r=e.paymentMethod,n=e.isCoveringFees;if(!r||!r.config)return 0;var i=r.config.fee_recovery;if(!i||!n)return 0;var o=r.config.fee_recovery.max_amount,a=Math.round((t+parseInt(i.amount))/(1-parseFloat(i.percent)/100)-t);return o&&a>o?parseInt(o):a}},{key:"getPriceIds",value:function(){var t=[];return this.getLineItems().forEach((function(e){e.checked&&t.push({price_id:e.price.id,quantity:e.quantity,is_optionally_recurring:e.isOptionallyRecurring,custom_amount:e.amount,price_data:e.price})})),t}}])}();function M(t,e,r){return e=y()(e),h()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return!!t}()?Reflect.construct(e,r||[],y()(t).constructor):e.apply(t,r))}var D=function(t){function e(){return p()(this,e),M(this,e,arguments)}return g()(e,t),l()(e)}(P);var E=function(t){function e(t){var r,n,i,o;return p()(this,e),(n=this,i=e,o=[t],i=y()(i),r=h()(n,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return!!t}()?Reflect.construct(i,o||[],y()(n).constructor):i.apply(n,o))).LineItem=D,r}return g()(e,t),l()(e)}(A),R=r(16);function C(){return(C=i()(a.a.mark((function t(e){var r,n,i,o,u,c,s,l,f,p;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.error,n=e.disable,i=e.__unstableLegacyFormData,o=null,u=i.hasCustomerFields,r(""),n(),!u){t.next=13;break}return t.next=8,R.a.create({},e).catch(r);case 8:if(c=t.sent){t.next=11;break}return t.abrupt("return");case 11:s=c.customer.id,o=s;case 13:return t.next=15,R.b.create({customer_id:o,payment_method_type:i.paymentMethods?i.paymentMethods[0].id:"card"},e).catch(r);case 15:if(l=t.sent){t.next=18;break}return t.abrupt("return");case 18:if(f=l.sessionId,p=l.session.url,"stripe"!==l.redirect_type){t.next=21;break}return t.abrupt("return",e.stripeInstance.redirectToCheckout({sessionId:f}).then((function(t){return t.error&&r(t.error),t})));case 21:window.location.href=p;case 22:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var B=window.spShared,N=B.convertToDollars,q=B.formatCurrency,U="stripe-checkout";Object(u.registerPaymentFormType)(U,{type:U,setup:function(t){var e=t.enable;(0,t.disable)(),t.cart=Object(u.__unstableUpdatePaymentFormCart)(t,new E({paymentForm:t}));var r=t.find(".simpay-payment-btn")[0];r&&(r.addEventListener("click",(function(e){e.preventDefault();var r=window.simpayApp.triggerBrowserValidation;t[0].checkValidity()?Object(c.c)("simpaySubmitPaymentForm",t):r(t)})),e())},submit:function(_x){return C.apply(this,arguments)},enable:function(t){var e=t.cart,r=t.__unstableLegacyFormData,n=r.paymentButtonText,i=r.paymentButtonTrialText;t.removeClass("simpay-checkout-form--loading");var o=t.find(".simpay-payment-btn");if(o.prop("disabled",!1).removeClass("simpay-disabled"),0===e.getTotalDueToday())o.find("span").text(i);else{var a=q(e.isZeroDecimal()?e.getTotalDueToday():N(e.getTotalDueToday()),!0,e.getCurrencySymbol(),e.isZeroDecimal()),u=''.concat(a,"");o.find("span").html(n.replace("{{amount}}",u))}},disable:function(t){var e=t.__unstableLegacyFormData.paymentButtonLoadingText;t.addClass("simpay-checkout-form--loading"),t.find(".simpay-payment-btn").prop("disabled",!0).addClass("simpay-disabled").find("span").html(e)},error:function(t,e){var r,n=t.enable,i=t.__unstableLegacyFormData,o=i.stripeErrorMessages,a=i.unknownError;if(e&&""===e)r="";else if(void 0!==e){var u=e.message,c=e.code;r=u||e,c&&o[c]&&(r=o[c])}else r=a;t.find(".simpay-errors").html(r),n()}});var G=r(11);function Z(){return(Z=i()(a.a.mark((function t(e){var r,n,i,o,u,c,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.id,n=e.setState,i=e.submit,o=e.disable,u=e.enable,c=e.error,s=e.__unstableLegacyFormData,o(),e.trigger("simpayBeforeStripePayment",[e,s]),s.isValid){t.next=6;break}return u(),t.abrupt("return");case 6:return t.prev=6,t.next=9,Object(G.a)("simple_pay_form_".concat(r,"_customer")).then((function(t){n({customerCaptchaToken:t})}));case 9:return t.next=11,Object(G.a)("simple_pay_form_".concat(r,"_payment")).then((function(t){n({paymentCaptchaToken:t})}));case 11:i(),t.next=17;break;case 14:t.prev=14,t.t0=t.catch(6),c(t.t0);case 17:case"end":return t.stop()}}),t,null,[[6,14]])})))).apply(this,arguments)}Object(c.a)("simpaySetupPaymentForm","wpsp/paymentForm",(function(t){return(0,t.setup)()})),Object(c.a)("simpaySubmitPaymentForm","wpsp/paymentForm",(function(_x){return Z.apply(this,arguments)}))}]);
\ No newline at end of file
diff --git a/includes/core/assets/js/src/admin/index.js b/includes/core/assets/js/src/admin/index.js
index 89a3df97..a1db051e 100644
--- a/includes/core/assets/js/src/admin/index.js
+++ b/includes/core/assets/js/src/admin/index.js
@@ -73,7 +73,7 @@ let spAdmin = {};
);
// Init internal link to tab clicks.
- spFormSettings.on(
+ $( document ).on(
'click.simpayTabLink',
'.simpay-tab-link',
function ( e ) {
@@ -150,6 +150,8 @@ let spAdmin = {};
''
)
.on( 'click', window.screenMeta.toggleEvent );
+
+ this.onDedicatedPaymentPageToggle();
},
/**
@@ -620,6 +622,27 @@ let spAdmin = {};
$( '.field-order', el ).val( fieldIndex + 1 );
} );
},
+ onDedicatedPaymentPageToggle() {
+ const toggle = document.getElementById( '_enable_payment_page' );
+ const paymentPageSettings = document.getElementById(
+ 'simpay-payment-url-shortcode-section'
+ );
+
+ if ( ! toggle || ! paymentPageSettings ) {
+ return;
+ }
+
+ const togglePaymentPageSettings = () => {
+ if ( toggle.checked ) {
+ paymentPageSettings.style.display = 'block';
+ } else {
+ paymentPageSettings.style.display = 'none';
+ }
+ };
+
+ togglePaymentPageSettings();
+ toggle.addEventListener( 'change', togglePaymentPageSettings );
+ },
};
$( document ).ready( function ( $ ) {
diff --git a/includes/core/assets/js/src/admin/payment-form/confirmation-page.js b/includes/core/assets/js/src/admin/payment-form/confirmation-page.js
new file mode 100644
index 00000000..9596cbe0
--- /dev/null
+++ b/includes/core/assets/js/src/admin/payment-form/confirmation-page.js
@@ -0,0 +1,140 @@
+/**
+ * WordPress dependencies
+ */
+import domReady from '@wordpress/dom-ready';
+
+/**
+ * Bind color picker.
+ *
+ * @since 4.12.0
+ */
+function bindColorPicker() {
+ const customColorEl = document.getElementById(
+ 'confirmation-page-background-color-custom'
+ );
+
+ if ( ! customColorEl ) {
+ return;
+ }
+
+ $( '#confirmation-page-background-color-custom' ).wpColorPicker();
+
+ const customButtonEl = document.querySelector(
+ '.simpay-payment-page-background-color .wp-color-result'
+ );
+
+ const colorButtonEls = document.querySelectorAll(
+ '.simpay-payment-page-background-color'
+ );
+
+ customButtonEl.addEventListener( 'click', ( e ) => {
+ colorButtonEls.forEach( ( el ) => {
+ el.querySelector( 'input' ).checked = false;
+ } );
+
+ e.target.classList.add( 'is-selected' );
+ $( e.target ).parent().find( 'input' ).prop( 'checked', true );
+ } );
+
+ colorButtonEls.forEach( ( el ) => {
+ el.querySelector( 'input' ).addEventListener( 'change', () => {
+ customButtonEl.classList.remove( 'is-selected' );
+ } );
+ } );
+}
+
+/**
+ *
+ * Bind payment page mode.
+ *
+ * @since 4.12.0
+ *
+ * @return {void}
+ */
+function bindPaymentPageMode() {
+ const paymentPageModeCheckbox = document.getElementById(
+ '_enable_payment_page'
+ );
+ if ( ! paymentPageModeCheckbox ) {
+ return;
+ }
+
+ const toggleUsePaymentPageConfgurationOption = () => {
+ const usePaymentPageConfigurationOption = document.getElementById(
+ '_confirmation_page_use_payment_page_config_wrapper'
+ );
+
+ if ( ! usePaymentPageConfigurationOption ) {
+ return;
+ }
+
+ const appearanceSettings = document.getElementById(
+ 'simpay-dedicated-confimration-page-customization-options'
+ );
+
+ if ( paymentPageModeCheckbox.checked ) {
+ usePaymentPageConfigurationOption.style.display = '';
+ toggleAppearnaceSettings();
+ } else {
+ setTimeout( () => {
+ usePaymentPageConfigurationOption.style.display = 'none';
+ appearanceSettings.classList.remove( 'simpay-panel-hidden' );
+ toggleAppearnaceSettings();
+ }, 100 );
+ }
+ };
+ toggleUsePaymentPageConfgurationOption( paymentPageModeCheckbox );
+
+ paymentPageModeCheckbox.addEventListener(
+ 'change',
+ toggleUsePaymentPageConfgurationOption
+ );
+
+ const appearanceMode = document.getElementById(
+ '_confirmation_page_use_payment_page_config'
+ );
+ appearanceMode.addEventListener( 'change', () => {
+ toggleAppearnaceSettings();
+ } );
+ toggleAppearnaceSettings();
+}
+/**
+ * Show/Hide the customization settings based on the appearance mode.
+ */
+function toggleAppearnaceSettings() {
+ const appearanceMode = document.getElementById(
+ '_confirmation_page_use_payment_page_config'
+ );
+ const appearanceSettings = document.getElementById(
+ 'simpay-dedicated-confimration-page-customization-options'
+ );
+ const paymentPageModeCheckbox = document.getElementById(
+ '_enable_payment_page'
+ );
+
+ const modes = document.getElementsByName( '_success_redirect_type' );
+ let dedicatedMode = false;
+
+ modes.forEach( ( mode ) => {
+ if ( mode.value === 'dedicated' && mode.checked ) {
+ dedicatedMode = true;
+ }
+ } );
+
+ setTimeout( () => {
+ if (
+ paymentPageModeCheckbox.checked &&
+ appearanceMode.checked &&
+ dedicatedMode
+ ) {
+ appearanceSettings.classList.add( 'simpay-panel-hidden' );
+ } else {
+ appearanceSettings.classList.remove( 'simpay-panel-hidden' );
+ }
+ }, 100 );
+}
+
+domReady( () => {
+ bindColorPicker();
+ bindPaymentPageMode();
+} );
diff --git a/includes/core/assets/js/src/admin/payment-form/index.js b/includes/core/assets/js/src/admin/payment-form/index.js
index 89cf9528..b6a6e5b8 100644
--- a/includes/core/assets/js/src/admin/payment-form/index.js
+++ b/includes/core/assets/js/src/admin/payment-form/index.js
@@ -9,3 +9,4 @@ import './purchase-restrictions.js';
import './automations.js';
import './notifications.js';
import './payment.js';
+import './confirmation-page.js';
diff --git a/includes/core/forms/class-price-option.php b/includes/core/forms/class-price-option.php
index 45edbc69..026d5b20 100644
--- a/includes/core/forms/class-price-option.php
+++ b/includes/core/forms/class-price-option.php
@@ -121,6 +121,14 @@ class PriceOption {
*/
public $can_recur;
+ /**
+ * Optionally recurring option select by default.
+ *
+ * @since 4.12.0
+ * @var string
+ */
+ public $can_recur_selected_by_default;
+
/**
* Optional. Determines if a one-time amount can optionally be purchased
* as a subscription.
@@ -203,6 +211,14 @@ class PriceOption {
*/
public $__unstable_stripe_object;
+ /**
+ * Whether the price option has been saved.
+ *
+ * @since 4.12.1
+ * @var bool|null
+ */
+ public $__unstable_unsaved = null;
+
/**
* Constructs a PriceOption.
*
@@ -286,6 +302,9 @@ public function __construct( $price_data, $form, $instance_id = null ) {
$this->can_recur = isset( $price_data['can_recur'] ) &&
true === $price_data['can_recur'];
+ $this->can_recur_selected_by_default = isset( $price_data['can_recur_selected_by_default'] ) &&
+ 'yes' === $price_data['can_recur_selected_by_default'];
+
$this->id = isset( $price_data['id'] )
? $price_data['id']
: 'simpay_' . wp_generate_uuid4();
diff --git a/includes/core/functions/admin.php b/includes/core/functions/admin.php
index 416c8844..097a17c7 100644
--- a/includes/core/functions/admin.php
+++ b/includes/core/functions/admin.php
@@ -307,6 +307,82 @@ function simpay_print_shortcode_tip( $post_id, $copy_button_text = '' ) {
}
}
+/**
+ * Output the copy permalink markup on the forms page.
+ *
+ * @since 4.12.0
+ *
+ * @param int $post_id Payment Form ID.
+ * @return void
+ */
+function simpay_print_payment_form_permalink( $post_id ) {
+ $shortcut = __(
+ 'Click to select. Then press Ctrl+C (⌘+C on Mac) to copy.',
+ 'stripe'
+ );
+
+ $post_name = get_post_field( 'post_name', $post_id );
+ $form_title = simpay_get_payment_form_setting(
+ $post_id,
+ 'title',
+ get_bloginfo( 'name' ),
+ __unstable_simpay_get_payment_form_template_from_url()
+ );
+
+ // If the slug hasn't been set previously (using ID), create one from the title.
+ $slug = is_numeric( $post_name ) || empty( $post_name )
+ ? sanitize_title( $form_title )
+ : $post_name;
+ $slug = '/' . wp_unique_post_slug(
+ $slug,
+ $post_id,
+ 'publish',
+ 'simple-pay',
+ 0
+ );
+
+ printf(
+ '',
+ esc_attr( $post_id ),
+ esc_attr( $shortcut ),
+ esc_attr( $slug )
+ );
+
+ printf(
+ '',
+ esc_attr__( 'Copied!', 'stripe' ),
+ esc_url( get_permalink( $post_id ) ),
+ esc_html__( 'Copy URL', 'stripe' )
+ );
+}
+
+/**
+ * Output the copy block makrup.
+ *
+ * @since 4.12.0
+ * @param int $post_id Payment Form ID.
+ * @return void
+ */
+function simpay_print_copy_block( $post_id ) {
+
+ $block_code = '';
+ $short_block_code = ( strlen( $block_code ) > 20 ) ? substr( $block_code, 0, 20 ) . '...' : $block_code;
+ $shortcut = $block_code;
+ printf(
+ '',
+ esc_attr( $post_id ),
+ esc_attr( $shortcut ),
+ esc_attr( $short_block_code )
+ );
+
+ printf(
+ '',
+ esc_attr__( 'Copied!', 'stripe' ),
+ esc_attr( $block_code ),
+ esc_html__( 'Copy Block', 'stripe' )
+ );
+}
+
/**
* Returns the description for Form Field Label.
*
diff --git a/includes/core/functions/shared.php b/includes/core/functions/shared.php
index 34220607..bab8d60f 100644
--- a/includes/core/functions/shared.php
+++ b/includes/core/functions/shared.php
@@ -112,6 +112,11 @@ function simpay_get_setting( $setting, $default = null, $raw = true ) {
function simpay_update_setting( $setting, $value ) {
$existing_settings = get_option( 'simpay_settings', array() );
+ // Ensure we have an array to work with.
+ if ( ! is_array( $existing_settings ) ) {
+ $existing_settings = array();
+ }
+
$settings_to_update = array(
$setting => $value,
);
diff --git a/includes/core/payments/class-stripe-api.php b/includes/core/payments/class-stripe-api.php
index cb0d229b..fab5ab98 100644
--- a/includes/core/payments/class-stripe-api.php
+++ b/includes/core/payments/class-stripe-api.php
@@ -127,14 +127,20 @@ public static function request(
? $id_or_args['id']
: $id_or_args;
- $cache_id = is_array( $cache_id )
- ? md5( serialize( $cache_id ) )
- : md5( $cache_id );
-
- $cache_key = sprintf( 'simpay_stripe_%s', $cache_id );
+ // Ensure we have a valid string for md5() and avoid empty cache IDs.
+ if ( empty( $cache_id ) ) {
+ // Skip caching for empty IDs to avoid shared cache keys.
+ $cache_key = false;
+ } elseif ( is_array( $cache_id ) ) {
+ $cache_id = serialize( $cache_id );
+ $cache_key = sprintf( 'simpay_stripe_%s', md5( $cache_id ) );
+ } else {
+ $cache_key = sprintf( 'simpay_stripe_%s', md5( $cache_id ) );
+ }
// Cache if retrieving, and set.
if (
+ $cache_key && // Only proceed with caching if we have a valid cache key.
in_array( $function, array( 'retrieve', 'all' ), true ) &&
isset( $opts['cached'] ) &&
true === $opts['cached']
diff --git a/includes/core/payments/payment-confirmation-template-tags.php b/includes/core/payments/payment-confirmation-template-tags.php
index 13953752..da96d7ac 100644
--- a/includes/core/payments/payment-confirmation-template-tags.php
+++ b/includes/core/payments/payment-confirmation-template-tags.php
@@ -183,19 +183,23 @@ function ( $matches ) {
*
* @param string $tag Payment confirmation smart tag name, excluding curly braces.
* @param string $content Payment confirmation content.
- * @return string $tags_with_keys Tag including keys, excluding curly braces.
+ * @return array $tags_with_keys Tag including keys, excluding curly braces.
*/
function get_tags_with_keys( $tag, $content ) {
// Remove non-breaking spaces for tag only.
- $content = preg_replace_callback(
+ $content = preg_replace_callback(
'/\{([^}]*)\}/',
function ( $matches ) {
return str_replace( "\xC2\xA0", '', $matches[0] );
},
$content
);
+
$tags_with_keys = array();
- $pattern = '/{\s*' . $tag . '(?::[\w\s-]+)*(?:\s*\|\s*["\'][^"\']*["\'])?\s*}/';
+
+ // Update pattern to handle special characters.
+ $escaped_tag = preg_quote( $tag, '/' );
+ $pattern = '/{\s*' . $escaped_tag . '(?::[^}|]*)*(?:\s*\|\s*["\'][^"\']*["\'])?\s*}/u';
preg_match_all( $pattern, $content, $matches );
diff --git a/includes/core/post-types/simple-pay/actions.php b/includes/core/post-types/simple-pay/actions.php
index a5d04e46..53698df0 100644
--- a/includes/core/post-types/simple-pay/actions.php
+++ b/includes/core/post-types/simple-pay/actions.php
@@ -78,7 +78,7 @@ function save( $post_id, $post, $update ) {
// Success redirect type.
$success_redirect_type = isset( $_POST['_success_redirect_type'] )
? esc_attr( $_POST['_success_redirect_type'] )
- : 'default';
+ : 'dedicated';
update_post_meta( $post_id, '_success_redirect_type', $success_redirect_type );
@@ -764,6 +764,10 @@ function save_prices( $post_id, $post, $form ) {
$price_args['recurring_amount_toggle_label'] = $price['recurring_amount_toggle_label'];
}
+ if ( isset( $price['can_recur_selected_by_default'] ) && ! empty( $price['can_recur_selected_by_default'] ) ) {
+ $price_args['can_recur_selected_by_default'] = $price['can_recur_selected_by_default'];
+ }
+
$_prices[ $instance_id ] = $price_args;
}
@@ -883,3 +887,91 @@ function duplicate() {
wp_safe_redirect( $redirect );
}
add_action( 'admin_init', __NAMESPACE__ . '\\duplicate' );
+
+/**
+ * Saves the Payment Form's Confirmation Page settings.
+ *
+ * @since 4.5.0
+ *
+ * @param int $post_id Payment Form ID.
+ * @param \WP_Post $post Payment Form \WP_Post object.
+ * @param \SimplePay\Core\Abstracts\Form $form Payment Form.
+ */
+function save_confirmation_page( $post_id, $post, $form ) {
+ // Import customization config from payment page.
+ $enable_confirmation_page = isset( $_POST['_confirmation_page_use_payment_page_config'] )
+ ? 'yes'
+ : 'no';
+
+ update_post_meta( $post_id, '_confirmation_page_use_payment_page_config', $enable_confirmation_page );
+
+ // Show Title/Description.
+ $confirmation_page_title_description = isset( $_POST['_confirmation_page_title_description'] )
+ ? 'yes'
+ : 'no';
+
+ update_post_meta(
+ $post_id,
+ '_confirmation_page_title_description',
+ $confirmation_page_title_description
+ );
+
+ // Color scheme.
+ $background_color = sanitize_hex_color(
+ $_POST['_confirmation_page_background_color']
+ );
+
+ update_post_meta(
+ $post_id,
+ '_confirmation_page_background_color',
+ $background_color
+ );
+
+ // Footer text.
+ $footer_text = sanitize_text_field(
+ $_POST['_confirmation_page_footer_text']
+ );
+
+ update_post_meta(
+ $post_id,
+ '_confirmation_page_footer_text',
+ $footer_text
+ );
+
+ // Powered by.
+ $confirmation_page_powered_by = isset( $_POST['_confirmation_page_powered_by'] )
+ ? 'yes'
+ : 'no';
+
+ update_post_meta(
+ $post_id,
+ '_confirmation_page_powered_by',
+ $confirmation_page_powered_by
+ );
+
+ // Image URL.
+ $confirmation_page_image = esc_url( $_POST['_confirmation_page_image_url'] );
+
+ update_post_meta(
+ $post_id,
+ '_confirmation_page_image_url',
+ $confirmation_page_image
+ );
+
+ // Self confirmation.
+ $confirmation_page_self_confirmation = isset( $_POST['_confirmation_page_self_confirmation'] )
+ ? 'yes'
+ : 'no';
+
+ update_post_meta(
+ $post_id,
+ '_confirmation_page_self_confirmation',
+ $confirmation_page_self_confirmation
+ );
+}
+add_action(
+ 'simpay_save_form_settings',
+ __NAMESPACE__ . '\\save_confirmation_page',
+ 50,
+ 3
+);
diff --git a/includes/core/post-types/simple-pay/edit-form-confirmation.php b/includes/core/post-types/simple-pay/edit-form-confirmation.php
index 0414e0b4..b9e37065 100644
--- a/includes/core/post-types/simple-pay/edit-form-confirmation.php
+++ b/includes/core/post-types/simple-pay/edit-form-confirmation.php
@@ -41,10 +41,25 @@ function _add_payment_success_page( $post_id ) {
$success_redirect_type = simpay_get_payment_form_setting(
$post_id,
'_success_redirect_type',
- 'default',
+ 'dedicated',
__unstable_simpay_get_payment_form_template_from_url()
);
+ // Lagecy `payment_page_self_confirmation` setting.
+ // If previously saved then set to "dedicated" to maintain previous behavior.
+ $payment_page_self_confirmation = get_post_meta( $post_id, '_payment_page_self_confirmation', true );
+ $enable_payment_page = simpay_get_payment_form_setting(
+ $post_id,
+ '_enable_payment_page',
+ 'no',
+ __unstable_simpay_get_payment_form_template_from_url()
+ );
+
+ // Since self-confirmation is related to payment pages, we need to make sure it's enabled.
+ if ( 'yes' === $payment_page_self_confirmation && 'yes' === $enable_payment_page ) {
+ $success_redirect_type = 'dedicated'; // Set to dedicated to maintain previous behavior.
+ }
+
simpay_print_field(
array(
'type' => 'radio',
@@ -52,12 +67,13 @@ function _add_payment_success_page( $post_id ) {
'id' => '_success_redirect_type',
'class' => array( 'simpay-multi-toggle' ),
'options' => array(
- 'default' => __( 'Global Setting', 'stripe' ),
- 'page' => __( 'Custom Page', 'stripe' ),
- 'redirect' => __( 'External URL', 'stripe' ),
+ 'dedicated' => __( 'Dedicated Confirmation Page', 'stripe' ),
+ 'default' => __( 'Global Setting', 'stripe' ),
+ 'page' => __( 'Custom Page', 'stripe' ),
+ 'redirect' => __( 'External URL', 'stripe' ),
),
'inline' => 'inline',
- 'default' => 'default',
+ 'default' => 'dedicated',
'value' => $success_redirect_type,
)
);
@@ -97,6 +113,24 @@ function _add_payment_success_page( $post_id ) {
?>
+
+
+ 'payment-confirmations',
+ 'subsection' => 'pages',
+ 'setting' => 'success_page',
+ )
+ );
+
+ echo __(
+ 'Use a distraction-free payment confirmation page without adding a new page in WordPress.',
+ 'stripe'
+ );
+ ?>
+
+
'pages',
)
);
+
+ $payment_page_settings_url = '#payment-page-settings-panel';
?>
@@ -197,8 +233,59 @@ function _add_payment_success_message( $post_id ) {
?>
-
+
+
+
+
+
+
+ |
+
+
+
+
+ |
+
|