diff --git a/data/templates/ach-debit-form.json b/data/templates/ach-debit-form.json new file mode 100644 index 00000000..9e2349e8 --- /dev/null +++ b/data/templates/ach-debit-form.json @@ -0,0 +1,56 @@ +{ + "id": "7c1efe0a-2c73-4456-875a-5c96cf69db71", + "license": [ + "personal", + "plus", + "professional", + "ultimate", + "elite" + ], + "categories": [ + "non-profit", + "alternative" + ], + "keywords": [ + "ach", + "debit", + "on-site" + ], + "slug": "ach-debit-form", + "name": "ACH Debit Form", + "description": "Accept ACH debit payments directly from bank accounts (U.S. only).", + "url": "", + "data": { + "title": "ACH Debit Form", + "description": "", + "type": "embedded", + "payment_methods": [ + "ach-debit", + "card" + ], + "fields": [ + { + "type": "email", + "label": "Email Address" + }, + { + "type": "plan_select", + "label": "" + }, + { + "type": "card", + "label": "", + "icons": "yes" + }, + { + "type": "checkout_button" + } + ], + "prices": [ + { + "unit_amount": 10000, + "currency": "usd" + } + ] + } +} \ No newline at end of file diff --git a/data/templates/afterpay-clearpay-form.json b/data/templates/afterpay-clearpay-form.json new file mode 100644 index 00000000..0f313377 --- /dev/null +++ b/data/templates/afterpay-clearpay-form.json @@ -0,0 +1,53 @@ +{ + "id": "e1336366-a8d6-4e6b-8ece-7ab476d96e28", + "license": [ + "professional", + "ultimate", + "elite" + ], + "categories": [ + "business", + "alternative" + ], + "keywords": [ + "buy now", + "pay later", + "on-site" + ], + "slug": "afterpay-clearpay-form", + "name": "Afterpay/Clearpay (Buy Now Pay Later) Form", + "description": "Offer buy now pay later payments with Afterpay/Clearpay.", + "url": "", + "data": { + "title": "Afterpay/Clearpay (Buy Now Pay Later) Form", + "description": "", + "type": "embedded", + "payment_methods": [ + "afterpay-clearpay", + "card" + ], + "fields": [ + { + "type": "email", + "label": "Email Address" + }, + { + "type": "plan_select", + "label": "" + }, + { + "type": "card", + "label": "", + "icons": "yes" + }, + { + "type": "checkout_button" + } + ], + "prices": [ + { + "unit_amount": 2500 + } + ] + } +} \ No newline at end of file diff --git a/data/templates/klarna-form.json b/data/templates/klarna-form.json new file mode 100644 index 00000000..0d9a9462 --- /dev/null +++ b/data/templates/klarna-form.json @@ -0,0 +1,53 @@ +{ + "id": "a0668a50-8b04-4231-8bf5-54264cf7030a", + "license": [ + "professional", + "ultimate", + "elite" + ], + "categories": [ + "business", + "alternative" + ], + "keywords": [ + "buy now", + "pay later", + "on-site" + ], + "slug": "klarna-form", + "name": "Klarna (Buy Now Pay Later) Form", + "description": "Offer buy now pay later payments with Klarna.", + "url": "", + "data": { + "title": "Klarna (Buy Now Pay Later) Form", + "description": "", + "type": "embedded", + "payment_methods": [ + "klarna", + "card" + ], + "fields": [ + { + "type": "email", + "label": "Email Address" + }, + { + "type": "plan_select", + "label": "" + }, + { + "type": "card", + "label": "", + "icons": "yes" + }, + { + "type": "checkout_button" + } + ], + "prices": [ + { + "unit_amount": 2500 + } + ] + } +} \ No newline at end of file diff --git a/data/templates/payment-form-coupon.json b/data/templates/payment-form-coupon.json new file mode 100644 index 00000000..9f5a3198 --- /dev/null +++ b/data/templates/payment-form-coupon.json @@ -0,0 +1,56 @@ +{ + "id": "5201e546-8de6-42dc-9e5f-d3cc51813fa2", + "license": [ + "personal", + "plus", + "professional", + "ultimate", + "elite" + ], + "categories": [ + "business" + ], + "keywords": [ + "on-site", + "coupon", + "discount" + ], + "slug": "payment-form-coupon", + "name": "Payment Form with Coupon", + "description": "Collect credit card payments with a basic form, accept coupons.", + "url": "", + "data": { + "title": "Payment Form with Coupon", + "description": "Collect credit card payments", + "type": "embedded", + "payment_methods": [ + "card" + ], + "fields": [ + { + "type": "email", + "label": "Email Address" + }, + { + "type": "plan_select", + "label": "" + }, + { + "type": "coupon", + "label": "Coupon Code" + }, + { + "type": "card", + "label": "Credit Card" + }, + { + "type": "checkout_button" + } + ], + "prices": [ + { + "unit_amount": 1000 + } + ] + } +} \ No newline at end of file diff --git a/data/templates/payment-request-form.json b/data/templates/payment-request-form.json new file mode 100644 index 00000000..8fc8c777 --- /dev/null +++ b/data/templates/payment-request-form.json @@ -0,0 +1,58 @@ +{ + "id": "86d08d6b-8e84-4e59-9177-cf946bb9f910", + "license": [ + "personal", + "plus", + "professional", + "ultimate", + "elite" + ], + "categories": [ + "business", + "alternative" + ], + "keywords": [ + "apple", + "google", + "microsoft", + "express", + "on-site" + ], + "slug": "payment-request-form", + "name": "Apple Pay / Google Pay Form", + "description": "Collect payments with Apple Pay and Google Pay.", + "url": "", + "data": { + "title": "Apple Pay / Google Pay Form", + "description": "", + "type": "embedded", + "payment_methods": [ + "card" + ], + "fields": [ + { + "type": "email", + "label": "Email Address" + }, + { + "type": "plan_select", + "label": "" + }, + { + "type": "payment_request_button" + }, + { + "type": "card", + "label": "Credit Card" + }, + { + "type": "checkout_button" + } + ], + "prices": [ + { + "unit_amount": 1000 + } + ] + } +} \ No newline at end of file diff --git a/data/templates/product-installment-plan-form.json b/data/templates/product-installment-plan-form.json new file mode 100644 index 00000000..1478e228 --- /dev/null +++ b/data/templates/product-installment-plan-form.json @@ -0,0 +1,56 @@ +{ + "id": "05387fec-8a7d-423e-8a5d-04e94af41111", + "license": [ + "plus", + "professional", + "ultimate", + "elite" + ], + "categories": [ + "recurring" + ], + "keywords": [ + "installment", + "service", + "subscription" + ], + "slug": "product-installment-plan-form", + "name": "Installment Plan Form", + "description": "Collect a specific number of payments in a specific period of time.", + "url": "", + "data": { + "title": "Installment Plan", + "description": "Purchase a product in installments.", + "type": "embedded", + "payment_methods": [ + "card" + ], + "fields": [ + { + "type": "email", + "label": "Email Address" + }, + { + "type": "plan_select" + }, + { + "type": "card", + "label": "Credit Card" + }, + { + "type": "checkout_button" + } + ], + "prices": [ + { + "unit_amount": 2500, + "recurring": { + "interval": "month", + "interval_count": 1, + "invoice_limit": 4 + }, + "default": true + } + ] + } +} \ No newline at end of file diff --git a/data/templates/product-subscription-form-coupon.json b/data/templates/product-subscription-form-coupon.json new file mode 100644 index 00000000..d8d2f840 --- /dev/null +++ b/data/templates/product-subscription-form-coupon.json @@ -0,0 +1,70 @@ +{ + "id": "9c99931b-599b-471f-b39d-2607c8283c19", + "license": [ + "plus", + "professional", + "ultimate", + "elite" + ], + "categories": [ + "recurring" + ], + "keywords": [ + "subscription", + "coupon", + "discount" + ], + "slug": "product-subscription-form-coupon", + "name": "Product Subscription with Coupon", + "description": "Bill customers on a recurring basis for a product, accept coupons", + "url": "", + "data": { + "title": "Product Subscription", + "description": "Subscribe to our product.", + "type": "embedded", + "payment_methods": [ + "card" + ], + "fields": [ + { + "type": "email", + "label": "Email Address" + }, + { + "type": "plan_select", + "label": "Payment Options", + "display_type": "list" + }, + { + "type": "coupon", + "label": "Coupon Code" + }, + { + "type": "card", + "label": "Credit Card" + }, + { + "type": "checkout_button" + } + ], + "prices": [ + { + "unit_amount": 1500, + "label": "Monthly", + "recurring": { + "interval": "month", + "interval_count": 1 + }, + "default": true + }, + { + "unit_amount": 10000, + "recurring": { + "interval": "year", + "interval_count": 1 + }, + "label": "Yearly (Save $80!)" + } + ] + } +} \ No newline at end of file diff --git a/data/templates/recurring-service-setup-fee-form.json b/data/templates/recurring-service-setup-fee-form.json new file mode 100644 index 00000000..11b71fdf --- /dev/null +++ b/data/templates/recurring-service-setup-fee-form.json @@ -0,0 +1,61 @@ +{ + "id": "03a82a3c-f9bd-42c2-92e9-e48b7f827c46", + "license": [ + "plus", + "professional", + "ultimate", + "elite" + ], + "categories": [ + "recurring" + ], + "keywords": [ + "fee", + "setup", + "service", + "subscription" + ], + "slug": "recurring-service-setup-fee-form", + "name": "Recurring Services with Setup Fee Form", + "description": "Charge an additional amount to setup a recurring service.", + "url": "", + "data": { + "title": "Subscribe to Service", + "description": "Sign up for our service.", + "type": "embedded", + "payment_methods": [ + "card" + ], + "fields": [ + { + "type": "email", + "label": "Email Address" + }, + { + "type": "plan_select" + }, + { + "type": "card", + "label": "Credit Card" + }, + { + "type": "checkout_button" + } + ], + "prices": [ + { + "unit_amount": 2500, + "recurring": { + "interval": "month", + "interval_count": 1 + }, + "line_items": [ + { + "unit_amount": 2500 + } + ], + "default": true + } + ] + } +} \ No newline at end of file diff --git a/data/templates/recurring-service-trial-period-form.json b/data/templates/recurring-service-trial-period-form.json new file mode 100644 index 00000000..d851aa00 --- /dev/null +++ b/data/templates/recurring-service-trial-period-form.json @@ -0,0 +1,57 @@ +{ + "id": "df64055c-3fdc-43d4-bc4c-f58e232160e6", + "license": [ + "plus", + "professional", + "ultimate", + "elite" + ], + "categories": [ + "recurring" + ], + "keywords": [ + "trial", + "free", + "service", + "subscription" + ], + "slug": "recurring-service-trial-period-form", + "name": "Recurring Services with Trial Period Form", + "description": "Collect multiple payments after a set trial period.", + "url": "", + "data": { + "title": "Start Your Trial", + "description": "Try our service free for 30 days.", + "type": "embedded", + "payment_methods": [ + "card" + ], + "fields": [ + { + "type": "email", + "label": "Email Address" + }, + { + "type": "plan_select" + }, + { + "type": "card", + "label": "Credit Card" + }, + { + "type": "checkout_button" + } + ], + "prices": [ + { + "unit_amount": 2500, + "recurring": { + "interval": "month", + "interval_count": 1, + "trial_period_days": 30 + }, + "default": true + } + ] + } +} \ No newline at end of file diff --git a/data/templates/sepa-direct-debit-form.json b/data/templates/sepa-direct-debit-form.json new file mode 100644 index 00000000..1b4267e8 --- /dev/null +++ b/data/templates/sepa-direct-debit-form.json @@ -0,0 +1,56 @@ +{ + "id": "378765dc-9691-4155-91ca-1de02b6ed0b1", + "license": [ + "personal", + "plus", + "professional", + "ultimate", + "elite" + ], + "categories": [ + "non-profit", + "alternative" + ], + "keywords": [ + "sepa", + "debit", + "on-site" + ], + "slug": "sepa-direct-debit-form", + "name": "SEPA Direct Debit Form", + "description": "Collect payments through SEPA Direct Debit.", + "url": "", + "data": { + "title": "SEPA Direct Debit Form", + "description": "", + "type": "embedded", + "payment_methods": [ + "sepa-debit", + "card" + ], + "fields": [ + { + "type": "email", + "label": "Email Address" + }, + { + "type": "plan_select", + "label": "" + }, + { + "type": "card", + "label": "", + "icons": "yes" + }, + { + "type": "checkout_button" + } + ], + "prices": [ + { + "unit_amount": 10000, + "currency": "eur" + } + ] + } +} \ No newline at end of file diff --git a/gruntfile.js b/gruntfile.js index 60736edd..7ca71c66 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -55,6 +55,8 @@ module.exports = function( grunt ) { files: { src: [ 'includes/**/*.php', + 'views/**/*.php', + 'src/**/*.php', 'stripe-checkout.php', 'uninstall.php' ], diff --git a/includes/core/admin/class-assets.php b/includes/core/admin/class-assets.php index 5ae16868..03247c1d 100644 --- a/includes/core/admin/class-assets.php +++ b/includes/core/admin/class-assets.php @@ -166,10 +166,11 @@ public function register() { 'simpay-admin', 'simpayAdmin', array( - 'siteTitle' => get_bloginfo( 'name' ), - 'ajaxUrl' => admin_url( 'admin-ajax.php' ), - 'nonce' => wp_create_nonce( 'simpay-admin' ), - 'i18n' => array( + 'siteTitle' => get_bloginfo( 'name' ), + 'ajaxUrl' => admin_url( 'admin-ajax.php' ), + 'nonce' => wp_create_nonce( 'simpay-admin' ), + 'licenseLevel' => simpay_get_license()->get_level(), + 'i18n' => array( 'dateFormat' => simpay_get_date_format(), 'leavePageConfirm' => esc_html__( 'The changes you made will be lost if you navigate away from this page.', diff --git a/includes/core/admin/class-menus.php b/includes/core/admin/class-menus.php index a07cac89..7b75509d 100644 --- a/includes/core/admin/class-menus.php +++ b/includes/core/admin/class-menus.php @@ -150,7 +150,7 @@ public static function plugin_action_links( $action_links, $file ) { $documentation_url = simpay_ga_url( 'https://docs.wpsimplepay.com/', 'plugin-listing-link', - false + 'Documentation' ); $links[] = sprintf( @@ -163,7 +163,7 @@ public static function plugin_action_links( $action_links, $file ) { $support_url = simpay_ga_url( 'https://wpsimplepay.com/support', 'plugin-listing-link', - false + 'Support' ); $links[] = sprintf( diff --git a/includes/core/admin/functions/notices.php b/includes/core/admin/functions/notices.php index a76741da..8ff564f2 100644 --- a/includes/core/admin/functions/notices.php +++ b/includes/core/admin/functions/notices.php @@ -95,7 +95,7 @@ function stripe_connect() {

- +

diff --git a/includes/core/admin/notices/promos.php b/includes/core/admin/notices/promos.php deleted file mode 100644 index ba72f831..00000000 --- a/includes/core/admin/notices/promos.php +++ /dev/null @@ -1,79 +0,0 @@ -post_type ) || - 'simple-pay' !== $current_screen->post_type - ) { - return; - } - - // Dismissed, show nothing. - $dismissed = Notice_Manager::is_notice_dismissed( 'simpay-license-upgrade' ); - - if ( true === $dismissed ) { - return; - } - - $license_data = get_option( 'simpay_license_data', false ); - $is_lite = false === class_exists( '\SimplePay\Pro\SimplePayPro', false ); - - // Pro. No license data. Show nothing. - if ( - false === $is_lite && - ( - false === $license_data || - ( isset( $license_data->error ) && 'missing' === $license_data->error ) - ) - ) { - return; - } - - $license_id = isset( $license_data->price_id ) - ? $license_data->price_id - : 0; - - // Pro. Professional or higher. Show nothing. - if ( false === $is_lite && $license_id > 1 ) { - return; - } - - $license_types = array( - 0 => _x( 'Lite', 'license type', 'stripe' ), - 1 => _x( 'Personal', 'license type', 'stripe' ), - 2 => _x( 'Plus', 'license type', 'stripe' ), - 3 => _x( 'Professional', 'license type', 'stripe' ), - 4 => _x( 'Ultimate', 'license type', 'stripe' ), - ); - - $license_type = false === $is_lite - ? $license_types[ $license_id ] - : false; - - $upgrade_url = simpay_pro_upgrade_url( 'notice-bar' ); - - require dirname( __FILE__ ) . '/promos/general/license-upgrade.php'; -} -add_action( 'admin_notices', __NAMESPACE__ . '\\license_upgrade_promo' ); diff --git a/includes/core/admin/notices/promos/general/license-upgrade.php b/includes/core/admin/notices/promos/general/license-upgrade.php deleted file mode 100644 index f04ff5de..00000000 --- a/includes/core/admin/notices/promos/general/license-upgrade.php +++ /dev/null @@ -1,83 +0,0 @@ - - -
- ', - '' - ), - array( - 'a' => array( - 'href' => true, - 'target' => true, - 'rel' => true, - ), - ) - ); - else : - switch ( $license_id ) { - case 1: - /* translators: %1$s License type. %2$s Opening anchor tag, do not translate. %3$s Closing anchor tag, do not translate. */ - $message = __( - 'You\'re using WP Simple Pay with a %1$s license. To unlock more features consider %2$supgrading now%3$s.', - 'stripe' - ); - break; - // Currently does not show. - default: - /* translators: %1$s License type. %2$s Opening anchor tag, do not translate. %3$s Closing anchor tag, do not translate. */ - $message = __( - 'You are using WP Simple Pay with a %1$s license. Consider %2$supgrading%3$s to get more sites.', - 'stripe' - ); - } - - echo wp_kses( - sprintf( - $message, - $license_type, - '', - '' - ), - array( - 'a' => array( - 'href' => true, - 'target' => true, - 'rel' => true, - ), - ) - ); - endif; - ?> - - -
diff --git a/includes/core/assets/css/admin/admin.scss b/includes/core/assets/css/admin/admin.scss index 7cbd724e..a2563a31 100644 --- a/includes/core/assets/css/admin/admin.scss +++ b/includes/core/assets/css/admin/admin.scss @@ -1,3 +1,10 @@ +@import "~@wordpress/base-styles/colors"; +@import "~@wordpress/base-styles/variables"; +@import "~@wordpress/base-styles/mixins"; +@import "~@wordpress/base-styles/breakpoints"; +@import "~@wordpress/base-styles/animations"; +@import "~@wordpress/base-styles/z-index"; + @import './settings.scss'; .button.button-large.simpay-button-large { @@ -405,6 +412,23 @@ // simpay-panel-field is the wrapping tr element for each setting field on the form settings pages .simpay-panel-field { + &--requires-upgrade { + position: relative; + + td { + + > div { + margin-right: 80px; + + .button-small { + position: absolute; + top: calc(50% - 13px); + right: 18px; + } + } + } + } + &, > td, > th { @@ -1294,6 +1318,89 @@ select.simpay-currency-symbol { } } +/** + * Upgrade modal via jQuery UI. + * + * @see @wpsimplepay/utils/upgrade-modal.js + * @see ./src/Admin/Education/UpgradeModal.php + * @see ./views/admin-education-upgrade-modal.php + */ +.simpay-upgrade-modal { + padding: 0 !important; + + * { + box-sizing: border-box; + } + + &__content { + text-align: center; + display: flex; + flex-direction: column; + align-items: center; + padding: $grid-unit-20 $grid-unit-40 $grid-unit-40; + + > .dashicons { + color: #333; + font-size: 48px; + width: 48px; + height: 48px; + } + } + + &__title { + font-size: 22px; + line-height: 1.5; + display: block; + margin: $grid-unit-15 0 0; + } + + &__description { + color: #777; + font-size: 16px; + margin: $grid-unit-20 0 $grid-unit-30; + + strong { + color: #333; + } + } + + &__discount { + font-size: 15px; + text-align: center; + margin: $grid-unit-20 calc($grid-unit-40 * -1) calc($grid-unit * 2.5); + padding: $grid-unit-30 $grid-unit-50 $grid-unit-20; + background-color: #fcf9e8; + position: relative; + + svg { + background: #00a32a; + fill: white; + border-radius: 50%; + border: 4px solid white; + width: 32px; + height: 32px; + position: absolute; + top: -16px; + left: 50%; + margin-left: -16px; + } + + u { + text-decoration: none; + font-weight: bold; + color: #00a32a; + } + } + + .button-large { + font-size: 16px; + font-weight: bold; + margin: 0 0 15px; + padding: 8px 30px !important; + height: auto; + } +} + /** * Teasers */ @@ -1445,6 +1552,33 @@ select.simpay-currency-symbol { } } +.simpay-teaser-form-setting { + position: relative; + + .simpay-external-link .dashicons-external { + margin: 1px 0 0 2px; + } + + .simpay-notice-dismiss { + position: absolute; + top: 8px; + right: 8px; + font-size: 20px; + color: #666; + text-decoration: none; + margin-left: 5px; + padding: 6px 10px; + z-index: 2; + + &:hover, + &:active, + &:focus { + color: #666; + text-decoration: none; + } + } +} + /** * Lity adjustments. */ diff --git a/includes/core/assets/css/admin/form-template-explorer.scss b/includes/core/assets/css/admin/form-template-explorer.scss index 5561d97a..c95fac66 100644 --- a/includes/core/assets/css/admin/form-template-explorer.scss +++ b/includes/core/assets/css/admin/form-template-explorer.scss @@ -243,6 +243,10 @@ body.simpay-template-explorer-open { position: relative; text-overflow: ellipsis; white-space: nowrap; + + &--is-locked { + padding-right: 30px; + } } &-list-item__description { @@ -285,19 +289,16 @@ body.simpay-template-explorer-open { } &-list-item__badge { - background-color: #bbbbbb; - border-radius: 9px; - color: #ffffff; - display: block; - font-size: 8px; - font-weight: 700; - letter-spacing: .5px; - line-height: 8px; - padding: 5px 8px; + background: #fff; + padding: 4px; position: absolute; - right: 10px; - text-transform: uppercase; - top: 10px; + right: calc($grid-unit-20 - 6px); + top: 14px; + z-index: 2; + + svg { + fill: #777; + } } &-suggest { @@ -379,6 +380,10 @@ body.simpay-template-explorer-open { color: #777; font-size: 16px; margin: $grid-unit-20 0 $grid-unit-30; + + strong { + color: #1d2327; + } } .components-button.is-primary { diff --git a/includes/core/assets/css/frontend/public.scss b/includes/core/assets/css/frontend/public.scss index 48126278..bf220cc2 100644 --- a/includes/core/assets/css/frontend/public.scss +++ b/includes/core/assets/css/frontend/public.scss @@ -80,25 +80,47 @@ $error-text-color: #eb1c26; } } -.simpay-form-preview { +html body.simpay-form-preview { padding: 50px; + background: #ffffff; + font-family: sans-serif ; - &-button { - + &:before, + &:after { + display: none; } - &-notice { - background-color: rgba(250, 230, 1, 0.1); + .simpay-form-preview-notice { + background: #fafafa; margin-bottom: 50px; - padding: 1em; - border-radius: 4px; + padding: 5px 20px; display: inline-block; + border: 1px solid #ddd; + box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); + + &-button { + background-color: #428bca; + color: #fff; + font-size: 16px; + line-height: 1.2; + padding: 6px 12px; + font-weight: normal; + text-shadow: none; + border: 1px solid #2d6ca2; + box-shadow: none; + border-radius: 4px; + cursor: pointer; + } + + &-section { + margin: 10px 0; + } p { font-family: $base-font; font-size: 16px; color: $base-text-color; - margin: 0; + margin: 15px 0; } } -} \ No newline at end of file +} diff --git a/includes/core/assets/css/simpay-admin-form-template-explorer.min.css b/includes/core/assets/css/simpay-admin-form-template-explorer.min.css index 0dd71489..69cdcfb1 100644 --- a/includes/core/assets/css/simpay-admin-form-template-explorer.min.css +++ b/includes/core/assets/css/simpay-admin-form-template-explorer.min.css @@ -1,3 +1,3 @@ -body.admin-color-light{--wp-admin-theme-color: #0085ba;--wp-admin-theme-color--rgb: 0, 133, 186;--wp-admin-theme-color-darker-10: #0073a1;--wp-admin-theme-color-darker-10--rgb: 0, 115, 161;--wp-admin-theme-color-darker-20: #006187;--wp-admin-theme-color-darker-20--rgb: 0, 97, 135;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-light{--wp-admin-border-width-focus: 1.5px}}body.admin-color-modern{--wp-admin-theme-color: #3858e9;--wp-admin-theme-color--rgb: 56, 88, 233;--wp-admin-theme-color-darker-10: #2145e6;--wp-admin-theme-color-darker-10--rgb: 33, 69, 230;--wp-admin-theme-color-darker-20: #183ad6;--wp-admin-theme-color-darker-20--rgb: 24, 58, 214;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-modern{--wp-admin-border-width-focus: 1.5px}}body.admin-color-blue{--wp-admin-theme-color: #096484;--wp-admin-theme-color--rgb: 9, 100, 132;--wp-admin-theme-color-darker-10: #07526c;--wp-admin-theme-color-darker-10--rgb: 7, 82, 108;--wp-admin-theme-color-darker-20: #064054;--wp-admin-theme-color-darker-20--rgb: 6, 64, 84;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-blue{--wp-admin-border-width-focus: 1.5px}}body.admin-color-coffee{--wp-admin-theme-color: #46403c;--wp-admin-theme-color--rgb: 70, 64, 60;--wp-admin-theme-color-darker-10: #383330;--wp-admin-theme-color-darker-10--rgb: 56, 51, 48;--wp-admin-theme-color-darker-20: #2b2724;--wp-admin-theme-color-darker-20--rgb: 43, 39, 36;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-coffee{--wp-admin-border-width-focus: 1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color: #523f6d;--wp-admin-theme-color--rgb: 82, 63, 109;--wp-admin-theme-color-darker-10: #46365d;--wp-admin-theme-color-darker-10--rgb: 70, 54, 93;--wp-admin-theme-color-darker-20: #3a2c4d;--wp-admin-theme-color-darker-20--rgb: 58, 44, 77;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus: 1.5px}}body.admin-color-midnight{--wp-admin-theme-color: #e14d43;--wp-admin-theme-color--rgb: 225, 77, 67;--wp-admin-theme-color-darker-10: #dd382d;--wp-admin-theme-color-darker-10--rgb: 221, 56, 45;--wp-admin-theme-color-darker-20: #d02c21;--wp-admin-theme-color-darker-20--rgb: 208, 44, 33;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-midnight{--wp-admin-border-width-focus: 1.5px}}body.admin-color-ocean{--wp-admin-theme-color: #627c83;--wp-admin-theme-color--rgb: 98, 124, 131;--wp-admin-theme-color-darker-10: #576e74;--wp-admin-theme-color-darker-10--rgb: 87, 110, 116;--wp-admin-theme-color-darker-20: #4c6066;--wp-admin-theme-color-darker-20--rgb: 76, 96, 102;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-ocean{--wp-admin-border-width-focus: 1.5px}}body.admin-color-sunrise{--wp-admin-theme-color: #dd823b;--wp-admin-theme-color--rgb: 221, 130, 59;--wp-admin-theme-color-darker-10: #d97426;--wp-admin-theme-color-darker-10--rgb: 217, 116, 38;--wp-admin-theme-color-darker-20: #c36922;--wp-admin-theme-color-darker-20--rgb: 195, 105, 34;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus: 1.5px}}@media(min-width: 1440px){body.simpay-template-explorer-open{overflow:hidden}}body.simpay-template-explorer-open .simpay-admin-notice-top-of-page.simpay-notice,body.simpay-template-explorer-open .notice,body.simpay-template-explorer-open #screen-meta,body.simpay-template-explorer-open #screen-meta-links,body.simpay-template-explorer-open #wpfooter{display:none !important}body.simpay-template-explorer-open.branch-5-6 .components-search-control,body.simpay-template-explorer-open.branch-5-7 .components-search-control,body.simpay-template-explorer-open.branch-5-8 .components-search-control{position:relative}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;display:block;padding:16px 48px 16px 16px;background:#f0f0f0;border:none;width:100%;height:48px;font-size:16px}@media(prefers-reduced-motion: reduce){body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input{transition-duration:0s;transition-delay:0s}}@media(min-width: 600px){body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input{font-size:13px;line-height:normal}}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input:focus,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input:focus,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-webkit-input-placeholder,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-webkit-input-placeholder,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-moz-placeholder,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-moz-placeholder,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input:-ms-input-placeholder,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input:-ms-input-placeholder,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input:-ms-input-placeholder{color:rgba(30,30,30,.62)}@media(min-width: 600px){body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input{font-size:13px}}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input:focus,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input:focus,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input:focus{background:#fff;box-shadow:0 0 0 2px var(--wp-admin-theme-color)}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-moz-placeholder, body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-moz-placeholder, body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-moz-placeholder{color:#757575}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input:-ms-input-placeholder, body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input:-ms-input-placeholder, body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input:-ms-input-placeholder{color:#757575}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::placeholder,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::placeholder,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::placeholder{color:#757575}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-webkit-search-decoration,body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-webkit-search-cancel-button,body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-webkit-search-results-button,body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-webkit-search-results-decoration,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-webkit-search-decoration,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-webkit-search-cancel-button,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-webkit-search-results-button,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-webkit-search-results-decoration,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-webkit-search-decoration,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-webkit-search-cancel-button,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-webkit-search-results-button,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-webkit-search-results-decoration{-webkit-appearance:none}body.simpay-template-explorer-open.branch-5-6 .components-search-control__icon,body.simpay-template-explorer-open.branch-5-7 .components-search-control__icon,body.simpay-template-explorer-open.branch-5-8 .components-search-control__icon{position:absolute;top:0;right:12px;bottom:0;display:flex;align-items:center}body.simpay-template-explorer-open.branch-5-6 .components-search-control__icon>svg,body.simpay-template-explorer-open.branch-5-7 .components-search-control__icon>svg,body.simpay-template-explorer-open.branch-5-8 .components-search-control__icon>svg{margin:8px 0}body.simpay-template-explorer-open.branch-5-6 .components-search-control__input-wrapper,body.simpay-template-explorer-open.branch-5-7 .components-search-control__input-wrapper,body.simpay-template-explorer-open.branch-5-8 .components-search-control__input-wrapper{position:relative}#simpay-form-template-explorer{background:#fff;border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04);margin-top:10px}#simpay-form-template-explorer,#simpay-form-template-explorer *{box-sizing:border-box}@media(min-width: 1440px){#simpay-form-template-explorer{position:fixed;top:111px;right:0;bottom:0;left:160px;margin:20px 22px;overflow-x:hidden;overflow-y:scroll}.folded #simpay-form-template-explorer{left:36px}}#simpay-form-template-explorer #wpcontent{padding-left:0}#simpay-form-template-explorer #wpbody-content{padding-bottom:0}#simpay-form-template-explorer+#poststuff{display:none}.simpay-form-template-explorer{padding:24px}@media(min-width: 1440px){.simpay-form-template-explorer{height:100%;overflow:auto;padding-top:0}}@media(min-width: 1440px){.simpay-form-template-explorer-header{position:absolute;left:0;right:0;padding:24px 0 24px 24px;margin-right:24px;height:100px;background:#fff;z-index:2}}.simpay-form-template-explorer-header__title{font-size:22px;font-weight:400;margin:0}.simpay-form-template-explorer-header__subtitle{color:#555;font-size:15px;margin:8px 0 0}.simpay-form-template-explorer-main{margin-top:24px}.simpay-form-template-explorer-main__sidebar{margin-bottom:24px;padding:2px}.simpay-form-template-explorer-main__sidebar-search{margin-bottom:12px}@media(min-width: 1440px){.simpay-form-template-explorer-main__sidebar-search{margin-bottom:24px}}@media(min-width: 1440px){.simpay-form-template-explorer-main__sidebar-categories{display:flex;flex-direction:column}}.simpay-form-template-explorer-main__sidebar-categories .components-button.is-pressed{background-color:var(--wp-admin-theme-color)}.simpay-form-template-explorer-main__content{display:-ms-grid;display:grid;grid-gap:24px;-ms-grid-columns:(1fr)[1];grid-template-columns:repeat(1, 1fr);padding:2px}@media(min-width: 782px){.simpay-form-template-explorer-main__content:not(.is-empty){-ms-grid-columns:(minmax(0, 1fr))[2];grid-template-columns:repeat(2, minmax(0, 1fr))}}@media(min-width: 960px){.simpay-form-template-explorer-main__content:not(.is-empty){-ms-grid-columns:(minmax(0, 1fr))[3];grid-template-columns:repeat(3, minmax(0, 1fr))}}.simpay-form-template-explorer-main__content-list-item{text-align:left;padding:16px;border-radius:4px;border:1px solid #ddd;position:relative;transition:all .15s ease-out;width:100%;height:auto;min-height:100px;flex-direction:column;align-items:flex-start}.simpay-form-template-explorer-main__content-list-item:focus-within,.simpay-form-template-explorer-main__content-list-item:focus,.simpay-form-template-explorer-main__content-list-item:hover{border-color:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;outline:none}.simpay-form-template-explorer-main__content-list-item:focus-within .simpay-form-template-explorer-main__content-list-item__description,.simpay-form-template-explorer-main__content-list-item:focus .simpay-form-template-explorer-main__content-list-item__description,.simpay-form-template-explorer-main__content-list-item:hover .simpay-form-template-explorer-main__content-list-item__description{opacity:0}.simpay-form-template-explorer-main__content-list-item:focus-within .simpay-form-template-explorer-main__content-list-item__actions,.simpay-form-template-explorer-main__content-list-item:focus .simpay-form-template-explorer-main__content-list-item__actions,.simpay-form-template-explorer-main__content-list-item:hover .simpay-form-template-explorer-main__content-list-item__actions{opacity:1}.simpay-form-template-explorer-main__content-list-item__name{font-size:16px;font-weight:600;line-height:21px;overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap}.simpay-form-template-explorer-main__content-list-item__description{color:#777;font-size:14px;line-height:18px;margin:10px 0 0;max-height:53px;overflow:hidden;opacity:1}.simpay-form-template-explorer-main__content-list-item__actions{background-color:#fff;border-radius:4px;display:flex;justify-content:space-between;align-items:center;padding:16px;position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;transition:all .15s ease-out}@media(min-width: 782px){.simpay-form-template-explorer-main__content-list-item__actions{padding:0 16px 16px;top:auto;height:auto}}.simpay-form-template-explorer-main__content-list-item__actions .components-button{justify-content:center;flex:1 1 48%}.simpay-form-template-explorer-main__content-list-item__badge{background-color:#bbb;border-radius:9px;color:#fff;display:block;font-size:8px;font-weight:700;letter-spacing:.5px;line-height:8px;padding:5px 8px;position:absolute;right:10px;text-transform:uppercase;top:10px}.simpay-form-template-explorer-main__content-suggest{color:#1d2327;padding:24px;grid-column:1/-1;display:flex;align-items:flex-start;border:1px solid #ddd;border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.06)}.simpay-form-template-explorer-main__content-suggest>div{margin-left:16px}.simpay-form-template-explorer-main__content-suggest svg{fill:currentColor;flex:1 0 auto;margin-top:-6px}.simpay-form-template-explorer-main__content-suggest h4{margin:0;font-size:20px}.simpay-form-template-explorer-main__content-suggest p{color:#555;font-size:14px}@media(min-width: 1440px){.simpay-form-template-explorer-main{margin-top:100px}.simpay-form-template-explorer-main__sidebar{top:100px;bottom:0;left:24px;overflow-x:hidden;overflow-y:auto;position:absolute;width:280px}.simpay-form-template-explorer-main__content{overflow-x:hidden;overflow-y:auto;margin-left:300px}}.simpay-form-template-explorer-upgrade{max-width:600px}.simpay-form-template-explorer-upgrade *{box-sizing:border-box}.simpay-form-template-explorer-upgrade__content{text-align:center;display:flex;flex-direction:column;align-items:center}.simpay-form-template-explorer-upgrade__title{font-size:22px;line-height:1.5;display:block;margin:12px 0 0}.simpay-form-template-explorer-upgrade__description{color:#777;font-size:16px;margin:16px 0 24px}.simpay-form-template-explorer-upgrade .components-button.is-primary{font-size:16px;font-weight:bold;margin:0 0 15px;padding:15px 30px !important;height:auto}.simpay-form-template-explorer-upgrade__discount{font-size:15px;text-align:center;margin:16px -32px 20px;padding:24px 40px 16px;background-color:#fcf9e8;position:relative}.simpay-form-template-explorer-upgrade__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-form-template-explorer-upgrade__discount u{text-decoration:none;font-weight:bold;color:#00a32a} +body.admin-color-light{--wp-admin-theme-color: #0085ba;--wp-admin-theme-color--rgb: 0, 133, 186;--wp-admin-theme-color-darker-10: #0073a1;--wp-admin-theme-color-darker-10--rgb: 0, 115, 161;--wp-admin-theme-color-darker-20: #006187;--wp-admin-theme-color-darker-20--rgb: 0, 97, 135;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-light{--wp-admin-border-width-focus: 1.5px}}body.admin-color-modern{--wp-admin-theme-color: #3858e9;--wp-admin-theme-color--rgb: 56, 88, 233;--wp-admin-theme-color-darker-10: #2145e6;--wp-admin-theme-color-darker-10--rgb: 33, 69, 230;--wp-admin-theme-color-darker-20: #183ad6;--wp-admin-theme-color-darker-20--rgb: 24, 58, 214;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-modern{--wp-admin-border-width-focus: 1.5px}}body.admin-color-blue{--wp-admin-theme-color: #096484;--wp-admin-theme-color--rgb: 9, 100, 132;--wp-admin-theme-color-darker-10: #07526c;--wp-admin-theme-color-darker-10--rgb: 7, 82, 108;--wp-admin-theme-color-darker-20: #064054;--wp-admin-theme-color-darker-20--rgb: 6, 64, 84;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-blue{--wp-admin-border-width-focus: 1.5px}}body.admin-color-coffee{--wp-admin-theme-color: #46403c;--wp-admin-theme-color--rgb: 70, 64, 60;--wp-admin-theme-color-darker-10: #383330;--wp-admin-theme-color-darker-10--rgb: 56, 51, 48;--wp-admin-theme-color-darker-20: #2b2724;--wp-admin-theme-color-darker-20--rgb: 43, 39, 36;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-coffee{--wp-admin-border-width-focus: 1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color: #523f6d;--wp-admin-theme-color--rgb: 82, 63, 109;--wp-admin-theme-color-darker-10: #46365d;--wp-admin-theme-color-darker-10--rgb: 70, 54, 93;--wp-admin-theme-color-darker-20: #3a2c4d;--wp-admin-theme-color-darker-20--rgb: 58, 44, 77;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus: 1.5px}}body.admin-color-midnight{--wp-admin-theme-color: #e14d43;--wp-admin-theme-color--rgb: 225, 77, 67;--wp-admin-theme-color-darker-10: #dd382d;--wp-admin-theme-color-darker-10--rgb: 221, 56, 45;--wp-admin-theme-color-darker-20: #d02c21;--wp-admin-theme-color-darker-20--rgb: 208, 44, 33;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-midnight{--wp-admin-border-width-focus: 1.5px}}body.admin-color-ocean{--wp-admin-theme-color: #627c83;--wp-admin-theme-color--rgb: 98, 124, 131;--wp-admin-theme-color-darker-10: #576e74;--wp-admin-theme-color-darker-10--rgb: 87, 110, 116;--wp-admin-theme-color-darker-20: #4c6066;--wp-admin-theme-color-darker-20--rgb: 76, 96, 102;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-ocean{--wp-admin-border-width-focus: 1.5px}}body.admin-color-sunrise{--wp-admin-theme-color: #dd823b;--wp-admin-theme-color--rgb: 221, 130, 59;--wp-admin-theme-color-darker-10: #d97426;--wp-admin-theme-color-darker-10--rgb: 217, 116, 38;--wp-admin-theme-color-darker-20: #c36922;--wp-admin-theme-color-darker-20--rgb: 195, 105, 34;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus: 1.5px}}@media(min-width: 1440px){body.simpay-template-explorer-open{overflow:hidden}}body.simpay-template-explorer-open .simpay-admin-notice-top-of-page.simpay-notice,body.simpay-template-explorer-open .notice,body.simpay-template-explorer-open #screen-meta,body.simpay-template-explorer-open #screen-meta-links,body.simpay-template-explorer-open #wpfooter{display:none !important}body.simpay-template-explorer-open.branch-5-6 .components-search-control,body.simpay-template-explorer-open.branch-5-7 .components-search-control,body.simpay-template-explorer-open.branch-5-8 .components-search-control{position:relative}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;display:block;padding:16px 48px 16px 16px;background:#f0f0f0;border:none;width:100%;height:48px;font-size:16px}@media(prefers-reduced-motion: reduce){body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input{transition-duration:0s;transition-delay:0s}}@media(min-width: 600px){body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input{font-size:13px;line-height:normal}}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input:focus,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input:focus,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-webkit-input-placeholder,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-webkit-input-placeholder,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-moz-placeholder,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-moz-placeholder,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input:-ms-input-placeholder,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input:-ms-input-placeholder,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input:-ms-input-placeholder{color:rgba(30,30,30,.62)}@media(min-width: 600px){body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input{font-size:13px}}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input:focus,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input:focus,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input:focus{background:#fff;box-shadow:0 0 0 2px var(--wp-admin-theme-color)}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-moz-placeholder, body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-moz-placeholder, body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-moz-placeholder{color:#757575}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input:-ms-input-placeholder, body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input:-ms-input-placeholder, body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input:-ms-input-placeholder{color:#757575}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::placeholder,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::placeholder,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::placeholder{color:#757575}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-webkit-search-decoration,body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-webkit-search-cancel-button,body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-webkit-search-results-button,body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-webkit-search-results-decoration,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-webkit-search-decoration,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-webkit-search-cancel-button,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-webkit-search-results-button,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-webkit-search-results-decoration,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-webkit-search-decoration,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-webkit-search-cancel-button,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-webkit-search-results-button,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-webkit-search-results-decoration{-webkit-appearance:none}body.simpay-template-explorer-open.branch-5-6 .components-search-control__icon,body.simpay-template-explorer-open.branch-5-7 .components-search-control__icon,body.simpay-template-explorer-open.branch-5-8 .components-search-control__icon{position:absolute;top:0;right:12px;bottom:0;display:flex;align-items:center}body.simpay-template-explorer-open.branch-5-6 .components-search-control__icon>svg,body.simpay-template-explorer-open.branch-5-7 .components-search-control__icon>svg,body.simpay-template-explorer-open.branch-5-8 .components-search-control__icon>svg{margin:8px 0}body.simpay-template-explorer-open.branch-5-6 .components-search-control__input-wrapper,body.simpay-template-explorer-open.branch-5-7 .components-search-control__input-wrapper,body.simpay-template-explorer-open.branch-5-8 .components-search-control__input-wrapper{position:relative}#simpay-form-template-explorer{background:#fff;border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04);margin-top:10px}#simpay-form-template-explorer,#simpay-form-template-explorer *{box-sizing:border-box}@media(min-width: 1440px){#simpay-form-template-explorer{position:fixed;top:111px;right:0;bottom:0;left:160px;margin:20px 22px;overflow-x:hidden;overflow-y:scroll}.folded #simpay-form-template-explorer{left:36px}}#simpay-form-template-explorer #wpcontent{padding-left:0}#simpay-form-template-explorer #wpbody-content{padding-bottom:0}#simpay-form-template-explorer+#poststuff{display:none}.simpay-form-template-explorer{padding:24px}@media(min-width: 1440px){.simpay-form-template-explorer{height:100%;overflow:auto;padding-top:0}}@media(min-width: 1440px){.simpay-form-template-explorer-header{position:absolute;left:0;right:0;padding:24px 0 24px 24px;margin-right:24px;height:100px;background:#fff;z-index:2}}.simpay-form-template-explorer-header__title{font-size:22px;font-weight:400;margin:0}.simpay-form-template-explorer-header__subtitle{color:#555;font-size:15px;margin:8px 0 0}.simpay-form-template-explorer-main{margin-top:24px}.simpay-form-template-explorer-main__sidebar{margin-bottom:24px;padding:2px}.simpay-form-template-explorer-main__sidebar-search{margin-bottom:12px}@media(min-width: 1440px){.simpay-form-template-explorer-main__sidebar-search{margin-bottom:24px}}@media(min-width: 1440px){.simpay-form-template-explorer-main__sidebar-categories{display:flex;flex-direction:column}}.simpay-form-template-explorer-main__sidebar-categories .components-button.is-pressed{background-color:var(--wp-admin-theme-color)}.simpay-form-template-explorer-main__content{display:-ms-grid;display:grid;grid-gap:24px;-ms-grid-columns:(1fr)[1];grid-template-columns:repeat(1, 1fr);padding:2px}@media(min-width: 782px){.simpay-form-template-explorer-main__content:not(.is-empty){-ms-grid-columns:(minmax(0, 1fr))[2];grid-template-columns:repeat(2, minmax(0, 1fr))}}@media(min-width: 960px){.simpay-form-template-explorer-main__content:not(.is-empty){-ms-grid-columns:(minmax(0, 1fr))[3];grid-template-columns:repeat(3, minmax(0, 1fr))}}.simpay-form-template-explorer-main__content-list-item{text-align:left;padding:16px;border-radius:4px;border:1px solid #ddd;position:relative;transition:all .15s ease-out;width:100%;height:auto;min-height:100px;flex-direction:column;align-items:flex-start}.simpay-form-template-explorer-main__content-list-item:focus-within,.simpay-form-template-explorer-main__content-list-item:focus,.simpay-form-template-explorer-main__content-list-item:hover{border-color:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;outline:none}.simpay-form-template-explorer-main__content-list-item:focus-within .simpay-form-template-explorer-main__content-list-item__description,.simpay-form-template-explorer-main__content-list-item:focus .simpay-form-template-explorer-main__content-list-item__description,.simpay-form-template-explorer-main__content-list-item:hover .simpay-form-template-explorer-main__content-list-item__description{opacity:0}.simpay-form-template-explorer-main__content-list-item:focus-within .simpay-form-template-explorer-main__content-list-item__actions,.simpay-form-template-explorer-main__content-list-item:focus .simpay-form-template-explorer-main__content-list-item__actions,.simpay-form-template-explorer-main__content-list-item:hover .simpay-form-template-explorer-main__content-list-item__actions{opacity:1}.simpay-form-template-explorer-main__content-list-item__name{font-size:16px;font-weight:600;line-height:21px;overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap}.simpay-form-template-explorer-main__content-list-item__name--is-locked{padding-right:30px}.simpay-form-template-explorer-main__content-list-item__description{color:#777;font-size:14px;line-height:18px;margin:10px 0 0;max-height:53px;overflow:hidden;opacity:1}.simpay-form-template-explorer-main__content-list-item__actions{background-color:#fff;border-radius:4px;display:flex;justify-content:space-between;align-items:center;padding:16px;position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;transition:all .15s ease-out}@media(min-width: 782px){.simpay-form-template-explorer-main__content-list-item__actions{padding:0 16px 16px;top:auto;height:auto}}.simpay-form-template-explorer-main__content-list-item__actions .components-button{justify-content:center;flex:1 1 48%}.simpay-form-template-explorer-main__content-list-item__badge{background:#fff;padding:4px;position:absolute;right:10px;top:14px;z-index:2}.simpay-form-template-explorer-main__content-list-item__badge svg{fill:#777}.simpay-form-template-explorer-main__content-suggest{color:#1d2327;padding:24px;grid-column:1/-1;display:flex;align-items:flex-start;border:1px solid #ddd;border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.06)}.simpay-form-template-explorer-main__content-suggest>div{margin-left:16px}.simpay-form-template-explorer-main__content-suggest svg{fill:currentColor;flex:1 0 auto;margin-top:-6px}.simpay-form-template-explorer-main__content-suggest h4{margin:0;font-size:20px}.simpay-form-template-explorer-main__content-suggest p{color:#555;font-size:14px}@media(min-width: 1440px){.simpay-form-template-explorer-main{margin-top:100px}.simpay-form-template-explorer-main__sidebar{top:100px;bottom:0;left:24px;overflow-x:hidden;overflow-y:auto;position:absolute;width:280px}.simpay-form-template-explorer-main__content{overflow-x:hidden;overflow-y:auto;margin-left:300px}}.simpay-form-template-explorer-upgrade{max-width:600px}.simpay-form-template-explorer-upgrade *{box-sizing:border-box}.simpay-form-template-explorer-upgrade__content{text-align:center;display:flex;flex-direction:column;align-items:center}.simpay-form-template-explorer-upgrade__title{font-size:22px;line-height:1.5;display:block;margin:12px 0 0}.simpay-form-template-explorer-upgrade__description{color:#777;font-size:16px;margin:16px 0 24px}.simpay-form-template-explorer-upgrade__description strong{color:#1d2327}.simpay-form-template-explorer-upgrade .components-button.is-primary{font-size:16px;font-weight:bold;margin:0 0 15px;padding:15px 30px !important;height:auto}.simpay-form-template-explorer-upgrade__discount{font-size:15px;text-align:center;margin:16px -32px 20px;padding:24px 40px 16px;background-color:#fcf9e8;position:relative}.simpay-form-template-explorer-upgrade__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-form-template-explorer-upgrade__discount u{text-decoration:none;font-weight:bold;color:#00a32a} /*# sourceMappingURL=simpay-admin-form-template-explorer.min.css.map*/ \ No newline at end of file diff --git a/includes/core/assets/css/simpay-admin-form-template-explorer.min.css.map b/includes/core/assets/css/simpay-admin-form-template-explorer.min.css.map index 5dae3465..76301f44 100644 --- a/includes/core/assets/css/simpay-admin-form-template-explorer.min.css.map +++ b/includes/core/assets/css/simpay-admin-form-template-explorer.min.css.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///./css/admin/form-template-explorer.scss"],"names":[],"mappings":"AAAA,uBAAuB,gCAAgC,yCAAyC,0CAA0C,mDAAmD,0CAA0C,kDAAkD,mCAAmC,mEAAmE,uBAAuB,sCAAsC,wBAAwB,gCAAgC,yCAAyC,0CAA0C,mDAAmD,0CAA0C,mDAAmD,mCAAmC,mEAAmE,wBAAwB,sCAAsC,sBAAsB,gCAAgC,yCAAyC,0CAA0C,kDAAkD,0CAA0C,iDAAiD,mCAAmC,mEAAmE,sBAAsB,sCAAsC,wBAAwB,gCAAgC,wCAAwC,0CAA0C,kDAAkD,0CAA0C,kDAAkD,mCAAmC,mEAAmE,wBAAwB,sCAAsC,2BAA2B,gCAAgC,yCAAyC,0CAA0C,kDAAkD,0CAA0C,kDAAkD,mCAAmC,mEAAmE,2BAA2B,sCAAsC,0BAA0B,gCAAgC,yCAAyC,0CAA0C,mDAAmD,0CAA0C,mDAAmD,mCAAmC,mEAAmE,0BAA0B,sCAAsC,uBAAuB,gCAAgC,0CAA0C,0CAA0C,oDAAoD,0CAA0C,mDAAmD,mCAAmC,mEAAmE,uBAAuB,sCAAsC,yBAAyB,gCAAgC,0CAA0C,0CAA0C,oDAAoD,0CAA0C,oDAAoD,mCAAmC,mEAAmE,yBAAyB,sCAAsC,0BAA0B,mCAAmC,iBAAiB,gRAAgR,wBAAwB,2NAA2N,kBAAkB,uXAAuX,wHAAwH,gBAAgB,6BAA6B,iCAAiC,kBAAkB,yBAAyB,eAAe,mBAAmB,cAAc,4BAA4B,mBAAmB,YAAY,WAAW,YAAY,eAAe,uCAAuC,uXAAuX,uBAAuB,qBAAqB,yBAAyB,uXAAuX,eAAe,oBAAoB,yYAAyY,yCAAyC,iDAAiD,8BAA8B,wcAAwc,yBAAyB,6aAA6a,UAAU,yBAAyB,ybAAyb,yBAAyB,yBAAyB,uXAAuX,gBAAgB,yYAAyY,gBAAgB,iDAAiD,+aAA+a,cAAc,2bAA2b,cAAc,8ZAA8Z,cAAc,60DAA60D,wBAAwB,6OAA6O,kBAAkB,MAAM,WAAW,SAAS,aAAa,mBAAmB,yPAAyP,aAAa,wQAAwQ,kBAAkB,+BAA+B,gBAAgB,yBAAyB,qCAAqC,gBAAgB,gEAAgE,sBAAsB,0BAA0B,+BAA+B,eAAe,UAAU,QAAQ,SAAS,WAAW,iBAAiB,kBAAkB,kBAAkB,uCAAuC,WAAW,0CAA0C,eAAe,+CAA+C,iBAAiB,0CAA0C,aAAa,+BAA+B,aAAa,0BAA0B,+BAA+B,YAAY,cAAc,eAAe,0BAA0B,sCAAsC,kBAAkB,OAAO,QAAQ,yBAAyB,kBAAkB,aAAa,gBAAgB,WAAW,6CAA6C,eAAe,gBAAgB,SAAS,gDAAgD,WAAW,eAAe,eAAe,oCAAoC,gBAAgB,6CAA6C,mBAAmB,YAAY,oDAAoD,mBAAmB,0BAA0B,oDAAoD,oBAAoB,0BAA0B,wDAAwD,aAAa,uBAAuB,sFAAsF,6CAA6C,6CAA6C,iBAAiB,aAAa,cAAc,0BAA0B,qCAAqC,YAAY,yBAAyB,4DAA4D,qCAAqC,iDAAiD,yBAAyB,4DAA4D,qCAAqC,iDAAiD,uDAAuD,gBAAgB,aAAa,kBAAkB,sBAAsB,kBAAkB,6BAA6B,WAAW,YAAY,iBAAiB,sBAAsB,uBAAuB,8LAA8L,qBAAqB,6BAA6B,aAAa,0YAA0Y,UAAU,8XAA8X,UAAU,6DAA6D,eAAe,gBAAgB,iBAAiB,gBAAgB,kBAAkB,uBAAuB,mBAAmB,oEAAoE,WAAW,eAAe,iBAAiB,gBAAgB,gBAAgB,gBAAgB,UAAU,gEAAgE,sBAAsB,kBAAkB,aAAa,8BAA8B,mBAAmB,aAAa,kBAAkB,MAAM,QAAQ,SAAS,OAAO,WAAW,YAAY,UAAU,6BAA6B,yBAAyB,gEAAgE,oBAAoB,SAAS,aAAa,mFAAmF,uBAAuB,aAAa,8DAA8D,sBAAsB,kBAAkB,WAAW,cAAc,cAAc,gBAAgB,oBAAoB,gBAAgB,gBAAgB,kBAAkB,WAAW,yBAAyB,SAAS,qDAAqD,cAAc,aAAa,iBAAiB,aAAa,uBAAuB,sBAAsB,kBAAkB,qCAAqC,yDAAyD,iBAAiB,yDAAyD,kBAAkB,cAAc,gBAAgB,wDAAwD,SAAS,eAAe,uDAAuD,WAAW,eAAe,0BAA0B,oCAAoC,iBAAiB,6CAA6C,UAAU,SAAS,UAAU,kBAAkB,gBAAgB,kBAAkB,YAAY,6CAA6C,kBAAkB,gBAAgB,mBAAmB,uCAAuC,gBAAgB,yCAAyC,sBAAsB,gDAAgD,kBAAkB,aAAa,sBAAsB,mBAAmB,8CAA8C,eAAe,gBAAgB,cAAc,gBAAgB,oDAAoD,WAAW,eAAe,mBAAmB,qEAAqE,eAAe,iBAAiB,gBAAgB,6BAA6B,YAAY,iDAAiD,eAAe,kBAAkB,uBAAuB,uBAAuB,yBAAyB,kBAAkB,qDAAqD,mBAAmB,UAAU,kBAAkB,sBAAsB,WAAW,YAAY,kBAAkB,UAAU,SAAS,kBAAkB,mDAAmD,qBAAqB,iBAAiB,c","file":"./../css/simpay-admin-form-template-explorer.min.css","sourcesContent":["body.admin-color-light{--wp-admin-theme-color: #0085ba;--wp-admin-theme-color--rgb: 0, 133, 186;--wp-admin-theme-color-darker-10: #0073a1;--wp-admin-theme-color-darker-10--rgb: 0, 115, 161;--wp-admin-theme-color-darker-20: #006187;--wp-admin-theme-color-darker-20--rgb: 0, 97, 135;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-light{--wp-admin-border-width-focus: 1.5px}}body.admin-color-modern{--wp-admin-theme-color: #3858e9;--wp-admin-theme-color--rgb: 56, 88, 233;--wp-admin-theme-color-darker-10: #2145e6;--wp-admin-theme-color-darker-10--rgb: 33, 69, 230;--wp-admin-theme-color-darker-20: #183ad6;--wp-admin-theme-color-darker-20--rgb: 24, 58, 214;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-modern{--wp-admin-border-width-focus: 1.5px}}body.admin-color-blue{--wp-admin-theme-color: #096484;--wp-admin-theme-color--rgb: 9, 100, 132;--wp-admin-theme-color-darker-10: #07526c;--wp-admin-theme-color-darker-10--rgb: 7, 82, 108;--wp-admin-theme-color-darker-20: #064054;--wp-admin-theme-color-darker-20--rgb: 6, 64, 84;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-blue{--wp-admin-border-width-focus: 1.5px}}body.admin-color-coffee{--wp-admin-theme-color: #46403c;--wp-admin-theme-color--rgb: 70, 64, 60;--wp-admin-theme-color-darker-10: #383330;--wp-admin-theme-color-darker-10--rgb: 56, 51, 48;--wp-admin-theme-color-darker-20: #2b2724;--wp-admin-theme-color-darker-20--rgb: 43, 39, 36;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-coffee{--wp-admin-border-width-focus: 1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color: #523f6d;--wp-admin-theme-color--rgb: 82, 63, 109;--wp-admin-theme-color-darker-10: #46365d;--wp-admin-theme-color-darker-10--rgb: 70, 54, 93;--wp-admin-theme-color-darker-20: #3a2c4d;--wp-admin-theme-color-darker-20--rgb: 58, 44, 77;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus: 1.5px}}body.admin-color-midnight{--wp-admin-theme-color: #e14d43;--wp-admin-theme-color--rgb: 225, 77, 67;--wp-admin-theme-color-darker-10: #dd382d;--wp-admin-theme-color-darker-10--rgb: 221, 56, 45;--wp-admin-theme-color-darker-20: #d02c21;--wp-admin-theme-color-darker-20--rgb: 208, 44, 33;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-midnight{--wp-admin-border-width-focus: 1.5px}}body.admin-color-ocean{--wp-admin-theme-color: #627c83;--wp-admin-theme-color--rgb: 98, 124, 131;--wp-admin-theme-color-darker-10: #576e74;--wp-admin-theme-color-darker-10--rgb: 87, 110, 116;--wp-admin-theme-color-darker-20: #4c6066;--wp-admin-theme-color-darker-20--rgb: 76, 96, 102;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-ocean{--wp-admin-border-width-focus: 1.5px}}body.admin-color-sunrise{--wp-admin-theme-color: #dd823b;--wp-admin-theme-color--rgb: 221, 130, 59;--wp-admin-theme-color-darker-10: #d97426;--wp-admin-theme-color-darker-10--rgb: 217, 116, 38;--wp-admin-theme-color-darker-20: #c36922;--wp-admin-theme-color-darker-20--rgb: 195, 105, 34;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus: 1.5px}}@media(min-width: 1440px){body.simpay-template-explorer-open{overflow:hidden}}body.simpay-template-explorer-open .simpay-admin-notice-top-of-page.simpay-notice,body.simpay-template-explorer-open .notice,body.simpay-template-explorer-open #screen-meta,body.simpay-template-explorer-open #screen-meta-links,body.simpay-template-explorer-open #wpfooter{display:none !important}body.simpay-template-explorer-open.branch-5-6 .components-search-control,body.simpay-template-explorer-open.branch-5-7 .components-search-control,body.simpay-template-explorer-open.branch-5-8 .components-search-control{position:relative}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input{font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;display:block;padding:16px 48px 16px 16px;background:#f0f0f0;border:none;width:100%;height:48px;font-size:16px}@media(prefers-reduced-motion: reduce){body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input{transition-duration:0s;transition-delay:0s}}@media(min-width: 600px){body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input{font-size:13px;line-height:normal}}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input:focus,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input:focus,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-webkit-input-placeholder,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-webkit-input-placeholder,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-moz-placeholder,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-moz-placeholder,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input:-ms-input-placeholder,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input:-ms-input-placeholder,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input:-ms-input-placeholder{color:rgba(30,30,30,.62)}@media(min-width: 600px){body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input{font-size:13px}}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input:focus,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input:focus,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input:focus{background:#fff;box-shadow:0 0 0 2px var(--wp-admin-theme-color)}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-moz-placeholder, body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-moz-placeholder, body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-moz-placeholder{color:#757575}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input:-ms-input-placeholder, body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input:-ms-input-placeholder, body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input:-ms-input-placeholder{color:#757575}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::placeholder,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::placeholder,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::placeholder{color:#757575}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-webkit-search-decoration,body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-webkit-search-cancel-button,body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-webkit-search-results-button,body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-webkit-search-results-decoration,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-webkit-search-decoration,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-webkit-search-cancel-button,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-webkit-search-results-button,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-webkit-search-results-decoration,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-webkit-search-decoration,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-webkit-search-cancel-button,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-webkit-search-results-button,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-webkit-search-results-decoration{-webkit-appearance:none}body.simpay-template-explorer-open.branch-5-6 .components-search-control__icon,body.simpay-template-explorer-open.branch-5-7 .components-search-control__icon,body.simpay-template-explorer-open.branch-5-8 .components-search-control__icon{position:absolute;top:0;right:12px;bottom:0;display:flex;align-items:center}body.simpay-template-explorer-open.branch-5-6 .components-search-control__icon>svg,body.simpay-template-explorer-open.branch-5-7 .components-search-control__icon>svg,body.simpay-template-explorer-open.branch-5-8 .components-search-control__icon>svg{margin:8px 0}body.simpay-template-explorer-open.branch-5-6 .components-search-control__input-wrapper,body.simpay-template-explorer-open.branch-5-7 .components-search-control__input-wrapper,body.simpay-template-explorer-open.branch-5-8 .components-search-control__input-wrapper{position:relative}#simpay-form-template-explorer{background:#fff;border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04);margin-top:10px}#simpay-form-template-explorer,#simpay-form-template-explorer *{box-sizing:border-box}@media(min-width: 1440px){#simpay-form-template-explorer{position:fixed;top:111px;right:0;bottom:0;left:160px;margin:20px 22px;overflow-x:hidden;overflow-y:scroll}.folded #simpay-form-template-explorer{left:36px}}#simpay-form-template-explorer #wpcontent{padding-left:0}#simpay-form-template-explorer #wpbody-content{padding-bottom:0}#simpay-form-template-explorer+#poststuff{display:none}.simpay-form-template-explorer{padding:24px}@media(min-width: 1440px){.simpay-form-template-explorer{height:100%;overflow:auto;padding-top:0}}@media(min-width: 1440px){.simpay-form-template-explorer-header{position:absolute;left:0;right:0;padding:24px 0 24px 24px;margin-right:24px;height:100px;background:#fff;z-index:2}}.simpay-form-template-explorer-header__title{font-size:22px;font-weight:400;margin:0}.simpay-form-template-explorer-header__subtitle{color:#555;font-size:15px;margin:8px 0 0}.simpay-form-template-explorer-main{margin-top:24px}.simpay-form-template-explorer-main__sidebar{margin-bottom:24px;padding:2px}.simpay-form-template-explorer-main__sidebar-search{margin-bottom:12px}@media(min-width: 1440px){.simpay-form-template-explorer-main__sidebar-search{margin-bottom:24px}}@media(min-width: 1440px){.simpay-form-template-explorer-main__sidebar-categories{display:flex;flex-direction:column}}.simpay-form-template-explorer-main__sidebar-categories .components-button.is-pressed{background-color:var(--wp-admin-theme-color)}.simpay-form-template-explorer-main__content{display:-ms-grid;display:grid;grid-gap:24px;-ms-grid-columns:(1fr)[1];grid-template-columns:repeat(1, 1fr);padding:2px}@media(min-width: 782px){.simpay-form-template-explorer-main__content:not(.is-empty){-ms-grid-columns:(minmax(0, 1fr))[2];grid-template-columns:repeat(2, minmax(0, 1fr))}}@media(min-width: 960px){.simpay-form-template-explorer-main__content:not(.is-empty){-ms-grid-columns:(minmax(0, 1fr))[3];grid-template-columns:repeat(3, minmax(0, 1fr))}}.simpay-form-template-explorer-main__content-list-item{text-align:left;padding:16px;border-radius:4px;border:1px solid #ddd;position:relative;transition:all .15s ease-out;width:100%;height:auto;min-height:100px;flex-direction:column;align-items:flex-start}.simpay-form-template-explorer-main__content-list-item:focus-within,.simpay-form-template-explorer-main__content-list-item:focus,.simpay-form-template-explorer-main__content-list-item:hover{border-color:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;outline:none}.simpay-form-template-explorer-main__content-list-item:focus-within .simpay-form-template-explorer-main__content-list-item__description,.simpay-form-template-explorer-main__content-list-item:focus .simpay-form-template-explorer-main__content-list-item__description,.simpay-form-template-explorer-main__content-list-item:hover .simpay-form-template-explorer-main__content-list-item__description{opacity:0}.simpay-form-template-explorer-main__content-list-item:focus-within .simpay-form-template-explorer-main__content-list-item__actions,.simpay-form-template-explorer-main__content-list-item:focus .simpay-form-template-explorer-main__content-list-item__actions,.simpay-form-template-explorer-main__content-list-item:hover .simpay-form-template-explorer-main__content-list-item__actions{opacity:1}.simpay-form-template-explorer-main__content-list-item__name{font-size:16px;font-weight:600;line-height:21px;overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap}.simpay-form-template-explorer-main__content-list-item__description{color:#777;font-size:14px;line-height:18px;margin:10px 0 0;max-height:53px;overflow:hidden;opacity:1}.simpay-form-template-explorer-main__content-list-item__actions{background-color:#fff;border-radius:4px;display:flex;justify-content:space-between;align-items:center;padding:16px;position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;transition:all .15s ease-out}@media(min-width: 782px){.simpay-form-template-explorer-main__content-list-item__actions{padding:0 16px 16px;top:auto;height:auto}}.simpay-form-template-explorer-main__content-list-item__actions .components-button{justify-content:center;flex:1 1 48%}.simpay-form-template-explorer-main__content-list-item__badge{background-color:#bbb;border-radius:9px;color:#fff;display:block;font-size:8px;font-weight:700;letter-spacing:.5px;line-height:8px;padding:5px 8px;position:absolute;right:10px;text-transform:uppercase;top:10px}.simpay-form-template-explorer-main__content-suggest{color:#1d2327;padding:24px;grid-column:1/-1;display:flex;align-items:flex-start;border:1px solid #ddd;border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.06)}.simpay-form-template-explorer-main__content-suggest>div{margin-left:16px}.simpay-form-template-explorer-main__content-suggest svg{fill:currentColor;flex:1 0 auto;margin-top:-6px}.simpay-form-template-explorer-main__content-suggest h4{margin:0;font-size:20px}.simpay-form-template-explorer-main__content-suggest p{color:#555;font-size:14px}@media(min-width: 1440px){.simpay-form-template-explorer-main{margin-top:100px}.simpay-form-template-explorer-main__sidebar{top:100px;bottom:0;left:24px;overflow-x:hidden;overflow-y:auto;position:absolute;width:280px}.simpay-form-template-explorer-main__content{overflow-x:hidden;overflow-y:auto;margin-left:300px}}.simpay-form-template-explorer-upgrade{max-width:600px}.simpay-form-template-explorer-upgrade *{box-sizing:border-box}.simpay-form-template-explorer-upgrade__content{text-align:center;display:flex;flex-direction:column;align-items:center}.simpay-form-template-explorer-upgrade__title{font-size:22px;line-height:1.5;display:block;margin:12px 0 0}.simpay-form-template-explorer-upgrade__description{color:#777;font-size:16px;margin:16px 0 24px}.simpay-form-template-explorer-upgrade .components-button.is-primary{font-size:16px;font-weight:bold;margin:0 0 15px;padding:15px 30px !important;height:auto}.simpay-form-template-explorer-upgrade__discount{font-size:15px;text-align:center;margin:16px -32px 20px;padding:24px 40px 16px;background-color:#fcf9e8;position:relative}.simpay-form-template-explorer-upgrade__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-form-template-explorer-upgrade__discount u{text-decoration:none;font-weight:bold;color:#00a32a}"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///./css/admin/form-template-explorer.scss"],"names":[],"mappings":"AAAA,uBAAuB,gCAAgC,yCAAyC,0CAA0C,mDAAmD,0CAA0C,kDAAkD,mCAAmC,mEAAmE,uBAAuB,sCAAsC,wBAAwB,gCAAgC,yCAAyC,0CAA0C,mDAAmD,0CAA0C,mDAAmD,mCAAmC,mEAAmE,wBAAwB,sCAAsC,sBAAsB,gCAAgC,yCAAyC,0CAA0C,kDAAkD,0CAA0C,iDAAiD,mCAAmC,mEAAmE,sBAAsB,sCAAsC,wBAAwB,gCAAgC,wCAAwC,0CAA0C,kDAAkD,0CAA0C,kDAAkD,mCAAmC,mEAAmE,wBAAwB,sCAAsC,2BAA2B,gCAAgC,yCAAyC,0CAA0C,kDAAkD,0CAA0C,kDAAkD,mCAAmC,mEAAmE,2BAA2B,sCAAsC,0BAA0B,gCAAgC,yCAAyC,0CAA0C,mDAAmD,0CAA0C,mDAAmD,mCAAmC,mEAAmE,0BAA0B,sCAAsC,uBAAuB,gCAAgC,0CAA0C,0CAA0C,oDAAoD,0CAA0C,mDAAmD,mCAAmC,mEAAmE,uBAAuB,sCAAsC,yBAAyB,gCAAgC,0CAA0C,0CAA0C,oDAAoD,0CAA0C,oDAAoD,mCAAmC,mEAAmE,yBAAyB,sCAAsC,0BAA0B,mCAAmC,iBAAiB,gRAAgR,wBAAwB,2NAA2N,kBAAkB,uXAAuX,wHAAwH,gBAAgB,6BAA6B,iCAAiC,kBAAkB,yBAAyB,eAAe,mBAAmB,cAAc,4BAA4B,mBAAmB,YAAY,WAAW,YAAY,eAAe,uCAAuC,uXAAuX,uBAAuB,qBAAqB,yBAAyB,uXAAuX,eAAe,oBAAoB,yYAAyY,yCAAyC,iDAAiD,8BAA8B,wcAAwc,yBAAyB,6aAA6a,UAAU,yBAAyB,ybAAyb,yBAAyB,yBAAyB,uXAAuX,gBAAgB,yYAAyY,gBAAgB,iDAAiD,+aAA+a,cAAc,2bAA2b,cAAc,8ZAA8Z,cAAc,60DAA60D,wBAAwB,6OAA6O,kBAAkB,MAAM,WAAW,SAAS,aAAa,mBAAmB,yPAAyP,aAAa,wQAAwQ,kBAAkB,+BAA+B,gBAAgB,yBAAyB,qCAAqC,gBAAgB,gEAAgE,sBAAsB,0BAA0B,+BAA+B,eAAe,UAAU,QAAQ,SAAS,WAAW,iBAAiB,kBAAkB,kBAAkB,uCAAuC,WAAW,0CAA0C,eAAe,+CAA+C,iBAAiB,0CAA0C,aAAa,+BAA+B,aAAa,0BAA0B,+BAA+B,YAAY,cAAc,eAAe,0BAA0B,sCAAsC,kBAAkB,OAAO,QAAQ,yBAAyB,kBAAkB,aAAa,gBAAgB,WAAW,6CAA6C,eAAe,gBAAgB,SAAS,gDAAgD,WAAW,eAAe,eAAe,oCAAoC,gBAAgB,6CAA6C,mBAAmB,YAAY,oDAAoD,mBAAmB,0BAA0B,oDAAoD,oBAAoB,0BAA0B,wDAAwD,aAAa,uBAAuB,sFAAsF,6CAA6C,6CAA6C,iBAAiB,aAAa,cAAc,0BAA0B,qCAAqC,YAAY,yBAAyB,4DAA4D,qCAAqC,iDAAiD,yBAAyB,4DAA4D,qCAAqC,iDAAiD,uDAAuD,gBAAgB,aAAa,kBAAkB,sBAAsB,kBAAkB,6BAA6B,WAAW,YAAY,iBAAiB,sBAAsB,uBAAuB,8LAA8L,qBAAqB,6BAA6B,aAAa,0YAA0Y,UAAU,8XAA8X,UAAU,6DAA6D,eAAe,gBAAgB,iBAAiB,gBAAgB,kBAAkB,uBAAuB,mBAAmB,wEAAwE,mBAAmB,oEAAoE,WAAW,eAAe,iBAAiB,gBAAgB,gBAAgB,gBAAgB,UAAU,gEAAgE,sBAAsB,kBAAkB,aAAa,8BAA8B,mBAAmB,aAAa,kBAAkB,MAAM,QAAQ,SAAS,OAAO,WAAW,YAAY,UAAU,6BAA6B,yBAAyB,gEAAgE,oBAAoB,SAAS,aAAa,mFAAmF,uBAAuB,aAAa,8DAA8D,gBAAgB,YAAY,kBAAkB,WAAW,SAAS,UAAU,kEAAkE,UAAU,qDAAqD,cAAc,aAAa,iBAAiB,aAAa,uBAAuB,sBAAsB,kBAAkB,qCAAqC,yDAAyD,iBAAiB,yDAAyD,kBAAkB,cAAc,gBAAgB,wDAAwD,SAAS,eAAe,uDAAuD,WAAW,eAAe,0BAA0B,oCAAoC,iBAAiB,6CAA6C,UAAU,SAAS,UAAU,kBAAkB,gBAAgB,kBAAkB,YAAY,6CAA6C,kBAAkB,gBAAgB,mBAAmB,uCAAuC,gBAAgB,yCAAyC,sBAAsB,gDAAgD,kBAAkB,aAAa,sBAAsB,mBAAmB,8CAA8C,eAAe,gBAAgB,cAAc,gBAAgB,oDAAoD,WAAW,eAAe,mBAAmB,2DAA2D,cAAc,qEAAqE,eAAe,iBAAiB,gBAAgB,6BAA6B,YAAY,iDAAiD,eAAe,kBAAkB,uBAAuB,uBAAuB,yBAAyB,kBAAkB,qDAAqD,mBAAmB,UAAU,kBAAkB,sBAAsB,WAAW,YAAY,kBAAkB,UAAU,SAAS,kBAAkB,mDAAmD,qBAAqB,iBAAiB,c","file":"./../css/simpay-admin-form-template-explorer.min.css","sourcesContent":["body.admin-color-light{--wp-admin-theme-color: #0085ba;--wp-admin-theme-color--rgb: 0, 133, 186;--wp-admin-theme-color-darker-10: #0073a1;--wp-admin-theme-color-darker-10--rgb: 0, 115, 161;--wp-admin-theme-color-darker-20: #006187;--wp-admin-theme-color-darker-20--rgb: 0, 97, 135;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-light{--wp-admin-border-width-focus: 1.5px}}body.admin-color-modern{--wp-admin-theme-color: #3858e9;--wp-admin-theme-color--rgb: 56, 88, 233;--wp-admin-theme-color-darker-10: #2145e6;--wp-admin-theme-color-darker-10--rgb: 33, 69, 230;--wp-admin-theme-color-darker-20: #183ad6;--wp-admin-theme-color-darker-20--rgb: 24, 58, 214;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-modern{--wp-admin-border-width-focus: 1.5px}}body.admin-color-blue{--wp-admin-theme-color: #096484;--wp-admin-theme-color--rgb: 9, 100, 132;--wp-admin-theme-color-darker-10: #07526c;--wp-admin-theme-color-darker-10--rgb: 7, 82, 108;--wp-admin-theme-color-darker-20: #064054;--wp-admin-theme-color-darker-20--rgb: 6, 64, 84;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-blue{--wp-admin-border-width-focus: 1.5px}}body.admin-color-coffee{--wp-admin-theme-color: #46403c;--wp-admin-theme-color--rgb: 70, 64, 60;--wp-admin-theme-color-darker-10: #383330;--wp-admin-theme-color-darker-10--rgb: 56, 51, 48;--wp-admin-theme-color-darker-20: #2b2724;--wp-admin-theme-color-darker-20--rgb: 43, 39, 36;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-coffee{--wp-admin-border-width-focus: 1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color: #523f6d;--wp-admin-theme-color--rgb: 82, 63, 109;--wp-admin-theme-color-darker-10: #46365d;--wp-admin-theme-color-darker-10--rgb: 70, 54, 93;--wp-admin-theme-color-darker-20: #3a2c4d;--wp-admin-theme-color-darker-20--rgb: 58, 44, 77;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus: 1.5px}}body.admin-color-midnight{--wp-admin-theme-color: #e14d43;--wp-admin-theme-color--rgb: 225, 77, 67;--wp-admin-theme-color-darker-10: #dd382d;--wp-admin-theme-color-darker-10--rgb: 221, 56, 45;--wp-admin-theme-color-darker-20: #d02c21;--wp-admin-theme-color-darker-20--rgb: 208, 44, 33;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-midnight{--wp-admin-border-width-focus: 1.5px}}body.admin-color-ocean{--wp-admin-theme-color: #627c83;--wp-admin-theme-color--rgb: 98, 124, 131;--wp-admin-theme-color-darker-10: #576e74;--wp-admin-theme-color-darker-10--rgb: 87, 110, 116;--wp-admin-theme-color-darker-20: #4c6066;--wp-admin-theme-color-darker-20--rgb: 76, 96, 102;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-ocean{--wp-admin-border-width-focus: 1.5px}}body.admin-color-sunrise{--wp-admin-theme-color: #dd823b;--wp-admin-theme-color--rgb: 221, 130, 59;--wp-admin-theme-color-darker-10: #d97426;--wp-admin-theme-color-darker-10--rgb: 217, 116, 38;--wp-admin-theme-color-darker-20: #c36922;--wp-admin-theme-color-darker-20--rgb: 195, 105, 34;--wp-admin-border-width-focus: 2px}@media(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus: 1.5px}}@media(min-width: 1440px){body.simpay-template-explorer-open{overflow:hidden}}body.simpay-template-explorer-open .simpay-admin-notice-top-of-page.simpay-notice,body.simpay-template-explorer-open .notice,body.simpay-template-explorer-open #screen-meta,body.simpay-template-explorer-open #screen-meta-links,body.simpay-template-explorer-open #wpfooter{display:none !important}body.simpay-template-explorer-open.branch-5-6 .components-search-control,body.simpay-template-explorer-open.branch-5-7 .components-search-control,body.simpay-template-explorer-open.branch-5-8 .components-search-control{position:relative}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input{font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;display:block;padding:16px 48px 16px 16px;background:#f0f0f0;border:none;width:100%;height:48px;font-size:16px}@media(prefers-reduced-motion: reduce){body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input{transition-duration:0s;transition-delay:0s}}@media(min-width: 600px){body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input{font-size:13px;line-height:normal}}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input:focus,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input:focus,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-webkit-input-placeholder,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-webkit-input-placeholder,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-moz-placeholder,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-moz-placeholder,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input:-ms-input-placeholder,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input:-ms-input-placeholder,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input:-ms-input-placeholder{color:rgba(30,30,30,.62)}@media(min-width: 600px){body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input{font-size:13px}}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input:focus,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input:focus,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input:focus{background:#fff;box-shadow:0 0 0 2px var(--wp-admin-theme-color)}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-moz-placeholder, body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-moz-placeholder, body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-moz-placeholder{color:#757575}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input:-ms-input-placeholder, body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input:-ms-input-placeholder, body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input:-ms-input-placeholder{color:#757575}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::placeholder,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::placeholder,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::placeholder{color:#757575}body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-webkit-search-decoration,body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-webkit-search-cancel-button,body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-webkit-search-results-button,body.simpay-template-explorer-open.branch-5-6 .components-search-control input[type=search].components-search-control__input::-webkit-search-results-decoration,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-webkit-search-decoration,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-webkit-search-cancel-button,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-webkit-search-results-button,body.simpay-template-explorer-open.branch-5-7 .components-search-control input[type=search].components-search-control__input::-webkit-search-results-decoration,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-webkit-search-decoration,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-webkit-search-cancel-button,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-webkit-search-results-button,body.simpay-template-explorer-open.branch-5-8 .components-search-control input[type=search].components-search-control__input::-webkit-search-results-decoration{-webkit-appearance:none}body.simpay-template-explorer-open.branch-5-6 .components-search-control__icon,body.simpay-template-explorer-open.branch-5-7 .components-search-control__icon,body.simpay-template-explorer-open.branch-5-8 .components-search-control__icon{position:absolute;top:0;right:12px;bottom:0;display:flex;align-items:center}body.simpay-template-explorer-open.branch-5-6 .components-search-control__icon>svg,body.simpay-template-explorer-open.branch-5-7 .components-search-control__icon>svg,body.simpay-template-explorer-open.branch-5-8 .components-search-control__icon>svg{margin:8px 0}body.simpay-template-explorer-open.branch-5-6 .components-search-control__input-wrapper,body.simpay-template-explorer-open.branch-5-7 .components-search-control__input-wrapper,body.simpay-template-explorer-open.branch-5-8 .components-search-control__input-wrapper{position:relative}#simpay-form-template-explorer{background:#fff;border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04);margin-top:10px}#simpay-form-template-explorer,#simpay-form-template-explorer *{box-sizing:border-box}@media(min-width: 1440px){#simpay-form-template-explorer{position:fixed;top:111px;right:0;bottom:0;left:160px;margin:20px 22px;overflow-x:hidden;overflow-y:scroll}.folded #simpay-form-template-explorer{left:36px}}#simpay-form-template-explorer #wpcontent{padding-left:0}#simpay-form-template-explorer #wpbody-content{padding-bottom:0}#simpay-form-template-explorer+#poststuff{display:none}.simpay-form-template-explorer{padding:24px}@media(min-width: 1440px){.simpay-form-template-explorer{height:100%;overflow:auto;padding-top:0}}@media(min-width: 1440px){.simpay-form-template-explorer-header{position:absolute;left:0;right:0;padding:24px 0 24px 24px;margin-right:24px;height:100px;background:#fff;z-index:2}}.simpay-form-template-explorer-header__title{font-size:22px;font-weight:400;margin:0}.simpay-form-template-explorer-header__subtitle{color:#555;font-size:15px;margin:8px 0 0}.simpay-form-template-explorer-main{margin-top:24px}.simpay-form-template-explorer-main__sidebar{margin-bottom:24px;padding:2px}.simpay-form-template-explorer-main__sidebar-search{margin-bottom:12px}@media(min-width: 1440px){.simpay-form-template-explorer-main__sidebar-search{margin-bottom:24px}}@media(min-width: 1440px){.simpay-form-template-explorer-main__sidebar-categories{display:flex;flex-direction:column}}.simpay-form-template-explorer-main__sidebar-categories .components-button.is-pressed{background-color:var(--wp-admin-theme-color)}.simpay-form-template-explorer-main__content{display:-ms-grid;display:grid;grid-gap:24px;-ms-grid-columns:(1fr)[1];grid-template-columns:repeat(1, 1fr);padding:2px}@media(min-width: 782px){.simpay-form-template-explorer-main__content:not(.is-empty){-ms-grid-columns:(minmax(0, 1fr))[2];grid-template-columns:repeat(2, minmax(0, 1fr))}}@media(min-width: 960px){.simpay-form-template-explorer-main__content:not(.is-empty){-ms-grid-columns:(minmax(0, 1fr))[3];grid-template-columns:repeat(3, minmax(0, 1fr))}}.simpay-form-template-explorer-main__content-list-item{text-align:left;padding:16px;border-radius:4px;border:1px solid #ddd;position:relative;transition:all .15s ease-out;width:100%;height:auto;min-height:100px;flex-direction:column;align-items:flex-start}.simpay-form-template-explorer-main__content-list-item:focus-within,.simpay-form-template-explorer-main__content-list-item:focus,.simpay-form-template-explorer-main__content-list-item:hover{border-color:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;outline:none}.simpay-form-template-explorer-main__content-list-item:focus-within .simpay-form-template-explorer-main__content-list-item__description,.simpay-form-template-explorer-main__content-list-item:focus .simpay-form-template-explorer-main__content-list-item__description,.simpay-form-template-explorer-main__content-list-item:hover .simpay-form-template-explorer-main__content-list-item__description{opacity:0}.simpay-form-template-explorer-main__content-list-item:focus-within .simpay-form-template-explorer-main__content-list-item__actions,.simpay-form-template-explorer-main__content-list-item:focus .simpay-form-template-explorer-main__content-list-item__actions,.simpay-form-template-explorer-main__content-list-item:hover .simpay-form-template-explorer-main__content-list-item__actions{opacity:1}.simpay-form-template-explorer-main__content-list-item__name{font-size:16px;font-weight:600;line-height:21px;overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap}.simpay-form-template-explorer-main__content-list-item__name--is-locked{padding-right:30px}.simpay-form-template-explorer-main__content-list-item__description{color:#777;font-size:14px;line-height:18px;margin:10px 0 0;max-height:53px;overflow:hidden;opacity:1}.simpay-form-template-explorer-main__content-list-item__actions{background-color:#fff;border-radius:4px;display:flex;justify-content:space-between;align-items:center;padding:16px;position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;transition:all .15s ease-out}@media(min-width: 782px){.simpay-form-template-explorer-main__content-list-item__actions{padding:0 16px 16px;top:auto;height:auto}}.simpay-form-template-explorer-main__content-list-item__actions .components-button{justify-content:center;flex:1 1 48%}.simpay-form-template-explorer-main__content-list-item__badge{background:#fff;padding:4px;position:absolute;right:10px;top:14px;z-index:2}.simpay-form-template-explorer-main__content-list-item__badge svg{fill:#777}.simpay-form-template-explorer-main__content-suggest{color:#1d2327;padding:24px;grid-column:1/-1;display:flex;align-items:flex-start;border:1px solid #ddd;border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.06)}.simpay-form-template-explorer-main__content-suggest>div{margin-left:16px}.simpay-form-template-explorer-main__content-suggest svg{fill:currentColor;flex:1 0 auto;margin-top:-6px}.simpay-form-template-explorer-main__content-suggest h4{margin:0;font-size:20px}.simpay-form-template-explorer-main__content-suggest p{color:#555;font-size:14px}@media(min-width: 1440px){.simpay-form-template-explorer-main{margin-top:100px}.simpay-form-template-explorer-main__sidebar{top:100px;bottom:0;left:24px;overflow-x:hidden;overflow-y:auto;position:absolute;width:280px}.simpay-form-template-explorer-main__content{overflow-x:hidden;overflow-y:auto;margin-left:300px}}.simpay-form-template-explorer-upgrade{max-width:600px}.simpay-form-template-explorer-upgrade *{box-sizing:border-box}.simpay-form-template-explorer-upgrade__content{text-align:center;display:flex;flex-direction:column;align-items:center}.simpay-form-template-explorer-upgrade__title{font-size:22px;line-height:1.5;display:block;margin:12px 0 0}.simpay-form-template-explorer-upgrade__description{color:#777;font-size:16px;margin:16px 0 24px}.simpay-form-template-explorer-upgrade__description strong{color:#1d2327}.simpay-form-template-explorer-upgrade .components-button.is-primary{font-size:16px;font-weight:bold;margin:0 0 15px;padding:15px 30px !important;height:auto}.simpay-form-template-explorer-upgrade__discount{font-size:15px;text-align:center;margin:16px -32px 20px;padding:24px 40px 16px;background-color:#fcf9e8;position:relative}.simpay-form-template-explorer-upgrade__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-form-template-explorer-upgrade__discount u{text-decoration:none;font-weight:bold;color:#00a32a}"],"sourceRoot":""} \ 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 774bdea9..041f45b9 100644 --- a/includes/core/assets/css/simpay-admin.min.css +++ b/includes/core/assets/css/simpay-admin.min.css @@ -1,3 +1,3 @@ -.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}.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);-webkit-clip-path:inset(50%);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);-webkit-clip-path:inset(50%);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}.simpay-stripe-account-info .spinner{float:none;margin-top:0;margin-left:0}.post-type-simple-pay .simpay-settings-upgrade{padding:25px 20px 30px;position:relative}.post-type-simple-pay .simpay-settings-upgrade__inner{text-align:center;max-width:750px;margin:0 auto}.post-type-simple-pay .simpay-settings-upgrade h3,.post-type-simple-pay .simpay-settings-upgrade h4{line-height:1;margin:1rem 0}.post-type-simple-pay .simpay-settings-upgrade h4{color:#428bca;font-size:18px}.post-type-simple-pay .simpay-settings-upgrade h3{font-size:26px}.post-type-simple-pay .simpay-settings-upgrade ul{max-width:550px;margin:25px auto 13px;display:flex;flex-wrap:wrap;justify-content:center}.post-type-simple-pay .simpay-settings-upgrade li{font-size:15px;text-align:center;margin-bottom:12px;width:100%}@media screen and (min-width: 782px){.post-type-simple-pay .simpay-settings-upgrade li{text-align:left;width:50%}}.post-type-simple-pay .simpay-settings-upgrade .button.button-large{font-size:17px;line-height:30px;padding:10px 20px}.post-type-simple-pay .simpay-settings-upgrade small{color:#666;margin:15px 0 0;display:block}.post-type-simple-pay .simpay-settings-upgrade .dashicons{color:#428bca}.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}.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}#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: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 a{padding-left:14px;font-weight:bold;background-color:#fff;position:relative;box-shadow:inset 4px 0 currentColor,inset 0 -1px 0 #fff,0 1px 1px rgba(0,0,0,.04);margin-right:-1px}@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{border-bottom:1px solid #ccd0d4;display:flex;align-items:center;line-height:20px;margin:0;padding:10px;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:2;box-shadow:inset 0 0 0 2px currentColor}#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 (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-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-panel--has-help{padding-bottom:48px}#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-show-if,#simpay-payment-form-settings .simpay-panel-hidden{display:none}#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{font-size:14px;color:green;margin-top:5px}.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-system-status-report-panel{margin:20px 0}.simpay-system-status-report-panel thead th{font-weight:bold}.simpay-system-status-report-panel tbody td,.simpay-system-status-report-panel thead th{font-size:14px;vertical-align:top}.simpay-system-status-report-panel tbody .label{width:30%}.simpay-system-status-report-panel tbody tr:nth-child(odd) td{background-color:rgba(0,0,0,.02)}.simpay-system-status-report-panel dl{margin:0;padding:0}.simpay-system-status-report-panel dt{float:left;font-style:italic;margin:0 4px 0 0}.simpay-system-status-report-panel dd{margin:0}.simpay-system-status-report-panel mark{background-color:transparent;font-weight:bold}.simpay-system-status-report-panel mark.ok{color:green}.simpay-system-status-report-panel mark.error{color:red}.simpay-system-status-report-panel mark.warning{color:#ffb900}.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}.post-php.post-type-simple-pay #slugdiv,.post-php.post-type-simple-pay label[for=slugdiv-hide],.post-new-php.post-type-simple-pay #slugdiv,.post-new-php.post-type-simple-pay label[for=slugdiv-hide]{display:none}.edit-php.post-type-simple-pay .metabox-prefs label:first-of-type{display:none}.simpay-branding-bar{margin-left:-20px;padding:14px 20px 14px 22px;background:#fff;border-bottom:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04)}.simpay-branding-bar__title{display:flex;align-items:center}.simpay-branding-bar__logo{width:180px;margin-bottom:12px}.simpay-branding-bar__divider{color:#dadbdf;font-size:23px;font-weight:400;margin:0 15px}.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-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--inline{margin:40px 30px 30px}.simpay-teaser-float--inline .simpay-teaser-float__card{padding:22px;box-shadow:0 0 12px 6px rgba(0,0,0,.16)}#poststuff .simpay-teaser-float--inline h2,.simpay-teaser-float--inline h2{font-size:18px}.simpay-teaser-float--inline p{font-size:14px;margin:.5rem 0 .75rem}.simpay-teaser-float--inline .button.button-large{font-size:15px;line-height:24px;padding:8px 14px}.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}.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} +.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}.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);-webkit-clip-path:inset(50%);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);-webkit-clip-path:inset(50%);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}.simpay-stripe-account-info .spinner{float:none;margin-top:0;margin-left:0}.post-type-simple-pay .simpay-settings-upgrade{padding:25px 20px 30px;position:relative}.post-type-simple-pay .simpay-settings-upgrade__inner{text-align:center;max-width:750px;margin:0 auto}.post-type-simple-pay .simpay-settings-upgrade h3,.post-type-simple-pay .simpay-settings-upgrade h4{line-height:1;margin:1rem 0}.post-type-simple-pay .simpay-settings-upgrade h4{color:#428bca;font-size:18px}.post-type-simple-pay .simpay-settings-upgrade h3{font-size:26px}.post-type-simple-pay .simpay-settings-upgrade ul{max-width:550px;margin:25px auto 13px;display:flex;flex-wrap:wrap;justify-content:center}.post-type-simple-pay .simpay-settings-upgrade li{font-size:15px;text-align:center;margin-bottom:12px;width:100%}@media screen and (min-width: 782px){.post-type-simple-pay .simpay-settings-upgrade li{text-align:left;width:50%}}.post-type-simple-pay .simpay-settings-upgrade .button.button-large{font-size:17px;line-height:30px;padding:10px 20px}.post-type-simple-pay .simpay-settings-upgrade small{color:#666;margin:15px 0 0;display:block}.post-type-simple-pay .simpay-settings-upgrade .dashicons{color:#428bca}.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}.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}#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: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 a{padding-left:14px;font-weight:bold;background-color:#fff;position:relative;box-shadow:inset 4px 0 currentColor,inset 0 -1px 0 #fff,0 1px 1px rgba(0,0,0,.04);margin-right:-1px}@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{border-bottom:1px solid #ccd0d4;display:flex;align-items:center;line-height:20px;margin:0;padding:10px;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:2;box-shadow:inset 0 0 0 2px currentColor}#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 (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-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-panel--has-help{padding-bottom:48px}#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-show-if,#simpay-payment-form-settings .simpay-panel-hidden{display:none}#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{font-size:14px;color:green;margin-top:5px}.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-system-status-report-panel{margin:20px 0}.simpay-system-status-report-panel thead th{font-weight:bold}.simpay-system-status-report-panel tbody td,.simpay-system-status-report-panel thead th{font-size:14px;vertical-align:top}.simpay-system-status-report-panel tbody .label{width:30%}.simpay-system-status-report-panel tbody tr:nth-child(odd) td{background-color:rgba(0,0,0,.02)}.simpay-system-status-report-panel dl{margin:0;padding:0}.simpay-system-status-report-panel dt{float:left;font-style:italic;margin:0 4px 0 0}.simpay-system-status-report-panel dd{margin:0}.simpay-system-status-report-panel mark{background-color:transparent;font-weight:bold}.simpay-system-status-report-panel mark.ok{color:green}.simpay-system-status-report-panel mark.error{color:red}.simpay-system-status-report-panel mark.warning{color:#ffb900}.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}.post-php.post-type-simple-pay #slugdiv,.post-php.post-type-simple-pay label[for=slugdiv-hide],.post-new-php.post-type-simple-pay #slugdiv,.post-new-php.post-type-simple-pay label[for=slugdiv-hide]{display:none}.edit-php.post-type-simple-pay .metabox-prefs label:first-of-type{display:none}.simpay-branding-bar{margin-left:-20px;padding:14px 20px 14px 22px;background:#fff;border-bottom:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04)}.simpay-branding-bar__title{display:flex;align-items:center}.simpay-branding-bar__logo{width:180px;margin-bottom:12px}.simpay-branding-bar__divider{color:#dadbdf;font-size:23px;font-weight:400;margin:0 15px}.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-upgrade-modal{padding:0 !important}.simpay-upgrade-modal *{box-sizing:border-box}.simpay-upgrade-modal__content{text-align:center;display:flex;flex-direction:column;align-items:center;padding:16px 32px 32px}.simpay-upgrade-modal__content>.dashicons{color:#333;font-size:48px;width:48px;height:48px}.simpay-upgrade-modal__title{font-size:22px;line-height:1.5;display:block;margin:12px 0 0}.simpay-upgrade-modal__description{color:#777;font-size:16px;margin:16px 0 24px}.simpay-upgrade-modal__description strong{color:#333}.simpay-upgrade-modal__discount{font-size:15px;text-align:center;margin:16px -32px 20px;padding:24px 40px 16px;background-color:#fcf9e8;position:relative}.simpay-upgrade-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{text-decoration:none;font-weight:bold;color:#00a32a}.simpay-upgrade-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--inline{margin:40px 30px 30px}.simpay-teaser-float--inline .simpay-teaser-float__card{padding:22px;box-shadow:0 0 12px 6px rgba(0,0,0,.16)}#poststuff .simpay-teaser-float--inline h2,.simpay-teaser-float--inline h2{font-size:18px}.simpay-teaser-float--inline p{font-size:14px;margin:.5rem 0 .75rem}.simpay-teaser-float--inline .button.button-large{font-size:15px;line-height:24px;padding:8px 14px}.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-teaser-form-setting{position:relative}.simpay-teaser-form-setting .simpay-external-link .dashicons-external{margin:1px 0 0 2px}.simpay-teaser-form-setting .simpay-notice-dismiss{position:absolute;top:8px;right:8px;font-size:20px;color:#666;text-decoration:none;margin-left:5px;padding:6px 10px;z-index:2}.simpay-teaser-form-setting .simpay-notice-dismiss:hover,.simpay-teaser-form-setting .simpay-notice-dismiss:active,.simpay-teaser-form-setting .simpay-notice-dismiss:focus{color:#666;text-decoration:none}.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} /*# sourceMappingURL=simpay-admin.min.css.map*/ \ No newline at end of file diff --git a/includes/core/assets/css/simpay-admin.min.css.map b/includes/core/assets/css/simpay-admin.min.css.map index 4a5eff1f..dcca9253 100644 --- a/includes/core/assets/css/simpay-admin.min.css.map +++ b/includes/core/assets/css/simpay-admin.min.css.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///./css/admin/admin.scss"],"names":[],"mappings":"AAAA,6BAA6B,aAAa,mBAAmB,iCAAiC,yCAAyC,gBAAgB,qBAAqB,aAAa,aAAa,mBAAmB,oDAAoD,WAAW,YAAY,eAAe,iBAAiB,mDAAmD,yCAAyC,kBAAkB,UAAU,yDAAyD,cAAc,+CAA+C,8BAA8B,WAAW,gBAAgB,6BAA6B,UAAU,oKAAoK,WAAW,kBAAkB,0DAA0D,aAAa,mBAAmB,kFAAkF,gBAAgB,yCAAyC,eAAe,iBAAiB,iBAAiB,0BAA0B,8BAA8B,6BAA6B,qBAAqB,WAAW,YAAY,gBAAgB,UAAU,kBAAkB,UAAU,wBAAwB,UAAU,iBAAiB,qCAAqC,wBAAwB,iBAAiB,sCAAsC,eAAe,yBAAyB,UAAU,2CAA2C,8BAA8B,6BAA6B,qBAAqB,WAAW,YAAY,gBAAgB,UAAU,kBAAkB,UAAU,mFAAmF,aAAa,sBAAsB,sBAAsB,0BAA0B,0BAA0B,mBAAmB,iBAAiB,oBAAoB,kBAAkB,gCAAgC,cAAc,kBAAkB,2CAA2C,cAAc,iBAAiB,8CAA8C,mBAAmB,kBAAkB,WAAW,YAAY,SAAS,gBAAgB,gBAAgB,UAAU,oDAAoD,SAAS,gBAAgB,gBAAgB,yDAAyD,cAAc,kBAAkB,WAAW,YAAY,cAAc,SAAS,YAAY,YAAY,cAAc,cAAc,kBAAkB,cAAc,gBAAgB,kBAAkB,mBAAmB,SAAS,gBAAgB,oBAAoB,mBAAmB,oBAAoB,eAAe,0BAA0B,mBAAmB,oBAAoB,WAAW,mBAAmB,qBAAqB,cAAc,mBAAmB,sBAAsB,cAAc,mBAAmB,4BAA4B,aAAa,mBAAmB,kBAAkB,qCAAqC,WAAW,aAAa,cAAc,+CAA+C,uBAAuB,kBAAkB,sDAAsD,kBAAkB,gBAAgB,cAAc,oGAAoG,cAAc,cAAc,kDAAkD,cAAc,eAAe,kDAAkD,eAAe,kDAAkD,gBAAgB,sBAAsB,aAAa,eAAe,uBAAuB,kDAAkD,eAAe,kBAAkB,mBAAmB,WAAW,qCAAqC,kDAAkD,gBAAgB,WAAW,oEAAoE,eAAe,iBAAiB,kBAAkB,qDAAqD,WAAW,gBAAgB,cAAc,0DAA0D,cAAc,4DAA4D,kBAAkB,MAAM,QAAQ,eAAe,WAAW,iBAAiB,qBAAqB,gBAAgB,iBAAiB,UAAU,uMAAuM,WAAW,qBAAqB,oCAAoC,WAAW,yBAAyB,0DAA0D,cAAc,iDAAiD,cAAc,UAAU,qDAAqD,cAAc,sCAAsC,SAAS,UAAU,2DAA2D,mBAAmB,gFAAgF,eAAe,WAAW,cAAc,2CAA2C,SAAS,UAAU,gBAAgB,mBAAmB,+BAA+B,gBAAgB,kBAAkB,aAAa,qCAAqC,2CAA2C,gBAAgB,YAAY,gBAAgB,8CAA8C,SAAS,UAAU,yDAAyD,mBAAmB,qCAAqC,yDAAyD,iBAAiB,uDAAuD,kBAAkB,iBAAiB,sBAAsB,kBAAkB,kFAAkF,kBAAkB,qCAAqC,uDAAuD,gBAAgB,+DAA+D,gCAAgC,aAAa,mBAAmB,iBAAiB,SAAS,aAAa,qBAAqB,gCAAgC,6IAA6I,iBAAiB,qCAAqC,+DAA+D,cAAc,qEAAqE,UAAU,kBAAkB,UAAU,wCAAwC,4EAA4E,cAAc,kDAAkD,gBAAgB,aAAa,qCAAqC,kDAAkD,uBAAuB,6CAA6C,aAAa,aAAa,qCAAqC,6CAA6C,iBAAiB,gGAAgG,WAAW,6UAA6U,cAAc,WAAW,4JAA4J,gBAAgB,cAAc,0GAA0G,wBAAwB,iBAAiB,kBAAkB,qDAAqD,iBAAiB,iBAAiB,mBAAmB,qDAAqD,6BAA6B,oBAAoB,gEAAgE,eAAe,6EAA6E,gBAAgB,8EAA8E,gBAAgB,oFAAoF,iBAAiB,cAAc,kBAAkB,4IAA4I,cAAc,eAAe,qCAAqC,4IAA4I,YAAY,YAAY,yEAAyE,WAAW,eAAe,uEAAuE,gBAAgB,6HAA6H,cAAc,mBAAmB,6EAA6E,kBAAkB,gBAAgB,0GAA0G,kBAAkB,UAAU,WAAW,eAAe,sBAAsB,kHAAkH,eAAe,iBAAiB,mGAAmG,iBAAiB,gBAAgB,sBAAsB,mEAAmE,oBAAoB,oEAAoE,yBAAyB,yBAAyB,aAAa,gBAAgB,kBAAkB,6EAA6E,cAAc,qBAAqB,kBAAkB,QAAQ,UAAU,gGAAgG,eAAe,WAAW,YAAY,uEAAuE,eAAe,gBAAgB,SAAS,UAAU,sEAAsE,eAAe,iFAAiF,gBAAgB,iGAAiG,aAAa,0FAA0F,WAAW,cAAc,gBAAgB,kFAAkF,eAAe,eAAe,8GAA8G,UAAU,gHAAgH,WAAW,8FAA8F,SAAS,4FAA4F,gBAAgB,sBAAsB,0GAA0G,iBAAiB,gHAAgH,qBAAqB,qBAAqB,sIAAsI,eAAe,4FAA4F,aAAa,mBAAmB,0GAA0G,kBAAkB,UAAU,8FAA8F,SAAS,iBAAiB,kBAAkB,iBAAiB,eAAe,qCAAqC,8FAA8F,kBAAkB,wGAAwG,2BAA2B,8BAA8B,0GAA0G,4BAA4B,+BAA+B,oGAAoG,qBAAqB,mBAAmB,sBAAsB,0GAA0G,mBAAmB,wGAAwG,2BAA2B,kJAAkJ,0BAA0B,0GAA0G,2BAA2B,wFAAwF,SAAS,iBAAiB,kBAAkB,eAAe,UAAU,kBAAkB,UAAU,gBAAgB,2BAA2B,8BAA8B,0EAA0E,UAAU,4FAA4F,kBAAkB,QAAQ,SAAS,WAAW,eAAe,kBAAkB,kBAAkB,8IAA8I,WAAW,qBAAqB,WAAW,YAAY,eAAe,iBAAiB,kFAAkF,WAAW,kNAAkN,qBAAqB,WAAW,YAAY,eAAe,0CAA0C,yBAAyB,yBAAyB,WAAW,qBAAqB,gDAAgD,4CAA4C,gDAAgD,yBAAyB,yBAAyB,4BAA4B,eAAe,YAAY,eAAe,yCAAyC,aAAa,aAAa,gBAAgB,aAAa,gBAAgB,yBAAyB,qCAAqC,4BAA4B,gBAAgB,eAAe,gBAAgB,gBAAgB,eAAe,gBAAgB,cAAc,eAAe,gBAAgB,qDAAqD,gBAAgB,oBAAoB,YAAY,qBAAqB,gBAAgB,mDAAmD,eAAe,+BAA+B,kBAAkB,qCAAqC,oBAAoB,gBAAgB,eAAe,YAAY,wBAAwB,WAAW,aAAa,eAAe,UAAU,uBAAuB,kBAAkB,aAAa,sBAAsB,uBAAuB,mBAAmB,iBAAiB,aAAa,+BAA+B,sBAAsB,qCAAqC,eAAe,qCAAqC,uBAAuB,cAAc,gCAAgC,eAAe,kCAAkC,iBAAiB,0BAA0B,eAAe,mBAAmB,yBAAyB,eAAe,kCAAkC,eAAe,WAAW,YAAY,cAAc,mBAAmB,qCAAqC,eAAe,eAAe,aAAa,eAAe,8BAA8B,cAAc,cAAc,gBAAgB,yBAAyB,qCAAqC,mBAAmB,aAAa,sBAAsB,4BAA4B,sBAAsB,qCAAqC,cAAc,iBAAiB,kBAAkB,WAAW,eAAe,iBAAiB,sBAAsB,eAAe,uBAAuB,aAAa,cAAc,uBAAuB,aAAa,mBAAmB,8BAA8B,cAAc,yBAAyB,0BAA0B,gBAAgB,aAAa,kBAAkB,4BAA4B,kBAAkB,uBAAuB,aAAa,mBAAmB,kBAAkB,MAAM,QAAQ,SAAS,OAAO,WAAW,YAAY,yBAAyB,UAAU,kEAAkE,cAAc,iEAAiE,cAAc,0BAA0B,mBAAmB,2CAA2C,cAAc,aAAa,mBAAmB,sDAAsD,iBAAiB,mCAAmC,cAAc,4CAA4C,iBAAiB,wFAAwF,eAAe,mBAAmB,gDAAgD,UAAU,8DAA8D,iCAAiC,sCAAsC,SAAS,UAAU,sCAAsC,WAAW,kBAAkB,iBAAiB,sCAAsC,SAAS,wCAAwC,6BAA6B,iBAAiB,2CAA2C,YAAY,8CAA8C,UAAU,gDAAgD,cAAc,uBAAuB,aAAa,mBAAmB,8BAA8B,kBAAkB,UAAU,wBAAwB,SAAS,iBAAiB,kBAAkB,iBAAiB,eAAe,qCAAqC,wBAAwB,kBAAkB,6BAA6B,2BAA2B,8BAA8B,8BAA8B,4BAA4B,+BAA+B,2BAA2B,qBAAqB,mBAAmB,sBAAsB,8BAA8B,mBAAmB,6BAA6B,2BAA2B,kDAAkD,0BAA0B,8BAA8B,2BAA2B,qBAAqB,SAAS,iBAAiB,kBAAkB,eAAe,UAAU,kBAAkB,UAAU,gBAAgB,2BAA2B,8BAA8B,sMAAsM,aAAa,kEAAkE,aAAa,qBAAqB,kBAAkB,4BAA4B,gBAAgB,gCAAgC,qCAAqC,4BAA4B,aAAa,mBAAmB,2BAA2B,YAAY,mBAAmB,8BAA8B,cAAc,eAAe,gBAAgB,cAAc,wCAAwC,eAAe,gBAAgB,SAAS,wCAAwC,gBAAgB,eAAe,mBAAmB,eAAe,iBAAiB,qBAAqB,iBAAiB,gBAAgB,8BAA8B,kBAAkB,mBAAmB,qBAAqB,kBAAkB,gBAAgB,iBAAiB,4BAA4B,eAAe,gBAAgB,kBAAkB,UAAU,+BAA+B,eAAe,WAAW,gBAAgB,sCAAsC,WAAW,6BAA6B,cAAc,8CAA8C,YAAY,mCAAmC,sBAAsB,qCAAqC,qBAAqB,kBAAkB,YAAY,YAAY,sBAAsB,2CAA2C,kBAAkB,yCAAyC,eAAe,cAAc,4CAA4C,kBAAkB,UAAU,yBAAyB,wBAAwB,MAAM,OAAO,sBAAsB,iCAAiC,wCAAwC,i8BAAi8B,4BAA4B,2BAA2B,qBAAqB,mBAAmB,kDAAkD,UAAU,mBAAmB,oCAAoC,gBAAgB,qBAAqB,kBAAkB,qBAAqB,6BAA6B,qCAAqC,oCAAoC,kBAAkB,iBAAiB,eAAe,eAAe,oCAAoC,cAAc,UAAU,eAAe,WAAW,kBAAkB,2CAA2C,WAAW,wCAAwC,ilCAAilC,2BAA2B,4BAA4B,qBAAqB,WAAW,YAAY,qBAAqB,oBAAoB,sBAAsB,0CAA0C,eAAe,iBAAiB,kBAAkB,qBAAqB,YAAY,kBAAkB,2BAA2B,kBAAkB,aAAa,gBAAgB,kBAAkB,yCAAyC,kBAAkB,UAAU,2DAA2D,eAAe,gBAAgB,SAAS,UAAU,uBAAuB,eAAe,iBAAiB,WAAW,8BAA8B,WAAW,wBAAwB,gBAAgB,qBAAqB,oBAAoB,qBAAqB,wBAAwB,cAAc,mBAAmB,eAAe,wCAAwC,ilCAAilC,6BAA6B,4BAA4B,qBAAqB,WAAW,0CAA0C,eAAe,iBAAiB,kBAAkB,4CAA4C,kBAAkB,MAAM,QAAQ,eAAe,WAAW,iBAAiB,qBAAqB,gBAAgB,iBAAiB,UAAU,uJAAuJ,WAAW,qBAAqB,uDAAuD,YAAY,UAAU,WAAW,kBAAkB,WAAW,YAAY,UAAU,wBAAwB,aAAa,iIAAiI,4BAA4B,wDAAwD,+CAA+C,4BAA4B,UAAU,6BAA6B,sBAAsB,wDAAwD,aAAa,wCAAwC,2EAA2E,eAAe,+BAA+B,eAAe,sBAAsB,kDAAkD,eAAe,iBAAiB,iBAAiB,uEAAuE,WAAW,oCAAoC,aAAa,mCAAmC,SAAS,4BAA4B,kBAAkB,aAAa,kCAAkC,YAAY,oCAAoC,eAAe,gBAAgB,wCAAwC,2BAA2B,0BAA0B,wBAAwB,a","file":"./../css/simpay-admin.min.css","sourcesContent":[".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}.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);-webkit-clip-path:inset(50%);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);-webkit-clip-path:inset(50%);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}.simpay-stripe-account-info .spinner{float:none;margin-top:0;margin-left:0}.post-type-simple-pay .simpay-settings-upgrade{padding:25px 20px 30px;position:relative}.post-type-simple-pay .simpay-settings-upgrade__inner{text-align:center;max-width:750px;margin:0 auto}.post-type-simple-pay .simpay-settings-upgrade h3,.post-type-simple-pay .simpay-settings-upgrade h4{line-height:1;margin:1rem 0}.post-type-simple-pay .simpay-settings-upgrade h4{color:#428bca;font-size:18px}.post-type-simple-pay .simpay-settings-upgrade h3{font-size:26px}.post-type-simple-pay .simpay-settings-upgrade ul{max-width:550px;margin:25px auto 13px;display:flex;flex-wrap:wrap;justify-content:center}.post-type-simple-pay .simpay-settings-upgrade li{font-size:15px;text-align:center;margin-bottom:12px;width:100%}@media screen and (min-width: 782px){.post-type-simple-pay .simpay-settings-upgrade li{text-align:left;width:50%}}.post-type-simple-pay .simpay-settings-upgrade .button.button-large{font-size:17px;line-height:30px;padding:10px 20px}.post-type-simple-pay .simpay-settings-upgrade small{color:#666;margin:15px 0 0;display:block}.post-type-simple-pay .simpay-settings-upgrade .dashicons{color:#428bca}.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}.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}#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: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 a{padding-left:14px;font-weight:bold;background-color:#fff;position:relative;box-shadow:inset 4px 0 currentColor,inset 0 -1px 0 #fff,0 1px 1px rgba(0,0,0,.04);margin-right:-1px}@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{border-bottom:1px solid #ccd0d4;display:flex;align-items:center;line-height:20px;margin:0;padding:10px;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:2;box-shadow:inset 0 0 0 2px currentColor}#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 (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-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-panel--has-help{padding-bottom:48px}#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-show-if,#simpay-payment-form-settings .simpay-panel-hidden{display:none}#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{font-size:14px;color:green;margin-top:5px}.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-system-status-report-panel{margin:20px 0}.simpay-system-status-report-panel thead th{font-weight:bold}.simpay-system-status-report-panel tbody td,.simpay-system-status-report-panel thead th{font-size:14px;vertical-align:top}.simpay-system-status-report-panel tbody .label{width:30%}.simpay-system-status-report-panel tbody tr:nth-child(odd) td{background-color:rgba(0,0,0,.02)}.simpay-system-status-report-panel dl{margin:0;padding:0}.simpay-system-status-report-panel dt{float:left;font-style:italic;margin:0 4px 0 0}.simpay-system-status-report-panel dd{margin:0}.simpay-system-status-report-panel mark{background-color:transparent;font-weight:bold}.simpay-system-status-report-panel mark.ok{color:green}.simpay-system-status-report-panel mark.error{color:red}.simpay-system-status-report-panel mark.warning{color:#ffb900}.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}.post-php.post-type-simple-pay #slugdiv,.post-php.post-type-simple-pay label[for=slugdiv-hide],.post-new-php.post-type-simple-pay #slugdiv,.post-new-php.post-type-simple-pay label[for=slugdiv-hide]{display:none}.edit-php.post-type-simple-pay .metabox-prefs label:first-of-type{display:none}.simpay-branding-bar{margin-left:-20px;padding:14px 20px 14px 22px;background:#fff;border-bottom:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04)}.simpay-branding-bar__title{display:flex;align-items:center}.simpay-branding-bar__logo{width:180px;margin-bottom:12px}.simpay-branding-bar__divider{color:#dadbdf;font-size:23px;font-weight:400;margin:0 15px}.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-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--inline{margin:40px 30px 30px}.simpay-teaser-float--inline .simpay-teaser-float__card{padding:22px;box-shadow:0 0 12px 6px rgba(0,0,0,.16)}#poststuff .simpay-teaser-float--inline h2,.simpay-teaser-float--inline h2{font-size:18px}.simpay-teaser-float--inline p{font-size:14px;margin:.5rem 0 .75rem}.simpay-teaser-float--inline .button.button-large{font-size:15px;line-height:24px;padding:8px 14px}.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}.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}"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///./css/admin/admin.scss"],"names":[],"mappings":"AAAA,6BAA6B,aAAa,mBAAmB,iCAAiC,yCAAyC,gBAAgB,qBAAqB,aAAa,aAAa,mBAAmB,oDAAoD,WAAW,YAAY,eAAe,iBAAiB,mDAAmD,yCAAyC,kBAAkB,UAAU,yDAAyD,cAAc,+CAA+C,8BAA8B,WAAW,gBAAgB,6BAA6B,UAAU,oKAAoK,WAAW,kBAAkB,0DAA0D,aAAa,mBAAmB,kFAAkF,gBAAgB,yCAAyC,eAAe,iBAAiB,iBAAiB,0BAA0B,8BAA8B,6BAA6B,qBAAqB,WAAW,YAAY,gBAAgB,UAAU,kBAAkB,UAAU,wBAAwB,UAAU,iBAAiB,qCAAqC,wBAAwB,iBAAiB,sCAAsC,eAAe,yBAAyB,UAAU,2CAA2C,8BAA8B,6BAA6B,qBAAqB,WAAW,YAAY,gBAAgB,UAAU,kBAAkB,UAAU,mFAAmF,aAAa,sBAAsB,sBAAsB,0BAA0B,0BAA0B,mBAAmB,iBAAiB,oBAAoB,kBAAkB,gCAAgC,cAAc,kBAAkB,2CAA2C,cAAc,iBAAiB,8CAA8C,mBAAmB,kBAAkB,WAAW,YAAY,SAAS,gBAAgB,gBAAgB,UAAU,oDAAoD,SAAS,gBAAgB,gBAAgB,yDAAyD,cAAc,kBAAkB,WAAW,YAAY,cAAc,SAAS,YAAY,YAAY,cAAc,cAAc,kBAAkB,cAAc,gBAAgB,kBAAkB,mBAAmB,SAAS,gBAAgB,oBAAoB,mBAAmB,oBAAoB,eAAe,0BAA0B,mBAAmB,oBAAoB,WAAW,mBAAmB,qBAAqB,cAAc,mBAAmB,sBAAsB,cAAc,mBAAmB,4BAA4B,aAAa,mBAAmB,kBAAkB,qCAAqC,WAAW,aAAa,cAAc,+CAA+C,uBAAuB,kBAAkB,sDAAsD,kBAAkB,gBAAgB,cAAc,oGAAoG,cAAc,cAAc,kDAAkD,cAAc,eAAe,kDAAkD,eAAe,kDAAkD,gBAAgB,sBAAsB,aAAa,eAAe,uBAAuB,kDAAkD,eAAe,kBAAkB,mBAAmB,WAAW,qCAAqC,kDAAkD,gBAAgB,WAAW,oEAAoE,eAAe,iBAAiB,kBAAkB,qDAAqD,WAAW,gBAAgB,cAAc,0DAA0D,cAAc,4DAA4D,kBAAkB,MAAM,QAAQ,eAAe,WAAW,iBAAiB,qBAAqB,gBAAgB,iBAAiB,UAAU,uMAAuM,WAAW,qBAAqB,oCAAoC,WAAW,yBAAyB,0DAA0D,cAAc,iDAAiD,cAAc,UAAU,qDAAqD,cAAc,sCAAsC,SAAS,UAAU,2DAA2D,mBAAmB,gFAAgF,eAAe,WAAW,cAAc,2CAA2C,SAAS,UAAU,gBAAgB,mBAAmB,+BAA+B,gBAAgB,kBAAkB,aAAa,qCAAqC,2CAA2C,gBAAgB,YAAY,gBAAgB,8CAA8C,SAAS,UAAU,yDAAyD,mBAAmB,qCAAqC,yDAAyD,iBAAiB,uDAAuD,kBAAkB,iBAAiB,sBAAsB,kBAAkB,kFAAkF,kBAAkB,qCAAqC,uDAAuD,gBAAgB,+DAA+D,gCAAgC,aAAa,mBAAmB,iBAAiB,SAAS,aAAa,qBAAqB,gCAAgC,6IAA6I,iBAAiB,qCAAqC,+DAA+D,cAAc,qEAAqE,UAAU,kBAAkB,UAAU,wCAAwC,4EAA4E,cAAc,kDAAkD,gBAAgB,aAAa,qCAAqC,kDAAkD,uBAAuB,6CAA6C,aAAa,aAAa,qCAAqC,6CAA6C,iBAAiB,gGAAgG,WAAW,6UAA6U,cAAc,WAAW,oEAAoE,kBAAkB,2EAA2E,kBAAkB,yFAAyF,kBAAkB,qBAAqB,WAAW,4JAA4J,gBAAgB,cAAc,0GAA0G,wBAAwB,iBAAiB,kBAAkB,qDAAqD,iBAAiB,iBAAiB,mBAAmB,qDAAqD,6BAA6B,oBAAoB,gEAAgE,eAAe,6EAA6E,gBAAgB,8EAA8E,gBAAgB,oFAAoF,iBAAiB,cAAc,kBAAkB,4IAA4I,cAAc,eAAe,qCAAqC,4IAA4I,YAAY,YAAY,yEAAyE,WAAW,eAAe,uEAAuE,gBAAgB,6HAA6H,cAAc,mBAAmB,6EAA6E,kBAAkB,gBAAgB,0GAA0G,kBAAkB,UAAU,WAAW,eAAe,sBAAsB,kHAAkH,eAAe,iBAAiB,mGAAmG,iBAAiB,gBAAgB,sBAAsB,mEAAmE,oBAAoB,oEAAoE,yBAAyB,yBAAyB,aAAa,gBAAgB,kBAAkB,6EAA6E,cAAc,qBAAqB,kBAAkB,QAAQ,UAAU,gGAAgG,eAAe,WAAW,YAAY,uEAAuE,eAAe,gBAAgB,SAAS,UAAU,sEAAsE,eAAe,iFAAiF,gBAAgB,iGAAiG,aAAa,0FAA0F,WAAW,cAAc,gBAAgB,kFAAkF,eAAe,eAAe,8GAA8G,UAAU,gHAAgH,WAAW,8FAA8F,SAAS,4FAA4F,gBAAgB,sBAAsB,0GAA0G,iBAAiB,gHAAgH,qBAAqB,qBAAqB,sIAAsI,eAAe,4FAA4F,aAAa,mBAAmB,0GAA0G,kBAAkB,UAAU,8FAA8F,SAAS,iBAAiB,kBAAkB,iBAAiB,eAAe,qCAAqC,8FAA8F,kBAAkB,wGAAwG,2BAA2B,8BAA8B,0GAA0G,4BAA4B,+BAA+B,oGAAoG,qBAAqB,mBAAmB,sBAAsB,0GAA0G,mBAAmB,wGAAwG,2BAA2B,kJAAkJ,0BAA0B,0GAA0G,2BAA2B,wFAAwF,SAAS,iBAAiB,kBAAkB,eAAe,UAAU,kBAAkB,UAAU,gBAAgB,2BAA2B,8BAA8B,0EAA0E,UAAU,4FAA4F,kBAAkB,QAAQ,SAAS,WAAW,eAAe,kBAAkB,kBAAkB,8IAA8I,WAAW,qBAAqB,WAAW,YAAY,eAAe,iBAAiB,kFAAkF,WAAW,kNAAkN,qBAAqB,WAAW,YAAY,eAAe,0CAA0C,yBAAyB,yBAAyB,WAAW,qBAAqB,gDAAgD,4CAA4C,gDAAgD,yBAAyB,yBAAyB,4BAA4B,eAAe,YAAY,eAAe,yCAAyC,aAAa,aAAa,gBAAgB,aAAa,gBAAgB,yBAAyB,qCAAqC,4BAA4B,gBAAgB,eAAe,gBAAgB,gBAAgB,eAAe,gBAAgB,cAAc,eAAe,gBAAgB,qDAAqD,gBAAgB,oBAAoB,YAAY,qBAAqB,gBAAgB,mDAAmD,eAAe,+BAA+B,kBAAkB,qCAAqC,oBAAoB,gBAAgB,eAAe,YAAY,wBAAwB,WAAW,aAAa,eAAe,UAAU,uBAAuB,kBAAkB,aAAa,sBAAsB,uBAAuB,mBAAmB,iBAAiB,aAAa,+BAA+B,sBAAsB,qCAAqC,eAAe,qCAAqC,uBAAuB,cAAc,gCAAgC,eAAe,kCAAkC,iBAAiB,0BAA0B,eAAe,mBAAmB,yBAAyB,eAAe,kCAAkC,eAAe,WAAW,YAAY,cAAc,mBAAmB,qCAAqC,eAAe,eAAe,aAAa,eAAe,8BAA8B,cAAc,cAAc,gBAAgB,yBAAyB,qCAAqC,mBAAmB,aAAa,sBAAsB,4BAA4B,sBAAsB,qCAAqC,cAAc,iBAAiB,kBAAkB,WAAW,eAAe,iBAAiB,sBAAsB,eAAe,uBAAuB,aAAa,cAAc,uBAAuB,aAAa,mBAAmB,8BAA8B,cAAc,yBAAyB,0BAA0B,gBAAgB,aAAa,kBAAkB,4BAA4B,kBAAkB,uBAAuB,aAAa,mBAAmB,kBAAkB,MAAM,QAAQ,SAAS,OAAO,WAAW,YAAY,yBAAyB,UAAU,kEAAkE,cAAc,iEAAiE,cAAc,0BAA0B,mBAAmB,2CAA2C,cAAc,aAAa,mBAAmB,sDAAsD,iBAAiB,mCAAmC,cAAc,4CAA4C,iBAAiB,wFAAwF,eAAe,mBAAmB,gDAAgD,UAAU,8DAA8D,iCAAiC,sCAAsC,SAAS,UAAU,sCAAsC,WAAW,kBAAkB,iBAAiB,sCAAsC,SAAS,wCAAwC,6BAA6B,iBAAiB,2CAA2C,YAAY,8CAA8C,UAAU,gDAAgD,cAAc,uBAAuB,aAAa,mBAAmB,8BAA8B,kBAAkB,UAAU,wBAAwB,SAAS,iBAAiB,kBAAkB,iBAAiB,eAAe,qCAAqC,wBAAwB,kBAAkB,6BAA6B,2BAA2B,8BAA8B,8BAA8B,4BAA4B,+BAA+B,2BAA2B,qBAAqB,mBAAmB,sBAAsB,8BAA8B,mBAAmB,6BAA6B,2BAA2B,kDAAkD,0BAA0B,8BAA8B,2BAA2B,qBAAqB,SAAS,iBAAiB,kBAAkB,eAAe,UAAU,kBAAkB,UAAU,gBAAgB,2BAA2B,8BAA8B,sMAAsM,aAAa,kEAAkE,aAAa,qBAAqB,kBAAkB,4BAA4B,gBAAgB,gCAAgC,qCAAqC,4BAA4B,aAAa,mBAAmB,2BAA2B,YAAY,mBAAmB,8BAA8B,cAAc,eAAe,gBAAgB,cAAc,wCAAwC,eAAe,gBAAgB,SAAS,wCAAwC,gBAAgB,eAAe,mBAAmB,eAAe,iBAAiB,qBAAqB,iBAAiB,gBAAgB,8BAA8B,kBAAkB,mBAAmB,qBAAqB,kBAAkB,gBAAgB,iBAAiB,4BAA4B,eAAe,gBAAgB,kBAAkB,UAAU,+BAA+B,eAAe,WAAW,gBAAgB,sCAAsC,WAAW,6BAA6B,cAAc,8CAA8C,YAAY,mCAAmC,sBAAsB,qCAAqC,qBAAqB,kBAAkB,YAAY,YAAY,sBAAsB,2CAA2C,kBAAkB,yCAAyC,eAAe,cAAc,4CAA4C,kBAAkB,UAAU,yBAAyB,wBAAwB,MAAM,OAAO,sBAAsB,iCAAiC,wCAAwC,i8BAAi8B,4BAA4B,2BAA2B,qBAAqB,mBAAmB,kDAAkD,UAAU,mBAAmB,oCAAoC,gBAAgB,qBAAqB,kBAAkB,qBAAqB,6BAA6B,qCAAqC,oCAAoC,kBAAkB,iBAAiB,eAAe,eAAe,oCAAoC,cAAc,UAAU,eAAe,WAAW,kBAAkB,2CAA2C,WAAW,wCAAwC,ilCAAilC,2BAA2B,4BAA4B,qBAAqB,WAAW,YAAY,qBAAqB,oBAAoB,sBAAsB,0CAA0C,eAAe,iBAAiB,kBAAkB,sBAAsB,qBAAqB,wBAAwB,sBAAsB,+BAA+B,kBAAkB,aAAa,sBAAsB,mBAAmB,uBAAuB,0CAA0C,WAAW,eAAe,WAAW,YAAY,6BAA6B,eAAe,gBAAgB,cAAc,gBAAgB,mCAAmC,WAAW,eAAe,mBAAmB,0CAA0C,WAAW,gCAAgC,eAAe,kBAAkB,uBAAuB,uBAAuB,yBAAyB,kBAAkB,oCAAoC,mBAAmB,UAAU,kBAAkB,sBAAsB,WAAW,YAAY,kBAAkB,UAAU,SAAS,kBAAkB,kCAAkC,qBAAqB,iBAAiB,cAAc,oCAAoC,eAAe,iBAAiB,gBAAgB,4BAA4B,YAAY,qBAAqB,YAAY,kBAAkB,2BAA2B,kBAAkB,aAAa,gBAAgB,kBAAkB,yCAAyC,kBAAkB,UAAU,2DAA2D,eAAe,gBAAgB,SAAS,UAAU,uBAAuB,eAAe,iBAAiB,WAAW,8BAA8B,WAAW,wBAAwB,gBAAgB,qBAAqB,oBAAoB,qBAAqB,wBAAwB,cAAc,mBAAmB,eAAe,wCAAwC,ilCAAilC,6BAA6B,4BAA4B,qBAAqB,WAAW,0CAA0C,eAAe,iBAAiB,kBAAkB,4CAA4C,kBAAkB,MAAM,QAAQ,eAAe,WAAW,iBAAiB,qBAAqB,gBAAgB,iBAAiB,UAAU,uJAAuJ,WAAW,qBAAqB,uDAAuD,YAAY,UAAU,WAAW,kBAAkB,WAAW,YAAY,UAAU,wBAAwB,aAAa,iIAAiI,4BAA4B,wDAAwD,+CAA+C,4BAA4B,UAAU,6BAA6B,sBAAsB,wDAAwD,aAAa,wCAAwC,2EAA2E,eAAe,+BAA+B,eAAe,sBAAsB,kDAAkD,eAAe,iBAAiB,iBAAiB,uEAAuE,WAAW,oCAAoC,aAAa,mCAAmC,SAAS,4BAA4B,kBAAkB,sEAAsE,mBAAmB,mDAAmD,kBAAkB,QAAQ,UAAU,eAAe,WAAW,qBAAqB,gBAAgB,iBAAiB,UAAU,4KAA4K,WAAW,qBAAqB,4BAA4B,kBAAkB,aAAa,kCAAkC,YAAY,oCAAoC,eAAe,gBAAgB,wCAAwC,2BAA2B,0BAA0B,wBAAwB,a","file":"./../css/simpay-admin.min.css","sourcesContent":[".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}.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);-webkit-clip-path:inset(50%);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);-webkit-clip-path:inset(50%);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}.simpay-stripe-account-info .spinner{float:none;margin-top:0;margin-left:0}.post-type-simple-pay .simpay-settings-upgrade{padding:25px 20px 30px;position:relative}.post-type-simple-pay .simpay-settings-upgrade__inner{text-align:center;max-width:750px;margin:0 auto}.post-type-simple-pay .simpay-settings-upgrade h3,.post-type-simple-pay .simpay-settings-upgrade h4{line-height:1;margin:1rem 0}.post-type-simple-pay .simpay-settings-upgrade h4{color:#428bca;font-size:18px}.post-type-simple-pay .simpay-settings-upgrade h3{font-size:26px}.post-type-simple-pay .simpay-settings-upgrade ul{max-width:550px;margin:25px auto 13px;display:flex;flex-wrap:wrap;justify-content:center}.post-type-simple-pay .simpay-settings-upgrade li{font-size:15px;text-align:center;margin-bottom:12px;width:100%}@media screen and (min-width: 782px){.post-type-simple-pay .simpay-settings-upgrade li{text-align:left;width:50%}}.post-type-simple-pay .simpay-settings-upgrade .button.button-large{font-size:17px;line-height:30px;padding:10px 20px}.post-type-simple-pay .simpay-settings-upgrade small{color:#666;margin:15px 0 0;display:block}.post-type-simple-pay .simpay-settings-upgrade .dashicons{color:#428bca}.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}.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}#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: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 a{padding-left:14px;font-weight:bold;background-color:#fff;position:relative;box-shadow:inset 4px 0 currentColor,inset 0 -1px 0 #fff,0 1px 1px rgba(0,0,0,.04);margin-right:-1px}@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{border-bottom:1px solid #ccd0d4;display:flex;align-items:center;line-height:20px;margin:0;padding:10px;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:2;box-shadow:inset 0 0 0 2px currentColor}#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 (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-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-panel--has-help{padding-bottom:48px}#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-show-if,#simpay-payment-form-settings .simpay-panel-hidden{display:none}#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{font-size:14px;color:green;margin-top:5px}.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-system-status-report-panel{margin:20px 0}.simpay-system-status-report-panel thead th{font-weight:bold}.simpay-system-status-report-panel tbody td,.simpay-system-status-report-panel thead th{font-size:14px;vertical-align:top}.simpay-system-status-report-panel tbody .label{width:30%}.simpay-system-status-report-panel tbody tr:nth-child(odd) td{background-color:rgba(0,0,0,.02)}.simpay-system-status-report-panel dl{margin:0;padding:0}.simpay-system-status-report-panel dt{float:left;font-style:italic;margin:0 4px 0 0}.simpay-system-status-report-panel dd{margin:0}.simpay-system-status-report-panel mark{background-color:transparent;font-weight:bold}.simpay-system-status-report-panel mark.ok{color:green}.simpay-system-status-report-panel mark.error{color:red}.simpay-system-status-report-panel mark.warning{color:#ffb900}.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}.post-php.post-type-simple-pay #slugdiv,.post-php.post-type-simple-pay label[for=slugdiv-hide],.post-new-php.post-type-simple-pay #slugdiv,.post-new-php.post-type-simple-pay label[for=slugdiv-hide]{display:none}.edit-php.post-type-simple-pay .metabox-prefs label:first-of-type{display:none}.simpay-branding-bar{margin-left:-20px;padding:14px 20px 14px 22px;background:#fff;border-bottom:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04)}.simpay-branding-bar__title{display:flex;align-items:center}.simpay-branding-bar__logo{width:180px;margin-bottom:12px}.simpay-branding-bar__divider{color:#dadbdf;font-size:23px;font-weight:400;margin:0 15px}.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-upgrade-modal{padding:0 !important}.simpay-upgrade-modal *{box-sizing:border-box}.simpay-upgrade-modal__content{text-align:center;display:flex;flex-direction:column;align-items:center;padding:16px 32px 32px}.simpay-upgrade-modal__content>.dashicons{color:#333;font-size:48px;width:48px;height:48px}.simpay-upgrade-modal__title{font-size:22px;line-height:1.5;display:block;margin:12px 0 0}.simpay-upgrade-modal__description{color:#777;font-size:16px;margin:16px 0 24px}.simpay-upgrade-modal__description strong{color:#333}.simpay-upgrade-modal__discount{font-size:15px;text-align:center;margin:16px -32px 20px;padding:24px 40px 16px;background-color:#fcf9e8;position:relative}.simpay-upgrade-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{text-decoration:none;font-weight:bold;color:#00a32a}.simpay-upgrade-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--inline{margin:40px 30px 30px}.simpay-teaser-float--inline .simpay-teaser-float__card{padding:22px;box-shadow:0 0 12px 6px rgba(0,0,0,.16)}#poststuff .simpay-teaser-float--inline h2,.simpay-teaser-float--inline h2{font-size:18px}.simpay-teaser-float--inline p{font-size:14px;margin:.5rem 0 .75rem}.simpay-teaser-float--inline .button.button-large{font-size:15px;line-height:24px;padding:8px 14px}.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-teaser-form-setting{position:relative}.simpay-teaser-form-setting .simpay-external-link .dashicons-external{margin:1px 0 0 2px}.simpay-teaser-form-setting .simpay-notice-dismiss{position:absolute;top:8px;right:8px;font-size:20px;color:#666;text-decoration:none;margin-left:5px;padding:6px 10px;z-index:2}.simpay-teaser-form-setting .simpay-notice-dismiss:hover,.simpay-teaser-form-setting .simpay-notice-dismiss:active,.simpay-teaser-form-setting .simpay-notice-dismiss:focus{color:#666;text-decoration:none}.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}"],"sourceRoot":""} \ No newline at end of file diff --git a/includes/core/assets/css/simpay-public.min.css b/includes/core/assets/css/simpay-public.min.css index abc73463..8d7b8ec3 100644 --- a/includes/core/assets/css/simpay-public.min.css +++ b/includes/core/assets/css/simpay-public.min.css @@ -1,3 +1,3 @@ -.screen-reader-text{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px}.grecaptcha-badge{z-index:100}.simpay-styled .stripe-button-el{text-decoration:none}.simpay-styled .stripe-button-el:hover{box-shadow:none}.simpay-checkout-form--loading::after{content:"";position:absolute;left:0;width:100%;height:100%;top:0}.simpay-checkout-form--loading .simpay-form-control{opacity:.65}.simpay-errors{margin-bottom:15px}.simpay-styled .simpay-errors{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;color:#eb1c26;line-height:1.5}.simpay-checkout-form--embedded .simpay-test-mode-badge-container,.simpay-modal__content .simpay-test-mode-badge-container{text-align:center}.simpay-test-mode-badge-container .simpay-test-mode-badge{color:#a04903;text-align:center;text-transform:uppercase;font-size:10px;font-family:sans-serif;line-height:10px;font-weight:700;padding:5px 7px;border-radius:3px;background:#ffde92;display:inline-flex;align-items:center}.simpay-form-preview{padding:50px}.simpay-form-preview-notice{background-color:rgba(250,230,1,.1);margin-bottom:50px;padding:1em;border-radius:4px;display:inline-block}.simpay-form-preview-notice p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;font-size:16px;color:#333;margin:0} +.screen-reader-text{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px}.grecaptcha-badge{z-index:100}.simpay-styled .stripe-button-el{text-decoration:none}.simpay-styled .stripe-button-el:hover{box-shadow:none}.simpay-checkout-form--loading::after{content:"";position:absolute;left:0;width:100%;height:100%;top:0}.simpay-checkout-form--loading .simpay-form-control{opacity:.65}.simpay-errors{margin-bottom:15px}.simpay-styled .simpay-errors{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;color:#eb1c26;line-height:1.5}.simpay-checkout-form--embedded .simpay-test-mode-badge-container,.simpay-modal__content .simpay-test-mode-badge-container{text-align:center}.simpay-test-mode-badge-container .simpay-test-mode-badge{color:#a04903;text-align:center;text-transform:uppercase;font-size:10px;font-family:sans-serif;line-height:10px;font-weight:700;padding:5px 7px;border-radius:3px;background:#ffde92;display:inline-flex;align-items:center}html body.simpay-form-preview{padding:50px;background:#fff;font-family:sans-serif}html body.simpay-form-preview:before,html body.simpay-form-preview:after{display:none}html body.simpay-form-preview .simpay-form-preview-notice{background:#fafafa;margin-bottom:50px;padding:5px 20px;display:inline-block;border:1px solid #ddd;box-shadow:0 1px 1px rgba(0,0,0,.04)}html body.simpay-form-preview .simpay-form-preview-notice-button{background-color:#428bca;color:#fff;font-size:16px;line-height:1.2;padding:6px 12px;font-weight:normal;text-shadow:none;border:1px solid #2d6ca2;box-shadow:none;border-radius:4px;cursor:pointer}html body.simpay-form-preview .simpay-form-preview-notice-section{margin:10px 0}html body.simpay-form-preview .simpay-form-preview-notice p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;font-size:16px;color:#333;margin:15px 0} /*# sourceMappingURL=simpay-public.min.css.map*/ \ No newline at end of file diff --git a/includes/core/assets/css/simpay-public.min.css.map b/includes/core/assets/css/simpay-public.min.css.map index 604abc62..108b7ab7 100644 --- a/includes/core/assets/css/simpay-public.min.css.map +++ b/includes/core/assets/css/simpay-public.min.css.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///./css/frontend/public.scss"],"names":[],"mappings":"AAAA,oBAAoB,8BAA8B,WAAW,gBAAgB,6BAA6B,UAAU,kBAAkB,YAAY,iCAAiC,qBAAqB,uCAAuC,gBAAgB,sCAAsC,WAAW,kBAAkB,OAAO,WAAW,YAAY,MAAM,oDAAoD,YAAY,eAAe,mBAAmB,8BAA8B,kHAAkH,cAAc,gBAAgB,2HAA2H,kBAAkB,0DAA0D,cAAc,kBAAkB,yBAAyB,eAAe,uBAAuB,iBAAiB,gBAAgB,gBAAgB,kBAAkB,mBAAmB,oBAAoB,mBAAmB,qBAAqB,aAAa,4BAA4B,oCAAoC,mBAAmB,YAAY,kBAAkB,qBAAqB,8BAA8B,kHAAkH,eAAe,WAAW,S","file":"./../css/simpay-public.min.css","sourcesContent":[".screen-reader-text{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px}.grecaptcha-badge{z-index:100}.simpay-styled .stripe-button-el{text-decoration:none}.simpay-styled .stripe-button-el:hover{box-shadow:none}.simpay-checkout-form--loading::after{content:\"\";position:absolute;left:0;width:100%;height:100%;top:0}.simpay-checkout-form--loading .simpay-form-control{opacity:.65}.simpay-errors{margin-bottom:15px}.simpay-styled .simpay-errors{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;color:#eb1c26;line-height:1.5}.simpay-checkout-form--embedded .simpay-test-mode-badge-container,.simpay-modal__content .simpay-test-mode-badge-container{text-align:center}.simpay-test-mode-badge-container .simpay-test-mode-badge{color:#a04903;text-align:center;text-transform:uppercase;font-size:10px;font-family:sans-serif;line-height:10px;font-weight:700;padding:5px 7px;border-radius:3px;background:#ffde92;display:inline-flex;align-items:center}.simpay-form-preview{padding:50px}.simpay-form-preview-notice{background-color:rgba(250,230,1,.1);margin-bottom:50px;padding:1em;border-radius:4px;display:inline-block}.simpay-form-preview-notice p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;font-size:16px;color:#333;margin:0}"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///./css/frontend/public.scss"],"names":[],"mappings":"AAAA,oBAAoB,8BAA8B,WAAW,gBAAgB,6BAA6B,UAAU,kBAAkB,YAAY,iCAAiC,qBAAqB,uCAAuC,gBAAgB,sCAAsC,WAAW,kBAAkB,OAAO,WAAW,YAAY,MAAM,oDAAoD,YAAY,eAAe,mBAAmB,8BAA8B,kHAAkH,cAAc,gBAAgB,2HAA2H,kBAAkB,0DAA0D,cAAc,kBAAkB,yBAAyB,eAAe,uBAAuB,iBAAiB,gBAAgB,gBAAgB,kBAAkB,mBAAmB,oBAAoB,mBAAmB,8BAA8B,aAAa,gBAAgB,uBAAuB,yEAAyE,aAAa,0DAA0D,mBAAmB,mBAAmB,iBAAiB,qBAAqB,sBAAsB,qCAAqC,iEAAiE,yBAAyB,WAAW,eAAe,gBAAgB,iBAAiB,mBAAmB,iBAAiB,yBAAyB,gBAAgB,kBAAkB,eAAe,kEAAkE,cAAc,4DAA4D,kHAAkH,eAAe,WAAW,c","file":"./../css/simpay-public.min.css","sourcesContent":[".screen-reader-text{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px}.grecaptcha-badge{z-index:100}.simpay-styled .stripe-button-el{text-decoration:none}.simpay-styled .stripe-button-el:hover{box-shadow:none}.simpay-checkout-form--loading::after{content:\"\";position:absolute;left:0;width:100%;height:100%;top:0}.simpay-checkout-form--loading .simpay-form-control{opacity:.65}.simpay-errors{margin-bottom:15px}.simpay-styled .simpay-errors{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;color:#eb1c26;line-height:1.5}.simpay-checkout-form--embedded .simpay-test-mode-badge-container,.simpay-modal__content .simpay-test-mode-badge-container{text-align:center}.simpay-test-mode-badge-container .simpay-test-mode-badge{color:#a04903;text-align:center;text-transform:uppercase;font-size:10px;font-family:sans-serif;line-height:10px;font-weight:700;padding:5px 7px;border-radius:3px;background:#ffde92;display:inline-flex;align-items:center}html body.simpay-form-preview{padding:50px;background:#fff;font-family:sans-serif}html body.simpay-form-preview:before,html body.simpay-form-preview:after{display:none}html body.simpay-form-preview .simpay-form-preview-notice{background:#fafafa;margin-bottom:50px;padding:5px 20px;display:inline-block;border:1px solid #ddd;box-shadow:0 1px 1px rgba(0,0,0,.04)}html body.simpay-form-preview .simpay-form-preview-notice-button{background-color:#428bca;color:#fff;font-size:16px;line-height:1.2;padding:6px 12px;font-weight:normal;text-shadow:none;border:1px solid #2d6ca2;box-shadow:none;border-radius:4px;cursor:pointer}html body.simpay-form-preview .simpay-form-preview-notice-section{margin:10px 0}html body.simpay-form-preview .simpay-form-preview-notice p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;font-size:16px;color:#333;margin:15px 0}"],"sourceRoot":""} \ No newline at end of file diff --git a/includes/core/assets/js/admin/pages/setup-wizard/constants.js b/includes/core/assets/js/admin/pages/setup-wizard/constants.js index 3a58ae21..2b59db06 100644 --- a/includes/core/assets/js/admin/pages/setup-wizard/constants.js +++ b/includes/core/assets/js/admin/pages/setup-wizard/constants.js @@ -46,7 +46,10 @@ export const STEPS = { }, { id: 'analytics', - title: __( 'Help Improve WP Simple Pay', 'simple-pay' ), + title: __( + 'Help Improve WP Simple Pay + Smart Recommendations', + 'simple-pay' + ), content: Analytics, }, { diff --git a/includes/core/assets/js/admin/pages/setup-wizard/steps/analytics/index.js b/includes/core/assets/js/admin/pages/setup-wizard/steps/analytics/index.js index a113a46e..46364bdf 100644 --- a/includes/core/assets/js/admin/pages/setup-wizard/steps/analytics/index.js +++ b/includes/core/assets/js/admin/pages/setup-wizard/steps/analytics/index.js @@ -8,34 +8,28 @@ import { isEmpty } from 'lodash'; /** * WordPress dependencies */ -import { - Button, - FormToggle, - Spinner, - TextControl, -} from '@wordpress/components'; +import { Button, Spinner, Popover, TextControl } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; -import { - createInterpolateElement, - useEffect, - useLayoutEffect, - useRef, - useState, -} from '@wordpress/element'; +import { useLayoutEffect, useRef, useState } from '@wordpress/element'; import apiFetch from '@wordpress/api-fetch'; +import { Icon, info } from '@wordpress/icons'; /** * Internal dependencies */ +import { + AnalyticsFaq, + AnalyticsOptIn, + AnalyticsLabel, + AnalyticsToggle, +} from './styles'; import { CardFooter, CardBody, ContinueButton } from './../../components'; import { useSettings } from './../../hooks'; const { adminEmail: bootAdminEmail, subscribeNonce, - isLite, ajaxUrl, - analyticsDocsUrl, } = simpaySetupWizard; export function Analytics( { goPrev, goNext } ) { @@ -47,9 +41,12 @@ export function Analytics( { goPrev, goNext } ) { saveSettings, } = useSettings(); - const [ isOptedIn, setIsOptedIn ] = useState( '0' === isLite ); + const [ isOptedIn, setIsOptedIn ] = useState( true ); const [ adminEmail, setAdminEmail ] = useState( bootAdminEmail ); const [ isBusy, setIsBusy ] = useState( false ); + const [ isShowingAnalyticsFaq, setIsShowingAnalyticsFaq ] = useState( + false + ); const toFocus = useRef(); @@ -61,14 +58,6 @@ export function Analytics( { goPrev, goNext } ) { toFocus.current.focus(); }, [ rawSettings ] ); - useEffect( () => { - if ( ! settings || ! settings.usage_tracking_opt_in ) { - return; - } - - setIsOptedIn( 'yes' === settings.usage_tracking_opt_in ); - }, [ rawSettings ] ); - if ( isEmpty( settings ) ) { return ( @@ -87,6 +76,12 @@ export function Analytics( { goPrev, goNext } ) { */ function onSave() { setIsBusy( true ); + + // Force an edit to the settings to ensure unchanged settings are saved. + editSettings( { + usage_tracking_opt_in: isOptedIn ? 'yes' : 'no', + } ); + saveSettings(); // Always save settings. // eslint-disable-next-line no-undef @@ -118,12 +113,12 @@ export function Analytics( { goPrev, goNext } ) {

setAdminEmail( value ) } help={ __( - 'Your email is needed, so you can receive recommendations.', + 'Your email is needed so you receive recommendations.', 'simple-pay' ) } ref={ toFocus } @@ -132,41 +127,45 @@ export function Analytics( { goPrev, goNext } ) {
- + ) } + + ) } + + setIsShowingAnalyticsFaq( true ) + } + onMouseLeave={ () => + setIsShowingAnalyticsFaq( false ) + } + /> + + + + { + setIsOptedIn( checked ); + } } + /> +
diff --git a/includes/core/assets/js/admin/pages/setup-wizard/steps/analytics/styles.js b/includes/core/assets/js/admin/pages/setup-wizard/steps/analytics/styles.js new file mode 100644 index 00000000..00857113 --- /dev/null +++ b/includes/core/assets/js/admin/pages/setup-wizard/steps/analytics/styles.js @@ -0,0 +1,45 @@ +/** + * External dependencies + */ +import styled from '@emotion/styled'; + +/** + * WordPress dependencies + */ +import { Popover, ToggleControl } from '@wordpress/components'; + +export const AnalyticsOptIn = styled.div``; + +export const AnalyticsLabel = styled.div` + font-size: 15px; + margin-bottom: 8px; + display: flex; + align-items: center; + + > div { + margin-left: 8px; + } + + svg { + display: block; + + &:hover { + cursor: pointer; + } + } +`; + +export const AnalyticsFaq = styled( Popover )` + .components-popover__content { + padding: 20px; + width: 200px; + } +`; + +export const AnalyticsToggle = styled( ToggleControl )` + && { + .components-base-control__field { + margin-bottom: 0; + } + } +`; diff --git a/includes/core/assets/js/admin/payment-form/prices.js b/includes/core/assets/js/admin/payment-form/prices.js index 90a9d346..bb4a71e3 100644 --- a/includes/core/assets/js/admin/payment-form/prices.js +++ b/includes/core/assets/js/admin/payment-form/prices.js @@ -5,6 +5,11 @@ */ import domReady from '@wordpress/dom-ready'; +/** + * Internal dependencies + */ +import { upgradeModal } from '@wpsimplepay/utils'; + /** * Updates the display label as settings change. * @@ -154,7 +159,7 @@ function onToggleAmountType( priceEl, toggle ) { toggle.classList.add( 'button-primary' ); recurringSettings.style.display = - 'recurring' === amountType ? 'block' : 'none'; + 'recurring' === amountType ? 'table' : 'none'; // Hide "optional recur" setting. const canRecurSetting = priceEl.querySelector( @@ -185,7 +190,7 @@ function onToggleCanRecur( priceEl, checkbox ) { '.simpay-price-recurring-settings' ); - recurringSettings.style.display = checkbox.checked ? 'block' : 'none'; + recurringSettings.style.display = checkbox.checked ? 'table' : 'none'; } /** @@ -454,8 +459,26 @@ function bindPriceOptions() { _.each( amountTypeToggles, ( amountTypeToggle ) => amountTypeToggle.addEventListener( 'click', ( e ) => { e.preventDefault(); - onToggleAmountType( priceEl, e.target ); - onChangeLabel( priceEl ); + + const { + available, + upgradeTitle, + upgradeDescription, + upgradeUrl, + upgradePurchasedUrl, + } = e.target.dataset; + + if ( 'no' === available ) { + upgradeModal( { + title: upgradeTitle, + description: upgradeDescription, + url: upgradeUrl, + purchasedUrl: upgradePurchasedUrl, + } ); + } else { + onToggleAmountType( priceEl, e.target ); + onChangeLabel( priceEl ); + } } ) ); } @@ -471,9 +494,30 @@ function bindPriceOptions() { ); if ( canRecurToggle ) { - canRecurToggle.addEventListener( 'click', ( { target } ) => { - onToggleCanRecur( priceEl, target ); - onChangeLabel( priceEl ); + canRecurToggle.addEventListener( 'click', ( e ) => { + const { target } = e; + const { + available, + upgradeTitle, + upgradeDescription, + upgradeUrl, + upgradePurchasedUrl, + } = target.dataset; + + if ( 'no' === available ) { + target.checked = false; + e.preventDefault(); + + upgradeModal( { + title: upgradeTitle, + description: upgradeDescription, + url: upgradeUrl, + purchasedUrl: upgradePurchasedUrl, + } ); + } else { + onToggleCanRecur( priceEl, target ); + onChangeLabel( priceEl ); + } } ); if ( 'recurring' !== amountType ) { @@ -506,10 +550,13 @@ function bindPriceOptions() { '.simpay-price-recurring-interval-count' ); + onChangeRecurring( priceEl ); + recurringIntervalCount.addEventListener( 'keyup', () => { onChangeRecurring( priceEl ); onChangeLabel( priceEl ); } ); + recurringIntervalCount.addEventListener( 'change', () => { onChangeRecurring( priceEl ); onChangeLabel( priceEl ); diff --git a/includes/core/assets/js/admin/payment-form/template-explorer/list-item.js b/includes/core/assets/js/admin/payment-form/template-explorer/list-item.js index a3ac1d88..fdefa68c 100644 --- a/includes/core/assets/js/admin/payment-form/template-explorer/list-item.js +++ b/includes/core/assets/js/admin/payment-form/template-explorer/list-item.js @@ -7,6 +7,7 @@ import { Button } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import { useState } from '@wordpress/element'; import { addQueryArgs } from '@wordpress/url'; +import { Icon, lock } from '@wordpress/icons'; /** * Internal dependencies @@ -41,13 +42,17 @@ function TemplateListItem( { template } ) { > { needsUpgrade && (
- { __( 'Pro', 'simple-pay' ) } +
) }
{ template.name }
diff --git a/includes/core/assets/js/admin/payment-form/template-explorer/sidebar.js b/includes/core/assets/js/admin/payment-form/template-explorer/sidebar.js index 4281e5e9..5f5dac12 100644 --- a/includes/core/assets/js/admin/payment-form/template-explorer/sidebar.js +++ b/includes/core/assets/js/admin/payment-form/template-explorer/sidebar.js @@ -42,32 +42,32 @@ function TemplateCategoriesList( { ); } -// function TemplatesExplorerSearch( { filterValue, setFilterValue } ) { -// return ( -//
-// -//
-// ); -// } +function TemplatesExplorerSearch( { filterValue, setFilterValue } ) { + return ( +
+ +
+ ); +} function TemplateExplorerSidebar( { selectedCategory, templateCategories, onClickCategory, filterValue, - // setFilterValue, + setFilterValue, } ) { return (
- { /* */ } + /> { ! filterValue && (

- { sprintf( - /* translators: %s Template name */ - __( - 'We\'re sorry, the "%s" template is not available on your plan. Please upgrade your plan to unlock all these awesome features.', - 'simple-pay' + { createInterpolateElement( + sprintf( + /* translators: %$ss Template name. %2$s Minimum license level. */ + __( + 'We\'re sorry, the "%1$s" template is not available on your plan. Please upgrade to the %2$s plan or higher to unlock this and other awesome features.', + 'simple-pay' + ), + template.name, + upperFirst( template.license[ 0 ] ) ), - template.name + { + strong: , + } ) }

@@ -65,7 +76,7 @@ function UpgradeModal( { template, setIsShowingUpgradeModal } ) { { createInterpolateElement( // eslint-disable-next-line @wordpress/i18n-translator-comments __( - 'Bonus: WP Simple Pay Lite users get 50%% off regular price, automatically applied at checkout.', + 'Bonus: WP Simple Pay Lite users get 50% off regular price, automatically applied at checkout.', 'simple-pay' ), { diff --git a/includes/core/assets/js/frontend/payment-forms/stripe-checkout/enable.js b/includes/core/assets/js/frontend/payment-forms/stripe-checkout/enable.js index 235e872f..d89ed69f 100644 --- a/includes/core/assets/js/frontend/payment-forms/stripe-checkout/enable.js +++ b/includes/core/assets/js/frontend/payment-forms/stripe-checkout/enable.js @@ -11,7 +11,10 @@ const { convertToDollars, formatCurrency } = window.spShared; */ function enable( paymentForm ) { const { cart, __unstableLegacyFormData } = paymentForm; - const { startTrial, paymentButtonText } = __unstableLegacyFormData; + const { + paymentButtonText, + paymentButtonTrialText, + } = __unstableLegacyFormData; // Remove a loading class indicator. paymentForm.removeClass( 'simpay-checkout-form--loading' ); @@ -22,7 +25,7 @@ function enable( paymentForm ) { submitButtonEl.prop( 'disabled', false ).removeClass( 'simpay-disabled' ); if ( 0 === cart.getTotal() ) { - submitButtonEl.find( 'span' ).text( startTrial ); + submitButtonEl.find( 'span' ).text( paymentButtonTrialText ); } else { const formatted = formatCurrency( cart.isZeroDecimal() diff --git a/includes/core/assets/js/frontend/utils/legacy.js b/includes/core/assets/js/frontend/utils/legacy.js index e0b6baf2..b128dcda 100644 --- a/includes/core/assets/js/frontend/utils/legacy.js +++ b/includes/core/assets/js/frontend/utils/legacy.js @@ -105,8 +105,8 @@ export default { jQuery( embeddedHtml ).html() === submitBtn.find( 'span' ).html() ) { if ( 0 === cart.getTotal() ) { - const { startTrial } = formData; - submitBtn.find( 'span' ).text( startTrial ); + const { checkoutButtonTrialText } = formData; + submitBtn.find( 'span' ).text( checkoutButtonTrialText ); } else { const formatted = formatCurrency( cart.isZeroDecimal() diff --git a/includes/core/assets/js/packages/utils/src/index.js b/includes/core/assets/js/packages/utils/src/index.js index 95ef2a62..759ebd8e 100644 --- a/includes/core/assets/js/packages/utils/src/index.js +++ b/includes/core/assets/js/packages/utils/src/index.js @@ -1,2 +1,3 @@ export * from './number.js'; export { apiRequest } from '@wpsimplepay/api'; +export * from './upgrade-modal.js'; diff --git a/includes/core/assets/js/packages/utils/src/upgrade-modal.js b/includes/core/assets/js/packages/utils/src/upgrade-modal.js new file mode 100644 index 00000000..c80f34c6 --- /dev/null +++ b/includes/core/assets/js/packages/utils/src/upgrade-modal.js @@ -0,0 +1,44 @@ +/* global jQuery */ + +/** + * Launches the jQuery UI upgrade modal. + * + * @param {Object} args Upgrade modal arguments. + * @param {string} args.title Upgrade modal title. + * @param {string} args.description Upgrade modal description. + * @param {string} args.url Upgrade modal URL. + * @param {string} args.purchasedUrl Upgrade modal purchased URL. + * @param {Object} opts jQuery UI Dialog options. + */ +export function upgradeModal( + { title, description, url, purchasedUrl }, + opts = {} +) { + jQuery( '.simpay-upgrade-modal' ).dialog( { + position: { + my: 'center', + at: 'center', + of: window, + }, + modal: true, + width: 600, + resizable: false, + draggable: false, + open() { + const m = jQuery( this ); + + m.parent().find( '.ui-dialog-titlebar' ).css( { + borderBottom: 0, + } ); + + m.find( '.simpay-upgrade-modal__title' ).html( title ); + m.find( '.simpay-upgrade-modal__description' ).html( description ); + m.find( '.simpay-upgrade-modal__upgrade-url' ).attr( 'href', url ); + m.find( '.simpay-upgrade-modal__upgrade-purchased-url' ).attr( + 'href', + purchasedUrl + ); + }, + ...opts, + } ); +} diff --git a/includes/core/assets/js/simpay-admin-form-template-explorer-css.min.asset.php b/includes/core/assets/js/simpay-admin-form-template-explorer-css.min.asset.php index 9e0d2341..fe8e90fd 100644 --- a/includes/core/assets/js/simpay-admin-form-template-explorer-css.min.asset.php +++ b/includes/core/assets/js/simpay-admin-form-template-explorer-css.min.asset.php @@ -1 +1 @@ - array(), 'version' => 'ca2eb0a321d13402d52725fd3bffad9b'); \ No newline at end of file + array(), 'version' => '7e08c265446bb1d3e16ec04d8fe770f2'); \ No newline at end of file diff --git a/includes/core/assets/js/simpay-admin-form-template-explorer.min.asset.php b/includes/core/assets/js/simpay-admin-form-template-explorer.min.asset.php index 1c74199e..99a5e865 100644 --- a/includes/core/assets/js/simpay-admin-form-template-explorer.min.asset.php +++ b/includes/core/assets/js/simpay-admin-form-template-explorer.min.asset.php @@ -1 +1 @@ - array('lodash', 'wp-a11y', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-url'), 'version' => 'cb37a8b0e81c60b62869ae7376375d29'); \ No newline at end of file + array('lodash', 'wp-a11y', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-url'), 'version' => 'fabb6a728ea7f044ab3997bdb7eaf848'); \ No newline at end of file diff --git a/includes/core/assets/js/simpay-admin-form-template-explorer.min.js b/includes/core/assets/js/simpay-admin-form-template-explorer.min.js index e494e102..0078aaf6 100644 --- a/includes/core/assets/js/simpay-admin-form-template-explorer.min.js +++ b/includes/core/assets/js/simpay-admin-form-template-explorer.min.js @@ -1,7 +1,7 @@ -!function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},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,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=45)}([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,r){var n=r(15),a=r(16),o=r(10),l=r(17);e.exports=function(e,t){return n(e)||a(e,t)||o(e,t)||l()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=window.wp.primitives},,,function(e,t){e.exports=window.lodash},,function(e,t){e.exports=window.wp.url},function(e,t,r){var n=r(11);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rbasic form. Have a suggestion for a new template? We'd love to hear it!","simple-pay"),{blank:Object(c.createElement)("a",{href:g}),suggest:Object(c.createElement)("a",{href:f,target:"_blank",rel:"noopener noreferrer"})})))},v=r(13),_=r.n(v),x=r(21),h=r(4);Object(c.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(h.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));var w=r(38);Object(c.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(h.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));var E="simpay-form-template-explorer-main__sidebar";function C(e){var t=e.selectedCategory,r=e.templateCategories,n=e.onClickCategory;return Object(c.createElement)(i.NavigableMenu,{orientation:"vertical",className:"".concat(E,"-categories")},Object.keys(r).sort().map((function(e){return Object(c.createElement)(i.Button,{key:e,label:r[e],className:"".concat(E,"-categories_category"),isPressed:t===e,onClick:function(){n(e)}},r[e])})))}var S=function(e){var t=e.selectedCategory,r=e.templateCategories,n=e.onClickCategory,a=e.filterValue;return Object(c.createElement)("div",{className:E},!a&&Object(c.createElement)(C,{selectedCategory:t,templateCategories:r,onClickCategory:n}))},P=r(29),M=Object(c.createElement)(h.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)(h.Path,{d:"M8 5C8 3.34315 9.34315 2 11 2H13C14.6569 2 16 3.34315 16 5V9H18C19.2624 9 20 9.9804 20 11V19C20 20.0196 19.2624 21 18 21H6C4.73763 21 4 20.0196 4 19V11C4 9.9804 4.73763 9 6 9H8V5ZM9.5 9H14.5V5C14.5 4.17157 13.8284 3.5 13 3.5H11C10.1716 3.5 9.5 4.17157 9.5 5V9Z"})),k=r(39),N=simpayFormBuilderTemplateExplorer,L=N.alreadyPurchasedUrl,V=N.licenseLevel,B=N.upgradeUrl,A=function(e){var t=e.template,r=e.setIsShowingUpgradeModal;return Object(c.createElement)(i.Modal,{title:Object(s.__)("Upgrade Required","simple-pay"),onRequestClose:function(){return r(!1)},className:"simpay-form-template-explorer-upgrade"},Object(c.createElement)("div",{className:"".concat("simpay-form-template-explorer-upgrade","__content")},Object(c.createElement)(w.a,{icon:M,size:"48px"}),Object(c.createElement)("h3",{className:"".concat("simpay-form-template-explorer-upgrade","__title")},Object(s.sprintf)( +!function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},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,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=45)}([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,r){var n=r(15),a=r(16),o=r(11),l=r(17);e.exports=function(e,t){return n(e)||a(e,t)||o(e,t)||l()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=window.wp.primitives},,,function(e,t){e.exports=window.lodash},,function(e,t){e.exports=window.wp.url},,function(e,t,r){var n=r(12);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rbasic form. Have a suggestion for a new template? We'd love to hear it!","simple-pay"),{blank:Object(c.createElement)("a",{href:y}),suggest:Object(c.createElement)("a",{href:f,target:"_blank",rel:"noopener noreferrer"})})))},v=r(14),_=r.n(v),h=r(21),x=r(4),E=Object(c.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(x.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),w=r(38),C=Object(c.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(x.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"})),S=function e(t){var r=t.className,n=t.onChange,a=t.value,o=t.label,l=t.placeholder,u=void 0===l?Object(s.__)("Search"):l,p=t.hideLabelFromVision,m=void 0===p||p,f=t.help,d=Object(h.useInstanceId)(e),b=Object(c.useRef)(),g="components-search-control-".concat(d);return Object(c.createElement)(i.BaseControl,{label:o,id:g,hideLabelFromVision:m,help:f,className:_()(r,"components-search-control")},Object(c.createElement)("div",{className:"components-search-control__input-wrapper"},Object(c.createElement)("input",{ref:b,className:"components-search-control__input",id:g,type:"search",placeholder:u,onChange:function(e){return n(e.target.value)},autoComplete:"off",value:a||""}),Object(c.createElement)("div",{className:"components-search-control__icon"},!!a&&Object(c.createElement)(i.Button,{icon:E,label:Object(s.__)("Reset search","simple-pay"),onClick:function(){n(""),b.current.focus()}}),!a&&Object(c.createElement)(w.a,{icon:C}))))},N="simpay-form-template-explorer-main__sidebar";function P(e){var t=e.selectedCategory,r=e.templateCategories,n=e.onClickCategory;return Object(c.createElement)(i.NavigableMenu,{orientation:"vertical",className:"".concat(N,"-categories")},Object.keys(r).sort().map((function(e){return Object(c.createElement)(i.Button,{key:e,label:r[e],className:"".concat(N,"-categories_category"),isPressed:t===e,onClick:function(){n(e)}},r[e])})))}function k(e){var t=e.filterValue,r=e.setFilterValue;return Object(c.createElement)("div",{className:"".concat(N,"-search")},Object(c.createElement)(S,{onChange:r,value:t,label:Object(s.__)("Search for templates","simple-pay"),placeholder:Object(s.__)("Search","simple-pay")}))}var M=function(e){var t=e.selectedCategory,r=e.templateCategories,n=e.onClickCategory,a=e.filterValue,o=e.setFilterValue;return Object(c.createElement)("div",{className:N},Object(c.createElement)(k,{filterValue:a,setFilterValue:o}),!a&&Object(c.createElement)(P,{selectedCategory:t,templateCategories:r,onClickCategory:n}))},V=r(29),L=Object(c.createElement)(x.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)(x.Path,{d:"M8 5C8 3.34315 9.34315 2 11 2H13C14.6569 2 16 3.34315 16 5V9H18C19.2624 9 20 9.9804 20 11V19C20 20.0196 19.2624 21 18 21H6C4.73763 21 4 20.0196 4 19V11C4 9.9804 4.73763 9 6 9H8V5ZM9.5 9H14.5V5C14.5 4.17157 13.8284 3.5 13 3.5H11C10.1716 3.5 9.5 4.17157 9.5 5V9Z"})),B=r(39),A=simpayFormBuilderTemplateExplorer,F=A.alreadyPurchasedUrl,I=A.licenseLevel,T=A.upgradeUrl,U=function(e){var t=e.template,r=e.setIsShowingUpgradeModal;return Object(c.createElement)(i.Modal,{title:Object(s.__)("Upgrade Required","simple-pay"),onRequestClose:function(){return r(!1)},className:"simpay-form-template-explorer-upgrade"},Object(c.createElement)("div",{className:"".concat("simpay-form-template-explorer-upgrade","__content")},Object(c.createElement)(w.a,{icon:L,size:"48px"}),Object(c.createElement)("h3",{className:"".concat("simpay-form-template-explorer-upgrade","__title")},Object(s.sprintf)( /* translators: %s Template name */ -Object(s.__)('Unlock the "%s" Template',"simple-pay"),t.name)),Object(c.createElement)("p",{className:"".concat("simpay-form-template-explorer-upgrade","__description")},Object(s.sprintf)( -/* translators: %s Template name */ -Object(s.__)('We\'re sorry, the "%s" template is not available on your plan. Please upgrade your plan to unlock all these awesome features.',"simple-pay"),t.name)),Object(c.createElement)(i.Button,{isPrimary:!0,variant:"primary",href:Object(p.addQueryArgs)(B,{utm_content:t.name}),target:"_blank",rel:"noopener noreferrer"},"lite"===V?Object(s.__)("Upgrade to Pro","simple-pay"):Object(s.__)("Upgrade Now","simple-pay")),"lite"===V&&Object(c.createElement)("p",{className:"".concat("simpay-form-template-explorer-upgrade","__discount")},Object(c.createElement)(w.a,{icon:k.a}),Object(c.createInterpolateElement)(Object(s.__)("Bonus: WP Simple Pay Lite users get 50%% off regular price, automatically applied at checkout.","simple-pay"),{strong:Object(c.createElement)("strong",null),highlight:Object(c.createElement)("u",null)})),Object(c.createElement)("a",{href:L,target:"_blank",rel:"noopener noreferrer"},Object(s.__)("Already purchased?","simple-pay"))))},T=simpayFormBuilderTemplateExplorer,U=T.licenseLevel,H=T.addNewUrl,I="simpay-form-template-explorer-main__content",F=function(e){var t=e.template,r=Object(c.useState)(!1),n=a()(r,2),o=n[0],l=n[1],u=!t.license.includes(U),m=Object(p.addQueryArgs)(H,{"simpay-template":t.id});return Object(c.createElement)(c.Fragment,null,o&&Object(c.createElement)(A,{template:t,setIsShowingUpgradeModal:l}),Object(c.createElement)("div",{key:t.id,className:"".concat(I,"-list-item")},u&&Object(c.createElement)("div",{className:"".concat(I,"-list-item__badge")},Object(s.__)("Pro","simple-pay")),Object(c.createElement)("div",{id:t.id,className:"".concat(I,"-list-item__name")},t.name),Object(c.createElement)("div",{className:"".concat(I,"-list-item__description")},t.description),Object(c.createElement)("div",{className:"".concat(I,"-list-item__actions")},Object(c.createElement)(i.Button,{isPrimary:!0,variant:"primary",href:u?void 0:m,onClick:function(){return u?l(!0):null}},"lite"===U&&"payment-button"===t.slug?Object(s.__)("Create Payment Button","simple-pay"):Object(s.__)("Use Template","simple-pay")),t.url&&!("lite"===U&&"payment-button"===t.slug)&&Object(c.createElement)(i.Button,{isSecondary:!0,variant:"secondary",href:t.url,style:{marginLeft:"10px"}},Object(s.__)("View Demo","simple-pay")))))},W=Object(c.createElement)(h.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)(h.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.68822 16.625L5.5 17.8145L5.5 5.5L18.5 5.5L18.5 16.625L6.68822 16.625ZM7.31 18.125L19 18.125C19.5523 18.125 20 17.6773 20 17.125L20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5V19.5247C4 19.8173 4.16123 20.086 4.41935 20.2237C4.72711 20.3878 5.10601 20.3313 5.35252 20.0845L7.31 18.125ZM16 9.99997H8V8.49997H16V9.99997ZM8 14H13V12.5H8V14Z"})),z=simpayFormBuilderTemplateExplorer.suggestUrl,D=function(){return Object(c.createElement)("div",{className:"".concat("simpay-form-template-explorer-main__content","-suggest")},Object(c.createElement)(w.a,{icon:W,size:"42px"}),Object(c.createElement)("div",null,Object(c.createElement)("h4",null,Object(s.__)("We need your help!","simple-pay")),Object(c.createElement)("p",null,Object(c.createInterpolateElement)(Object(s.__)("We're constantly building more pre-made payment form templates to get you up and running even faster. If you have ideas for future templates, please let us know!","simple-pay"),{suggest:Object(c.createElement)("a",{href:z,target:"_blank",rel:"noopener noreferrer"})})),Object(c.createElement)(i.Button,{isSecondary:!0,variant:"secondary",isLink:!0,href:z,target:"_blank"},Object(s.__)("Suggest a Template","simple-pay"))))},Z=r(19),G=r.n(Z),R=function(e){return e.name||""},q=function(e){return e.description||""},Q=function(e){return e.keywords||[]},K=function(e){return e.category};function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(e=(e=Object(u.deburr)(e)).replace(/^\//,"")).toLowerCase()}var J=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(u.words)($(e))},X=function(e,t){return Object(u.differenceWith)(e,J(t),(function(e,t){return t.includes(e)}))};function Y(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.getName,a=void 0===n?R:n,o=r.getDescription,l=void 0===o?q:o,c=r.getKeywords,i=void 0===c?Q:c,s=r.getCategory,p=void 0===s?K:s,m=a(e),f=l(e),d=i(e),b=p(e),y=$(t),g=$(m),O=0;if(y===g)O+=30;else if(g.startsWith(y))O+=20;else{var j=[m,f].concat(G()(d),[b]).join(" "),v=Object(u.words)(y),_=X(v,j);0===_.length&&(O+=10)}return O}var ee=simpayFormBuilderTemplateExplorer,te=ee.suggestUrl,re=ee.licenseLevel,ne=function(e){var t=e.filterValue,r=e.selectedCategory,n=e.templates,o=Object(x.useDebounce)(P.speak,500),l=Object(c.useMemo)((function(){var e=n;return t?e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=J(t);if(0===n.length)return e;var o=e.map((function(e){return[e,Y(e,t,r)]})).filter((function(e){return a()(e,2)[1]>0}));return o.sort((function(e,t){var r=a()(e,2)[1];return a()(t,2)[1]-r})),o.map((function(e){return a()(e,1)[0]}))}(n,t):""!==r&&(e=n.filter((function(e){var t=e.categories;return Object.keys(t).includes(r)}))),Object(u.sortBy)(e,(function(e){return!e.license.includes(re)}))}),[t,r,n]);Object(c.useEffect)((function(){if(t){var e=l.length,r=Object(s.sprintf)( +Object(s.__)('Unlock the "%s" Template',"simple-pay"),t.name)),Object(c.createElement)("p",{className:"".concat("simpay-form-template-explorer-upgrade","__description")},Object(c.createInterpolateElement)(Object(s.sprintf)( +/* translators: %$ss Template name. %2$s Minimum license level. */ +Object(s.__)('We\'re sorry, the "%1$s" template is not available on your plan. Please upgrade to the %2$s plan or higher to unlock this and other awesome features.',"simple-pay"),t.name,Object(u.upperFirst)(t.license[0])),{strong:Object(c.createElement)("strong",null)})),Object(c.createElement)(i.Button,{isPrimary:!0,variant:"primary",href:Object(p.addQueryArgs)(T,{utm_content:t.name}),target:"_blank",rel:"noopener noreferrer"},"lite"===I?Object(s.__)("Upgrade to Pro","simple-pay"):Object(s.__)("Upgrade Now","simple-pay")),"lite"===I&&Object(c.createElement)("p",{className:"".concat("simpay-form-template-explorer-upgrade","__discount")},Object(c.createElement)(w.a,{icon:B.a}),Object(c.createInterpolateElement)(Object(s.__)("Bonus: WP Simple Pay Lite users get 50% off regular price, automatically applied at checkout.","simple-pay"),{strong:Object(c.createElement)("strong",null),highlight:Object(c.createElement)("u",null)})),Object(c.createElement)("a",{href:F,target:"_blank",rel:"noopener noreferrer"},Object(s.__)("Already purchased?","simple-pay"))))},H=simpayFormBuilderTemplateExplorer,z=H.licenseLevel,W=H.addNewUrl,D="simpay-form-template-explorer-main__content",R=function(e){var t=e.template,r=Object(c.useState)(!1),n=a()(r,2),o=n[0],l=n[1],u=!t.license.includes(z),m=Object(p.addQueryArgs)(W,{"simpay-template":t.id});return Object(c.createElement)(c.Fragment,null,o&&Object(c.createElement)(U,{template:t,setIsShowingUpgradeModal:l}),Object(c.createElement)("div",{key:t.id,className:"".concat(D,"-list-item")},u&&Object(c.createElement)("div",{className:"".concat(D,"-list-item__badge")},Object(c.createElement)(w.a,{icon:L,size:"16px"})),Object(c.createElement)("div",{id:t.id,className:"".concat(D,"-list-item__name ").concat(u?"".concat(D,"-list-item__name--is-locked"):"")},t.name),Object(c.createElement)("div",{className:"".concat(D,"-list-item__description")},t.description),Object(c.createElement)("div",{className:"".concat(D,"-list-item__actions")},Object(c.createElement)(i.Button,{isPrimary:!0,variant:"primary",href:u?void 0:m,onClick:function(){return u?l(!0):null}},"lite"===z&&"payment-button"===t.slug?Object(s.__)("Create Payment Button","simple-pay"):Object(s.__)("Use Template","simple-pay")),t.url&&!("lite"===z&&"payment-button"===t.slug)&&Object(c.createElement)(i.Button,{isSecondary:!0,variant:"secondary",href:t.url,style:{marginLeft:"10px"}},Object(s.__)("View Demo","simple-pay")))))},Z=Object(c.createElement)(x.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)(x.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.68822 16.625L5.5 17.8145L5.5 5.5L18.5 5.5L18.5 16.625L6.68822 16.625ZM7.31 18.125L19 18.125C19.5523 18.125 20 17.6773 20 17.125L20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5V19.5247C4 19.8173 4.16123 20.086 4.41935 20.2237C4.72711 20.3878 5.10601 20.3313 5.35252 20.0845L7.31 18.125ZM16 9.99997H8V8.49997H16V9.99997ZM8 14H13V12.5H8V14Z"})),G=simpayFormBuilderTemplateExplorer.suggestUrl,q=function(){return Object(c.createElement)("div",{className:"".concat("simpay-form-template-explorer-main__content","-suggest")},Object(c.createElement)(w.a,{icon:Z,size:"42px"}),Object(c.createElement)("div",null,Object(c.createElement)("h4",null,Object(s.__)("We need your help!","simple-pay")),Object(c.createElement)("p",null,Object(c.createInterpolateElement)(Object(s.__)("We're constantly building more pre-made payment form templates to get you up and running even faster. If you have ideas for future templates, please let us know!","simple-pay"),{suggest:Object(c.createElement)("a",{href:G,target:"_blank",rel:"noopener noreferrer"})})),Object(c.createElement)(i.Button,{isSecondary:!0,variant:"secondary",isLink:!0,href:G,target:"_blank"},Object(s.__)("Suggest a Template","simple-pay"))))},Q=r(19),$=r.n(Q),K=function(e){return e.name||""},J=function(e){return e.description||""},X=function(e){return e.keywords||[]},Y=function(e){return e.category};function ee(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(e=(e=Object(u.deburr)(e)).replace(/^\//,"")).toLowerCase()}var te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(u.words)(ee(e))},re=function(e,t){return Object(u.differenceWith)(e,te(t),(function(e,t){return t.includes(e)}))};function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.getName,a=void 0===n?K:n,o=r.getDescription,l=void 0===o?J:o,c=r.getKeywords,i=void 0===c?X:c,s=r.getCategory,p=void 0===s?Y:s,m=a(e),f=l(e),d=i(e),b=p(e),g=ee(t),y=ee(m),O=0;if(g===y)O+=30;else if(y.startsWith(g))O+=20;else{var j=[m,f].concat($()(d),[b]).join(" "),v=Object(u.words)(g),_=re(v,j);0===_.length&&(O+=10)}return O}var ae=simpayFormBuilderTemplateExplorer,oe=ae.suggestUrl,le=ae.licenseLevel,ce=function(e){var t=e.filterValue,r=e.selectedCategory,n=e.templates,o=Object(h.useDebounce)(V.speak,500),l=Object(c.useMemo)((function(){var e=n;return t?e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=te(t);if(0===n.length)return e;var o=e.map((function(e){return[e,ne(e,t,r)]})).filter((function(e){return a()(e,2)[1]>0}));return o.sort((function(e,t){var r=a()(e,2)[1];return a()(t,2)[1]-r})),o.map((function(e){return a()(e,1)[0]}))}(n,t):""!==r&&(e=n.filter((function(e){var t=e.categories;return Object.keys(t).includes(r)}))),Object(u.sortBy)(e,(function(e){return!e.license.includes(le)}))}),[t,r,n]);Object(c.useEffect)((function(){if(t){var e=l.length,r=Object(s.sprintf)( /* translators: %d: number of results. */ -Object(s._n)("%d result found.","%d results found.",e,"simple-pay"),e);o(r)}}),[t,o]);var i=!(null==l||!l.length),p=_()("simpay-form-template-explorer-main__content",{"is-empty":!i});return Object(c.createElement)("div",{className:p},!i&&Object(c.createElement)("p",null,Object(c.createInterpolateElement)(Object(s.__)("No results found. Have a suggestion for a new template? We'd love to hear it!","simple-pay"),{suggest:Object(c.createElement)("a",{href:te,target:"_blank",rel:"noopener noreferrer"})})),i&&Object(c.createElement)(c.Fragment,null,l.map((function(e){return Object(c.createElement)(F,{key:e.slug,template:e})})),Object(c.createElement)(D,null)))};function ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function oe(e){for(var t=1;tWe'd love to hear it!","simple-pay"),{suggest:Object(c.createElement)("a",{href:oe,target:"_blank",rel:"noopener noreferrer"})})),i&&Object(c.createElement)(c.Fragment,null,l.map((function(e){return Object(c.createElement)(R,{key:e.slug,template:e})})),Object(c.createElement)(q,null)))};function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function se(e){for(var t=1;t0&&a.forEach((function(e){e.style.display="none"}))}))}))})),(t=document.querySelector('#adminmenu a[href^="https://wpsimplepay.com/lite-vs-pro"]'))&&t.setAttribute("target","_blank"),function(){var e=document.querySelector(".simpay-admin-bar-test-mode .simpay-settings-bubble");if(e){var t=document.querySelector("#menu-posts-simple-pay .wp-menu-name");if(t){var n=e.cloneNode(!0);n.innerHTML="",t.appendChild(n)}}}(),e(".simpay-notice").each((function(){var t=e(this),n=t.data("id"),a=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:a,lifespan:i},success:function(){t.slideUp("fast");var e=userSettings.uid,a=void 0===e?0:e,i="simpay-notice-".concat(n,"-seen-").concat(a);window.localStorage.removeItem(i)}})}))}));var n=e(".simpay-admin-notice-top-of-page");if(n.length>0){var a=n.detach();e("#wpbody-content").prepend(a);var i=userSettings.uid,o=void 0===i?0:i,r=a.data("id"),c="simpay-notice-".concat(r,"-seen-").concat(o);window.localStorage.getItem(c)?a.show():setTimeout((function(){window.localStorage.setItem(c,!0),n.slideDown()}),1500)}}))}.call(this,n(12))},341:function(e,t,n){"use strict";var a=n(7);Object(a.a)((function(){var e=document.getElementById("simpay-usage-tracking-opt-in");e&&e.addEventListener("click",(function(e){e.preventDefault(),wp.ajax.send("simpay-usage-tracking-optin-nag",{data:{nonce:document.getElementById("simpay-usage-tracking-optin-nag").value}}).always((function(){document.getElementById("simpay-usage-tracking-optin").parentNode.style.display="none"}))}))}))},7:function(e,t,n){"use strict";function a(e){"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e()}n.d(t,"a",(function(){return a}))}}); \ No newline at end of file +!function(e){var t={};function n(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},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 a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(a,i,function(t){return e[t]}.bind(null,i));return a},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=343)}({10:function(e,t,n){"use strict";function a(e){"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e()}n.d(t,"a",(function(){return a}))},14:function(e,t){e.exports=jQuery},343:function(e,t,n){"use strict";n.r(t),function(e){var t=n(10);n(344),Object(t.a)((function(){var t;document.querySelectorAll(".simpay-admin-notice-five-star-rating").forEach((function(e){var t=e.querySelectorAll("[data-navigate]");t&&t.forEach((function(e){e.addEventListener("click",(function(e){var t=e.target.dataset.navigate,n=document.querySelector('.simpay-admin-notice-five-star-rating[data-step="'.concat(t,'"]')),a=document.querySelectorAll('.simpay-admin-notice-five-star-rating:not([data-step="'.concat(t,'"])'));n&&(n.style.display="block"),a.length>0&&a.forEach((function(e){e.style.display="none"}))}))}))})),(t=document.querySelector('#adminmenu a[href^="https://wpsimplepay.com/lite-vs-pro"]'))&&t.setAttribute("target","_blank"),function(){var e=document.querySelector(".simpay-admin-bar-test-mode .simpay-settings-bubble");if(e){var t=document.querySelector("#menu-posts-simple-pay .wp-menu-name");if(t){var n=e.cloneNode(!0);n.innerHTML="",t.appendChild(n)}}}(),e(".simpay-notice").each((function(){var t=e(this),n=t.data("id"),a=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:a,lifespan:i},success:function(){t.slideUp("fast");var e=userSettings.uid,a=void 0===e?0:e,i="simpay-notice-".concat(n,"-seen-").concat(a);window.localStorage.removeItem(i)}})}))}));var n=e(".simpay-admin-notice-top-of-page");if(n.length>0){var a=n.detach();e("#wpbody-content").prepend(a);var i=userSettings.uid,o=void 0===i?0:i,r=a.data("id"),c="simpay-notice-".concat(r,"-seen-").concat(o);window.localStorage.getItem(c)?a.show():setTimeout((function(){window.localStorage.setItem(c,!0),n.slideDown()}),1500)}}))}.call(this,n(14))},344:function(e,t,n){"use strict";var a=n(10);Object(a.a)((function(){var e=document.getElementById("simpay-usage-tracking-opt-in");e&&e.addEventListener("click",(function(e){e.preventDefault(),wp.ajax.send("simpay-usage-tracking-optin-nag",{data:{nonce:document.getElementById("simpay-usage-tracking-optin-nag").value}}).always((function(){document.getElementById("simpay-usage-tracking-optin").parentNode.style.display="none"}))}))}))}}); \ No newline at end of file diff --git a/includes/core/assets/js/simpay-admin-page-setup-wizard.min.asset.php b/includes/core/assets/js/simpay-admin-page-setup-wizard.min.asset.php index 1b908c15..266b53ab 100644 --- a/includes/core/assets/js/simpay-admin-page-setup-wizard.min.asset.php +++ b/includes/core/assets/js/simpay-admin-page-setup-wizard.min.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' => '6f2d8b6ef828498194a8a8495ab97243'); \ 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' => '4a6f567436fe8e23f5a954dcf2231dcf'); \ No newline at end of file diff --git a/includes/core/assets/js/simpay-admin-page-setup-wizard.min.js b/includes/core/assets/js/simpay-admin-page-setup-wizard.min.js index 901474b4..d9316291 100644 --- a/includes/core/assets/js/simpay-admin-page-setup-wizard.min.js +++ b/includes/core/assets/js/simpay-admin-page-setup-wizard.min.js @@ -1,3 +1,3 @@ -!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=44)}([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,n){var r=n(15),a=n(16),i=n(10),c=n(17);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.React},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=window.lodash},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.wp.url},function(e,t,n){var r=n(11);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(36),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},c={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function s(e){return r.isMemo(e)?c:o[e.$$typeof]||a}o[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[r.Memo]=c;var l=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,d=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(d){var a=f(n);a&&a!==d&&e(t,a,r)}var c=u(n);p&&(c=c.concat(p(n)));for(var o=s(t),b=s(n),y=0;y=0||(a[n]=e[n]);return a},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";e.exports=n(37)},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,n){"use strict";var r=n(0);t.a=function(e){let{icon:t,size:n=24,...a}=e;return Object(r.cloneElement)(t,{width:n,height:n,...a})}},function(e,t,n){"use strict";var r=n(0),a=n(4);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";n.r(t);var r=n(0),a=(n(34),n(2)),i=n(1),c=n(9),o=n(26),s=n(3),l=n.n(s),u=n(7),p=n(20),m=n.n(p),f=n(27),d=n.n(f),b=n(6),y=n.n(b),h=n(12),g=n.n(h),v=n(5),O=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},j=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|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||function(e){for(var t=1;t0?L(q,--H):0,I--,10===G&&(I=1,B--),G}function K(){return G=H2||ne(G)>3?"":" "}function oe(e,t){for(;--t&&K()&&!(G<48||G>102||G>57&&G<65||G>70&&G<97););return te(e,ee()+(t<6&&32==J()&&32==K()))}function se(e,t){for(;K()&&e+G!==57&&(e+G!==84||47!==J()););return"/*"+te(t,H-1)+"*"+$(47===e?e:K())}function le(e){for(;!ne(J());)K();return te(e,H)}function ue(e,t,n,r,a,i,c,o,s,l,u){for(var p=a-1,m=0===a?i:[""],f=W(m),d=0,b=0,y=0;d0?m[h]+" "+g:F(g,/&\f/g,m[h])))&&(s[y++]=v);return Y(e,t,n,0===a?P:o,s,l,u)}function pe(e,t,n){return Y(e,t,n,C,$(G),D(e,2,-2),0)}function me(e,t,n,r){return Y(e,t,n,z,D(e,0,r),D(e,r+1,-1),r)}function fe(e,t){for(var n="",r=W(e),a=0;a-1&&!e.return)switch(e.type){case z:e.return=function e(t,n){switch(function(e,t){return(((t<<2^L(e,0))<<2^L(e,1))<<2^L(e,2))<<2^L(e,3)}(t,n)){case 5103:return k+"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 k+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return k+t+S+t+E+t+t;case 6828:case 4268:return k+t+E+t+t;case 6165:return k+t+E+"flex-"+t+t;case 5187:return k+t+F(t,/(\w+).+(:[^]+)/,k+"box-$1$2"+E+"flex-$1$2")+t;case 5443:return k+t+E+"flex-item-"+F(t,/flex-|-self/,"")+t;case 4675:return k+t+E+"flex-line-pack"+F(t,/align-content|flex-|-self/,"")+t;case 5548:return k+t+E+F(t,"shrink","negative")+t;case 5292:return k+t+E+F(t,"basis","preferred-size")+t;case 6060:return k+"box-"+F(t,"-grow","")+k+t+E+F(t,"grow","positive")+t;case 4554:return k+F(t,/([^-])(transform)/g,"$1"+k+"$2")+t;case 6187:return F(F(F(t,/(zoom-|grab)/,k+"$1"),/(image-set)/,k+"$1"),t,"")+t;case 5495:case 3959:return F(t,/(image-set\([^]*)/,k+"$1$`$1");case 4968:return F(F(t,/(.+:)(flex-)?(.*)/,k+"box-pack:$3"+E+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+k+t+t;case 4095:case 3583:case 4068:case 2532:return F(t,/(.+)-inline(.+)/,k+"$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(U(t)-1-n>6)switch(L(t,n+1)){case 109:if(45!==L(t,n+4))break;case 102:return F(t,/(.+:)(.+)-([^]+)/,"$1"+k+"$2-$3$1"+S+(108==L(t,n+3)?"$3":"$2-$3"))+t;case 115:return~T(t,"stretch")?e(F(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==L(t,n+1))break;case 6444:switch(L(t,U(t)-3-(~T(t,"!important")&&10))){case 107:return F(t,":",":"+k)+t;case 101:return F(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+k+(45===L(t,14)?"inline-":"")+"box$3$1"+k+"$2$3$1"+E+"$2box$3")+t}break;case 5936:switch(L(t,n+11)){case 114:return k+t+E+F(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return k+t+E+F(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return k+t+E+F(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return k+t+E+t+t}return t}(e.value,e.length);break;case A:return fe([X(e,{value:F(e.value,"@","@"+k)})],r);case P:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return fe([X(e,{props:[F(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return fe([X(e,{props:[F(t,/:(plac\w+)/,":"+k+"input-$1")]}),X(e,{props:[F(t,/:(plac\w+)/,":-moz-$1")]}),X(e,{props:[F(t,/:(plac\w+)/,E+"input-$1")]})],r)}return""}))}}],je=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||Oe,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&&U(w)-m&&Z(d>32?me(w+";",a,r,m-1):me(F(w," ","")+";",a,r,m-2),l);break;case 59:w+=";";default:if(Z(x=ue(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(f){case 100:case 109:case 115:e(t,x,x,a&&Z(ue(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+U(w),d=b;default:if(y<1)if(123==v)--y;else if(125==v&&0==y++&&125==Q())continue;switch(w+=$(v),v*y){case 38:g=p>0?1:(w+="\f",-1);break;case 44:s[u++]=(U(w)-1)*g,g=1;break;case 64:45===J()&&(w+=ie(K())),f=J(),p=m=U(O=w+=le(ee())),v++;break;case 45:45===b&&2==U(w)&&(y=0)}}return c}("",null,null,null,[""],e=re(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 _e(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}n(28);var xe=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),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)}},we=function(e){for(var t,n=0,r=0,a=e.length;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)},Ee={animationIterationCount: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},Se=/[A-Z]|^ms/g,ke=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ce=function(e){return 45===e.charCodeAt(1)},Pe=function(e){return null!=e&&"boolean"!=typeof e},ze=O((function(e){return Ce(e)?e:e.replace(Se,"-$&").toLowerCase()})),Ae=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ke,(function(e,t,n){return $e={name:t,styles:n,next:$e},t}))}return 1===Ee[e]||Ce(e)||"number"!=typeof t||0===t?t:t+"px"};function Ne(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 $e={name:n.name,styles:n.styles,next:$e},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)$e={name:r.name,styles:r.styles,next:$e},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a96?De:Ue},Ze=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},Be=function(){return null},Ie=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=Ze(t,n,i),s=o||We(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 * {\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"]))),et=["title","supTitle","children"];function tt(e){return Object(r.createElement)(Xe,e)}function nt(e){var t=e.title,n=e.supTitle,a=e.children,i=d()(e,et);return Object(r.createElement)(Qe,i,Object(r.createElement)("div",null,n&&Object(r.createElement)("small",null,n),t&&Object(r.createElement)("h1",null,t)),a)}function rt(e){return Object(r.createElement)(Ke,e)}function at(e){return Object(r.createElement)(Je,e)}var it,ct=simpaySetupWizard.adminUrl;function ot(e){var t=e.isFirst,n=Object(r.useState)(!1),c=l()(n,2),o=c[0],s=c[1];return Object(r.createElement)(a.Flex,{justify:"center"},o&&Object(r.createElement)(a.Modal,{title:Object(i.__)("Are you sure you want to exit the wizard?","simple-pay"),onRequestClose:function(){return s(!1)}},Object(r.createElement)("p",{style:{marginBottom:"2rem"}},Object(i.__)("Manual setup is only recommended for experienced users.","simple-pay")),Object(r.createElement)(a.Flex,null,Object(r.createElement)(a.Button,{href:ct,isDestructive:!0,variant:"destructive"},Object(i.__)("Exit Setup Wizard","simple-pay")),Object(r.createElement)(a.Button,{variant:"primary",isPrimary:!0,onClick:function(){return s(!1)}},Object(i.__)("Continue Setup","simple-pay")))),Object(r.createElement)(a.Button,{isLink:!0,variant:"link",className:"simpay-setup-wizard-subtle-link",onClick:function(){return s(!0)}},t?Object(i.__)("Go back to the Dashboard","simple-pay"):Object(i.__)("Close and exit the Setup Wizard","simple-pay")))}var st=Ye(a.Button)(it||(it=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"]))),lt=Object(r.forwardRef)((function(e,t){return Object(r.createElement)(st,g()({isPrimary:!0,variant:"primary"},e,{ref:t}))}));function ut(e){var t=e.width;return Object(r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1200 251",xmlSpace:"preserve",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2,style:{width:t}},Object(r.createElement)("path",{d:"M1141.285 88.98V78.438c0-13.067 10.682-23.724 23.789-23.724 13.106 0 23.788 10.657 23.788 23.724v10.544h6.649c2.494 0 4.536 1.995 4.496 4.518v39.162c0 2.485-2.042 4.519-4.537 4.519h-60.833c-2.495 0-4.537-2.034-4.537-4.52V93.5c0-2.483 2.032-4.514 4.537-4.518h6.648Zm49.66 39.124V97.98h-51.782v30.124h51.781ZM1175.342 0c6.991.004 12.694 5.688 12.694 12.653v32.571c0 2.486-2.042 4.52-4.536 4.52s-4.527-2.034-4.527-4.52v-9.036h-154.277v68.758c0 1.996 1.63 3.615 3.631 3.615h87.459c2.535 0 4.577 2.033 4.577 4.519s-2.042 4.52-4.537 4.52h-87.499c-6.99 0-12.693-5.687-12.693-12.654V12.653c0-6.965 5.662-12.649 12.693-12.653h147.015Zm-106.197 81.412c2.494.004 4.536 2.035 4.536 4.519s-2.042 4.518-4.536 4.518h-21.787c-2.494 0-4.536-2.034-4.536-4.518s2.042-4.515 4.536-4.52h21.787Zm110.653 7.53V78.4c0-8.096-6.608-14.685-14.725-14.685-8.118 0-14.726 6.589-14.726 14.685v10.543h29.451Zm-77.983-23.723c2.494.005 4.526 2.037 4.526 4.52a4.513 4.513 0 0 1-4.526 4.518h-54.457c-2.494 0-4.536-2.033-4.536-4.518 0-2.483 2.042-4.515 4.536-4.52h54.457Zm-.533-16.38c2.504.005 4.536 2.037 4.536 4.52 0 2.485-2.042 4.518-4.536 4.518h-54.457a4.513 4.513 0 0 1-4.526-4.519c0-2.482 2.031-4.514 4.526-4.519h54.457Zm77.691-21.689V12.653a3.625 3.625 0 0 0-3.63-3.615h-147.016c-2.001 0-3.671 1.62-3.671 3.615V27.15h154.317Z",fill:"#428bca"}),Object(r.createElement)("path",{d:"m1082.047 217.635-11.642 29.874c-.394.922-1.381 1.66-2.96 2.212-1.578.37-3.946.738-7.103.738-1.578 0-2.96-.184-3.946-.184-1.184-.185-1.973-.554-2.368-.922-.592-.37-.987-.738-.987-1.291 0-.738 0-1.475.395-2.213l12.036-28.214c-.592-.185-1.184-.553-1.578-1.107-.592-.553-.987-1.106-1.184-1.844l-30.781-77.45c-.592-1.106-.79-2.213-.79-2.95 0-.738.198-1.291.79-1.66.394-.369 1.184-.738 2.368-.922 1.183 0 2.762-.185 4.735-.185 1.776 0 3.354 0 4.538.185.987 0 1.973.184 2.565.553.592.185.987.553 1.382.922.197.553.592 1.107.789 1.844l24.862 65.095h.197l24.072-65.464c.198-1.106.79-1.844 1.381-2.212a11.34 11.34 0 0 1 2.368-.738c1.184 0 2.763-.185 4.736-.185 1.776 0 3.354.185 4.34.185 1.185.184 2.171.553 2.566.922.592.369.986.922.986 1.66 0 .737-.197 1.66-.592 2.766l-31.175 80.585Zm-59.528-2.213c0 .738-.394 1.29-.789 1.66-.592.368-1.184.553-2.17.737-.79.185-2.17.37-3.947.37-1.578 0-2.96-.185-3.946-.37-.987-.184-1.776-.369-2.17-.737-.395-.37-.79-.922-.79-1.66v-8.114c-3.749 3.873-7.892 6.823-12.628 8.852-4.538 2.212-9.47 3.135-14.798 3.135-4.539 0-8.682-.554-12.234-1.66-3.749-1.107-6.906-2.582-9.471-4.795-2.762-2.028-4.736-4.61-6.117-7.745-1.38-2.95-2.17-6.454-2.17-10.51 0-4.427.986-8.483 2.96-11.803s4.932-6.085 8.681-8.298c3.552-2.213 8.288-3.873 13.615-4.979a89.464 89.464 0 0 1 18.153-1.844h12.036v-6.27c0-3.135-.394-5.9-1.184-8.298-.592-2.397-1.776-4.241-3.354-5.901-1.579-1.66-3.552-2.766-6.117-3.688-2.565-.738-5.525-1.107-9.274-1.107-3.946 0-7.498.37-10.457 1.291-3.157.922-5.92 1.844-8.287 2.95-2.368.923-4.341 1.845-5.92 2.767-1.578.922-2.762 1.29-3.354 1.29-.592 0-.987 0-1.381-.368a1.93 1.93 0 0 1-.987-1.107c-.395-.368-.592-1.106-.79-1.844 0-.737-.197-1.475-.197-2.397 0-1.475.198-2.766.395-3.504.197-.922.79-1.844 1.579-2.581.986-.738 2.367-1.66 4.538-2.766 2.17-.922 4.538-2.029 7.3-2.766 2.763-.922 5.92-1.66 9.077-2.213 3.354-.554 6.511-.922 9.866-.922 6.314 0 11.641.737 15.982 2.028 4.341 1.291 7.893 3.32 10.655 5.901 2.565 2.397 4.538 5.717 5.722 9.405 1.381 3.872 1.973 8.298 1.973 13.277v54.584Zm-15.785-36.881H993.12c-4.34 0-8.287.184-11.444.922s-5.92 1.66-7.892 3.135c-2.17 1.29-3.75 2.95-4.736 4.794-.986 1.844-1.578 4.057-1.578 6.639 0 4.057 1.578 7.56 4.34 9.958 2.96 2.582 6.907 3.688 12.037 3.688 4.143 0 8.09-.922 11.641-2.95 3.552-2.029 7.3-4.98 11.247-9.036v-17.15Zm-63.44-43.335c0 5.9-.987 11.064-2.96 15.858-2.17 4.61-5.13 8.668-8.88 11.987-3.946 3.32-8.484 5.716-14.009 7.56-5.722 1.845-12.233 2.767-19.928 2.767H883.31v41.86c0 .553-.197.922-.395 1.29-.394.37-.789.738-1.38.922-.593.185-1.382.37-2.566.554-.987.184-2.368.184-3.946.184-1.579 0-2.96 0-3.947-.184-1.183-.185-1.973-.37-2.565-.554-.592-.184-1.184-.553-1.38-.922-.198-.368-.395-.737-.395-1.29V107.729c0-2.397.591-4.057 1.973-5.163 1.38-.922 2.96-1.475 4.538-1.475h26.637c2.763 0 5.328.184 7.893.368a63.42 63.42 0 0 1 8.682 1.291 38.896 38.896 0 0 1 10.26 3.873c3.552 1.844 6.512 4.241 9.077 7.007 2.367 2.766 4.143 5.901 5.524 9.59 1.382 3.687 1.974 7.56 1.974 11.986Zm-17.364 1.29c0-4.794-.987-8.667-2.96-11.802-1.776-3.319-4.143-5.716-6.906-7.191-2.762-1.476-5.722-2.582-8.682-2.95-2.96-.37-5.92-.738-8.681-.738H883.31v46.839h14.996c4.933 0 9.076-.554 12.43-1.844 3.355-1.107 6.117-2.767 8.288-4.98 2.368-2.212 3.946-4.61 5.13-7.56 1.184-3.135 1.776-6.27 1.776-9.774ZM805.708 171.35c0 2.397-.592 4.057-1.973 4.979-1.184.922-2.763 1.475-4.341 1.475H742.37c0 4.61.394 8.667 1.381 12.171.987 3.688 2.565 6.639 4.933 9.22 2.17 2.582 5.13 4.61 8.682 6.086 3.749 1.29 8.09 2.028 13.417 2.028 4.144 0 7.695-.369 11.05-.922 3.157-.737 5.92-1.475 8.287-2.213a77.69 77.69 0 0 0 5.722-2.028c1.579-.738 2.762-.922 3.552-.922.394 0 .789 0 1.184.184.394.185.592.553.789.922.197.553.394 1.107.394 1.844.198.738.198 1.66.198 2.766v2.029c-.198.553-.198 1.106-.395 1.475 0 .553-.197.922-.394 1.29-.198.37-.592.739-.79.923-.394.369-1.381.922-3.157 1.66-1.776.737-3.946 1.475-6.708 2.212a94.74 94.74 0 0 1-9.669 2.029c-3.552.553-7.498.738-11.641.738-7.104 0-13.418-.923-18.745-2.767-5.328-1.844-9.866-4.61-13.418-8.298-3.749-3.688-6.511-8.298-8.287-13.646-1.973-5.532-2.96-11.986-2.96-19.362 0-7.008.987-13.278 2.96-18.81 1.973-5.532 4.736-10.142 8.287-14.015 3.75-3.872 8.09-7.007 13.22-9.035 5.13-2.029 10.853-3.135 17.167-3.135 6.906 0 12.628 1.106 17.363 3.135 4.933 2.028 8.88 4.794 11.84 8.298 3.156 3.32 5.327 7.376 6.905 12.17a51.475 51.475 0 0 1 2.17 14.753v2.766Zm-15.983-4.426c.198-7.745-1.776-13.83-5.722-18.44-3.749-4.426-9.668-6.639-17.364-6.639-3.946 0-7.3.738-10.26 2.213-2.96 1.29-5.525 3.135-7.498 5.348-1.973 2.397-3.552 4.979-4.735 8.114-.987 2.95-1.579 6.085-1.776 9.404h47.355Zm-82.18 48.499c0 .369 0 .922-.394 1.106-.197.37-.592.738-1.184.922s-1.381.37-2.368.554c-.986.184-2.368.184-3.946.184-1.579 0-2.96 0-3.946-.184-.987-.185-1.776-.37-2.368-.554-.592-.184-.987-.553-1.381-.922-.198-.184-.198-.737-.198-1.106V95.005c0-.369 0-.737.198-1.106.394-.369.789-.738 1.38-.922.593-.37 1.382-.553 2.369-.553.986-.185 2.367-.185 3.946-.185 1.578 0 2.96 0 3.946.185.987 0 1.776.184 2.368.553.592.184.987.553 1.184.922.395.369.395.737.395 1.106v120.417Zm-34.41-41.86c0 7.192-.789 13.462-2.367 19.178-1.776 5.532-4.144 10.327-7.3 14.384-3.158 3.872-7.104 6.823-11.84 9.036-4.735 2.028-10.063 3.135-15.982 3.135-2.565 0-4.933-.185-7.3-.738-2.171-.369-4.144-1.107-6.315-2.213-2.17-.922-4.144-2.213-6.314-3.872-1.973-1.476-4.144-3.32-6.511-5.533v40.57c0 .553 0 .922-.395 1.29-.197.37-.592.738-1.184.922-.592.185-1.381.37-2.368.554-.986 0-2.367.184-3.946.184-1.578 0-2.96-.184-3.946-.184-.987-.185-1.776-.37-2.368-.554-.592-.184-.987-.553-1.381-.922-.198-.368-.198-.737-.198-1.29V134.284c0-.554 0-.922.198-1.291.197-.37.592-.553 1.184-.738.592-.369 1.38-.553 2.17-.553.987-.185 1.973-.185 3.354-.185 1.382 0 2.368 0 3.355.185.79 0 1.578.184 2.17.553.592.185.987.369 1.184.738.197.369.395.737.395 1.29v10.88c2.565-2.397 5.13-4.61 7.498-6.454 2.368-1.844 4.933-3.503 7.3-4.61 2.565-1.29 5.13-2.213 7.696-2.95 2.565-.554 5.327-.922 8.287-.922 6.314 0 11.641 1.29 15.982 3.503 4.539 2.213 8.09 5.348 10.853 9.405 2.762 3.873 4.933 8.483 6.116 13.83 1.382 5.164 1.974 10.696 1.974 16.597Zm-16.377 1.844c0-4.241-.394-8.298-1.183-12.17-.592-3.873-1.776-7.193-3.355-10.327-1.776-2.951-3.946-5.348-6.708-7.192-2.763-1.66-6.315-2.582-10.458-2.582-1.973 0-3.946.184-6.117.738-1.973.553-3.946 1.475-5.92 2.766-2.17 1.29-4.34 2.766-6.51 4.794-2.369 2.029-4.736 4.61-7.301 7.56v32.087c4.538 4.98 8.681 8.852 12.628 11.434 3.946 2.766 8.09 4.057 12.43 4.057 3.947 0 7.301-.922 10.26-2.767 2.763-1.66 5.131-4.056 6.907-7.191a32.374 32.374 0 0 0 3.946-9.958c.79-3.873 1.381-7.56 1.381-11.249Zm-86.981 40.016c0 .369-.197.922-.395 1.106-.394.37-.79.738-1.381.922-.592.185-1.381.37-2.368.554-.986.184-2.368.184-3.749.184-1.776 0-2.96 0-3.946-.184-1.184-.185-1.973-.37-2.565-.554-.592-.184-.987-.553-1.381-.922-.198-.184-.198-.737-.198-1.106v-49.236c0-3.504-.394-6.639-.986-9.405-.79-2.766-1.776-5.348-3.157-7.376-1.381-2.029-3.157-3.504-5.328-4.61-2.17-1.107-4.735-1.66-7.695-1.66-3.749 0-7.498 1.29-11.05 4.057-3.749 2.582-7.892 6.454-12.233 11.618v56.612c0 .369-.197.922-.395 1.106-.197.37-.789.738-1.381.922-.592.185-1.381.37-2.368.554-.986.184-2.368.184-3.946.184-1.381 0-2.762 0-3.749-.184a55.016 55.016 0 0 1-2.565-.554c-.592-.184-.987-.553-1.184-.922-.197-.184-.395-.737-.395-1.106v-49.236c0-3.504-.197-6.639-.986-9.405-.79-2.766-1.776-5.348-3.157-7.376-1.381-2.029-3.157-3.504-5.328-4.61-2.17-1.107-4.735-1.66-7.695-1.66-3.749 0-7.3 1.29-11.05 4.057-3.749 2.582-7.892 6.454-12.233 11.618v56.612c0 .369 0 .922-.395 1.106-.197.37-.592.738-1.184.922s-1.38.37-2.367.554c-.987.184-2.368.184-3.947.184-1.578 0-2.96 0-3.946-.184-.987-.185-1.776-.37-2.368-.554-.592-.184-.986-.553-1.381-.922-.197-.184-.197-.737-.197-1.106v-81.138c0-.37 0-.738.197-1.107s.592-.737 1.184-.922c.592-.369 1.381-.553 2.17-.553.987-.185 2.17-.185 3.552-.185 1.381 0 2.565 0 3.552.185.986 0 1.776.184 2.17.553.592.185.987.553 1.184.922.197.369.197.738.197 1.107v10.695c4.933-4.979 9.669-8.667 14.207-11.064 4.736-2.398 9.274-3.688 14.01-3.688 3.551 0 6.905.368 9.668 1.29 2.96.738 5.327 1.845 7.498 3.32 2.367 1.29 4.143 2.95 5.722 4.979 1.578 1.844 2.762 4.057 3.749 6.454a95.95 95.95 0 0 1 8.287-7.376 53.41 53.41 0 0 1 7.498-4.98c2.368-1.29 4.736-2.212 7.103-2.765 2.17-.554 4.539-.922 6.906-.922 5.525 0 10.26.922 14.01 2.766 3.749 1.844 6.906 4.241 9.273 7.376 2.17 3.135 3.947 6.639 4.933 10.695.987 4.242 1.579 8.483 1.579 13.093v51.265Zm-152.818 0c0 .369 0 .922-.395 1.106-.197.37-.592.738-1.184.922s-1.381.37-2.368.554c-.986.184-2.368.184-3.946.184-1.579 0-2.96 0-3.946-.184-.987-.185-1.776-.37-2.368-.554-.592-.184-.987-.553-1.381-.922-.198-.184-.198-.737-.198-1.106v-81.138c0-.37 0-.738.198-1.107.394-.369.789-.737 1.38-.922.593-.184 1.382-.369 2.369-.553.986 0 2.367-.185 3.946-.185 1.578 0 2.96.185 3.946.185.987.184 1.776.369 2.368.553.592.185.987.553 1.184.922.395.369.395.738.395 1.107v81.138Zm1.973-108.43c0 3.503-.79 5.9-2.17 7.007-1.382 1.29-4.144 2.028-7.893 2.028-3.75 0-6.314-.737-7.696-1.844-1.38-1.29-1.973-3.688-1.973-7.007 0-3.504.79-5.901 2.17-7.192 1.382-1.29 3.947-1.844 7.696-1.844 3.749 0 6.314.553 7.695 1.844 1.381 1.291 2.17 3.504 2.17 7.008Zm-34.426 78.003c0 5.348-.987 10.327-3.158 14.568-2.17 4.241-5.13 7.93-8.879 10.88-3.946 2.95-8.484 5.163-13.614 6.639-5.13 1.475-10.655 2.213-16.772 2.213-4.144 0-7.893-.37-11.444-.923-3.552-.737-6.906-1.475-9.669-2.397-2.762-.922-5.13-2.028-6.906-2.95-1.973-1.107-3.354-2.029-3.946-2.766-.79-.554-1.381-1.476-1.776-2.582a27.177 27.177 0 0 1-.395-4.61c0-1.291 0-2.397.198-3.135 0-.922.197-1.66.592-2.213.197-.553.592-.922.789-1.106.395-.185.987-.37 1.381-.37.987 0 2.17.554 3.946 1.66 1.579.922 3.75 2.029 6.315 3.32 2.565 1.106 5.524 2.213 9.273 3.32 3.552 1.106 7.696 1.474 12.431 1.474 3.75 0 6.906-.368 9.866-1.29 3.157-.923 5.722-2.213 7.892-3.873 1.974-1.66 3.75-3.688 4.933-6.085 1.184-2.398 1.579-4.98 1.579-8.114 0-3.32-.79-6.086-2.368-8.483-1.578-2.397-3.749-4.426-6.314-6.085-2.565-1.844-5.722-3.504-9.076-4.98-3.355-1.474-6.71-2.95-10.26-4.425-3.552-1.475-6.907-3.32-10.261-5.163-3.355-1.844-6.314-4.057-9.077-6.455-2.565-2.581-4.735-5.532-6.314-8.851-1.776-3.504-2.565-7.56-2.565-12.355 0-4.795.987-9.036 2.96-12.909 1.776-3.872 4.538-7.007 7.892-9.589 3.355-2.581 7.301-4.61 12.037-5.9 4.538-1.291 9.668-2.03 14.996-2.03 2.762 0 5.524.185 8.287.739 2.96.368 5.525.922 7.892 1.66 2.565.737 4.736 1.659 6.71 2.58 1.972.923 3.156 1.66 3.748 2.214.592.553.987 1.106 1.184 1.475.197.184.395.738.592 1.106 0 .554.197 1.107.197 1.844.198.738.198 1.66.198 2.767 0 1.106-.198 2.212-.198 2.95-.197.922-.197 1.66-.394 2.213-.198.553-.592.922-.79 1.106-.394.37-.789.554-1.184.554-.789 0-1.973-.554-3.354-1.291-1.578-.922-3.354-1.844-5.525-2.95-2.17-.923-4.933-1.845-7.892-2.767-2.96-.922-6.314-1.29-10.063-1.29-3.355 0-6.512.368-9.077 1.29-2.565.922-4.538 2.029-6.314 3.504-1.578 1.29-2.96 3.135-3.749 4.979-.79 2.028-1.184 4.241-1.184 6.454 0 3.135.79 5.901 2.368 8.298 1.579 2.398 3.749 4.426 6.314 6.27 2.762 1.66 5.722 3.32 9.274 4.979 3.354 1.475 6.709 2.95 10.26 4.426 3.552 1.66 7.104 3.319 10.458 5.163 3.354 1.66 6.511 3.873 9.076 6.454 2.763 2.398 4.933 5.348 6.512 8.852 1.578 3.319 2.368 7.376 2.368 11.986Zm-127.083-49.79c0 5.902-.987 11.065-2.96 15.86-2.17 4.61-5.13 8.667-8.88 11.986-3.946 3.32-8.484 5.716-14.009 7.56-5.722 1.845-12.233 2.767-19.928 2.767h-14.207v41.86c0 .553-.197.922-.395 1.29-.394.37-.789.738-1.38.922-.593.185-1.382.37-2.566.554-.987.184-2.368.184-3.946.184-1.579 0-2.96 0-3.947-.184-1.183-.185-1.973-.37-2.565-.554-.592-.184-1.184-.553-1.38-.922-.198-.368-.395-.737-.395-1.29v-107.51c0-2.397.591-4.057 1.973-5.163 1.38-.922 2.96-1.475 4.538-1.475h26.637c2.763 0 5.328.184 7.893.368a63.42 63.42 0 0 1 8.682 1.291 38.896 38.896 0 0 1 10.26 3.873c3.552 1.844 6.512 4.241 9.077 7.007 2.367 2.766 4.143 5.901 5.524 9.59 1.382 3.687 1.974 7.56 1.974 11.986Zm-17.364 1.291c0-4.794-.987-8.667-2.96-11.802-1.776-3.319-4.143-5.716-6.906-7.191-2.762-1.476-5.722-2.582-8.682-2.95-2.96-.37-5.92-.738-8.681-.738h-15.391v46.839h14.996c4.933 0 9.076-.554 12.43-1.844 3.355-1.107 6.117-2.767 8.288-4.98 2.368-2.212 3.946-4.61 5.13-7.56 1.184-3.135 1.776-6.27 1.776-9.774Zm-110.032 77.635c-.197.922-.592 1.66-1.184 2.029-.394.553-1.184.922-2.17 1.29-.79.185-1.973.37-3.157.554-1.381.184-2.96.184-4.933.184-1.973 0-3.749 0-5.13-.184-1.381-.185-2.565-.37-3.355-.554-.986-.368-1.578-.737-1.973-1.29-.592-.37-.789-1.107-1.184-2.029L80.896 126.17h-.197l-24.073 87.96c-.197.922-.592 1.66-.986 2.029-.395.553-1.184.922-1.974 1.29-.789.185-1.775.37-3.157.554-1.38.184-2.96.184-5.13.184-1.973 0-3.749 0-5.327-.184-1.381-.185-2.565-.37-3.355-.554-.986-.368-1.578-.737-2.17-1.29-.395-.37-.79-1.107-.987-2.029L.59 106.623c-.395-1.475-.592-2.398-.592-3.32 0-.737.197-1.29.79-1.66.591-.552 1.38-.737 2.564-.921 1.381 0 2.96-.185 4.933-.185 1.973 0 3.552 0 4.736.185 1.184 0 2.17.184 2.762.553.592.184.987.553 1.184.922.197.369.395.922.592 1.66l28.019 97.55 26.637-97.366c.197-.738.395-1.29.79-1.66.197-.553.591-.922 1.38-1.106.592-.184 1.579-.369 2.763-.553 1.184 0 2.762-.185 4.538-.185 1.776 0 3.355.185 4.341.185.987.184 1.973.369 2.565.553.592.184 1.184.553 1.381 1.106.395.37.592.922.79 1.66l28.61 97.366h.198l27.426-97.55c.198-.554.395-1.107.592-1.476.198-.553.592-.922 1.184-1.106.592-.184 1.381-.369 2.565-.553 1.184 0 2.565-.185 4.538-.185 1.974 0 3.355.185 4.539.185 1.184.184 1.973.553 2.367.922.592.369.79 1.106.79 1.844 0 .737-.198 1.844-.592 3.135L130.027 214.13Z",fill:"#428bca",fillRule:"nonzero"}))}var pt=n(8);function mt(e){var t=Object(pt.useSelect)((function(e){return Object(u.filter)(e("core/notices").getNotices(),{type:"snackbar"})}),[]),n=Object(pt.useDispatch)("core/notices").removeNotice;return 0===t.length?null:Object(r.createElement)(a.SnackbarList,g()({onRemove:n,notices:t},e))}var ft,dt,bt,yt,ht,gt=n(38),vt=n(39),Ot=Ye.div(ft||(ft=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"]))),jt={current:"var(--wp-admin-theme-color)",complete:"var(--wp-admin-theme-color)",incomplete:"#c0c0c0"},_t=Ye.div(dt||(dt=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 jt[e.status]}),(function(e){return e.isComplete?"1":"0"}),(function(e){var t=e.isCurrent,n=e.isComplete;return t&&!n?"1":"0"})),xt=Ye.div(bt||(bt=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"]))),wt=Ye.div(yt||(yt=y()(["\n\twidth: 100%;\n\theight: 2px;\n\tbackground-color: rgba( 192, 192, 192, 0.5 );\n\twidth: 100px;\n"])));function Et(e){for(var t=e.current,n=e.total,a=[],i=1;i<=n;i++){var c="incomplete";i * {\n\t\tmargin: 25px 0;\n\t}\n"])));function Ct(e){return Object(r.createElement)(kt,e)}var Pt=Ye(a.Button)(St||(St=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"]))),zt=Object(r.forwardRef)((function(e,t){return Object(r.createElement)(Pt,g()({isPrimary:!0,variant:"primary"},e,{ref:t}))}));function At(){return Object(r.createElement)("svg",{width:56,height:23,fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.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 Nt=n(18),$t=n.n(Nt);function Mt(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 Rt(e){for(var t=1;t
WP Simple Pay account or purchase receipt email.","simple-pay"),{strong:Object(r.createElement)("strong",null),a:Object(r.createElement)("a",{href:Xt,target:"_blank",rel:"noopener noreferrer"})})),Object(r.createElement)(a.TextControl,{label:Object(i.__)("License Key","simple-pay"),value:o,className:j,onChange:function(e){return s(e)},disabled:f,help:h||Object(i.__)("An active license ensures automatic updates and the latest features.","simple-pay"),ref:O})),Object(r.createElement)(rt,{justify:"flex-end",align:"center"},Object(r.createElement)(lt,{onClick:function(){d(!0);var e=new FormData;e.append("action","simpay_activate_license"),e.append("nonce",Qt),e.append("license",o),m()({url:Yt,method:"POST",body:e}).then((function(e){var n=e.success,r=e.data.message;if(!n)throw{message:r};v(Object(i.__)("License activated","simple-pay"),{type:"snackbar"}),d(!1),t()})).catch((function(e){var t=e.message;g(t),d(!1)}))},disabled:""===o||f,isBusy:f},Object(i.__)("Activate and Continue →","simple-pay"))))}},{id:"stripe",title:Object(i.__)("Connect to Stripe","simple-pay"),content:On},{id:"emails",title:Object(i.__)("Configure Emails","simple-pay"),content:function(e){var t=e.goPrev,n=e.goNext,c=Tt(),o=c.settings,s=c.rawSettings,l=c.discardChanges,p=c.editSettings,m=c.saveSettings,f=Object(r.useRef)();if(Object(r.useLayoutEffect)((function(){f.current&&f.current.focus()}),[s]),Object(u.isEmpty)(o))return Object(r.createElement)(at,null,Object(r.createElement)(a.Spinner,null));var d=o["email_payment-confirmation"],b=o["email_upcoming-invoice"],y=o["email_payment-notification"],h=o["email_payment-notification_to"];return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(at,null,Object(r.createElement)("ul",{className:"simpay-setup-wizard-toggle-list"},Object(r.createElement)("li",null,Object(r.createElement)("label",{htmlFor:"email_payment-confirmation"},Object(r.createElement)("h3",null,Object(i.__)("Payment Receipt","simple-pay")),Object(r.createElement)("p",null,Object(i.__)("Send a payment receipt email to the customer upon successful payment.","simple-pay"))),Object(r.createElement)(a.FormToggle,{id:"email_payment-confirmation",checked:"no"!==d,onChange:function(e){var t=e.target;return p({"email_payment-confirmation":t.checked?"yes":"no"})}})),Object(r.createElement)("li",null,Object(r.createElement)("label",{htmlFor:"email_upcoming-invoice"},Object(r.createElement)("h3",null,Object(i.__)("Upcoming Invoice","simple-pay")),Object(r.createElement)("p",null,Object(i.__)("Remind customers of upcoming invoices and allow payment method changes.","simple-pay"))),Object(r.createElement)(a.FormToggle,{id:"email_upcoming-invoice",checked:"no"!==b,onChange:function(e){var t=e.target;return p({"email_upcoming-invoice":t.checked?"yes":"no"})}})),Object(r.createElement)("li",null,Object(r.createElement)("label",{htmlFor:"email_payment-notification"},Object(r.createElement)("h3",null,Object(i.__)("Payment Notification","simple-pay")),Object(r.createElement)("p",null,Object(i.__)("Receive an email notification when a new payment is made.","simple-pay"))),Object(r.createElement)(a.FormToggle,{id:"email_payment-notification",checked:"no"!==y,onChange:function(e){var t=e.target;return p({"email_payment-notification":t.checked?"yes":"no"})}})),"no"!==y&&Object(r.createElement)("li",{className:"simpay-setup-wizard-toggle-list__child"},Object(r.createElement)(a.TextControl,{label:Object(i.__)("Send to:","simple-pay"),value:h,onChange:function(e){return p({"email_payment-notification_to":e})}})))),Object(r.createElement)(rt,{justify:"space-between",align:"center"},Object(r.createElement)("div",null,Object(r.createElement)(a.Button,{isLink:!0,variant:"link",onClick:t,className:"simpay-setup-wizard-subtle-link"},Object(i.__)("← Previous Step","simple-pay"))),Object(r.createElement)("div",{style:{display:"flex",justifyContent:"center"}},Object(r.createElement)(a.Button,{isLink:!0,variant:"link",onClick:function(){l(),n()},style:{marginRight:"16px"},className:"simpay-setup-wizard-subtle-link"},Object(i.__)("Skip Step","simple-pay")),Object(r.createElement)(lt,{onClick:function(){m(),n()},ref:f},Object(i.__)("Save and Continue →","simple-pay")))))}},{id:"next-steps",title:Object(i.__)("🎉 Setup Complete","simple-pay"),content:function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(at,null,Object(r.createElement)("div",{className:"simpay-setup-wizard-content-list"},Object(r.createElement)("div",{className:"simpay-setup-wizard-content-list__content"},Object(r.createElement)("p",null,Object(i.__)("Congratulations, you’re ready to start accepting payments!","simple-pay")),Object(r.createElement)("p",null,Object(i.__)("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:","simple-pay"))),Object(r.createElement)("div",{className:"simpay-setup-wizard-content-list__list"},Object(r.createElement)("ul",{className:"simpay-setup-wizard-bullet-list"},Object(r.createElement)("li",null,Object(r.createElement)("a",{href:mn,target:"_blank",rel:"noopener noreferrer"},Object(i.__)("Collect tax or GST","simple-pay"))),Object(r.createElement)("li",null,Object(r.createElement)("a",{href:fn,target:"_blank",rel:"noopener noreferrer"},Object(i.__)("Add anti-spam protection","simple-pay"))),Object(r.createElement)("li",null,Object(r.createElement)("a",{href:dn,target:"_blank",rel:"noopener noreferrer"},Object(i.__)("Change the default currency","simple-pay"))),Object(r.createElement)("li",null,Object(r.createElement)("a",{href:bn,target:"_blank",rel:"noopener noreferrer"},Object(i.__)("Customize receipts","simple-pay")))))),Object(r.createElement)("hr",null),Object(r.createElement)("div",{className:"simpay-setup-wizard-doc-suggestions"},Object(r.createElement)("div",null,Object(r.createElement)("h3",null,Object(i.__)("Accept Donations","simple-pay")),Object(r.createElement)("p",null,Object(i.__)("Easily fundraise or accept donations online via 135+ supported currencies. Offer one-time or recurring donations of fixed or user-defined amounts.","simple-pay")),Object(r.createElement)(a.Button,{href:yn,variant:"secondary",isSecondary:!0,target:"_blank",rel:"noopener noreferrer"},Object(i.__)("View Walkthrough","simple-pay"))),Object(r.createElement)("div",null,Object(r.createElement)("h3",null,Object(i.__)("Reconcile Invoices","simple-pay")),Object(r.createElement)("p",null,Object(i.__)("Collect additional custom data on your payment forms such as an Invoice ID to reconcile invoices against your own invoicing system.","simple-pay")),Object(r.createElement)(a.Button,{href:hn,variant:"secondary",isSecondary:!0,target:"_blank",rel:"noopener noreferrer"},Object(i.__)("View Walkthrough","simple-pay"))))),Object(r.createElement)(rt,{justify:"space-between",align:"center"},Object(r.createElement)("div",{style:{flexBasis:"100%"}},Object(r.createElement)(a.Button,{isLink:!0,variant:"link",href:un,className:"simpay-setup-wizard-subtle-link",icon:Object(r.createElement)(gt.a,{icon:en})},Object(i.__)("Return to Dashboard","simple-pay"))),Object(r.createElement)(a.Flex,{justify:"flex-end",gap:4},Object(r.createElement)(lt,{href:pn},Object(i.__)("Create a Payment Form →","simple-pay")))))}}],lite:[{id:"stripe",title:Object(i.__)("Connect to Stripe","simple-pay"),content:On},{id:"analytics",title:Object(i.__)("Help Improve WP Simple Pay","simple-pay"),content:function(e){var t=e.goPrev,n=e.goNext,c=Tt(),o=c.settings,s=c.rawSettings,p=c.discardChanges,f=c.editSettings,d=c.saveSettings,b=Object(r.useState)("0"===Wt),y=l()(b,2),h=y[0],g=y[1],v=Object(r.useState)(Dt),O=l()(v,2),j=O[0],_=O[1],x=Object(r.useState)(!1),w=l()(x,2),E=w[0],S=w[1],k=Object(r.useRef)();return Object(r.useLayoutEffect)((function(){k.current&&k.current.focus()}),[s]),Object(r.useEffect)((function(){o&&o.usage_tracking_opt_in&&g("yes"===o.usage_tracking_opt_in)}),[s]),Object(u.isEmpty)(o)?Object(r.createElement)(at,null,Object(r.createElement)(a.Spinner,null)):Object(r.createElement)(r.Fragment,null,Object(r.createElement)(at,null,Object(r.createElement)("p",null,Object(i.__)("Get helpful suggestions from WP Simple Pay on how to optimize your payment forms and grow your business or increase donations.","simple-pay")),Object(r.createElement)(a.TextControl,{label:Object(i.__)("Your email address:","simple-pay"),value:j,className:"simpay-setup-wizard-large-input",onChange:function(e){return _(e)},help:Object(i.__)("Your email is needed, so you can receive recommendations.","simple-pay"),ref:k,disabled:E}),Object(r.createElement)("hr",null),Object(r.createElement)("ul",{className:"simpay-setup-wizard-toggle-list"},Object(r.createElement)("li",null,Object(r.createElement)("label",{htmlFor:"email_payment-confirmation"},Object(r.createElement)("strong",null,Object(i.__)("Send usage analytics","simple-pay")),Object(r.createElement)("p",null,Object(r.createInterpolateElement)(Object(i.__)("Get improved features by sharing data via usage analytics that shows us how you are using WP Simple Pay.","simple-pay"),{a:Object(r.createElement)("a",{href:Bt})}))),Object(r.createElement)(a.FormToggle,{id:"email_payment-confirmation",checked:h,disabled:E,onChange:function(e){var t=e.target;g(t.checked),f({usage_tracking_opt_in:t.checked?"yes":"no"})}})))),Object(r.createElement)(rt,{justify:"space-between",align:"center"},Object(r.createElement)("div",null,Object(r.createElement)(a.Button,{isLink:!0,variant:"link",onClick:t,className:"simpay-setup-wizard-subtle-link",disabled:E},Object(i.__)("← Previous Step","simple-pay"))),Object(r.createElement)("div",{style:{display:"flex",justifyContent:"center"}},Object(r.createElement)(a.Button,{isLink:!0,variant:"link",onClick:function(){p(),n()},style:{marginRight:"16px"},className:"simpay-setup-wizard-subtle-link",disabled:E},Object(i.__)("Skip Step","simple-pay")),Object(r.createElement)(lt,{onClick:function(){S(!0),d();var e=new FormData;e.append("action","simpay_setup_wizard_subscribe_email"),e.append("nonce",Ut),e.append("email",j),m()({url:Zt,method:"POST",body:e}).finally((function(){S(!1),n()}))},isBusy:E,disabled:E},Object(i.__)("Save and Continue →","simple-pay")))))}},{id:"next-steps",title:Object(i.__)("🎉 Setup Complete","simple-pay"),content:function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(at,null,Object(r.createElement)(a.Flex,{justify:"space-between",align:"center",className:"simpay-setup-wizard-content-list"},Object(r.createElement)("div",{className:"simpay-setup-wizard-content-list__content"},Object(r.createElement)("p",null,Object(i.__)("Congratulations, you’re ready to start easily and securely accepting payments with WP Simple Pay!","simple-pay"))),Object(r.createElement)("div",null,Object(r.createElement)(lt,{href:cn},Object(i.__)("Create a Payment Form →","simple-pay")))),Object(r.createElement)("hr",null),Object(r.createElement)(tn,null,Object(r.createElement)("h4",null,Object(i.__)("Special Upgrade Offer - Save 50%","simple-pay")),Object(r.createElement)("h3",null,Object(i.__)("Upgrade to WP Simple Pay Pro Today and Save","simple-pay")),Object(r.createElement)(nn,{className:"simpay-setup-wizard-check-list"},sn.map((function(e){return Object(r.createElement)("li",{key:e},Object(r.createElement)(gt.a,{icon:vt.a}),e)}))),Object(r.createElement)(a.Button,{isLarge:!0,isSecondary:!0,variant:"secondary",href:on,target:"_blank",rel:"noopener noreferrer"},Object(i.__)("Upgrade to WP Simple Pay Pro","simple-pay")))),Object(r.createElement)(rt,{justify:"center"},Object(r.createElement)(a.Button,{isLink:!0,variant:"link",href:an,className:"simpay-setup-wizard-subtle-link",icon:Object(r.createElement)(gt.a,{icon:en})},Object(i.__)("Return to Dashboard","simple-pay"))))}}]},En=simpaySetupWizard,Sn=En.isLite,kn=En.adminUrl;Object(r.render)(Object(r.createElement)((function(){var e=wn["1"===Sn?"lite":"pro"],t=function(e){var t=e.steps,n=e.currentStepId,a=t.findIndex((function(e){return e.id===n}))||0,i=Object(r.useState)(a),o=l()(i,2),s=o[0],u=o[1];function p(e){u(e),window.history.pushState({},"",Object(c.addQueryArgs)(window.location.href,{step:t[e].id}))}return Object(r.useEffect)((function(){var e=function(){var e=Object(c.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:s,setCurrentStep:u,hasNext:s0}}({steps:e,currentStepId:Object(c.getQueryArg)(window.location.href,"step")}),n=t.currentStep,s=t.goNext,u=t.goPrev,p=t.hasNext,m=t.hasPrev;if(-1===n)return Object(r.createElement)(xn,{steps:e,goNext:s});var f=e[n],d=f.content;return Object(r.createElement)(a.SlotFillProvider,null,Object(r.createElement)(o.EntityProvider,{kind:"root",type:"site"},Object(r.createElement)(Ct,null,Object(r.createElement)("a",{href:kn},Object(r.createElement)(ut,{width:"250px"})),Object(r.createElement)(Et,{current:n+1,total:e.length}),Object(r.createElement)(tt,{isRounded:!0},Object(r.createElement)(nt,{supTitle:Object(i.sprintf)( +!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=44)}([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,n){var r=n(15),a=n(16),i=n(11),c=n(17);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=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=window.React},function(e,t){e.exports=window.lodash},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.wp.url},,function(e,t,n){var r=n(12);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||Object.prototype.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(36)},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,d=r?Symbol.for("react.forward_ref"):60112,f=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 f:return e;default:switch(e=e&&e.$$typeof){case u:case d:case h:case y:case l:return e;default:return t}}case i:return t}}}function w(e){return _(e)===m}t.AsyncMode=p,t.ConcurrentMode=m,t.ContextConsumer=u,t.ContextProvider=l,t.Element=a,t.ForwardRef=d,t.Fragment=c,t.Lazy=h,t.Memo=y,t.Portal=i,t.Profiler=s,t.StrictMode=o,t.Suspense=f,t.isAsyncMode=function(e){return w(e)||_(e)===p},t.isConcurrentMode=w,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)===d},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)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===c||e===m||e===s||e===o||e===f||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===y||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||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,r,a={},i=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.a=function(e){let{icon:t,size:n=24,...a}=e;return Object(r.cloneElement)(t,{width:n,height:n,...a})}},function(e,t,n){"use strict";var r=n(0),a=n(4);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";n.r(t);var r=n(0),a=(n(34),n(2)),i=n(1),c=n(9),o=n(26),s=n(3),l=n.n(s),u=n(7),p=n(20),m=n.n(p),d=n(38),f=n(4),b=Object(r.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(f.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"})),y=n(5),h=n.n(y),g=n(13),v=n.n(g),O=n(6),j=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},_=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|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)-.*))$/,w=j((function(e){return _.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));function x(){return(x=Object.assign||function(e){for(var t=1;t0?D(Y,--G):0,V--,10===q&&(V=1,I--),q}function J(){return q=G2||re(q)>3?"":" "}function se(e,t){for(;--t&&J()&&!(q<48||q>102||q>57&&q<65||q>70&&q<97););return ne(e,te()+(t<6&&32==ee()&&32==J()))}function le(e,t){for(;J()&&e+q!==57&&(e+q!==84||47!==ee()););return"/*"+ne(t,G-1)+"*"+M(47===e?e:J())}function ue(e){for(;!re(ee());)J();return ne(e,G)}function pe(e,t,n,r,a,i,c,o,s,l,u){for(var p=a-1,m=0===a?i:[""],d=U(m),f=0,b=0,y=0;f0?m[h]+" "+g:F(g,/&\f/g,m[h])))&&(s[y++]=v);return X(e,t,n,0===a?z:o,s,l,u)}function me(e,t,n){return X(e,t,n,P,M(q),W(e,2,-2),0)}function de(e,t,n,r){return X(e,t,n,A,W(e,0,r),W(e,r+1,-1),r)}function fe(e,t){for(var n="",r=U(e),a=0;a-1&&!e.return)switch(e.type){case A:e.return=function e(t,n){switch(function(e,t){return(((t<<2^D(e,0))<<2^D(e,1))<<2^D(e,2))<<2^D(e,3)}(t,n)){case 5103:return C+"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 C+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return C+t+k+t+S+t+t;case 6828:case 4268:return C+t+S+t+t;case 6165:return C+t+S+"flex-"+t+t;case 5187:return C+t+F(t,/(\w+).+(:[^]+)/,C+"box-$1$2"+S+"flex-$1$2")+t;case 5443:return C+t+S+"flex-item-"+F(t,/flex-|-self/,"")+t;case 4675:return C+t+S+"flex-line-pack"+F(t,/align-content|flex-|-self/,"")+t;case 5548:return C+t+S+F(t,"shrink","negative")+t;case 5292:return C+t+S+F(t,"basis","preferred-size")+t;case 6060:return C+"box-"+F(t,"-grow","")+C+t+S+F(t,"grow","positive")+t;case 4554:return C+F(t,/([^-])(transform)/g,"$1"+C+"$2")+t;case 6187:return F(F(F(t,/(zoom-|grab)/,C+"$1"),/(image-set)/,C+"$1"),t,"")+t;case 5495:case 3959:return F(t,/(image-set\([^]*)/,C+"$1$`$1");case 4968:return F(F(t,/(.+:)(flex-)?(.*)/,C+"box-pack:$3"+S+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+C+t+t;case 4095:case 3583:case 4068:case 2532:return F(t,/(.+)-inline(.+)/,C+"$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(B(t)-1-n>6)switch(D(t,n+1)){case 109:if(45!==D(t,n+4))break;case 102:return F(t,/(.+:)(.+)-([^]+)/,"$1"+C+"$2-$3$1"+k+(108==D(t,n+3)?"$3":"$2-$3"))+t;case 115:return~L(t,"stretch")?e(F(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==D(t,n+1))break;case 6444:switch(D(t,B(t)-3-(~L(t,"!important")&&10))){case 107:return F(t,":",":"+C)+t;case 101:return F(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+C+(45===D(t,14)?"inline-":"")+"box$3$1"+C+"$2$3$1"+S+"$2box$3")+t}break;case 5936:switch(D(t,n+11)){case 114:return C+t+S+F(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return C+t+S+F(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return C+t+S+F(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return C+t+S+t+t}return t}(e.value,e.length);break;case $:return fe([Q(e,{value:F(e.value,"@","@"+C)})],r);case z:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return fe([Q(e,{props:[F(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return fe([Q(e,{props:[F(t,/:(plac\w+)/,":"+C+"input-$1")]}),Q(e,{props:[F(t,/:(plac\w+)/,":-moz-$1")]}),Q(e,{props:[F(t,/:(plac\w+)/,S+"input-$1")]})],r)}return""}))}}],_e=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||je,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&&B(x)-m&&Z(f>32?de(x+";",a,r,m-1):de(F(x," ","")+";",a,r,m-2),l);break;case 59:x+=";";default:if(Z(w=pe(x,n,r,u,p,i,s,O,j=[],_=[],m),c),123===v)if(0===p)e(x,n,w,w,j,c,m,s,_);else switch(d){case 100:case 109:case 115:e(t,w,w,a&&Z(pe(t,w,w,0,0,i,s,O,i,j=[],m),_),i,_,m,s,a?j:_);break;default:e(x,w,w,w,[""],_,0,s,_)}}u=p=f=0,y=g=1,O=x="",m=o;break;case 58:m=1+B(x),f=b;default:if(y<1)if(123==v)--y;else if(125==v&&0==y++&&125==K())continue;switch(x+=M(v),v*y){case 38:g=p>0?1:(x+="\f",-1);break;case 44:s[u++]=(B(x)-1)*g,g=1;break;case 64:45===ee()&&(x+=ce(J())),d=ee(),p=m=B(O=x+=ue(te())),v++;break;case 45:45===b&&2==B(x)&&(y=0)}}return c}("",null,null,null,[""],e=ae(e),0,[0],e))}(e?e+"{"+t.styles+"}":t.styles),p),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new E({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 we(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}n(27);var xe=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),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)}},Ee=function(e){for(var t,n=0,r=0,a=e.length;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)},Se={animationIterationCount: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},ke=/[A-Z]|^ms/g,Ce=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Pe=function(e){return 45===e.charCodeAt(1)},ze=function(e){return null!=e&&"boolean"!=typeof e},Ae=j((function(e){return Pe(e)?e:e.replace(ke,"-$&").toLowerCase()})),$e=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ce,(function(e,t,n){return Me={name:t,styles:n,next:Me},t}))}return 1===Se[e]||Pe(e)||"number"!=typeof t||0===t?t:t+"px"};function Ne(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 Me={name:n.name,styles:n.styles,next:Me},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Me={name:r.name,styles:r.styles,next:Me},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a96?We:Be},Ze=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},Ie=function(){return null},Ve=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=Ze(t,n,i),s=o||Ue(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,d=1;d 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"]))),rt=et(a.Popover)(qe||(qe=h()(["\n\t.components-popover__content {\n\t\tpadding: 20px;\n\t\twidth: 200px;\n\t}\n"]))),at=et(a.ToggleControl)(Ye||(Ye=h()(["\n\t&& {\n\t\t.components-base-control__field {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\t}\n"]))),it=n(28),ct=n.n(it),ot=et(a.Card)(Xe||(Xe=h()(["\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"]))),st=et(a.CardHeader)(Qe||(Qe=h()(["\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"]))),lt=et(a.CardFooter)(Ke||(Ke=h()(["\n\t&&& {\n\t\tpadding: 30px 0 0;\n\t}\n"]))),ut=et(a.CardBody)(Je||(Je=h()(["\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"]))),pt=["title","supTitle","children"];function mt(e){return Object(r.createElement)(ot,e)}function dt(e){var t=e.title,n=e.supTitle,a=e.children,i=ct()(e,pt);return Object(r.createElement)(st,i,Object(r.createElement)("div",null,n&&Object(r.createElement)("small",null,n),t&&Object(r.createElement)("h1",null,t)),a)}function ft(e){return Object(r.createElement)(lt,e)}function bt(e){return Object(r.createElement)(ut,e)}var yt,ht=simpaySetupWizard.adminUrl;function gt(e){var t=e.isFirst,n=Object(r.useState)(!1),c=l()(n,2),o=c[0],s=c[1];return Object(r.createElement)(a.Flex,{justify:"center"},o&&Object(r.createElement)(a.Modal,{title:Object(i.__)("Are you sure you want to exit the wizard?","simple-pay"),onRequestClose:function(){return s(!1)}},Object(r.createElement)("p",{style:{marginBottom:"2rem"}},Object(i.__)("Manual setup is only recommended for experienced users.","simple-pay")),Object(r.createElement)(a.Flex,null,Object(r.createElement)(a.Button,{href:ht,isDestructive:!0,variant:"destructive"},Object(i.__)("Exit Setup Wizard","simple-pay")),Object(r.createElement)(a.Button,{variant:"primary",isPrimary:!0,onClick:function(){return s(!1)}},Object(i.__)("Continue Setup","simple-pay")))),Object(r.createElement)(a.Button,{isLink:!0,variant:"link",className:"simpay-setup-wizard-subtle-link",onClick:function(){return s(!0)}},t?Object(i.__)("Go back to the Dashboard","simple-pay"):Object(i.__)("Close and exit the Setup Wizard","simple-pay")))}var vt=et(a.Button)(yt||(yt=h()(["\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"]))),Ot=Object(r.forwardRef)((function(e,t){return Object(r.createElement)(vt,v()({isPrimary:!0,variant:"primary"},e,{ref:t}))}));function jt(e){var t=e.width;return Object(r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1200 251",xmlSpace:"preserve",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2,style:{width:t}},Object(r.createElement)("path",{d:"M1141.285 88.98V78.438c0-13.067 10.682-23.724 23.789-23.724 13.106 0 23.788 10.657 23.788 23.724v10.544h6.649c2.494 0 4.536 1.995 4.496 4.518v39.162c0 2.485-2.042 4.519-4.537 4.519h-60.833c-2.495 0-4.537-2.034-4.537-4.52V93.5c0-2.483 2.032-4.514 4.537-4.518h6.648Zm49.66 39.124V97.98h-51.782v30.124h51.781ZM1175.342 0c6.991.004 12.694 5.688 12.694 12.653v32.571c0 2.486-2.042 4.52-4.536 4.52s-4.527-2.034-4.527-4.52v-9.036h-154.277v68.758c0 1.996 1.63 3.615 3.631 3.615h87.459c2.535 0 4.577 2.033 4.577 4.519s-2.042 4.52-4.537 4.52h-87.499c-6.99 0-12.693-5.687-12.693-12.654V12.653c0-6.965 5.662-12.649 12.693-12.653h147.015Zm-106.197 81.412c2.494.004 4.536 2.035 4.536 4.519s-2.042 4.518-4.536 4.518h-21.787c-2.494 0-4.536-2.034-4.536-4.518s2.042-4.515 4.536-4.52h21.787Zm110.653 7.53V78.4c0-8.096-6.608-14.685-14.725-14.685-8.118 0-14.726 6.589-14.726 14.685v10.543h29.451Zm-77.983-23.723c2.494.005 4.526 2.037 4.526 4.52a4.513 4.513 0 0 1-4.526 4.518h-54.457c-2.494 0-4.536-2.033-4.536-4.518 0-2.483 2.042-4.515 4.536-4.52h54.457Zm-.533-16.38c2.504.005 4.536 2.037 4.536 4.52 0 2.485-2.042 4.518-4.536 4.518h-54.457a4.513 4.513 0 0 1-4.526-4.519c0-2.482 2.031-4.514 4.526-4.519h54.457Zm77.691-21.689V12.653a3.625 3.625 0 0 0-3.63-3.615h-147.016c-2.001 0-3.671 1.62-3.671 3.615V27.15h154.317Z",fill:"#428bca"}),Object(r.createElement)("path",{d:"m1082.047 217.635-11.642 29.874c-.394.922-1.381 1.66-2.96 2.212-1.578.37-3.946.738-7.103.738-1.578 0-2.96-.184-3.946-.184-1.184-.185-1.973-.554-2.368-.922-.592-.37-.987-.738-.987-1.291 0-.738 0-1.475.395-2.213l12.036-28.214c-.592-.185-1.184-.553-1.578-1.107-.592-.553-.987-1.106-1.184-1.844l-30.781-77.45c-.592-1.106-.79-2.213-.79-2.95 0-.738.198-1.291.79-1.66.394-.369 1.184-.738 2.368-.922 1.183 0 2.762-.185 4.735-.185 1.776 0 3.354 0 4.538.185.987 0 1.973.184 2.565.553.592.185.987.553 1.382.922.197.553.592 1.107.789 1.844l24.862 65.095h.197l24.072-65.464c.198-1.106.79-1.844 1.381-2.212a11.34 11.34 0 0 1 2.368-.738c1.184 0 2.763-.185 4.736-.185 1.776 0 3.354.185 4.34.185 1.185.184 2.171.553 2.566.922.592.369.986.922.986 1.66 0 .737-.197 1.66-.592 2.766l-31.175 80.585Zm-59.528-2.213c0 .738-.394 1.29-.789 1.66-.592.368-1.184.553-2.17.737-.79.185-2.17.37-3.947.37-1.578 0-2.96-.185-3.946-.37-.987-.184-1.776-.369-2.17-.737-.395-.37-.79-.922-.79-1.66v-8.114c-3.749 3.873-7.892 6.823-12.628 8.852-4.538 2.212-9.47 3.135-14.798 3.135-4.539 0-8.682-.554-12.234-1.66-3.749-1.107-6.906-2.582-9.471-4.795-2.762-2.028-4.736-4.61-6.117-7.745-1.38-2.95-2.17-6.454-2.17-10.51 0-4.427.986-8.483 2.96-11.803s4.932-6.085 8.681-8.298c3.552-2.213 8.288-3.873 13.615-4.979a89.464 89.464 0 0 1 18.153-1.844h12.036v-6.27c0-3.135-.394-5.9-1.184-8.298-.592-2.397-1.776-4.241-3.354-5.901-1.579-1.66-3.552-2.766-6.117-3.688-2.565-.738-5.525-1.107-9.274-1.107-3.946 0-7.498.37-10.457 1.291-3.157.922-5.92 1.844-8.287 2.95-2.368.923-4.341 1.845-5.92 2.767-1.578.922-2.762 1.29-3.354 1.29-.592 0-.987 0-1.381-.368a1.93 1.93 0 0 1-.987-1.107c-.395-.368-.592-1.106-.79-1.844 0-.737-.197-1.475-.197-2.397 0-1.475.198-2.766.395-3.504.197-.922.79-1.844 1.579-2.581.986-.738 2.367-1.66 4.538-2.766 2.17-.922 4.538-2.029 7.3-2.766 2.763-.922 5.92-1.66 9.077-2.213 3.354-.554 6.511-.922 9.866-.922 6.314 0 11.641.737 15.982 2.028 4.341 1.291 7.893 3.32 10.655 5.901 2.565 2.397 4.538 5.717 5.722 9.405 1.381 3.872 1.973 8.298 1.973 13.277v54.584Zm-15.785-36.881H993.12c-4.34 0-8.287.184-11.444.922s-5.92 1.66-7.892 3.135c-2.17 1.29-3.75 2.95-4.736 4.794-.986 1.844-1.578 4.057-1.578 6.639 0 4.057 1.578 7.56 4.34 9.958 2.96 2.582 6.907 3.688 12.037 3.688 4.143 0 8.09-.922 11.641-2.95 3.552-2.029 7.3-4.98 11.247-9.036v-17.15Zm-63.44-43.335c0 5.9-.987 11.064-2.96 15.858-2.17 4.61-5.13 8.668-8.88 11.987-3.946 3.32-8.484 5.716-14.009 7.56-5.722 1.845-12.233 2.767-19.928 2.767H883.31v41.86c0 .553-.197.922-.395 1.29-.394.37-.789.738-1.38.922-.593.185-1.382.37-2.566.554-.987.184-2.368.184-3.946.184-1.579 0-2.96 0-3.947-.184-1.183-.185-1.973-.37-2.565-.554-.592-.184-1.184-.553-1.38-.922-.198-.368-.395-.737-.395-1.29V107.729c0-2.397.591-4.057 1.973-5.163 1.38-.922 2.96-1.475 4.538-1.475h26.637c2.763 0 5.328.184 7.893.368a63.42 63.42 0 0 1 8.682 1.291 38.896 38.896 0 0 1 10.26 3.873c3.552 1.844 6.512 4.241 9.077 7.007 2.367 2.766 4.143 5.901 5.524 9.59 1.382 3.687 1.974 7.56 1.974 11.986Zm-17.364 1.29c0-4.794-.987-8.667-2.96-11.802-1.776-3.319-4.143-5.716-6.906-7.191-2.762-1.476-5.722-2.582-8.682-2.95-2.96-.37-5.92-.738-8.681-.738H883.31v46.839h14.996c4.933 0 9.076-.554 12.43-1.844 3.355-1.107 6.117-2.767 8.288-4.98 2.368-2.212 3.946-4.61 5.13-7.56 1.184-3.135 1.776-6.27 1.776-9.774ZM805.708 171.35c0 2.397-.592 4.057-1.973 4.979-1.184.922-2.763 1.475-4.341 1.475H742.37c0 4.61.394 8.667 1.381 12.171.987 3.688 2.565 6.639 4.933 9.22 2.17 2.582 5.13 4.61 8.682 6.086 3.749 1.29 8.09 2.028 13.417 2.028 4.144 0 7.695-.369 11.05-.922 3.157-.737 5.92-1.475 8.287-2.213a77.69 77.69 0 0 0 5.722-2.028c1.579-.738 2.762-.922 3.552-.922.394 0 .789 0 1.184.184.394.185.592.553.789.922.197.553.394 1.107.394 1.844.198.738.198 1.66.198 2.766v2.029c-.198.553-.198 1.106-.395 1.475 0 .553-.197.922-.394 1.29-.198.37-.592.739-.79.923-.394.369-1.381.922-3.157 1.66-1.776.737-3.946 1.475-6.708 2.212a94.74 94.74 0 0 1-9.669 2.029c-3.552.553-7.498.738-11.641.738-7.104 0-13.418-.923-18.745-2.767-5.328-1.844-9.866-4.61-13.418-8.298-3.749-3.688-6.511-8.298-8.287-13.646-1.973-5.532-2.96-11.986-2.96-19.362 0-7.008.987-13.278 2.96-18.81 1.973-5.532 4.736-10.142 8.287-14.015 3.75-3.872 8.09-7.007 13.22-9.035 5.13-2.029 10.853-3.135 17.167-3.135 6.906 0 12.628 1.106 17.363 3.135 4.933 2.028 8.88 4.794 11.84 8.298 3.156 3.32 5.327 7.376 6.905 12.17a51.475 51.475 0 0 1 2.17 14.753v2.766Zm-15.983-4.426c.198-7.745-1.776-13.83-5.722-18.44-3.749-4.426-9.668-6.639-17.364-6.639-3.946 0-7.3.738-10.26 2.213-2.96 1.29-5.525 3.135-7.498 5.348-1.973 2.397-3.552 4.979-4.735 8.114-.987 2.95-1.579 6.085-1.776 9.404h47.355Zm-82.18 48.499c0 .369 0 .922-.394 1.106-.197.37-.592.738-1.184.922s-1.381.37-2.368.554c-.986.184-2.368.184-3.946.184-1.579 0-2.96 0-3.946-.184-.987-.185-1.776-.37-2.368-.554-.592-.184-.987-.553-1.381-.922-.198-.184-.198-.737-.198-1.106V95.005c0-.369 0-.737.198-1.106.394-.369.789-.738 1.38-.922.593-.37 1.382-.553 2.369-.553.986-.185 2.367-.185 3.946-.185 1.578 0 2.96 0 3.946.185.987 0 1.776.184 2.368.553.592.184.987.553 1.184.922.395.369.395.737.395 1.106v120.417Zm-34.41-41.86c0 7.192-.789 13.462-2.367 19.178-1.776 5.532-4.144 10.327-7.3 14.384-3.158 3.872-7.104 6.823-11.84 9.036-4.735 2.028-10.063 3.135-15.982 3.135-2.565 0-4.933-.185-7.3-.738-2.171-.369-4.144-1.107-6.315-2.213-2.17-.922-4.144-2.213-6.314-3.872-1.973-1.476-4.144-3.32-6.511-5.533v40.57c0 .553 0 .922-.395 1.29-.197.37-.592.738-1.184.922-.592.185-1.381.37-2.368.554-.986 0-2.367.184-3.946.184-1.578 0-2.96-.184-3.946-.184-.987-.185-1.776-.37-2.368-.554-.592-.184-.987-.553-1.381-.922-.198-.368-.198-.737-.198-1.29V134.284c0-.554 0-.922.198-1.291.197-.37.592-.553 1.184-.738.592-.369 1.38-.553 2.17-.553.987-.185 1.973-.185 3.354-.185 1.382 0 2.368 0 3.355.185.79 0 1.578.184 2.17.553.592.185.987.369 1.184.738.197.369.395.737.395 1.29v10.88c2.565-2.397 5.13-4.61 7.498-6.454 2.368-1.844 4.933-3.503 7.3-4.61 2.565-1.29 5.13-2.213 7.696-2.95 2.565-.554 5.327-.922 8.287-.922 6.314 0 11.641 1.29 15.982 3.503 4.539 2.213 8.09 5.348 10.853 9.405 2.762 3.873 4.933 8.483 6.116 13.83 1.382 5.164 1.974 10.696 1.974 16.597Zm-16.377 1.844c0-4.241-.394-8.298-1.183-12.17-.592-3.873-1.776-7.193-3.355-10.327-1.776-2.951-3.946-5.348-6.708-7.192-2.763-1.66-6.315-2.582-10.458-2.582-1.973 0-3.946.184-6.117.738-1.973.553-3.946 1.475-5.92 2.766-2.17 1.29-4.34 2.766-6.51 4.794-2.369 2.029-4.736 4.61-7.301 7.56v32.087c4.538 4.98 8.681 8.852 12.628 11.434 3.946 2.766 8.09 4.057 12.43 4.057 3.947 0 7.301-.922 10.26-2.767 2.763-1.66 5.131-4.056 6.907-7.191a32.374 32.374 0 0 0 3.946-9.958c.79-3.873 1.381-7.56 1.381-11.249Zm-86.981 40.016c0 .369-.197.922-.395 1.106-.394.37-.79.738-1.381.922-.592.185-1.381.37-2.368.554-.986.184-2.368.184-3.749.184-1.776 0-2.96 0-3.946-.184-1.184-.185-1.973-.37-2.565-.554-.592-.184-.987-.553-1.381-.922-.198-.184-.198-.737-.198-1.106v-49.236c0-3.504-.394-6.639-.986-9.405-.79-2.766-1.776-5.348-3.157-7.376-1.381-2.029-3.157-3.504-5.328-4.61-2.17-1.107-4.735-1.66-7.695-1.66-3.749 0-7.498 1.29-11.05 4.057-3.749 2.582-7.892 6.454-12.233 11.618v56.612c0 .369-.197.922-.395 1.106-.197.37-.789.738-1.381.922-.592.185-1.381.37-2.368.554-.986.184-2.368.184-3.946.184-1.381 0-2.762 0-3.749-.184a55.016 55.016 0 0 1-2.565-.554c-.592-.184-.987-.553-1.184-.922-.197-.184-.395-.737-.395-1.106v-49.236c0-3.504-.197-6.639-.986-9.405-.79-2.766-1.776-5.348-3.157-7.376-1.381-2.029-3.157-3.504-5.328-4.61-2.17-1.107-4.735-1.66-7.695-1.66-3.749 0-7.3 1.29-11.05 4.057-3.749 2.582-7.892 6.454-12.233 11.618v56.612c0 .369 0 .922-.395 1.106-.197.37-.592.738-1.184.922s-1.38.37-2.367.554c-.987.184-2.368.184-3.947.184-1.578 0-2.96 0-3.946-.184-.987-.185-1.776-.37-2.368-.554-.592-.184-.986-.553-1.381-.922-.197-.184-.197-.737-.197-1.106v-81.138c0-.37 0-.738.197-1.107s.592-.737 1.184-.922c.592-.369 1.381-.553 2.17-.553.987-.185 2.17-.185 3.552-.185 1.381 0 2.565 0 3.552.185.986 0 1.776.184 2.17.553.592.185.987.553 1.184.922.197.369.197.738.197 1.107v10.695c4.933-4.979 9.669-8.667 14.207-11.064 4.736-2.398 9.274-3.688 14.01-3.688 3.551 0 6.905.368 9.668 1.29 2.96.738 5.327 1.845 7.498 3.32 2.367 1.29 4.143 2.95 5.722 4.979 1.578 1.844 2.762 4.057 3.749 6.454a95.95 95.95 0 0 1 8.287-7.376 53.41 53.41 0 0 1 7.498-4.98c2.368-1.29 4.736-2.212 7.103-2.765 2.17-.554 4.539-.922 6.906-.922 5.525 0 10.26.922 14.01 2.766 3.749 1.844 6.906 4.241 9.273 7.376 2.17 3.135 3.947 6.639 4.933 10.695.987 4.242 1.579 8.483 1.579 13.093v51.265Zm-152.818 0c0 .369 0 .922-.395 1.106-.197.37-.592.738-1.184.922s-1.381.37-2.368.554c-.986.184-2.368.184-3.946.184-1.579 0-2.96 0-3.946-.184-.987-.185-1.776-.37-2.368-.554-.592-.184-.987-.553-1.381-.922-.198-.184-.198-.737-.198-1.106v-81.138c0-.37 0-.738.198-1.107.394-.369.789-.737 1.38-.922.593-.184 1.382-.369 2.369-.553.986 0 2.367-.185 3.946-.185 1.578 0 2.96.185 3.946.185.987.184 1.776.369 2.368.553.592.185.987.553 1.184.922.395.369.395.738.395 1.107v81.138Zm1.973-108.43c0 3.503-.79 5.9-2.17 7.007-1.382 1.29-4.144 2.028-7.893 2.028-3.75 0-6.314-.737-7.696-1.844-1.38-1.29-1.973-3.688-1.973-7.007 0-3.504.79-5.901 2.17-7.192 1.382-1.29 3.947-1.844 7.696-1.844 3.749 0 6.314.553 7.695 1.844 1.381 1.291 2.17 3.504 2.17 7.008Zm-34.426 78.003c0 5.348-.987 10.327-3.158 14.568-2.17 4.241-5.13 7.93-8.879 10.88-3.946 2.95-8.484 5.163-13.614 6.639-5.13 1.475-10.655 2.213-16.772 2.213-4.144 0-7.893-.37-11.444-.923-3.552-.737-6.906-1.475-9.669-2.397-2.762-.922-5.13-2.028-6.906-2.95-1.973-1.107-3.354-2.029-3.946-2.766-.79-.554-1.381-1.476-1.776-2.582a27.177 27.177 0 0 1-.395-4.61c0-1.291 0-2.397.198-3.135 0-.922.197-1.66.592-2.213.197-.553.592-.922.789-1.106.395-.185.987-.37 1.381-.37.987 0 2.17.554 3.946 1.66 1.579.922 3.75 2.029 6.315 3.32 2.565 1.106 5.524 2.213 9.273 3.32 3.552 1.106 7.696 1.474 12.431 1.474 3.75 0 6.906-.368 9.866-1.29 3.157-.923 5.722-2.213 7.892-3.873 1.974-1.66 3.75-3.688 4.933-6.085 1.184-2.398 1.579-4.98 1.579-8.114 0-3.32-.79-6.086-2.368-8.483-1.578-2.397-3.749-4.426-6.314-6.085-2.565-1.844-5.722-3.504-9.076-4.98-3.355-1.474-6.71-2.95-10.26-4.425-3.552-1.475-6.907-3.32-10.261-5.163-3.355-1.844-6.314-4.057-9.077-6.455-2.565-2.581-4.735-5.532-6.314-8.851-1.776-3.504-2.565-7.56-2.565-12.355 0-4.795.987-9.036 2.96-12.909 1.776-3.872 4.538-7.007 7.892-9.589 3.355-2.581 7.301-4.61 12.037-5.9 4.538-1.291 9.668-2.03 14.996-2.03 2.762 0 5.524.185 8.287.739 2.96.368 5.525.922 7.892 1.66 2.565.737 4.736 1.659 6.71 2.58 1.972.923 3.156 1.66 3.748 2.214.592.553.987 1.106 1.184 1.475.197.184.395.738.592 1.106 0 .554.197 1.107.197 1.844.198.738.198 1.66.198 2.767 0 1.106-.198 2.212-.198 2.95-.197.922-.197 1.66-.394 2.213-.198.553-.592.922-.79 1.106-.394.37-.789.554-1.184.554-.789 0-1.973-.554-3.354-1.291-1.578-.922-3.354-1.844-5.525-2.95-2.17-.923-4.933-1.845-7.892-2.767-2.96-.922-6.314-1.29-10.063-1.29-3.355 0-6.512.368-9.077 1.29-2.565.922-4.538 2.029-6.314 3.504-1.578 1.29-2.96 3.135-3.749 4.979-.79 2.028-1.184 4.241-1.184 6.454 0 3.135.79 5.901 2.368 8.298 1.579 2.398 3.749 4.426 6.314 6.27 2.762 1.66 5.722 3.32 9.274 4.979 3.354 1.475 6.709 2.95 10.26 4.426 3.552 1.66 7.104 3.319 10.458 5.163 3.354 1.66 6.511 3.873 9.076 6.454 2.763 2.398 4.933 5.348 6.512 8.852 1.578 3.319 2.368 7.376 2.368 11.986Zm-127.083-49.79c0 5.902-.987 11.065-2.96 15.86-2.17 4.61-5.13 8.667-8.88 11.986-3.946 3.32-8.484 5.716-14.009 7.56-5.722 1.845-12.233 2.767-19.928 2.767h-14.207v41.86c0 .553-.197.922-.395 1.29-.394.37-.789.738-1.38.922-.593.185-1.382.37-2.566.554-.987.184-2.368.184-3.946.184-1.579 0-2.96 0-3.947-.184-1.183-.185-1.973-.37-2.565-.554-.592-.184-1.184-.553-1.38-.922-.198-.368-.395-.737-.395-1.29v-107.51c0-2.397.591-4.057 1.973-5.163 1.38-.922 2.96-1.475 4.538-1.475h26.637c2.763 0 5.328.184 7.893.368a63.42 63.42 0 0 1 8.682 1.291 38.896 38.896 0 0 1 10.26 3.873c3.552 1.844 6.512 4.241 9.077 7.007 2.367 2.766 4.143 5.901 5.524 9.59 1.382 3.687 1.974 7.56 1.974 11.986Zm-17.364 1.291c0-4.794-.987-8.667-2.96-11.802-1.776-3.319-4.143-5.716-6.906-7.191-2.762-1.476-5.722-2.582-8.682-2.95-2.96-.37-5.92-.738-8.681-.738h-15.391v46.839h14.996c4.933 0 9.076-.554 12.43-1.844 3.355-1.107 6.117-2.767 8.288-4.98 2.368-2.212 3.946-4.61 5.13-7.56 1.184-3.135 1.776-6.27 1.776-9.774Zm-110.032 77.635c-.197.922-.592 1.66-1.184 2.029-.394.553-1.184.922-2.17 1.29-.79.185-1.973.37-3.157.554-1.381.184-2.96.184-4.933.184-1.973 0-3.749 0-5.13-.184-1.381-.185-2.565-.37-3.355-.554-.986-.368-1.578-.737-1.973-1.29-.592-.37-.789-1.107-1.184-2.029L80.896 126.17h-.197l-24.073 87.96c-.197.922-.592 1.66-.986 2.029-.395.553-1.184.922-1.974 1.29-.789.185-1.775.37-3.157.554-1.38.184-2.96.184-5.13.184-1.973 0-3.749 0-5.327-.184-1.381-.185-2.565-.37-3.355-.554-.986-.368-1.578-.737-2.17-1.29-.395-.37-.79-1.107-.987-2.029L.59 106.623c-.395-1.475-.592-2.398-.592-3.32 0-.737.197-1.29.79-1.66.591-.552 1.38-.737 2.564-.921 1.381 0 2.96-.185 4.933-.185 1.973 0 3.552 0 4.736.185 1.184 0 2.17.184 2.762.553.592.184.987.553 1.184.922.197.369.395.922.592 1.66l28.019 97.55 26.637-97.366c.197-.738.395-1.29.79-1.66.197-.553.591-.922 1.38-1.106.592-.184 1.579-.369 2.763-.553 1.184 0 2.762-.185 4.538-.185 1.776 0 3.355.185 4.341.185.987.184 1.973.369 2.565.553.592.184 1.184.553 1.381 1.106.395.37.592.922.79 1.66l28.61 97.366h.198l27.426-97.55c.198-.554.395-1.107.592-1.476.198-.553.592-.922 1.184-1.106.592-.184 1.381-.369 2.565-.553 1.184 0 2.565-.185 4.538-.185 1.974 0 3.355.185 4.539.185 1.184.184 1.973.553 2.367.922.592.369.79 1.106.79 1.844 0 .737-.198 1.844-.592 3.135L130.027 214.13Z",fill:"#428bca",fillRule:"nonzero"}))}var _t=n(8);function wt(e){var t=Object(_t.useSelect)((function(e){return Object(u.filter)(e("core/notices").getNotices(),{type:"snackbar"})}),[]),n=Object(_t.useDispatch)("core/notices").removeNotice;return 0===t.length?null:Object(r.createElement)(a.SnackbarList,v()({onRemove:n,notices:t},e))}var xt,Et,St,kt,Ct,Pt=n(39),zt=et.div(xt||(xt=h()(["\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"]))),At={current:"var(--wp-admin-theme-color)",complete:"var(--wp-admin-theme-color)",incomplete:"#c0c0c0"},$t=et.div(Et||(Et=h()(["\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 At[e.status]}),(function(e){return e.isComplete?"1":"0"}),(function(e){var t=e.isCurrent,n=e.isComplete;return t&&!n?"1":"0"})),Nt=et.div(St||(St=h()(["\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"]))),Mt=et.div(kt||(kt=h()(["\n\twidth: 100%;\n\theight: 2px;\n\tbackground-color: rgba( 192, 192, 192, 0.5 );\n\twidth: 100px;\n"])));function Rt(e){for(var t=e.current,n=e.total,a=[],i=1;i<=n;i++){var c="incomplete";i * {\n\t\tmargin: 25px 0;\n\t}\n"])));function Lt(e){return Object(r.createElement)(Ft,e)}var Dt=et(a.Button)(Tt||(Tt=h()(["\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"]))),Wt=Object(r.forwardRef)((function(e,t){return Object(r.createElement)(Dt,v()({isPrimary:!0,variant:"primary"},e,{ref:t}))}));function Bt(){return Object(r.createElement)("svg",{width:56,height:23,fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.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 Ut=n(18),Zt=n.n(Ut);function It(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 Vt(e){for(var t=1;tWP Simple Pay account or purchase receipt email.","simple-pay"),{strong:Object(r.createElement)("strong",null),a:Object(r.createElement)("a",{href:an,target:"_blank",rel:"noopener noreferrer"})})),Object(r.createElement)(a.TextControl,{label:Object(i.__)("License Key","simple-pay"),value:o,className:j,onChange:function(e){return s(e)},disabled:d,help:h||Object(i.__)("An active license ensures automatic updates and the latest features.","simple-pay"),ref:O})),Object(r.createElement)(ft,{justify:"flex-end",align:"center"},Object(r.createElement)(Ot,{onClick:function(){f(!0);var e=new FormData;e.append("action","simpay_activate_license"),e.append("nonce",cn),e.append("license",o),m()({url:rn,method:"POST",body:e}).then((function(e){var n=e.success,r=e.data.message;if(!n)throw{message:r};v(Object(i.__)("License activated","simple-pay"),{type:"snackbar"}),f(!1),t()})).catch((function(e){var t=e.message;g(t),f(!1)}))},disabled:""===o||d,isBusy:d},Object(i.__)("Activate and Continue →","simple-pay"))))}},{id:"stripe",title:Object(i.__)("Connect to Stripe","simple-pay"),content:Cn},{id:"emails",title:Object(i.__)("Configure Emails","simple-pay"),content:function(e){var t=e.goPrev,n=e.goNext,c=Gt(),o=c.settings,s=c.rawSettings,l=c.discardChanges,p=c.editSettings,m=c.saveSettings,d=Object(r.useRef)();if(Object(r.useLayoutEffect)((function(){d.current&&d.current.focus()}),[s]),Object(u.isEmpty)(o))return Object(r.createElement)(bt,null,Object(r.createElement)(a.Spinner,null));var f=o["email_payment-confirmation"],b=o["email_upcoming-invoice"],y=o["email_payment-notification"],h=o["email_payment-notification_to"];return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(bt,null,Object(r.createElement)("ul",{className:"simpay-setup-wizard-toggle-list"},Object(r.createElement)("li",null,Object(r.createElement)("label",{htmlFor:"email_payment-confirmation"},Object(r.createElement)("h3",null,Object(i.__)("Payment Receipt","simple-pay")),Object(r.createElement)("p",null,Object(i.__)("Send a payment receipt email to the customer upon successful payment.","simple-pay"))),Object(r.createElement)(a.FormToggle,{id:"email_payment-confirmation",checked:"no"!==f,onChange:function(e){var t=e.target;return p({"email_payment-confirmation":t.checked?"yes":"no"})}})),Object(r.createElement)("li",null,Object(r.createElement)("label",{htmlFor:"email_upcoming-invoice"},Object(r.createElement)("h3",null,Object(i.__)("Upcoming Invoice","simple-pay")),Object(r.createElement)("p",null,Object(i.__)("Remind customers of upcoming invoices and allow payment method changes.","simple-pay"))),Object(r.createElement)(a.FormToggle,{id:"email_upcoming-invoice",checked:"no"!==b,onChange:function(e){var t=e.target;return p({"email_upcoming-invoice":t.checked?"yes":"no"})}})),Object(r.createElement)("li",null,Object(r.createElement)("label",{htmlFor:"email_payment-notification"},Object(r.createElement)("h3",null,Object(i.__)("Payment Notification","simple-pay")),Object(r.createElement)("p",null,Object(i.__)("Receive an email notification when a new payment is made.","simple-pay"))),Object(r.createElement)(a.FormToggle,{id:"email_payment-notification",checked:"no"!==y,onChange:function(e){var t=e.target;return p({"email_payment-notification":t.checked?"yes":"no"})}})),"no"!==y&&Object(r.createElement)("li",{className:"simpay-setup-wizard-toggle-list__child"},Object(r.createElement)(a.TextControl,{label:Object(i.__)("Send to:","simple-pay"),value:h,onChange:function(e){return p({"email_payment-notification_to":e})}})))),Object(r.createElement)(ft,{justify:"space-between",align:"center"},Object(r.createElement)("div",null,Object(r.createElement)(a.Button,{isLink:!0,variant:"link",onClick:t,className:"simpay-setup-wizard-subtle-link"},Object(i.__)("← Previous Step","simple-pay"))),Object(r.createElement)("div",{style:{display:"flex",justifyContent:"center"}},Object(r.createElement)(a.Button,{isLink:!0,variant:"link",onClick:function(){l(),n()},style:{marginRight:"16px"},className:"simpay-setup-wizard-subtle-link"},Object(i.__)("Skip Step","simple-pay")),Object(r.createElement)(Ot,{onClick:function(){m(),n()},ref:d},Object(i.__)("Save and Continue →","simple-pay")))))}},{id:"next-steps",title:Object(i.__)("🎉 Setup Complete","simple-pay"),content:function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(bt,null,Object(r.createElement)("div",{className:"simpay-setup-wizard-content-list"},Object(r.createElement)("div",{className:"simpay-setup-wizard-content-list__content"},Object(r.createElement)("p",null,Object(i.__)("Congratulations, you’re ready to start accepting payments!","simple-pay")),Object(r.createElement)("p",null,Object(i.__)("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:","simple-pay"))),Object(r.createElement)("div",{className:"simpay-setup-wizard-content-list__list"},Object(r.createElement)("ul",{className:"simpay-setup-wizard-bullet-list"},Object(r.createElement)("li",null,Object(r.createElement)("a",{href:vn,target:"_blank",rel:"noopener noreferrer"},Object(i.__)("Collect tax or GST","simple-pay"))),Object(r.createElement)("li",null,Object(r.createElement)("a",{href:On,target:"_blank",rel:"noopener noreferrer"},Object(i.__)("Add anti-spam protection","simple-pay"))),Object(r.createElement)("li",null,Object(r.createElement)("a",{href:jn,target:"_blank",rel:"noopener noreferrer"},Object(i.__)("Change the default currency","simple-pay"))),Object(r.createElement)("li",null,Object(r.createElement)("a",{href:wn,target:"_blank",rel:"noopener noreferrer"},Object(i.__)("Customize receipts","simple-pay")))))),Object(r.createElement)("hr",null),Object(r.createElement)("div",{className:"simpay-setup-wizard-doc-suggestions"},Object(r.createElement)("div",null,Object(r.createElement)("h3",null,Object(i.__)("Accept Donations","simple-pay")),Object(r.createElement)("p",null,Object(i.__)("Easily fundraise or accept donations online via 135+ supported currencies. Offer one-time or recurring donations of fixed or user-defined amounts.","simple-pay")),Object(r.createElement)(a.Button,{href:xn,variant:"secondary",isSecondary:!0,target:"_blank",rel:"noopener noreferrer"},Object(i.__)("View Walkthrough","simple-pay"))),Object(r.createElement)("div",null,Object(r.createElement)("h3",null,Object(i.__)("Reconcile Invoices","simple-pay")),Object(r.createElement)("p",null,Object(i.__)("Collect additional custom data on your payment forms such as an Invoice ID to reconcile invoices against your own invoicing system.","simple-pay")),Object(r.createElement)(a.Button,{href:En,variant:"secondary",isSecondary:!0,target:"_blank",rel:"noopener noreferrer"},Object(i.__)("View Walkthrough","simple-pay"))))),Object(r.createElement)(ft,{justify:"space-between",align:"center"},Object(r.createElement)("div",{style:{flexBasis:"100%"}},Object(r.createElement)(a.Button,{isLink:!0,variant:"link",href:hn,className:"simpay-setup-wizard-subtle-link",icon:Object(r.createElement)(d.a,{icon:sn})},Object(i.__)("Return to Dashboard","simple-pay"))),Object(r.createElement)(a.Flex,{justify:"flex-end",gap:4},Object(r.createElement)(Ot,{href:gn},Object(i.__)("Create a Payment Form →","simple-pay")))))}}],lite:[{id:"stripe",title:Object(i.__)("Connect to Stripe","simple-pay"),content:Cn},{id:"analytics",title:Object(i.__)("Help Improve WP Simple Pay + Smart Recommendations","simple-pay"),content:function(e){var t=e.goPrev,n=e.goNext,c=Gt(),o=c.settings,s=c.rawSettings,p=c.discardChanges,f=c.editSettings,y=c.saveSettings,h=Object(r.useState)(!0),g=l()(h,2),v=g[0],O=g[1],j=Object(r.useState)(Yt),_=l()(j,2),w=_[0],x=_[1],E=Object(r.useState)(!1),S=l()(E,2),k=S[0],C=S[1],P=Object(r.useState)(!1),z=l()(P,2),A=z[0],$=z[1],N=Object(r.useRef)();return Object(r.useLayoutEffect)((function(){N.current&&N.current.focus()}),[s]),Object(u.isEmpty)(o)?Object(r.createElement)(bt,null,Object(r.createElement)(a.Spinner,null)):Object(r.createElement)(r.Fragment,null,Object(r.createElement)(bt,null,Object(r.createElement)("p",null,Object(i.__)("Get helpful suggestions from WP Simple Pay on how to optimize your payment forms and grow your business or increase donations.","simple-pay")),Object(r.createElement)(a.TextControl,{label:Object(i.__)("Your Email Address:","simple-pay"),value:w,className:"simpay-setup-wizard-large-input",onChange:function(e){return x(e)},help:Object(i.__)("Your email is needed so you receive recommendations.","simple-pay"),ref:N,disabled:k}),Object(r.createElement)("hr",null),Object(r.createElement)(tt,null,Object(r.createElement)(nt,null,Object(i.__)("Help make WP Simple Pay better for everyone","simple-pay"),Object(r.createElement)("div",null,A&&Object(r.createElement)(rt,{position:"top center"},Object(i.__)("By allowing us to track usage data we can better help you because we know which WordPress configurations, themes, and plugins we should test.","simple-pay")),Object(r.createElement)(d.a,{size:20,icon:b,onMouseEnter:function(){return $(!0)},onMouseLeave:function(){return $(!1)}}))),Object(r.createElement)(at,{label:Object(i.__)("Yes, count me in","simple-pay"),id:"email_payment-confirmation",checked:v,disabled:k,onChange:function(e){O(e)}}))),Object(r.createElement)(ft,{justify:"space-between",align:"center"},Object(r.createElement)("div",null,Object(r.createElement)(a.Button,{isLink:!0,variant:"link",onClick:t,className:"simpay-setup-wizard-subtle-link",disabled:k},Object(i.__)("← Previous Step","simple-pay"))),Object(r.createElement)("div",{style:{display:"flex",justifyContent:"center"}},Object(r.createElement)(a.Button,{isLink:!0,variant:"link",onClick:function(){p(),n()},style:{marginRight:"16px"},className:"simpay-setup-wizard-subtle-link",disabled:k},Object(i.__)("Skip Step","simple-pay")),Object(r.createElement)(Ot,{onClick:function(){C(!0),f({usage_tracking_opt_in:v?"yes":"no"}),y();var e=new FormData;e.append("action","simpay_setup_wizard_subscribe_email"),e.append("nonce",Xt),e.append("email",w),m()({url:Qt,method:"POST",body:e}).finally((function(){C(!1),n()}))},isBusy:k,disabled:k},Object(i.__)("Save and Continue →","simple-pay")))))}},{id:"next-steps",title:Object(i.__)("🎉 Setup Complete","simple-pay"),content:function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(bt,null,Object(r.createElement)(a.Flex,{justify:"space-between",align:"center",className:"simpay-setup-wizard-content-list"},Object(r.createElement)("div",{className:"simpay-setup-wizard-content-list__content"},Object(r.createElement)("p",null,Object(i.__)("Congratulations, you’re ready to start easily and securely accepting payments with WP Simple Pay!","simple-pay"))),Object(r.createElement)("div",null,Object(r.createElement)(Ot,{href:dn},Object(i.__)("Create a Payment Form →","simple-pay")))),Object(r.createElement)("hr",null),Object(r.createElement)(ln,null,Object(r.createElement)("h4",null,Object(i.__)("Special Upgrade Offer - Save 50%","simple-pay")),Object(r.createElement)("h3",null,Object(i.__)("Upgrade to WP Simple Pay Pro Today and Save","simple-pay")),Object(r.createElement)(un,{className:"simpay-setup-wizard-check-list"},bn.map((function(e){return Object(r.createElement)("li",{key:e},Object(r.createElement)(d.a,{icon:Pt.a}),e)}))),Object(r.createElement)(a.Button,{isLarge:!0,isSecondary:!0,variant:"secondary",href:fn,target:"_blank",rel:"noopener noreferrer"},Object(i.__)("Upgrade to WP Simple Pay Pro","simple-pay")))),Object(r.createElement)(ft,{justify:"center"},Object(r.createElement)(a.Button,{isLink:!0,variant:"link",href:mn,className:"simpay-setup-wizard-subtle-link",icon:Object(r.createElement)(d.a,{icon:sn})},Object(i.__)("Return to Dashboard","simple-pay"))))}}]},$n=simpaySetupWizard,Nn=$n.isLite,Mn=$n.adminUrl;Object(r.render)(Object(r.createElement)((function(){var e=An["1"===Nn?"lite":"pro"],t=function(e){var t=e.steps,n=e.currentStepId,a=t.findIndex((function(e){return e.id===n}))||0,i=Object(r.useState)(a),o=l()(i,2),s=o[0],u=o[1];function p(e){u(e),window.history.pushState({},"",Object(c.addQueryArgs)(window.location.href,{step:t[e].id}))}return Object(r.useEffect)((function(){var e=function(){var e=Object(c.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:s,setCurrentStep:u,hasNext:s0}}({steps:e,currentStepId:Object(c.getQueryArg)(window.location.href,"step")}),n=t.currentStep,s=t.goNext,u=t.goPrev,p=t.hasNext,m=t.hasPrev;if(-1===n)return Object(r.createElement)(zn,{steps:e,goNext:s});var d=e[n],f=d.content;return Object(r.createElement)(a.SlotFillProvider,null,Object(r.createElement)(o.EntityProvider,{kind:"root",type:"site"},Object(r.createElement)(Lt,null,Object(r.createElement)("a",{href:Mn},Object(r.createElement)(jt,{width:"250px"})),Object(r.createElement)(Rt,{current:n+1,total:e.length}),Object(r.createElement)(mt,{isRounded:!0},Object(r.createElement)(dt,{supTitle:Object(i.sprintf)( /* translators: %1$d current step count. %2$d total step count*/ -Object(i.__)("Step %1$d of %2$d","simple-pay"),n+1,e.length),title:f.title}),Object(r.createElement)(d,{steps:e,currentStep:n,goPrev:u,goNext:s,hasNext:p,hasPrev:m})),p&&Object(r.createElement)(ot,null)),Object(r.createElement)(mt,{className:"simpay-setup-wizard-toasts"}),Object(r.createElement)(a.Popover.Slot,null)))}),null),document.getElementById("simpay-setup-wizard"))}]); \ No newline at end of file +Object(i.__)("Step %1$d of %2$d","simple-pay"),n+1,e.length),title:d.title}),Object(r.createElement)(f,{steps:e,currentStep:n,goPrev:u,goNext:s,hasNext:p,hasPrev:m})),p&&Object(r.createElement)(gt,null)),Object(r.createElement)(wt,{className:"simpay-setup-wizard-toasts"}),Object(r.createElement)(a.Popover.Slot,null)))}),null),document.getElementById("simpay-setup-wizard"))}]); \ No newline at end of file diff --git a/includes/core/assets/js/simpay-admin-page-smtp.min.js b/includes/core/assets/js/simpay-admin-page-smtp.min.js index e64d6e99..f80ca557 100644 --- a/includes/core/assets/js/simpay-admin-page-smtp.min.js +++ b/includes/core/assets/js/simpay-admin-page-smtp.min.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=342)}({12:function(t,e){t.exports=jQuery},342: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(12))}}); \ 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=345)}({14:function(t,e){t.exports=jQuery},345: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(14))}}); \ No newline at end of file diff --git a/includes/core/assets/js/simpay-admin.min.js b/includes/core/assets/js/simpay-admin.min.js index dcb9f209..da6b8e9e 100644 --- a/includes/core/assets/js/simpay-admin.min.js +++ b/includes/core/assets/js/simpay-admin.min.js @@ -1 +1 @@ -!function(e){var t={};function n(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},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 a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(a,i,function(t){return e[t]}.bind(null,i));return a},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=331)}({107:function(e,t,n){var a=n(63);e.exports=function(e){if(Array.isArray(e))return a(e)},e.exports.__esModule=!0,e.exports.default=e.exports},108:function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},109:function(e,t,n){var a=n(63);e.exports=function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},110:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},12:function(e,t){e.exports=jQuery},13:function(e,t){var n=/^(?:submit|button|image|reset|file)$/i,a=/^(?:input|select|textarea|keygen)/i,i=/(\[[^\[\]]*\])/g;function r(e,t,n){if(t.match(i))!function e(t,n,a){if(0===n.length)return a;var i=n.shift(),r=i.match(/^\[(.+?)\]$/);if("[]"===i)return t=t||[],Array.isArray(t)?t.push(e(null,n,a)):(t._values=t._values||[],t._values.push(e(null,n,a))),t;if(r){var o=r[1],s=+o;isNaN(s)?(t=t||{})[o]=e(t[o],n,a):(t=t||[])[s]=e(t[s],n,a)}else t[i]=e(t[i],n,a);return t}(e,function(e){var t=[],n=new RegExp(i),a=/^([^\[\]]*)/.exec(e);for(a[1]&&t.push(a[1]);null!==(a=n.exec(e));)t.push(a[1]);return t}(t),n);else{var a=e[t];a?(Array.isArray(a)||(e[t]=[a]),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 i=t.hash?{}:"",s=t.serializer||(t.hash?r:o),c=e&&e.elements?e.elements:[],l=Object.create(null),u=0;u"+a.dataset[e]+"",i.href=i.dataset[e])}else n.style.display="none"}function r(){var t=document.querySelectorAll(".simpay-disconnect-link");if(t){var n=simpayAdmin.i18n,a=n.disconnectConfirm,i=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:i,click:function(){e(this).dialog("close")},class:"button button-secondary"},{text:a,click:function(){window.location.href=t.href},class:"button button-primary"}]})}))}))}}Object(a.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"),r()},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",r())}})}))}).call(this,n(12))},16:function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},22:function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return h}));var a=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)},i=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)},r=function(e){return function(t,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;if(i(t)&&a(n))if("function"==typeof r)if("number"==typeof o){var s={callback:r,priority:o,namespace:n};if(e[t]){var c,l=e[t].handlers;for(c=l.length;c>0&&!(o>=l[c-1].priority);c--);c===l.length?l[c]=s:l.splice(c,0,s),(e.__current||[]).forEach((function(e){e.name===t&&e.currentIndex>=c&&e.currentIndex++}))}else e[t]={handlers:[s],runs:0};"hookAdded"!==t&&y("hookAdded",t,n,r,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,r){if(i(n)&&(t||a(r))){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 s=e[n].handlers,c=function(t){s[t].namespace===r&&(s.splice(t,1),o++,(e.__current||[]).forEach((function(e){e.name===n&&e.currentIndex>=t&&e.currentIndex--})))},l=s.length-1;l>=0;l--)c(l);return"hookRemoved"!==n&&y("hookRemoved",n,r),o}}},s=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}},c=function(e,t){return function(n){e[n]||(e[n]={handlers:[],runs:0}),e[n].runs++;for(var a=e[n].handlers,i=arguments.length,r=new Array(i>1?i-1:0),o=1;o .spinner").hide(),n.removeClass("active"),a.addClass("active"),t.addClass("simpay-panel-hidden"),r.removeClass("simpay-panel-hidden")}));var a="#form-display-options-settings-panel";location.hash.length&&(a=location.hash);var r=i('ul.simpay-tabs a[href="'+a+'"]');i('[name="simpay_form_settings_tab"]').val(a),r.length&&r.click()},stripeConnect:function(){var e="tr:nth-child(2), tr:nth-child(3), tr:nth-child(4), tr:nth-child(5)";i(".simpay-settings.stripe-account .form-table").find(e).hide(),i("#wpsp-api-keys-row-reveal button").on("click",(function(t){t.preventDefault(),i(".simpay-settings.stripe-account .form-table").find(e).show(),i("#wpsp-api-keys-row-hide").show(),i(this).parent().hide(),i(".wpsp-manual-key-warning").show()})),i("#wpsp-api-keys-row-hide button").on("click",(function(t){t.preventDefault(),i(".simpay-settings.stripe-account .form-table").find(e).hide(),i("#wpsp-api-keys-row-reveal").show(),i(this).parent().hide(),i(".wpsp-manual-key-warning").hide()}))},handleInternalLinkToTabClicks:function(e){var t=e.data("show-tab");r.find("."+t+"-tab a").click()}},(i=e)(document).ready((function(e){s.init()}))}.call(this,n(12))},332:function(e,t,n){"use strict";var a=n(7),i=simpayAdminSettingToggles||[];function r(e){var t=e.id,n=(e.value,e.toggles,document.querySelector(".simpay-settings-".concat(t)));if(!n)return{};var a=n.querySelector("input");a||(a=n.querySelector("select"));var i=a.value;return"checkbox"===a.type&&(i=!0===a.checked?"yes":"no"),{setting:a,currentValue:i}}function o(e){var t=e.id,n=e.value,a=e.toggles,s=r(e),c=(s.setting,s.currentValue);"none"!==document.querySelector(".simpay-settings-".concat(t)).style.display&&(a.map((function(e){return document.querySelector(".simpay-settings-".concat(e))})).forEach((function(e){e&&(e.style.display=c===n?"table-row":"none")})),a.forEach((function(e){var t=_.find(i,{id:e});t&&o(t)})))}Object(a.a)((function(){i.forEach((function(e){o(e),r(e).setting.addEventListener("change",(function(){return o(e)}))}))}))},333:function(e,t,n){"use strict";var a=n(7);Object(a.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 a="enabled"===t.target.value?"test":"live";e.doAction("settings.toggleTestMode",a,n)}))}))}}))},334:function(e,t,n){"use strict";var a=n(7);Object(a.a)((function(){var e=document.querySelector(".simpay-recaptcha-feedback");if(e){var t=simpayGoogleRecaptcha,n=t.siteKey,a=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:i})})).catch(i)}catch(e){i()}}))}function i(){e.style.display="block",e.classList.add("notice-error"),e.querySelector("p").innerText=a.invalid}}))},335:function(e,t,n){"use strict";n(336),n(337)},336:function(e,t,n){"use strict";(function(e){var t=n(13),a=n.n(t),i=n(7);Object(i.a)((function(){var t,n=document.querySelector(".post-type-simple-pay #post");if(n){var i=a()(n,{hash:!0});delete i.simpay_form_settings_tab,function(t){function n(e){var n=a()(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(i)),function(){var e=document.querySelector(".simpay-recaptcha-payment-form-feedback");if(e){var t=document.querySelector(".simpay-recaptcha-payment-form-description"),n=simpayGoogleRecaptcha,a=n.siteKey,i=n.i18n;if(t.style.display="none",""===a)return r();grecaptcha.ready((function(){var e=document.querySelector(".grecaptcha-badge");e&&(e.style.display="none");try{grecaptcha.execute(a,{action:"simple_pay_admin_test"}).then((function(e){wp.ajax.send("simpay_validate_recaptcha_source",{data:{token:e,recaptcha_action:"simple_pay_admin_test"},success:o,error:r})})).catch(r)}catch(e){r()}}))}function r(){e.style.color="#b32d2e",e.style.display="inline",e.innerHTML=i.disabled,t.style.display="inline-block"}function o(){e.style.color="green",e.style.display="inline",e.innerHTML=i.enabled,t.style.display="inline-block"}}(),(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(12))},337:function(e,t,n){"use strict";(function(e,t){var a=n(56),i=n.n(a),r=n(7);function o(e){var t=e.querySelector(".simpay-price-label-display"),n=e.querySelector(".simpay-price-label"),a=spGeneral.strings,i=a.recurringIntervalDisplay,r=a.customAmountLabel;if(""!==n.value)t.innerHTML=n.value;else{var o,s=e.querySelector(".simpay-price-currency"),c=e.querySelector(".simpay-price-amount"),l=e.querySelector(".simpay-price-amount-type"),u=e.querySelector(".simpay-price-custom-amount input"),d=e.querySelector(".simpay-price-enable-custom-amount"),p=spGeneral.strings,m=p.currencyPosition,y=p.recurringIntervals,f=s.options[s.selectedIndex].dataset.symbol;switch(o=!0===d.checked?u.value:c.value,m){case"left":o="".concat(f).concat(o);break;case"left_space":o="".concat(f," ").concat(o);break;case"right":o="".concat(o).concat(f);break;case"right_space":o="".concat(o," ").concat(f)}if(!0===d.checked&&(o=r.replace("%s",o)),"recurring"===l.value){var v=e.querySelector(".simpay-price-recurring-interval"),h=e.querySelector(".simpay-price-recurring-interval-count"),g=y[v.options[v.selectedIndex].value];o=i.replace("%1$s",o).replace("%2$s",h.value).replace("%3$s","1"===h.value?g[0]:g[1])}t.innerHTML=o}}function s(e,t){e.querySelector(".simpay-price-recurring-settings").style.display=t.checked?"block":"none"}function c(e){var t=e.querySelector(".simpay-price-recurring-interval"),n=e.querySelector(".simpay-price-recurring-interval-count"),a=parseInt(n.value),r=t.options[t.selectedIndex].value,o=JSON.parse(t.dataset.intervals);switch(i()(t.options).forEach((function(e,n){var i=e.value;t.options[n].text=1===a?o[i][0]:o[i][1]})),r){case"day":a>1825&&(n.value=1825);break;case"week":a>260&&(n.value=260);break;case"month":a>60&&(n.value=60);break;case"year":a>5&&(n.value=5)}}function l(){var e=document.querySelectorAll(".simpay-price");_.each(e,(function(e){var t=e.querySelector(".simpay-price-amount-type").value;e.querySelector(".simpay-price-label").addEventListener("keyup",(function(){return o(e)})),o(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,a=e.querySelectorAll(".simpay-price-currency-symbol");_.each(a,(function(e){return e.innerText=n}))}(e),o(e)}));var n=e.querySelectorAll(".simpay-price-amount-type .button");n.length>0&&_.each(n,(function(t){return t.addEventListener("click",(function(t){t.preventDefault(),function(e,t){var n=e.querySelectorAll(".simpay-price-amount-type .button");_.each(n,(function(e){return e.classList.remove("button-primary")}));var a=t.dataset.amountType,i=e.querySelector(".simpay-price-recurring-settings");t.classList.add("button-primary"),i.style.display="recurring"===a?"block":"none";var r=e.querySelector(".simpay-price-recurring-amount-toggle"),o=e.querySelector(".simpay-price-enable-optional-subscription");r.style.display="recurring"===a?"none":"block",o.checked=!1,e.querySelector(".simpay-price-amount-type").value=a}(e,t.target),o(e)}))})),e.querySelector(".simpay-price-amount").addEventListener("keyup",(function(){return o(e)}));var a=e.querySelector(".simpay-price-enable-optional-subscription");a&&(a.addEventListener("click",(function(t){var n=t.target;s(e,n),o(e)})),"recurring"!==t&&s(e,a)),e.querySelector(".simpay-price-enable-custom-amount").addEventListener("click",(function(){!function(e){var t=e.querySelector(".simpay-price-custom-amount");t.style.display="none"===t.style.display?"block":"none"}(e),o(e)})),e.querySelector(".simpay-price-recurring-interval").addEventListener("change",(function(){o(e),c(e)}));var i=e.querySelector(".simpay-price-recurring-interval-count");i.addEventListener("keyup",(function(){c(e),o(e)})),i.addEventListener("change",(function(){c(e),o(e)}));var r=e.querySelector(".simpay-price-legacy-setting-toggle");r&&r.addEventListener("click",(function(t){t.preventDefault(),function(e){var t=e.querySelectorAll(".simpay-price-legacy-setting");_.each(t,(function(e){return e.style.display="block"===e.style.display?"none":"block"}))}(e)})),e.querySelector(".simpay-price-default").addEventListener("change",(function(){return function(e){var t=document.querySelectorAll(".simpay-price-default");_.each(t,(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(),u()}(e)}))}))}function u(){var e=document.querySelectorAll(".simpay-price");document.querySelector(".simpay-price-default:checked")||(e[0].querySelector(".simpay-price-default").checked=!0)}Object(r.a)((function(){var n,a,i;t(".simpay-prices").sortable({items:".simpay-field-metabox",containment:"#simpay-prices",handle:".simpay-hndle",placeholder:"sortable-placeholder",cursor:"move",delay:t(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()}}),l(),n=document.getElementById("simpay-prices-advanced-toggle"),a=document.getElementById("simpay-prices-advanced"),n&&a&&n.addEventListener("click",(function(e){e.preventDefault(),a.style.display="block"==a.style.display?"none":"block"})),(i=document.getElementById("simpay-prices-advanced-add"))&&i.addEventListener("click",(function(t){var n,a,r,o,s,c;t.preventDefault(),r=(a=(n=i).dataset).nonce,o=a.formId,s=document.getElementById("simpay-prices"),c=document.getElementById("simpay-prices-advanced-plan-id"),n.classList.add("disabled"),wp.ajax.send("simpay_add_plan",{data:{_wpnonce:r,form_id:o,plan_id:c.value},success:function(t){e(s).append(t),l(),document.getElementById("simpay-prices-advanced").style.display="none",c.value="",n.classList.remove("disabled")},error:function(e){var t=e.message;alert(t),n.classList.remove("disabled")}})})),function(){var t=document.getElementById("simpay-add-price");t&&t.addEventListener("click",(function(n){var a,i,r,o,s;n.preventDefault(),r=(i=(a=t).dataset).nonce,o=i.formId,s=document.getElementById("simpay-prices"),a.classList.add("disabled"),wp.ajax.send("simpay_add_price",{data:{_wpnonce:r,form_id:o},success:function(t){e(s).append(t),l(),u(),a.classList.remove("disabled")},error:function(e){var t=e.message;alert(t),a.classList.remove("disabled")}})}))}()}))}).call(this,n(12),n(12))},338:function(e,t,n){"use strict";(function(e){var t=n(16),a=n.n(t),i=n(7),r='',o='',s=simpayAdmin,c=s.nonce,l=s.ajaxUrl,u=s.i18n,d=u.addonActivated,p=u.addonActivate,m=u.addonActive,y=u.addonDeactivate,f=u.addonInactive,v=u.addonInstall,h=u.addonError,g=u.pluginError;function b(t){t.preventDefault();var n,i,s,u,b,_,k=e(t.target);if(k.hasClass("status-go-to-url"))window.open(k.attr("data-plugin"),"_blank");else{var S=k.attr("data-type");if(k.prop("disabled",!0).addClass("loading"),k.html(''),k.hasClass("status-active"))n="deactivate",i="status-installed","plugin"===S&&(i+=" button button-secondary"),s=f,u=p,b=y,"addon"===S&&(u=r+u,b=o+b);else if(k.hasClass("status-installed"))n="activate",i="status-active","plugin"===S&&(i+=" button button-secondary disabled"),s=m,u=y,"addon"===S?(u=o+u,b=r+p):"plugin"===S&&(u=d,b=p);else{if(!k.hasClass("status-missing"))return;n="install",i="status-active","plugin"===S&&(i+=" button disabled"),s=m,u=d,b='',"addon"===S&&(u=r+y,b+=v)}var x=k.closest(".simpay-addon");!function(t,n,a,i){var r={activate:"simpay_activate_addon",install:"simpay_install_addon",deactivate:"simpay_deactivate_addon"}[n];if(r){var o={action:r,nonce:c,plugin:t,type:a};e.post(l,o,i).fail((function(e){console.log(e.responseText)}))}}(k.attr("data-plugin"),n,S,(function(e){e.success?("install"===n?(k.attr("data-plugin",e.data.basename),_=e.data.msg,e.data.is_activated||(s=f,u="plugin"===S?p:r+p,i="plugin"===S?"status-installed button button-secondary":"status-installed")):_=e.data,x.find(".simpay-addon__actions").append('
'+_+"
"),x.find("span.status-label").removeClass("status-active status-installed status-missing").addClass(i).removeClass("button button-primary button-secondary disabled").text(s),k.removeClass("status-active status-installed status-missing").removeClass("button button-primary button-secondary disabled").addClass(i).html(u)):("object"===a()(e.data)?"addon"===S?x.find(".simpay-addon__actions").append('
'+h+"
"):x.find(".simpay-addon__actions").append('
'+g+"
"):x.find(".simpay-addon__actions").append('
'+e.data+"
"),"install"===n&&"plugin"===S&&k.addClass("status-go-to-url").removeClass("status-missing"),k.html(b)),k.prop("disabled",!1).removeClass("loading"),setTimeout((function(){x.find(".msg").remove()}),3e3)}))}}Object(i.a)((function(){document.querySelector(".simpay-addons")&&document.querySelectorAll(".simpay-addon").forEach((function(e){e.querySelector("button").addEventListener("click",b)}))}))}).call(this,n(12))},339:function(e,t,n){"use strict";var a=n(7);Object(a.a)((function(){var e=new ClipboardJS(".simpay-copy-button");e.on("success",(function(t){var n=t.trigger,a=n.dataset.copied,i=n.innerHTML;clearTimeout(r),n.innerHTML=a,n.classList.contains("button-secondary")&&(n.style.color="green",n.style.borderColor="green"),t.clearSelection();var r=setTimeout((function(){n.innerHTML=i,n.classList.contains("button-secondary")&&(n.style.color="",n.style.borderColor=""),e.clipboardAction.fakeElem&&e.clipboardAction.removeFake&&e.clipboardAction.removeFake()}),3e3);wp.a11y.speak(a)}))}))},56:function(e,t,n){var a=n(107),i=n(108),r=n(109),o=n(110);e.exports=function(e){return a(e)||i(e)||r(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},63:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n1&&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(14))},147:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(10);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(14))},16:function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},19:function(e,t,n){e.exports=n(63)},2:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var r=n(35),a=n.n(r),i=n(19),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(14))},20:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return s}));var r={};n.r(r),n.d(r,"create",(function(){return h}));var a={};n.r(a),n.d(a,"create",(function(){return b}));var i={};n.r(i),n.d(i,"create",(function(){return O}));var o={};n.r(o),n.d(o,"create",(function(){return k}));var c={};n.r(c),n.d(c,"create",(function(){return L}));var s={};n.r(s),n.d(s,"create",(function(){return q})),n.d(s,"updatePaymentMethod",(function(){return I}));var u=n(2),l=n(1),d=n.n(l),p=n(7),f=n.n(p);function y(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 m(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.state,a=t.__unstableLegacyFormData;return Object(u.a)("v2/charge",m({form_values:f()(t[0],{hash:!0}),form_data:JSON.stringify(m(m({},a),r)),form_id:n},e))}function v(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 g(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.state,a=t.__unstableLegacyFormData;return Object(u.a)("v2/customer",g({form_values:f()(t[0],{hash:!0}),form_data:JSON.stringify(g(g({},a),r)),form_id:n},e))}function _(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 w(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.state,a=t.__unstableLegacyFormData;return Object(u.a)("v2/paymentintent/create",w({form_values:f()(t[0],{hash:!0}),form_data:JSON.stringify(w(w({},a),r)),form_id:n},e))}function j(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 x(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.state,a=t.__unstableLegacyFormData;return Object(u.a)("v2/checkout-session",x({form_values:f()(t[0],{hash:!0}),form_data:JSON.stringify(x(x({},a),r)),form_id:n},e))}function S(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 E(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.state;return Object(u.a)("v2/setupintent/create",E({form_values:f()(t[0],{hash:!0}),form_data:JSON.stringify(r),form_id:n},e))}function P(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 A(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.state,a=t.__unstableLegacyFormData;return Object(u.a)("v2/subscription",A({form_values:f()(t[0],{hash:!0}),form_data:JSON.stringify(A(A({},a),r)),form_id:n},e))}function I(e,t,n,r,a){return Object(u.a)("v2/subscription/payment_method/".concat(n,"/").concat(e),{customer_nonce:t,form_values:a,form_id:r})}},24:function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return v}));var r=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)},a=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)},i=function(e){return function(t,n,i){var o=arguments.length>3&&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,u=e[t].handlers;for(s=u.length;s>0&&!(o>=u[s-1].priority);s--);s===u.length?u[s]=c:u.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&&y("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--})))},u=c.length-1;u>=0;u--)s(u);return"hookRemoved"!==n&&y("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;o .spinner").hide(),n.removeClass("active"),r.addClass("active"),t.addClass("simpay-panel-hidden"),i.removeClass("simpay-panel-hidden")}));var r="#form-display-options-settings-panel";location.hash.length&&(r=location.hash);var i=a('ul.simpay-tabs a[href="'+r+'"]');a('[name="simpay_form_settings_tab"]').val(r),i.length&&i.click()},stripeConnect:function(){var e="tr:nth-child(2), tr:nth-child(3), tr:nth-child(4), tr:nth-child(5)";a(".simpay-settings.stripe-account .form-table").find(e).hide(),a("#wpsp-api-keys-row-reveal button").on("click",(function(t){t.preventDefault(),a(".simpay-settings.stripe-account .form-table").find(e).show(),a("#wpsp-api-keys-row-hide").show(),a(this).parent().hide(),a(".wpsp-manual-key-warning").show()})),a("#wpsp-api-keys-row-hide button").on("click",(function(t){t.preventDefault(),a(".simpay-settings.stripe-account .form-table").find(e).hide(),a("#wpsp-api-keys-row-reveal").show(),a(this).parent().hide(),a(".wpsp-manual-key-warning").hide()}))},handleInternalLinkToTabClicks:function(e){var t=e.data("show-tab");i.find("."+t+"-tab a").click()}},(a=e)(document).ready((function(e){c.init()}))}.call(this,n(14))},335:function(e,t,n){"use strict";var r=n(10),a=simpayAdminSettingToggles||[];function i(e){var t=e.id,n=(e.value,e.toggles,document.querySelector(".simpay-settings-".concat(t)));if(!n)return{};var r=n.querySelector("input");r||(r=n.querySelector("select"));var a=r.value;return"checkbox"===r.type&&(a=!0===r.checked?"yes":"no"),{setting:r,currentValue:a}}function o(e){var t=e.id,n=e.value,r=e.toggles,c=i(e),s=(c.setting,c.currentValue);"none"!==document.querySelector(".simpay-settings-".concat(t)).style.display&&(r.map((function(e){return document.querySelector(".simpay-settings-".concat(e))})).forEach((function(e){e&&(e.style.display=s===n?"table-row":"none")})),r.forEach((function(e){var t=_.find(a,{id:e});t&&o(t)})))}Object(r.a)((function(){a.forEach((function(e){o(e),i(e).setting.addEventListener("change",(function(){return o(e)}))}))}))},336:function(e,t,n){"use strict";var r=n(10);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)}))}))}}))},337:function(e,t,n){"use strict";var r=n(10);Object(r.a)((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.querySelector("p").innerText=r.invalid}}))},338:function(e,t,n){"use strict";n(339),n(340)},339:function(e,t,n){"use strict";(function(e){var t=n(7),r=n.n(t),a=n(10);Object(a.a)((function(){var t,n=document.querySelector(".post-type-simple-pay #post");if(n){var a=r()(n,{hash:!0});delete a.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(a)),function(){var e=document.querySelector(".simpay-recaptcha-payment-form-feedback");if(e){var t=document.querySelector(".simpay-recaptcha-payment-form-description"),n=simpayGoogleRecaptcha,r=n.siteKey,a=n.i18n;if(t.style.display="none",""===r)return i();grecaptcha.ready((function(){var e=document.querySelector(".grecaptcha-badge");e&&(e.style.display="none");try{grecaptcha.execute(r,{action:"simple_pay_admin_test"}).then((function(e){wp.ajax.send("simpay_validate_recaptcha_source",{data:{token:e,recaptcha_action:"simple_pay_admin_test"},success:o,error:i})})).catch(i)}catch(e){i()}}))}function i(){e.style.color="#b32d2e",e.style.display="inline",e.innerHTML=a.disabled,t.style.display="inline-block"}function o(){e.style.color="green",e.style.display="inline",e.innerHTML=a.enabled,t.style.display="inline-block"}}(),(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(14))},340:function(e,t,n){"use strict";(function(e,t){var r=n(57),a=n.n(r),i=n(10),o=n(111);function c(e){var t=e.querySelector(".simpay-price-label-display"),n=e.querySelector(".simpay-price-label"),r=spGeneral.strings,a=r.recurringIntervalDisplay,i=r.customAmountLabel;if(""!==n.value)t.innerHTML=n.value;else{var o,c=e.querySelector(".simpay-price-currency"),s=e.querySelector(".simpay-price-amount"),u=e.querySelector(".simpay-price-amount-type"),l=e.querySelector(".simpay-price-custom-amount input"),d=e.querySelector(".simpay-price-enable-custom-amount"),p=spGeneral.strings,f=p.currencyPosition,y=p.recurringIntervals,m=c.options[c.selectedIndex].dataset.symbol;switch(o=!0===d.checked?l.value:s.value,f){case"left":o="".concat(m).concat(o);break;case"left_space":o="".concat(m," ").concat(o);break;case"right":o="".concat(o).concat(m);break;case"right_space":o="".concat(o," ").concat(m)}if(!0===d.checked&&(o=i.replace("%s",o)),"recurring"===u.value){var h=e.querySelector(".simpay-price-recurring-interval"),v=e.querySelector(".simpay-price-recurring-interval-count"),g=y[h.options[h.selectedIndex].value];o=a.replace("%1$s",o).replace("%2$s",v.value).replace("%3$s","1"===v.value?g[0]:g[1])}t.innerHTML=o}}function s(e,t){e.querySelector(".simpay-price-recurring-settings").style.display=t.checked?"table":"none"}function u(e){var t=e.querySelector(".simpay-price-recurring-interval"),n=e.querySelector(".simpay-price-recurring-interval-count"),r=parseInt(n.value),i=t.options[t.selectedIndex].value,o=JSON.parse(t.dataset.intervals);switch(a()(t.options).forEach((function(e,n){var a=e.value;t.options[n].text=1===r?o[a][0]:o[a][1]})),i){case"day":r>1825&&(n.value=1825);break;case"week":r>260&&(n.value=260);break;case"month":r>60&&(n.value=60);break;case"year":r>5&&(n.value=5)}}function l(){var e=document.querySelectorAll(".simpay-price");_.each(e,(function(e){var t=e.querySelector(".simpay-price-amount-type").value;e.querySelector(".simpay-price-label").addEventListener("keyup",(function(){return c(e)})),c(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,r=e.querySelectorAll(".simpay-price-currency-symbol");_.each(r,(function(e){return e.innerText=n}))}(e),c(e)}));var n=e.querySelectorAll(".simpay-price-amount-type .button");n.length>0&&_.each(n,(function(t){return t.addEventListener("click",(function(t){t.preventDefault();var n=t.target.dataset,r=n.available,a=n.upgradeTitle,i=n.upgradeDescription,s=n.upgradeUrl,u=n.upgradePurchasedUrl;"no"===r?Object(o.upgradeModal)({title:a,description:i,url:s,purchasedUrl:u}):(function(e,t){var n=e.querySelectorAll(".simpay-price-amount-type .button");_.each(n,(function(e){return e.classList.remove("button-primary")}));var r=t.dataset.amountType,a=e.querySelector(".simpay-price-recurring-settings");t.classList.add("button-primary"),a.style.display="recurring"===r?"table":"none";var i=e.querySelector(".simpay-price-recurring-amount-toggle"),o=e.querySelector(".simpay-price-enable-optional-subscription");i.style.display="recurring"===r?"none":"block",o.checked=!1,e.querySelector(".simpay-price-amount-type").value=r}(e,t.target),c(e))}))})),e.querySelector(".simpay-price-amount").addEventListener("keyup",(function(){return c(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,u=r.upgradeDescription,l=r.upgradeUrl,d=r.upgradePurchasedUrl;"no"===a?(n.checked=!1,t.preventDefault(),Object(o.upgradeModal)({title:i,description:u,url:l,purchasedUrl:d})):(s(e,n),c(e))})),"recurring"!==t&&s(e,r)),e.querySelector(".simpay-price-enable-custom-amount").addEventListener("click",(function(){!function(e){var t=e.querySelector(".simpay-price-custom-amount");t.style.display="none"===t.style.display?"block":"none"}(e),c(e)})),e.querySelector(".simpay-price-recurring-interval").addEventListener("change",(function(){c(e),u(e)}));var a=e.querySelector(".simpay-price-recurring-interval-count");u(e),a.addEventListener("keyup",(function(){u(e),c(e)})),a.addEventListener("change",(function(){u(e),c(e)}));var i=e.querySelector(".simpay-price-legacy-setting-toggle");i&&i.addEventListener("click",(function(t){t.preventDefault(),function(e){var t=e.querySelectorAll(".simpay-price-legacy-setting");_.each(t,(function(e){return e.style.display="block"===e.style.display?"none":"block"}))}(e)})),e.querySelector(".simpay-price-default").addEventListener("change",(function(){return function(e){var t=document.querySelectorAll(".simpay-price-default");_.each(t,(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(),d()}(e)}))}))}function d(){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 n,r,a;t(".simpay-prices").sortable({items:".simpay-field-metabox",containment:"#simpay-prices",handle:".simpay-hndle",placeholder:"sortable-placeholder",cursor:"move",delay:t(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()}}),l(),n=document.getElementById("simpay-prices-advanced-toggle"),r=document.getElementById("simpay-prices-advanced"),n&&r&&n.addEventListener("click",(function(e){e.preventDefault(),r.style.display="block"==r.style.display?"none":"block"})),(a=document.getElementById("simpay-prices-advanced-add"))&&a.addEventListener("click",(function(t){var n,r,i,o,c,s;t.preventDefault(),i=(r=(n=a).dataset).nonce,o=r.formId,c=document.getElementById("simpay-prices"),s=document.getElementById("simpay-prices-advanced-plan-id"),n.classList.add("disabled"),wp.ajax.send("simpay_add_plan",{data:{_wpnonce:i,form_id:o,plan_id:s.value},success:function(t){e(c).append(t),l(),document.getElementById("simpay-prices-advanced").style.display="none",s.value="",n.classList.remove("disabled")},error:function(e){var t=e.message;alert(t),n.classList.remove("disabled")}})})),function(){var t=document.getElementById("simpay-add-price");t&&t.addEventListener("click",(function(n){var r,a,i,o,c;n.preventDefault(),i=(a=(r=t).dataset).nonce,o=a.formId,c=document.getElementById("simpay-prices"),r.classList.add("disabled"),wp.ajax.send("simpay_add_price",{data:{_wpnonce:i,form_id:o},success:function(t){e(c).append(t),l(),d(),r.classList.remove("disabled")},error:function(e){var t=e.message;alert(t),r.classList.remove("disabled")}})}))}()}))}).call(this,n(14),n(14))},341:function(e,t,n){"use strict";(function(e){var t=n(16),r=n.n(t),a=n(10),i='',o='',c=simpayAdmin,s=c.nonce,u=c.ajaxUrl,l=c.i18n,d=l.addonActivated,p=l.addonActivate,f=l.addonActive,y=l.addonDeactivate,m=l.addonInactive,h=l.addonInstall,v=l.addonError,g=l.pluginError;function b(t){t.preventDefault();var n,a,c,l,b,_,w=e(t.target);if(w.hasClass("status-go-to-url"))window.open(w.attr("data-plugin"),"_blank");else{var O=w.attr("data-type");if(w.prop("disabled",!0).addClass("loading"),w.html(''),w.hasClass("status-active"))n="deactivate",a="status-installed","plugin"===O&&(a+=" button button-secondary"),c=m,l=p,b=y,"addon"===O&&(l=i+l,b=o+b);else if(w.hasClass("status-installed"))n="activate",a="status-active","plugin"===O&&(a+=" button button-secondary disabled"),c=f,l=y,"addon"===O?(l=o+l,b=i+p):"plugin"===O&&(l=d,b=p);else{if(!w.hasClass("status-missing"))return;n="install",a="status-active","plugin"===O&&(a+=" button disabled"),c=f,l=d,b='',"addon"===O&&(l=i+y,b+=h)}var j=w.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(u,o,a).fail((function(e){console.log(e.responseText)}))}}(w.attr("data-plugin"),n,O,(function(e){e.success?("install"===n?(w.attr("data-plugin",e.data.basename),_=e.data.msg,e.data.is_activated||(c=m,l="plugin"===O?p:i+p,a="plugin"===O?"status-installed button button-secondary":"status-installed")):_=e.data,j.find(".simpay-addon__actions").append('
'+_+"
"),j.find("span.status-label").removeClass("status-active status-installed status-missing").addClass(a).removeClass("button button-primary button-secondary disabled").text(c),w.removeClass("status-active status-installed status-missing").removeClass("button button-primary button-secondary disabled").addClass(a).html(l)):("object"===r()(e.data)?"addon"===O?j.find(".simpay-addon__actions").append('
'+v+"
"):j.find(".simpay-addon__actions").append('
'+g+"
"):j.find(".simpay-addon__actions").append('
'+e.data+"
"),"install"===n&&"plugin"===O&&w.addClass("status-go-to-url").removeClass("status-missing"),w.html(b)),w.prop("disabled",!1).removeClass("loading"),setTimeout((function(){j.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(14))},342:function(e,t,n){"use strict";var r=n(10);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)}))}))},35:function(e,t){function n(e,t,n,r,a,i,o){try{var c=e[i](o),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,a)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(a,i){var o=e.apply(t,r);function c(e){n(o,a,i,c,s,"next",e)}function s(e){n(o,a,i,c,s,"throw",e)}c(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},57:function(e,t,n){var r=n(107),a=n(108),i=n(109),o=n(110);e.exports=function(e){return r(e)||a(e)||i(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},63:function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var a=t&&t.prototype instanceof d?t:d,i=Object.create(a.prototype),o=new j(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(a,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw i;return{value:void 0,done:!0}}for(n.method=a,n.arg=i;;){var o=n.delegate;if(o){var c=_(o,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=u(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===l)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}(e,n,o),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var l={};function d(){}function p(){}function f(){}var y={};c(y,a,(function(){return this}));var m=Object.getPrototypeOf,h=m&&m(m(x([])));h&&h!==t&&n.call(h,a)&&(y=h);var v=f.prototype=d.prototype=Object.create(y);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(a,i){function o(){return new t((function(r,o){!function r(a,i,o,c){var s=u(e[a],e,i);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,o,c)}),(function(e){r("throw",e,o,c)})):t.resolve(d).then((function(e){l.value=e,o(l)}),(function(e){return r("throw",e,o,c)}))}c(s.arg)}(a,i,r,o)}))}return r=r?r.then(o,o):o()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function x(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r=0;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),l}},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;O(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},64:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-server-side-render'), 'version' => 'a7e1c455039d592284b203e355a71da3'); \ No newline at end of file + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-server-side-render'), 'version' => '690dfe876002b2f77ae4d300fb8b8a7a'); \ No newline at end of file diff --git a/includes/core/assets/js/simpay-block-payment-form.min.js b/includes/core/assets/js/simpay-block-payment-form.min.js index d6a562b3..c8000bcd 100644 --- a/includes/core/assets/js/simpay-block-payment-form.min.js +++ b/includes/core/assets/js/simpay-block-payment-form.min.js @@ -1 +1 @@ -!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},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,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=46)}([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,r){var n=r(15),o=r(16),i=r(10),c=r(17);e.exports=function(e,t){return n(e)||o(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.data},,function(e,t,r){var n=r(11);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?i(e(t),9007199254740991):0}},,function(t,n){var r=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},function(t,n,r){t.exports=!r(2)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,n,r){var e=r(3),i=r(111),o=r(35),u=Object.defineProperty;n.f=r(9)?Object.defineProperty:function(t,n,r){if(e(t),n=o(n,!0),e(r),i)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},,,,function(t,n,r){var e=r(32);t.exports=function(t){return Object(e(t))}},,,function(t,n,r){var e=r(1),i=r(20),o=r(19),u=r(40)("src"),c=r(150),f=(""+c).split("toString");r(8).inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,r,c){var a="function"==typeof r;a&&(o(r,"name")||i(r,"name",n)),t[n]!==r&&(a&&(o(r,u)||i(r,u,t[n]?""+t[n]:f.join(String(n)))),t===e?t[n]=r:c?t[n]?t[n]=r:i(t,n,r):(delete t[n],i(t,n,r)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[u]||c.call(this)}))},function(t,n,r){var e=r(0),i=r(2),o=r(32),u=/"/g,c=function(t,n,r,e){var i=String(o(t)),c="<"+n;return""!==r&&(c+=" "+r+'="'+String(e).replace(u,""")+'"'),c+">"+i+""};t.exports=function(t,n){var r={};r[t]=n(c),e(e.P+e.F*i((function(){var n=""[t]('"');return n!==n.toLowerCase()||n.split('"').length>3})),"String",r)}},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n,r){var e=r(10),i=r(39);t.exports=r(9)?function(t,n,r){return e.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(59),i=r(32);t.exports=function(t){return e(i(t))}},,function(t,n,r){"use strict";var e=r(2);t.exports=function(t,n){return!!t&&e((function(){n?t.call(null,(function(){}),1):t.call(null)}))}},function(t,n,r){var e=r(25);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,i){return t.call(n,r,e,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){var e=r(60),i=r(39),o=r(21),u=r(35),c=r(19),f=r(111),a=Object.getOwnPropertyDescriptor;n.f=r(9)?a:function(t,n){if(t=o(t),n=u(n,!0),f)try{return a(t,n)}catch(t){}if(c(t,n))return i(!e.f.call(t,n),t[n])}},function(t,n,r){var e=r(0),i=r(8),o=r(2);t.exports=function(t,n){var r=(i.Object||{})[t]||Object[t],u={};u[t]=n(r),e(e.S+e.F*o((function(){r(1)})),"Object",u)}},function(t,n,r){var e=r(24),i=r(59),o=r(14),u=r(6),c=r(127);t.exports=function(t,n){var r=1==t,f=2==t,a=3==t,s=4==t,l=6==t,h=5==t||l,p=n||c;return function(n,c,v){for(var y,d,g=o(n),x=i(g),b=e(c,v,3),m=u(x.length),S=0,w=r?p(n,m):f?p(n,0):void 0;m>S;S++)if((h||S in x)&&(d=b(y=x[S],S,g),t))if(r)w[S]=d;else if(d)switch(t){case 3:return!0;case 5:return y;case 6:return S;case 2:w.push(y)}else if(s)return!1;return l?-1:a||s?s:w}}},,function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,r){"use strict";if(r(9)){var e=r(41),i=r(1),o=r(2),u=r(0),c=r(75),f=r(102),a=r(24),s=r(54),l=r(39),h=r(20),p=r(55),v=r(26),y=r(6),d=r(138),g=r(43),x=r(35),b=r(19),m=r(61),S=r(4),w=r(14),_=r(94),E=r(44),O=r(46),P=r(45).f,F=r(96),M=r(40),A=r(5),j=r(29),I=r(65),N=r(62),T=r(98),L=r(52),R=r(68),k=r(53),C=r(97),D=r(129),W=r(10),G=r(27),U=W.f,B=G.f,V=i.RangeError,z=i.TypeError,Y=i.Uint8Array,q=Array.prototype,$=f.ArrayBuffer,K=f.DataView,J=j(0),X=j(2),H=j(3),Z=j(4),Q=j(5),tt=j(6),nt=I(!0),rt=I(!1),et=T.values,it=T.keys,ot=T.entries,ut=q.lastIndexOf,ct=q.reduce,ft=q.reduceRight,at=q.join,st=q.sort,lt=q.slice,ht=q.toString,pt=q.toLocaleString,vt=A("iterator"),yt=A("toStringTag"),dt=M("typed_constructor"),gt=M("def_constructor"),xt=c.CONSTR,bt=c.TYPED,mt=c.VIEW,St=j(1,(function(t,n){return Pt(N(t,t[gt]),n)})),wt=o((function(){return 1===new Y(new Uint16Array([1]).buffer)[0]})),_t=!!Y&&!!Y.prototype.set&&o((function(){new Y(1).set({})})),Et=function(t,n){var r=v(t);if(r<0||r%n)throw V("Wrong offset!");return r},Ot=function(t){if(S(t)&&bt in t)return t;throw z(t+" is not a typed array!")},Pt=function(t,n){if(!S(t)||!(dt in t))throw z("It is not a typed array constructor!");return new t(n)},Ft=function(t,n){return Mt(N(t,t[gt]),n)},Mt=function(t,n){for(var r=0,e=n.length,i=Pt(t,e);e>r;)i[r]=n[r++];return i},At=function(t,n,r){U(t,n,{get:function(){return this._d[r]}})},jt=function(t){var n,r,e,i,o,u,c=w(t),f=arguments.length,s=f>1?arguments[1]:void 0,l=void 0!==s,h=F(c);if(null!=h&&!_(h)){for(u=h.call(c),e=[],n=0;!(o=u.next()).done;n++)e.push(o.value);c=e}for(l&&f>2&&(s=a(s,arguments[2],2)),n=0,r=y(c.length),i=Pt(this,r);r>n;n++)i[n]=l?s(c[n],n):c[n];return i},It=function(){for(var t=0,n=arguments.length,r=Pt(this,n);n>t;)r[t]=arguments[t++];return r},Nt=!!Y&&o((function(){pt.call(new Y(1))})),Tt=function(){return pt.apply(Nt?lt.call(Ot(this)):Ot(this),arguments)},Lt={copyWithin:function(t,n){return D.call(Ot(this),t,n,arguments.length>2?arguments[2]:void 0)},every:function(t){return Z(Ot(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return C.apply(Ot(this),arguments)},filter:function(t){return Ft(this,X(Ot(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Q(Ot(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){J(Ot(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return rt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return nt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return at.apply(Ot(this),arguments)},lastIndexOf:function(t){return ut.apply(Ot(this),arguments)},map:function(t){return St(Ot(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ct.apply(Ot(this),arguments)},reduceRight:function(t){return ft.apply(Ot(this),arguments)},reverse:function(){for(var t,n=Ot(this).length,r=Math.floor(n/2),e=0;e1?arguments[1]:void 0)},sort:function(t){return st.call(Ot(this),t)},subarray:function(t,n){var r=Ot(this),e=r.length,i=g(t,e);return new(N(r,r[gt]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,y((void 0===n?e:g(n,e))-i))}},Rt=function(t,n){return Ft(this,lt.call(Ot(this),t,n))},kt=function(t){Ot(this);var n=Et(arguments[1],1),r=this.length,e=w(t),i=y(e.length),o=0;if(i+n>r)throw V("Wrong length!");for(;o255?255:255&e),i.v[p](r*n+i.o,e,wt)}(this,r,t)},enumerable:!0})};b?(v=r((function(t,r,e,i){s(t,v,a,"_d");var o,u,c,f,l=0,p=0;if(S(r)){if(!(r instanceof $||"ArrayBuffer"==(f=m(r))||"SharedArrayBuffer"==f))return bt in r?Mt(v,r):jt.call(v,r);o=r,p=Et(e,n);var g=r.byteLength;if(void 0===i){if(g%n)throw V("Wrong length!");if((u=g-p)<0)throw V("Wrong length!")}else if((u=y(i)*n)+p>g)throw V("Wrong length!");c=u/n}else c=d(r),o=new $(u=c*n);for(h(t,"_d",{b:o,o:p,l:u,e:c,v:new K(o)});ldocument.F=Object<\/script>"),t.close(),f=t.F;e--;)delete f.prototype[o[e]];return f()};t.exports=Object.create||function(t,n){var r;return null!==t?(c.prototype=e(t),r=new c,c.prototype=null,r[u]=t):r=f(),void 0===n?r:i(r,n)}},function(t,n,r){var e=r(113),i=r(81).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,i)}},function(t,n,r){var e=r(19),i=r(14),o=r(80)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),e(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,r){var e=r(5)("unscopables"),i=Array.prototype;null==i[e]&&r(20)(i,e,{}),t.exports=function(t){i[e][t]=!0}},function(t,n,r){var e=r(4);t.exports=function(t,n){if(!e(t)||t._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return t}},,function(t,n,r){var e=r(10).f,i=r(19),o=r(5)("toStringTag");t.exports=function(t,n,r){t&&!i(t=r?t:t.prototype,o)&&e(t,o,{configurable:!0,value:n})}},function(t,n,r){var e=r(0),i=r(32),o=r(2),u=r(84),c="["+u+"]",f=RegExp("^"+c+c+"*"),a=RegExp(c+c+"*$"),s=function(t,n,r){var i={},c=o((function(){return!!u[t]()||"​…"!="​…"[t]()})),f=i[t]=c?n(l):u[t];r&&(i[r]=f),e(e.P+e.F*c,"String",i)},l=s.trim=function(t,n){return t=String(i(t)),1&n&&(t=t.replace(f,"")),2&n&&(t=t.replace(a,"")),t};t.exports=s},function(t,n){t.exports={}},function(t,n,r){"use strict";var e=r(1),i=r(10),o=r(9),u=r(5)("species");t.exports=function(t){var n=e[t];o&&n&&!n[u]&&i.f(n,u,{configurable:!0,get:function(){return this}})}},function(t,n){t.exports=function(t,n,r,e){if(!(t instanceof n)||void 0!==e&&e in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,n,r){var e=r(17);t.exports=function(t,n,r){for(var i in n)e(t,i,n[i],r);return t}},,,,function(t,n,r){var e=r(31);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,r){var e=r(31),i=r(5)("toStringTag"),o="Arguments"==e(function(){return arguments}());t.exports=function(t){var n,r,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),i))?r:o?e(n):"Object"==(u=e(n))&&"function"==typeof n.callee?"Arguments":u}},function(t,n,r){var e=r(3),i=r(25),o=r(5)("species");t.exports=function(t,n){var r,u=e(t).constructor;return void 0===u||null==(r=e(u)[o])?n:i(r)}},,function(t,n,r){var e=r(8),i=r(1),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:e.version,mode:r(41)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,n,r){var e=r(21),i=r(6),o=r(43);t.exports=function(t){return function(n,r,u){var c,f=e(n),a=i(f.length),s=o(u,a);if(t&&r!=r){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===r)return t||s||0;return!t&&-1}}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,r){var e=r(31);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,n,r){var e=r(5)("iterator"),i=!1;try{var o=[7][e]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,n){if(!n&&!i)return!1;var r=!1;try{var o=[7],u=o[e]();u.next=function(){return{done:r=!0}},o[e]=function(){return u},t(o)}catch(t){}return r}},function(t,n,r){"use strict";var e=r(3);t.exports=function(){var t=e(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,r){"use strict";var e=r(61),i=RegExp.prototype.exec;t.exports=function(t,n){var r=t.exec;if("function"==typeof r){var o=r.call(t,n);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==e(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,n)}},function(t,n,r){"use strict";r(131);var e=r(17),i=r(20),o=r(2),u=r(32),c=r(5),f=r(99),a=c("species"),s=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),l=function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var r="ab".split(t);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();t.exports=function(t,n,r){var h=c(t),p=!o((function(){var n={};return n[h]=function(){return 7},7!=""[t](n)})),v=p?!o((function(){var n=!1,r=/a/;return r.exec=function(){return n=!0,null},"split"===t&&(r.constructor={},r.constructor[a]=function(){return r}),r[h](""),!n})):void 0;if(!p||!v||"replace"===t&&!s||"split"===t&&!l){var y=/./[h],d=r(u,h,""[t],(function(t,n,r,e,i){return n.exec===f?p&&!i?{done:!0,value:y.call(n,r,e)}:{done:!0,value:t.call(r,n,e)}:{done:!1}})),g=d[0],x=d[1];e(String.prototype,t,g),i(RegExp.prototype,h,2==n?function(t,n){return x.call(t,this,n)}:function(t){return x.call(t,this)})}}},function(t,n,r){var e=r(24),i=r(126),o=r(94),u=r(3),c=r(6),f=r(96),a={},s={};(n=t.exports=function(t,n,r,l,h){var p,v,y,d,g=h?function(){return t}:f(t),x=e(r,l,n?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(p=c(t.length);p>b;b++)if((d=n?x(u(v=t[b])[0],v[1]):x(t[b]))===a||d===s)return d}else for(y=g.call(t);!(v=y.next()).done;)if((d=i(y,x,v.value,n))===a||d===s)return d}).BREAK=a,n.RETURN=s},function(t,n,r){var e=r(1).navigator;t.exports=e&&e.userAgent||""},function(t,n,r){"use strict";var e=r(1),i=r(0),o=r(17),u=r(55),c=r(36),f=r(72),a=r(54),s=r(4),l=r(2),h=r(68),p=r(50),v=r(85);t.exports=function(t,n,r,y,d,g){var x=e[t],b=x,m=d?"set":"add",S=b&&b.prototype,w={},_=function(t){var n=S[t];o(S,t,"delete"==t||"has"==t?function(t){return!(g&&!s(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!s(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,r){return n.call(this,0===t?0:t,r),this})};if("function"==typeof b&&(g||S.forEach&&!l((function(){(new b).entries().next()})))){var E=new b,O=E[m](g?{}:-0,1)!=E,P=l((function(){E.has(1)})),F=h((function(t){new b(t)})),M=!g&&l((function(){for(var t=new b,n=5;n--;)t[m](n,n);return!t.has(-0)}));F||((b=n((function(n,r){a(n,b,t);var e=v(new x,n,b);return null!=r&&f(r,d,e[m],e),e}))).prototype=S,S.constructor=b),(P||M)&&(_("delete"),_("has"),d&&_("get")),(M||O)&&_(m),g&&S.clear&&delete S.clear}else b=y.getConstructor(n,t,d,m),u(b.prototype,r),c.NEED=!0;return p(b,t),w[t]=b,i(i.G+i.W+i.F*(b!=x),w),g||y.setStrong(b,t,d),b}},function(t,n,r){for(var e,i=r(1),o=r(20),u=r(40),c=u("typed_array"),f=u("view"),a=!(!i.ArrayBuffer||!i.DataView),s=a,l=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(e=i[h[l++]])?(o(e.prototype,c,!0),o(e.prototype,f,!0)):s=!1;t.exports={ABV:a,CONSTR:s,TYPED:c,VIEW:f}},,,function(t,n,r){var e=r(4),i=r(1).document,o=e(i)&&e(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n,r){n.f=r(5)},function(t,n,r){var e=r(64)("keys"),i=r(40);t.exports=function(t){return e[t]||(e[t]=i(t))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,r){var e=r(1).document;t.exports=e&&e.documentElement},function(t,n,r){var e=r(4),i=r(3),o=function(t,n){if(i(t),!e(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,e){try{(e=r(24)(Function.call,r(27).f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,r){return o(t,r),n?t.__proto__=r:e(t,r),t}}({},!1):void 0),check:o}},function(t,n){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,n,r){var e=r(4),i=r(83).set;t.exports=function(t,n,r){var o,u=n.constructor;return u!==r&&"function"==typeof u&&(o=u.prototype)!==r.prototype&&e(o)&&i&&i(t,o),t}},function(t,n,r){"use strict";var e=r(26),i=r(32);t.exports=function(t){var n=String(i(this)),r="",o=e(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(n+=n))1&o&&(r+=n);return r}},function(t,n){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,n){var r=Math.expm1;t.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:r},function(t,n,r){var e=r(26),i=r(32);t.exports=function(t){return function(n,r){var o,u,c=String(i(n)),f=e(r),a=c.length;return f<0||f>=a?t?"":void 0:(o=c.charCodeAt(f))<55296||o>56319||f+1===a||(u=c.charCodeAt(f+1))<56320||u>57343?t?c.charAt(f):o:t?c.slice(f,f+2):u-56320+(o-55296<<10)+65536}}},function(t,n,r){"use strict";var e=r(41),i=r(0),o=r(17),u=r(20),c=r(52),f=r(125),a=r(50),s=r(46),l=r(5)("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,n,r,v,y,d,g){f(r,n,v);var x,b,m,S=function(t){if(!h&&t in O)return O[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},w=n+" Iterator",_="values"==y,E=!1,O=t.prototype,P=O[l]||O["@@iterator"]||y&&O[y],F=P||S(y),M=y?_?S("entries"):F:void 0,A="Array"==n&&O.entries||P;if(A&&(m=s(A.call(new t)))!==Object.prototype&&m.next&&(a(m,w,!0),e||"function"==typeof m[l]||u(m,l,p)),_&&P&&"values"!==P.name&&(E=!0,F=function(){return P.call(this)}),e&&!g||!h&&!E&&O[l]||u(O,l,F),c[n]=F,c[w]=p,y)if(x={values:_?F:S("values"),keys:d?F:S("keys"),entries:M},g)for(b in x)b in O||o(O,b,x[b]);else i(i.P+i.F*(h||E),n,x);return x}},function(t,n,r){var e=r(92),i=r(32);t.exports=function(t,n,r){if(e(n))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(t))}},function(t,n,r){var e=r(4),i=r(31),o=r(5)("match");t.exports=function(t){var n;return e(t)&&(void 0!==(n=t[o])?!!n:"RegExp"==i(t))}},function(t,n,r){var e=r(5)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(r){try{return n[e]=!1,!"/./"[t](n)}catch(t){}}return!0}},function(t,n,r){var e=r(52),i=r(5)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(e.Array===t||o[i]===t)}},function(t,n,r){"use strict";var e=r(10),i=r(39);t.exports=function(t,n,r){n in t?e.f(t,n,i(0,r)):t[n]=r}},function(t,n,r){var e=r(61),i=r(5)("iterator"),o=r(52);t.exports=r(8).getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[e(t)]}},function(t,n,r){"use strict";var e=r(14),i=r(43),o=r(6);t.exports=function(t){for(var n=e(this),r=o(n.length),u=arguments.length,c=i(u>1?arguments[1]:void 0,r),f=u>2?arguments[2]:void 0,a=void 0===f?r:i(f,r);a>c;)n[c++]=t;return n}},function(t,n,r){"use strict";var e=r(47),i=r(130),o=r(52),u=r(21);t.exports=r(90)(Array,"Array",(function(t,n){this._t=u(t),this._i=0,this._k=n}),(function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):i(0,"keys"==n?r:"values"==n?t[r]:[r,t[r]])}),"values"),o.Arguments=o.Array,e("keys"),e("values"),e("entries")},function(t,n,r){"use strict";var e,i,o=r(69),u=RegExp.prototype.exec,c=String.prototype.replace,f=u,a=(e=/a/,i=/b*/g,u.call(e,"a"),u.call(i,"a"),0!==e.lastIndex||0!==i.lastIndex),s=void 0!==/()??/.exec("")[1];(a||s)&&(f=function(t){var n,r,e,i,f=this;return s&&(r=new RegExp("^"+f.source+"$(?!\\s)",o.call(f))),a&&(n=f.lastIndex),e=u.call(f,t),a&&e&&(f.lastIndex=f.global?e.index+e[0].length:n),s&&e&&e.length>1&&c.call(e[0],r,(function(){for(i=1;ir;)n.push(arguments[r++]);return g[++d]=function(){c("function"==typeof t?t:Function(t),n)},e(d),d},p=function(t){delete g[t]},"process"==r(31)(l)?e=function(t){l.nextTick(u(x,t,1))}:y&&y.now?e=function(t){y.now(u(x,t,1))}:v?(o=(i=new v).port2,i.port1.onmessage=b,e=u(o.postMessage,o,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(e=function(t){s.postMessage(t+"","*")},s.addEventListener("message",b,!1)):e="onreadystatechange"in a("script")?function(t){f.appendChild(a("script")).onreadystatechange=function(){f.removeChild(this),x.call(t)}}:function(t){setTimeout(u(x,t,1),0)}),t.exports={set:h,clear:p}},function(t,n,r){"use strict";var e=r(1),i=r(9),o=r(41),u=r(75),c=r(20),f=r(55),a=r(2),s=r(54),l=r(26),h=r(6),p=r(138),v=r(45).f,y=r(10).f,d=r(97),g=r(50),x=e.ArrayBuffer,b=e.DataView,m=e.Math,S=e.RangeError,w=e.Infinity,_=x,E=m.abs,O=m.pow,P=m.floor,F=m.log,M=m.LN2,A=i?"_b":"buffer",j=i?"_l":"byteLength",I=i?"_o":"byteOffset";function N(t,n,r){var e,i,o,u=new Array(r),c=8*r-n-1,f=(1<>1,s=23===n?O(2,-24)-O(2,-77):0,l=0,h=t<0||0===t&&1/t<0?1:0;for((t=E(t))!=t||t===w?(i=t!=t?1:0,e=f):(e=P(F(t)/M),t*(o=O(2,-e))<1&&(e--,o*=2),(t+=e+a>=1?s/o:s*O(2,1-a))*o>=2&&(e++,o/=2),e+a>=f?(i=0,e=f):e+a>=1?(i=(t*o-1)*O(2,n),e+=a):(i=t*O(2,a-1)*O(2,n),e=0));n>=8;u[l++]=255&i,i/=256,n-=8);for(e=e<0;u[l++]=255&e,e/=256,c-=8);return u[--l]|=128*h,u}function T(t,n,r){var e,i=8*r-n-1,o=(1<>1,c=i-7,f=r-1,a=t[f--],s=127&a;for(a>>=7;c>0;s=256*s+t[f],f--,c-=8);for(e=s&(1<<-c)-1,s>>=-c,c+=n;c>0;e=256*e+t[f],f--,c-=8);if(0===s)s=1-u;else{if(s===o)return e?NaN:a?-w:w;e+=O(2,n),s-=u}return(a?-1:1)*e*O(2,s-n)}function L(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function R(t){return[255&t]}function k(t){return[255&t,t>>8&255]}function C(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function D(t){return N(t,52,8)}function W(t){return N(t,23,4)}function G(t,n,r){y(t.prototype,n,{get:function(){return this[r]}})}function U(t,n,r,e){var i=p(+r);if(i+n>t[j])throw S("Wrong index!");var o=t[A]._b,u=i+t[I],c=o.slice(u,u+n);return e?c:c.reverse()}function B(t,n,r,e,i,o){var u=p(+r);if(u+n>t[j])throw S("Wrong index!");for(var c=t[A]._b,f=u+t[I],a=e(+i),s=0;sq;)(V=Y[q++])in x||c(x,V,_[V]);o||(z.constructor=x)}var $=new b(new x(2)),K=b.prototype.setInt8;$.setInt8(0,2147483648),$.setInt8(1,2147483649),!$.getInt8(0)&&$.getInt8(1)||f(b.prototype,{setInt8:function(t,n){K.call(this,t,n<<24>>24)},setUint8:function(t,n){K.call(this,t,n<<24>>24)}},!0)}else x=function(t){s(this,x,"ArrayBuffer");var n=p(t);this._b=d.call(new Array(n),0),this[j]=n},b=function(t,n,r){s(this,b,"DataView"),s(t,x,"DataView");var e=t[j],i=l(n);if(i<0||i>e)throw S("Wrong offset!");if(i+(r=void 0===r?e-i:h(r))>e)throw S("Wrong length!");this[A]=t,this[I]=i,this[j]=r},i&&(G(x,"byteLength","_l"),G(b,"buffer","_b"),G(b,"byteLength","_l"),G(b,"byteOffset","_o")),f(b.prototype,{getInt8:function(t){return U(this,1,t)[0]<<24>>24},getUint8:function(t){return U(this,1,t)[0]},getInt16:function(t){var n=U(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t){var n=U(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function(t){return L(U(this,4,t,arguments[1]))},getUint32:function(t){return L(U(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return T(U(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return T(U(this,8,t,arguments[1]),52,8)},setInt8:function(t,n){B(this,1,t,R,n)},setUint8:function(t,n){B(this,1,t,R,n)},setInt16:function(t,n){B(this,2,t,k,n,arguments[2])},setUint16:function(t,n){B(this,2,t,k,n,arguments[2])},setInt32:function(t,n){B(this,4,t,C,n,arguments[2])},setUint32:function(t,n){B(this,4,t,C,n,arguments[2])},setFloat32:function(t,n){B(this,4,t,W,n,arguments[2])},setFloat64:function(t,n){B(this,8,t,D,n,arguments[2])}});g(x,"ArrayBuffer"),g(b,"DataView"),c(b.prototype,u.VIEW,!0),n.ArrayBuffer=x,n.DataView=b},function(t,n,r){var e=function(t){"use strict";var n=Object.prototype,r=n.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},i=e.iterator||"@@iterator",o=e.asyncIterator||"@@asyncIterator",u=e.toStringTag||"@@toStringTag";function c(t,n,r){return Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{c({},"")}catch(t){c=function(t,n,r){return t[n]=r}}function f(t,n,r,e){var i=n&&n.prototype instanceof l?n:l,o=Object.create(i.prototype),u=new _(e||[]);return o._invoke=function(t,n,r){var e="suspendedStart";return function(i,o){if("executing"===e)throw new Error("Generator is already running");if("completed"===e){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var u=r.delegate;if(u){var c=m(u,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===e)throw e="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);e="executing";var f=a(t,n,r);if("normal"===f.type){if(e=r.done?"completed":"suspendedYield",f.arg===s)continue;return{value:f.arg,done:r.done}}"throw"===f.type&&(e="completed",r.method="throw",r.arg=f.arg)}}}(t,r,u),o}function a(t,n,r){try{return{type:"normal",arg:t.call(n,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var s={};function l(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,d=y&&y(y(E([])));d&&d!==n&&r.call(d,i)&&(v=d);var g=p.prototype=l.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(n){c(t,n,(function(t){return this._invoke(n,t)}))}))}function b(t,n){var e;this._invoke=function(i,o){function u(){return new n((function(e,u){!function e(i,o,u,c){var f=a(t[i],t,o);if("throw"!==f.type){var s=f.arg,l=s.value;return l&&"object"==typeof l&&r.call(l,"__await")?n.resolve(l.__await).then((function(t){e("next",t,u,c)}),(function(t){e("throw",t,u,c)})):n.resolve(l).then((function(t){s.value=t,u(s)}),(function(t){return e("throw",t,u,c)}))}c(f.arg)}(i,o,e,u)}))}return e=e?e.then(u,u):u()}}function m(t,n){var r=t.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=void 0,m(t,n),"throw"===n.method))return s;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var e=a(r,t.iterator,n.arg);if("throw"===e.type)return n.method="throw",n.arg=e.arg,n.delegate=null,s;var i=e.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,s):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,s)}function S(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function w(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function E(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,o=function n(){for(;++e=0;--i){var o=this.tryEntries[i],u=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),f=r.call(o,"finallyLoc");if(c&&f){if(this.prev=0;--e){var i=this.tryEntries[e];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),s}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var e=r.completion;if("throw"===e.type){var i=e.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:E(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,r){t.exports=!r(143)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},,,,,function(t,n,r){t.exports=!r(9)&&!r(2)((function(){return 7!=Object.defineProperty(r(78)("div"),"a",{get:function(){return 7}}).a}))},function(t,n,r){var e=r(1),i=r(8),o=r(41),u=r(79),c=r(10).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:e.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n,r){var e=r(19),i=r(21),o=r(65)(!1),u=r(80)("IE_PROTO");t.exports=function(t,n){var r,c=i(t),f=0,a=[];for(r in c)r!=u&&e(c,r)&&a.push(r);for(;n.length>f;)e(c,r=n[f++])&&(~o(a,r)||a.push(r));return a}},function(t,n,r){var e=r(10),i=r(3),o=r(42);t.exports=r(9)?Object.defineProperties:function(t,n){i(t);for(var r,u=o(n),c=u.length,f=0;c>f;)e.f(t,r=u[f++],n[r]);return t}},function(t,n,r){var e=r(21),i=r(45).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return u.slice()}}(t):i(e(t))}},function(t,n,r){"use strict";var e=r(9),i=r(42),o=r(66),u=r(60),c=r(14),f=r(59),a=Object.assign;t.exports=!a||r(2)((function(){var t={},n={},r=Symbol(),e="abcdefghijklmnopqrst";return t[r]=7,e.split("").forEach((function(t){n[t]=t})),7!=a({},t)[r]||Object.keys(a({},n)).join("")!=e}))?function(t,n){for(var r=c(t),a=arguments.length,s=1,l=o.f,h=u.f;a>s;)for(var p,v=f(arguments[s++]),y=l?i(v).concat(l(v)):i(v),d=y.length,g=0;d>g;)p=y[g++],e&&!h.call(v,p)||(r[p]=v[p]);return r}:a},function(t,n){t.exports=Object.is||function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}},function(t,n,r){"use strict";var e=r(25),i=r(4),o=r(119),u=[].slice,c={},f=function(t,n,r){if(!(n in c)){for(var e=[],i=0;i>>0||(u.test(r)?16:10))}:e},function(t,n,r){var e=r(1).parseFloat,i=r(51).trim;t.exports=1/e(r(84)+"-0")!=-1/0?function(t){var n=i(String(t),3),r=e(n);return 0===r&&"-"==n.charAt(0)?-0:r}:e},function(t,n,r){var e=r(31);t.exports=function(t,n){if("number"!=typeof t&&"Number"!=e(t))throw TypeError(n);return+t}},function(t,n,r){var e=r(4),i=Math.floor;t.exports=function(t){return!e(t)&&isFinite(t)&&i(t)===t}},function(t,n){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,n,r){"use strict";var e=r(44),i=r(39),o=r(50),u={};r(20)(u,r(5)("iterator"),(function(){return this})),t.exports=function(t,n,r){t.prototype=e(u,{next:i(1,r)}),o(t,n+" Iterator")}},function(t,n,r){var e=r(3);t.exports=function(t,n,r,i){try{return i?n(e(r)[0],r[1]):n(r)}catch(n){var o=t.return;throw void 0!==o&&e(o.call(t)),n}}},function(t,n,r){var e=r(240);t.exports=function(t,n){return new(e(t))(n)}},function(t,n,r){var e=r(25),i=r(14),o=r(59),u=r(6);t.exports=function(t,n,r,c,f){e(n);var a=i(t),s=o(a),l=u(a.length),h=f?l-1:0,p=f?-1:1;if(r<2)for(;;){if(h in s){c=s[h],h+=p;break}if(h+=p,f?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;f?h>=0:l>h;h+=p)h in s&&(c=n(c,s[h],h,a));return c}},function(t,n,r){"use strict";var e=r(14),i=r(43),o=r(6);t.exports=[].copyWithin||function(t,n){var r=e(this),u=o(r.length),c=i(t,u),f=i(n,u),a=arguments.length>2?arguments[2]:void 0,s=Math.min((void 0===a?u:i(a,u))-f,u-c),l=1;for(f0;)f in r?r[c]=r[f]:delete r[c],c+=l,f+=l;return r}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,r){"use strict";var e=r(99);r(0)({target:"RegExp",proto:!0,forced:e!==/./.exec},{exec:e})},function(t,n,r){r(9)&&"g"!=/./g.flags&&r(10).f(RegExp.prototype,"flags",{configurable:!0,get:r(69)})},function(t,n,r){"use strict";var e,i,o,u,c=r(41),f=r(1),a=r(24),s=r(61),l=r(0),h=r(4),p=r(25),v=r(54),y=r(72),d=r(62),g=r(101).set,x=r(260)(),b=r(134),m=r(261),S=r(73),w=r(135),_=f.TypeError,E=f.process,O=E&&E.versions,P=O&&O.v8||"",F=f.Promise,M="process"==s(E),A=function(){},j=i=b.f,I=!!function(){try{var t=F.resolve(1),n=(t.constructor={})[r(5)("species")]=function(t){t(A,A)};return(M||"function"==typeof PromiseRejectionEvent)&&t.then(A)instanceof n&&0!==P.indexOf("6.6")&&-1===S.indexOf("Chrome/66")}catch(t){}}(),N=function(t){var n;return!(!h(t)||"function"!=typeof(n=t.then))&&n},T=function(t,n){if(!t._n){t._n=!0;var r=t._c;x((function(){for(var e=t._v,i=1==t._s,o=0,u=function(n){var r,o,u,c=i?n.ok:n.fail,f=n.resolve,a=n.reject,s=n.domain;try{c?(i||(2==t._h&&k(t),t._h=1),!0===c?r=e:(s&&s.enter(),r=c(e),s&&(s.exit(),u=!0)),r===n.promise?a(_("Promise-chain cycle")):(o=N(r))?o.call(r,f,a):f(r)):a(e)}catch(t){s&&!u&&s.exit(),a(t)}};r.length>o;)u(r[o++]);t._c=[],t._n=!1,n&&!t._h&&L(t)}))}},L=function(t){g.call(f,(function(){var n,r,e,i=t._v,o=R(t);if(o&&(n=m((function(){M?E.emit("unhandledRejection",i,t):(r=f.onunhandledrejection)?r({promise:t,reason:i}):(e=f.console)&&e.error&&e.error("Unhandled promise rejection",i)})),t._h=M||R(t)?2:1),t._a=void 0,o&&n.e)throw n.v}))},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},k=function(t){g.call(f,(function(){var n;M?E.emit("rejectionHandled",t):(n=f.onrejectionhandled)&&n({promise:t,reason:t._v})}))},C=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),T(n,!0))},D=function(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw _("Promise can't be resolved itself");(n=N(t))?x((function(){var e={_w:r,_d:!1};try{n.call(t,a(D,e,1),a(C,e,1))}catch(t){C.call(e,t)}})):(r._v=t,r._s=1,T(r,!1))}catch(t){C.call({_w:r,_d:!1},t)}}};I||(F=function(t){v(this,F,"Promise","_h"),p(t),e.call(this);try{t(a(D,this,1),a(C,this,1))}catch(t){C.call(this,t)}},(e=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(55)(F.prototype,{then:function(t,n){var r=j(d(this,F));return r.ok="function"!=typeof t||t,r.fail="function"==typeof n&&n,r.domain=M?E.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&T(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new e;this.promise=t,this.resolve=a(D,t,1),this.reject=a(C,t,1)},b.f=j=function(t){return t===F||t===u?new o(t):i(t)}),l(l.G+l.W+l.F*!I,{Promise:F}),r(50)(F,"Promise"),r(53)("Promise"),u=r(8).Promise,l(l.S+l.F*!I,"Promise",{reject:function(t){var n=j(this);return(0,n.reject)(t),n.promise}}),l(l.S+l.F*(c||!I),"Promise",{resolve:function(t){return w(c&&this===u?F:this,t)}}),l(l.S+l.F*!(I&&r(68)((function(t){F.all(t).catch(A)}))),"Promise",{all:function(t){var n=this,r=j(n),e=r.resolve,i=r.reject,o=m((function(){var r=[],o=0,u=1;y(t,!1,(function(t){var c=o++,f=!1;r.push(void 0),u++,n.resolve(t).then((function(t){f||(f=!0,r[c]=t,--u||e(r))}),i)})),--u||e(r)}));return o.e&&i(o.v),r.promise},race:function(t){var n=this,r=j(n),e=r.reject,i=m((function(){y(t,!1,(function(t){n.resolve(t).then(r.resolve,e)}))}));return i.e&&e(i.v),r.promise}})},function(t,n,r){"use strict";var e=r(25);function i(t){var n,r;this.promise=new t((function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e})),this.resolve=e(n),this.reject=e(r)}t.exports.f=function(t){return new i(t)}},function(t,n,r){var e=r(3),i=r(4),o=r(134);t.exports=function(t,n){if(e(t),i(n)&&n.constructor===t)return n;var r=o.f(t);return(0,r.resolve)(n),r.promise}},function(t,n,r){"use strict";var e=r(10).f,i=r(44),o=r(55),u=r(24),c=r(54),f=r(72),a=r(90),s=r(130),l=r(53),h=r(9),p=r(36).fastKey,v=r(48),y=h?"_s":"size",d=function(t,n){var r,e=p(n);if("F"!==e)return t._i[e];for(r=t._f;r;r=r.n)if(r.k==n)return r};t.exports={getConstructor:function(t,n,r,a){var s=t((function(t,e){c(t,s,n,"_i"),t._t=n,t._i=i(null),t._f=void 0,t._l=void 0,t[y]=0,null!=e&&f(e,r,t[a],t)}));return o(s.prototype,{clear:function(){for(var t=v(this,n),r=t._i,e=t._f;e;e=e.n)e.r=!0,e.p&&(e.p=e.p.n=void 0),delete r[e.i];t._f=t._l=void 0,t[y]=0},delete:function(t){var r=v(this,n),e=d(r,t);if(e){var i=e.n,o=e.p;delete r._i[e.i],e.r=!0,o&&(o.n=i),i&&(i.p=o),r._f==e&&(r._f=i),r._l==e&&(r._l=o),r[y]--}return!!e},forEach:function(t){v(this,n);for(var r,e=u(t,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(e(r.v,r.k,this);r&&r.r;)r=r.p},has:function(t){return!!d(v(this,n),t)}}),h&&e(s.prototype,"size",{get:function(){return v(this,n)[y]}}),s},def:function(t,n,r){var e,i,o=d(t,n);return o?o.v=r:(t._l=o={i:i=p(n,!0),k:n,v:r,p:e=t._l,n:void 0,r:!1},t._f||(t._f=o),e&&(e.n=o),t[y]++,"F"!==i&&(t._i[i]=o)),t},getEntry:d,setStrong:function(t,n,r){a(t,n,(function(t,r){this._t=v(t,n),this._k=r,this._l=void 0}),(function(){for(var t=this._k,n=this._l;n&&n.r;)n=n.p;return this._t&&(this._l=n=n?n.n:this._t._f)?s(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(this._t=void 0,s(1))}),r?"entries":"values",!r,!0),l(n)}}},function(t,n,r){"use strict";var e=r(55),i=r(36).getWeak,o=r(3),u=r(4),c=r(54),f=r(72),a=r(29),s=r(19),l=r(48),h=a(5),p=a(6),v=0,y=function(t){return t._l||(t._l=new d)},d=function(){this.a=[]},g=function(t,n){return h(t.a,(function(t){return t[0]===n}))};d.prototype={get:function(t){var n=g(this,t);if(n)return n[1]},has:function(t){return!!g(this,t)},set:function(t,n){var r=g(this,t);r?r[1]=n:this.a.push([t,n])},delete:function(t){var n=p(this.a,(function(n){return n[0]===t}));return~n&&this.a.splice(n,1),!!~n}},t.exports={getConstructor:function(t,n,r,o){var a=t((function(t,e){c(t,a,n,"_i"),t._t=n,t._i=v++,t._l=void 0,null!=e&&f(e,r,t[o],t)}));return e(a.prototype,{delete:function(t){if(!u(t))return!1;var r=i(t);return!0===r?y(l(this,n)).delete(t):r&&s(r,this._i)&&delete r[this._i]},has:function(t){if(!u(t))return!1;var r=i(t);return!0===r?y(l(this,n)).has(t):r&&s(r,this._i)}}),a},def:function(t,n,r){var e=i(o(n),!0);return!0===e?y(t).set(n,r):e[t._i]=r,t},ufstore:y}},function(t,n,r){var e=r(26),i=r(6);t.exports=function(t){if(void 0===t)return 0;var n=e(t),r=i(n);if(n!==r)throw RangeError("Wrong length!");return r}},function(t,n,r){var e=r(45),i=r(66),o=r(3),u=r(1).Reflect;t.exports=u&&u.ownKeys||function(t){var n=e.f(o(t)),r=i.f;return r?n.concat(r(t)):n}},function(t,n,r){var e=r(6),i=r(86),o=r(32);t.exports=function(t,n,r,u){var c=String(o(t)),f=c.length,a=void 0===r?" ":String(r),s=e(n);if(s<=f||""==a)return c;var l=s-f,h=i.call(a,Math.ceil(l/a.length));return h.length>l&&(h=h.slice(0,l)),u?h+c:c+h}},function(t,n,r){var e=r(9),i=r(42),o=r(21),u=r(60).f;t.exports=function(t){return function(n){for(var r,c=o(n),f=i(c),a=f.length,s=0,l=[];a>s;)r=f[s++],e&&!u.call(c,r)||l.push(t?[r,c[r]]:c[r]);return l}}},function(t,n){var r=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},,,function(t,n,r){"use strict";r(147);var e,i=(e=r(318))&&e.__esModule?e:{default:e};i.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),i.default._babelPolyfill=!0},function(t,n,r){"use strict";r(148),r(291),r(293),r(296),r(298),r(300),r(302),r(304),r(306),r(308),r(310),r(312),r(314),r(103)},function(t,n,r){r(149),r(152),r(153),r(154),r(155),r(156),r(157),r(158),r(159),r(160),r(161),r(162),r(163),r(164),r(165),r(166),r(167),r(168),r(169),r(170),r(171),r(172),r(173),r(174),r(175),r(176),r(177),r(178),r(179),r(180),r(181),r(182),r(183),r(184),r(185),r(186),r(187),r(188),r(189),r(190),r(191),r(192),r(193),r(195),r(196),r(197),r(198),r(199),r(200),r(201),r(202),r(203),r(204),r(205),r(206),r(207),r(208),r(209),r(210),r(211),r(212),r(213),r(214),r(215),r(216),r(217),r(218),r(219),r(220),r(221),r(222),r(223),r(224),r(225),r(226),r(227),r(228),r(230),r(231),r(233),r(234),r(235),r(236),r(237),r(238),r(239),r(241),r(242),r(243),r(244),r(245),r(246),r(247),r(248),r(249),r(250),r(251),r(252),r(253),r(98),r(254),r(131),r(255),r(132),r(256),r(257),r(258),r(259),r(133),r(262),r(263),r(264),r(265),r(266),r(267),r(268),r(269),r(270),r(271),r(272),r(273),r(274),r(275),r(276),r(277),r(278),r(279),r(280),r(281),r(282),r(283),r(284),r(285),r(286),r(287),r(288),r(289),r(290),t.exports=r(8)},function(t,n,r){"use strict";var e=r(1),i=r(19),o=r(9),u=r(0),c=r(17),f=r(36).KEY,a=r(2),s=r(64),l=r(50),h=r(40),p=r(5),v=r(79),y=r(112),d=r(151),g=r(67),x=r(3),b=r(4),m=r(14),S=r(21),w=r(35),_=r(39),E=r(44),O=r(115),P=r(27),F=r(66),M=r(10),A=r(42),j=P.f,I=M.f,N=O.f,T=e.Symbol,L=e.JSON,R=L&&L.stringify,k=p("_hidden"),C=p("toPrimitive"),D={}.propertyIsEnumerable,W=s("symbol-registry"),G=s("symbols"),U=s("op-symbols"),B=Object.prototype,V="function"==typeof T&&!!F.f,z=e.QObject,Y=!z||!z.prototype||!z.prototype.findChild,q=o&&a((function(){return 7!=E(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a}))?function(t,n,r){var e=j(B,n);e&&delete B[n],I(t,n,r),e&&t!==B&&I(B,n,e)}:I,$=function(t){var n=G[t]=E(T.prototype);return n._k=t,n},K=V&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},J=function(t,n,r){return t===B&&J(U,n,r),x(t),n=w(n,!0),x(r),i(G,n)?(r.enumerable?(i(t,k)&&t[k][n]&&(t[k][n]=!1),r=E(r,{enumerable:_(0,!1)})):(i(t,k)||I(t,k,_(1,{})),t[k][n]=!0),q(t,n,r)):I(t,n,r)},X=function(t,n){x(t);for(var r,e=d(n=S(n)),i=0,o=e.length;o>i;)J(t,r=e[i++],n[r]);return t},H=function(t){var n=D.call(this,t=w(t,!0));return!(this===B&&i(G,t)&&!i(U,t))&&(!(n||!i(this,t)||!i(G,t)||i(this,k)&&this[k][t])||n)},Z=function(t,n){if(t=S(t),n=w(n,!0),t!==B||!i(G,n)||i(U,n)){var r=j(t,n);return!r||!i(G,n)||i(t,k)&&t[k][n]||(r.enumerable=!0),r}},Q=function(t){for(var n,r=N(S(t)),e=[],o=0;r.length>o;)i(G,n=r[o++])||n==k||n==f||e.push(n);return e},tt=function(t){for(var n,r=t===B,e=N(r?U:S(t)),o=[],u=0;e.length>u;)!i(G,n=e[u++])||r&&!i(B,n)||o.push(G[n]);return o};V||(c((T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(r){this===B&&n.call(U,r),i(this,k)&&i(this[k],t)&&(this[k][t]=!1),q(this,t,_(1,r))};return o&&Y&&q(B,t,{configurable:!0,set:n}),$(t)}).prototype,"toString",(function(){return this._k})),P.f=Z,M.f=J,r(45).f=O.f=Q,r(60).f=H,F.f=tt,o&&!r(41)&&c(B,"propertyIsEnumerable",H,!0),v.f=function(t){return $(p(t))}),u(u.G+u.W+u.F*!V,{Symbol:T});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;nt.length>rt;)p(nt[rt++]);for(var et=A(p.store),it=0;et.length>it;)y(et[it++]);u(u.S+u.F*!V,"Symbol",{for:function(t){return i(W,t+="")?W[t]:W[t]=T(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var n in W)if(W[n]===t)return n},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),u(u.S+u.F*!V,"Object",{create:function(t,n){return void 0===n?E(t):X(E(t),n)},defineProperty:J,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:Q,getOwnPropertySymbols:tt});var ot=a((function(){F.f(1)}));u(u.S+u.F*ot,"Object",{getOwnPropertySymbols:function(t){return F.f(m(t))}}),L&&u(u.S+u.F*(!V||a((function(){var t=T();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))}))),"JSON",{stringify:function(t){for(var n,r,e=[t],i=1;arguments.length>i;)e.push(arguments[i++]);if(r=n=e[1],(b(n)||void 0!==t)&&!K(t))return g(n)||(n=function(t,n){if("function"==typeof r&&(n=r.call(this,t,n)),!K(n))return n}),e[1]=n,R.apply(L,e)}}),T.prototype[C]||r(20)(T.prototype,C,T.prototype.valueOf),l(T,"Symbol"),l(Math,"Math",!0),l(e.JSON,"JSON",!0)},function(t,n,r){t.exports=r(64)("native-function-to-string",Function.toString)},function(t,n,r){var e=r(42),i=r(66),o=r(60);t.exports=function(t){var n=e(t),r=i.f;if(r)for(var u,c=r(t),f=o.f,a=0;c.length>a;)f.call(t,u=c[a++])&&n.push(u);return n}},function(t,n,r){var e=r(0);e(e.S,"Object",{create:r(44)})},function(t,n,r){var e=r(0);e(e.S+e.F*!r(9),"Object",{defineProperty:r(10).f})},function(t,n,r){var e=r(0);e(e.S+e.F*!r(9),"Object",{defineProperties:r(114)})},function(t,n,r){var e=r(21),i=r(27).f;r(28)("getOwnPropertyDescriptor",(function(){return function(t,n){return i(e(t),n)}}))},function(t,n,r){var e=r(14),i=r(46);r(28)("getPrototypeOf",(function(){return function(t){return i(e(t))}}))},function(t,n,r){var e=r(14),i=r(42);r(28)("keys",(function(){return function(t){return i(e(t))}}))},function(t,n,r){r(28)("getOwnPropertyNames",(function(){return r(115).f}))},function(t,n,r){var e=r(4),i=r(36).onFreeze;r(28)("freeze",(function(t){return function(n){return t&&e(n)?t(i(n)):n}}))},function(t,n,r){var e=r(4),i=r(36).onFreeze;r(28)("seal",(function(t){return function(n){return t&&e(n)?t(i(n)):n}}))},function(t,n,r){var e=r(4),i=r(36).onFreeze;r(28)("preventExtensions",(function(t){return function(n){return t&&e(n)?t(i(n)):n}}))},function(t,n,r){var e=r(4);r(28)("isFrozen",(function(t){return function(n){return!e(n)||!!t&&t(n)}}))},function(t,n,r){var e=r(4);r(28)("isSealed",(function(t){return function(n){return!e(n)||!!t&&t(n)}}))},function(t,n,r){var e=r(4);r(28)("isExtensible",(function(t){return function(n){return!!e(n)&&(!t||t(n))}}))},function(t,n,r){var e=r(0);e(e.S+e.F,"Object",{assign:r(116)})},function(t,n,r){var e=r(0);e(e.S,"Object",{is:r(117)})},function(t,n,r){var e=r(0);e(e.S,"Object",{setPrototypeOf:r(83).set})},function(t,n,r){"use strict";var e=r(61),i={};i[r(5)("toStringTag")]="z",i+""!="[object z]"&&r(17)(Object.prototype,"toString",(function(){return"[object "+e(this)+"]"}),!0)},function(t,n,r){var e=r(0);e(e.P,"Function",{bind:r(118)})},function(t,n,r){var e=r(10).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||r(9)&&e(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,n,r){"use strict";var e=r(4),i=r(46),o=r(5)("hasInstance"),u=Function.prototype;o in u||r(10).f(u,o,{value:function(t){if("function"!=typeof this||!e(t))return!1;if(!e(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,n,r){var e=r(0),i=r(120);e(e.G+e.F*(parseInt!=i),{parseInt:i})},function(t,n,r){var e=r(0),i=r(121);e(e.G+e.F*(parseFloat!=i),{parseFloat:i})},function(t,n,r){"use strict";var e=r(1),i=r(19),o=r(31),u=r(85),c=r(35),f=r(2),a=r(45).f,s=r(27).f,l=r(10).f,h=r(51).trim,p=e.Number,v=p,y=p.prototype,d="Number"==o(r(44)(y)),g="trim"in String.prototype,x=function(t){var n=c(t,!1);if("string"==typeof n&&n.length>2){var r,e,i,o=(n=g?n.trim():h(n,3)).charCodeAt(0);if(43===o||45===o){if(88===(r=n.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(n.charCodeAt(1)){case 66:case 98:e=2,i=49;break;case 79:case 111:e=8,i=55;break;default:return+n}for(var u,f=n.slice(2),a=0,s=f.length;ai)return NaN;return parseInt(f,e)}}return+n};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var n=arguments.length<1?0:t,r=this;return r instanceof p&&(d?f((function(){y.valueOf.call(r)})):"Number"!=o(r))?u(new v(x(n)),r,p):x(n)};for(var b,m=r(9)?a(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;m.length>S;S++)i(v,b=m[S])&&!i(p,b)&&l(p,b,s(v,b));p.prototype=y,y.constructor=p,r(17)(e,"Number",p)}},function(t,n,r){"use strict";var e=r(0),i=r(26),o=r(122),u=r(86),c=1..toFixed,f=Math.floor,a=[0,0,0,0,0,0],s="Number.toFixed: incorrect invocation!",l=function(t,n){for(var r=-1,e=n;++r<6;)e+=t*a[r],a[r]=e%1e7,e=f(e/1e7)},h=function(t){for(var n=6,r=0;--n>=0;)r+=a[n],a[n]=f(r/t),r=r%t*1e7},p=function(){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==a[t]){var r=String(a[t]);n=""===n?r:n+u.call("0",7-r.length)+r}return n},v=function(t,n,r){return 0===n?r:n%2==1?v(t,n-1,r*t):v(t*t,n/2,r)};e(e.P+e.F*(!!c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r(2)((function(){c.call({})}))),"Number",{toFixed:function(t){var n,r,e,c,f=o(this,s),a=i(t),y="",d="0";if(a<0||a>20)throw RangeError(s);if(f!=f)return"NaN";if(f<=-1e21||f>=1e21)return String(f);if(f<0&&(y="-",f=-f),f>1e-21)if(r=(n=function(t){for(var n=0,r=t;r>=4096;)n+=12,r/=4096;for(;r>=2;)n+=1,r/=2;return n}(f*v(2,69,1))-69)<0?f*v(2,-n,1):f/v(2,n,1),r*=4503599627370496,(n=52-n)>0){for(l(0,r),e=a;e>=7;)l(1e7,0),e-=7;for(l(v(10,e,1),0),e=n-1;e>=23;)h(1<<23),e-=23;h(1<0?y+((c=d.length)<=a?"0."+u.call("0",a-c)+d:d.slice(0,c-a)+"."+d.slice(c-a)):y+d}})},function(t,n,r){"use strict";var e=r(0),i=r(2),o=r(122),u=1..toPrecision;e(e.P+e.F*(i((function(){return"1"!==u.call(1,void 0)}))||!i((function(){u.call({})}))),"Number",{toPrecision:function(t){var n=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?u.call(n):u.call(n,t)}})},function(t,n,r){var e=r(0);e(e.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,n,r){var e=r(0),i=r(1).isFinite;e(e.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,n,r){var e=r(0);e(e.S,"Number",{isInteger:r(123)})},function(t,n,r){var e=r(0);e(e.S,"Number",{isNaN:function(t){return t!=t}})},function(t,n,r){var e=r(0),i=r(123),o=Math.abs;e(e.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,n,r){var e=r(0);e(e.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,n,r){var e=r(0);e(e.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,n,r){var e=r(0),i=r(121);e(e.S+e.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,n,r){var e=r(0),i=r(120);e(e.S+e.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,n,r){var e=r(0),i=r(124),o=Math.sqrt,u=Math.acosh;e(e.S+e.F*!(u&&710==Math.floor(u(Number.MAX_VALUE))&&u(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,n,r){var e=r(0),i=Math.asinh;e(e.S+e.F*!(i&&1/i(0)>0),"Math",{asinh:function t(n){return isFinite(n=+n)&&0!=n?n<0?-t(-n):Math.log(n+Math.sqrt(n*n+1)):n}})},function(t,n,r){var e=r(0),i=Math.atanh;e(e.S+e.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,n,r){var e=r(0),i=r(87);e(e.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,n,r){var e=r(0);e(e.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,n,r){var e=r(0),i=Math.exp;e(e.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,n,r){var e=r(0),i=r(88);e(e.S+e.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,n,r){var e=r(0);e(e.S,"Math",{fround:r(194)})},function(t,n,r){var e=r(87),i=Math.pow,o=i(2,-52),u=i(2,-23),c=i(2,127)*(2-u),f=i(2,-126);t.exports=Math.fround||function(t){var n,r,i=Math.abs(t),a=e(t);return ic||r!=r?a*(1/0):a*r}},function(t,n,r){var e=r(0),i=Math.abs;e(e.S,"Math",{hypot:function(t,n){for(var r,e,o=0,u=0,c=arguments.length,f=0;u0?(e=r/f)*e:r;return f===1/0?1/0:f*Math.sqrt(o)}})},function(t,n,r){var e=r(0),i=Math.imul;e(e.S+e.F*r(2)((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(t,n){var r=+t,e=+n,i=65535&r,o=65535&e;return 0|i*o+((65535&r>>>16)*o+i*(65535&e>>>16)<<16>>>0)}})},function(t,n,r){var e=r(0);e(e.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,n,r){var e=r(0);e(e.S,"Math",{log1p:r(124)})},function(t,n,r){var e=r(0);e(e.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,n,r){var e=r(0);e(e.S,"Math",{sign:r(87)})},function(t,n,r){var e=r(0),i=r(88),o=Math.exp;e(e.S+e.F*r(2)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,n,r){var e=r(0),i=r(88),o=Math.exp;e(e.S,"Math",{tanh:function(t){var n=i(t=+t),r=i(-t);return n==1/0?1:r==1/0?-1:(n-r)/(o(t)+o(-t))}})},function(t,n,r){var e=r(0);e(e.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,n,r){var e=r(0),i=r(43),o=String.fromCharCode,u=String.fromCodePoint;e(e.S+e.F*(!!u&&1!=u.length),"String",{fromCodePoint:function(t){for(var n,r=[],e=arguments.length,u=0;e>u;){if(n=+arguments[u++],i(n,1114111)!==n)throw RangeError(n+" is not a valid code point");r.push(n<65536?o(n):o(55296+((n-=65536)>>10),n%1024+56320))}return r.join("")}})},function(t,n,r){var e=r(0),i=r(21),o=r(6);e(e.S,"String",{raw:function(t){for(var n=i(t.raw),r=o(n.length),e=arguments.length,u=[],c=0;r>c;)u.push(String(n[c++])),c=n.length?{value:void 0,done:!0}:(t=e(n,r),this._i+=t.length,{value:t,done:!1})}))},function(t,n,r){"use strict";var e=r(0),i=r(89)(!1);e(e.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,n,r){"use strict";var e=r(0),i=r(6),o=r(91),u="".endsWith;e(e.P+e.F*r(93)("endsWith"),"String",{endsWith:function(t){var n=o(this,t,"endsWith"),r=arguments.length>1?arguments[1]:void 0,e=i(n.length),c=void 0===r?e:Math.min(i(r),e),f=String(t);return u?u.call(n,f,c):n.slice(c-f.length,c)===f}})},function(t,n,r){"use strict";var e=r(0),i=r(91);e(e.P+e.F*r(93)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,n,r){var e=r(0);e(e.P,"String",{repeat:r(86)})},function(t,n,r){"use strict";var e=r(0),i=r(6),o=r(91),u="".startsWith;e(e.P+e.F*r(93)("startsWith"),"String",{startsWith:function(t){var n=o(this,t,"startsWith"),r=i(Math.min(arguments.length>1?arguments[1]:void 0,n.length)),e=String(t);return u?u.call(n,e,r):n.slice(r,r+e.length)===e}})},function(t,n,r){"use strict";r(18)("anchor",(function(t){return function(n){return t(this,"a","name",n)}}))},function(t,n,r){"use strict";r(18)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,n,r){"use strict";r(18)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,n,r){"use strict";r(18)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,n,r){"use strict";r(18)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,n,r){"use strict";r(18)("fontcolor",(function(t){return function(n){return t(this,"font","color",n)}}))},function(t,n,r){"use strict";r(18)("fontsize",(function(t){return function(n){return t(this,"font","size",n)}}))},function(t,n,r){"use strict";r(18)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,n,r){"use strict";r(18)("link",(function(t){return function(n){return t(this,"a","href",n)}}))},function(t,n,r){"use strict";r(18)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,n,r){"use strict";r(18)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,n,r){"use strict";r(18)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,n,r){"use strict";r(18)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,n,r){var e=r(0);e(e.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,n,r){"use strict";var e=r(0),i=r(14),o=r(35);e(e.P+e.F*r(2)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var n=i(this),r=o(n);return"number"!=typeof r||isFinite(r)?n.toISOString():null}})},function(t,n,r){var e=r(0),i=r(229);e(e.P+e.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(t,n,r){"use strict";var e=r(2),i=Date.prototype.getTime,o=Date.prototype.toISOString,u=function(t){return t>9?t:"0"+t};t.exports=e((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-50000000000001))}))||!e((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,n=t.getUTCFullYear(),r=t.getUTCMilliseconds(),e=n<0?"-":n>9999?"+":"";return e+("00000"+Math.abs(n)).slice(e?-6:-4)+"-"+u(t.getUTCMonth()+1)+"-"+u(t.getUTCDate())+"T"+u(t.getUTCHours())+":"+u(t.getUTCMinutes())+":"+u(t.getUTCSeconds())+"."+(r>99?r:"0"+u(r))+"Z"}:o},function(t,n,r){var e=Date.prototype,i=e.toString,o=e.getTime;new Date(NaN)+""!="Invalid Date"&&r(17)(e,"toString",(function(){var t=o.call(this);return t==t?i.call(this):"Invalid Date"}))},function(t,n,r){var e=r(5)("toPrimitive"),i=Date.prototype;e in i||r(20)(i,e,r(232))},function(t,n,r){"use strict";var e=r(3),i=r(35);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(e(this),"number"!=t)}},function(t,n,r){var e=r(0);e(e.S,"Array",{isArray:r(67)})},function(t,n,r){"use strict";var e=r(24),i=r(0),o=r(14),u=r(126),c=r(94),f=r(6),a=r(95),s=r(96);i(i.S+i.F*!r(68)((function(t){Array.from(t)})),"Array",{from:function(t){var n,r,i,l,h=o(t),p="function"==typeof this?this:Array,v=arguments.length,y=v>1?arguments[1]:void 0,d=void 0!==y,g=0,x=s(h);if(d&&(y=e(y,v>2?arguments[2]:void 0,2)),null==x||p==Array&&c(x))for(r=new p(n=f(h.length));n>g;g++)a(r,g,d?y(h[g],g):h[g]);else for(l=x.call(h),r=new p;!(i=l.next()).done;g++)a(r,g,d?u(l,y,[i.value,g],!0):i.value);return r.length=g,r}})},function(t,n,r){"use strict";var e=r(0),i=r(95);e(e.S+e.F*r(2)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,n=arguments.length,r=new("function"==typeof this?this:Array)(n);n>t;)i(r,t,arguments[t++]);return r.length=n,r}})},function(t,n,r){"use strict";var e=r(0),i=r(21),o=[].join;e(e.P+e.F*(r(59)!=Object||!r(23)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,n,r){"use strict";var e=r(0),i=r(82),o=r(31),u=r(43),c=r(6),f=[].slice;e(e.P+e.F*r(2)((function(){i&&f.call(i)})),"Array",{slice:function(t,n){var r=c(this.length),e=o(this);if(n=void 0===n?r:n,"Array"==e)return f.call(this,t,n);for(var i=u(t,r),a=u(n,r),s=c(a-i),l=new Array(s),h=0;h1&&(e=Math.min(e,o(arguments[1]))),e<0&&(e=r+e);e>=0;e--)if(e in n&&n[e]===t)return e||0;return-1}})},function(t,n,r){var e=r(0);e(e.P,"Array",{copyWithin:r(129)}),r(47)("copyWithin")},function(t,n,r){var e=r(0);e(e.P,"Array",{fill:r(97)}),r(47)("fill")},function(t,n,r){"use strict";var e=r(0),i=r(29)(5),o=!0;"find"in[]&&Array(1).find((function(){o=!1})),e(e.P+e.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(47)("find")},function(t,n,r){"use strict";var e=r(0),i=r(29)(6),o="findIndex",u=!0;o in[]&&Array(1)[o]((function(){u=!1})),e(e.P+e.F*u,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(47)(o)},function(t,n,r){r(53)("Array")},function(t,n,r){var e=r(1),i=r(85),o=r(10).f,u=r(45).f,c=r(92),f=r(69),a=e.RegExp,s=a,l=a.prototype,h=/a/g,p=/a/g,v=new a(h)!==h;if(r(9)&&(!v||r(2)((function(){return p[r(5)("match")]=!1,a(h)!=h||a(p)==p||"/a/i"!=a(h,"i")})))){a=function(t,n){var r=this instanceof a,e=c(t),o=void 0===n;return!r&&e&&t.constructor===a&&o?t:i(v?new s(e&&!o?t.source:t,n):s((e=t instanceof a)?t.source:t,e&&o?f.call(t):n),r?this:l,a)};for(var y=function(t){t in a||o(a,t,{configurable:!0,get:function(){return s[t]},set:function(n){s[t]=n}})},d=u(s),g=0;d.length>g;)y(d[g++]);l.constructor=a,a.prototype=l,r(17)(e,"RegExp",a)}r(53)("RegExp")},function(t,n,r){"use strict";r(132);var e=r(3),i=r(69),o=r(9),u=/./.toString,c=function(t){r(17)(RegExp.prototype,"toString",t,!0)};r(2)((function(){return"/a/b"!=u.call({source:"a",flags:"b"})}))?c((function(){var t=e(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)})):"toString"!=u.name&&c((function(){return u.call(this)}))},function(t,n,r){"use strict";var e=r(3),i=r(6),o=r(100),u=r(70);r(71)("match",1,(function(t,n,r,c){return[function(r){var e=t(this),i=null==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},function(t){var n=c(r,t,this);if(n.done)return n.value;var f=e(t),a=String(this);if(!f.global)return u(f,a);var s=f.unicode;f.lastIndex=0;for(var l,h=[],p=0;null!==(l=u(f,a));){var v=String(l[0]);h[p]=v,""===v&&(f.lastIndex=o(a,i(f.lastIndex),s)),p++}return 0===p?null:h}]}))},function(t,n,r){"use strict";var e=r(3),i=r(14),o=r(6),u=r(26),c=r(100),f=r(70),a=Math.max,s=Math.min,l=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;r(71)("replace",2,(function(t,n,r,v){return[function(e,i){var o=t(this),u=null==e?void 0:e[n];return void 0!==u?u.call(e,o,i):r.call(String(o),e,i)},function(t,n){var i=v(r,t,this,n);if(i.done)return i.value;var l=e(t),h=String(this),p="function"==typeof n;p||(n=String(n));var d=l.global;if(d){var g=l.unicode;l.lastIndex=0}for(var x=[];;){var b=f(l,h);if(null===b)break;if(x.push(b),!d)break;""===String(b[0])&&(l.lastIndex=c(h,o(l.lastIndex),g))}for(var m,S="",w=0,_=0;_=w&&(S+=h.slice(w,O)+j,w=O+E.length)}return S+h.slice(w)}];function y(t,n,e,o,u,c){var f=e+t.length,a=o.length,s=p;return void 0!==u&&(u=i(u),s=h),r.call(c,s,(function(r,i){var c;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,e);case"'":return n.slice(f);case"<":c=u[i.slice(1,-1)];break;default:var s=+i;if(0===s)return r;if(s>a){var h=l(s/10);return 0===h?r:h<=a?void 0===o[h-1]?i.charAt(1):o[h-1]+i.charAt(1):r}c=o[s-1]}return void 0===c?"":c}))}}))},function(t,n,r){"use strict";var e=r(3),i=r(117),o=r(70);r(71)("search",1,(function(t,n,r,u){return[function(r){var e=t(this),i=null==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},function(t){var n=u(r,t,this);if(n.done)return n.value;var c=e(t),f=String(this),a=c.lastIndex;i(a,0)||(c.lastIndex=0);var s=o(c,f);return i(c.lastIndex,a)||(c.lastIndex=a),null===s?-1:s.index}]}))},function(t,n,r){"use strict";var e=r(92),i=r(3),o=r(62),u=r(100),c=r(6),f=r(70),a=r(99),s=r(2),l=Math.min,h=[].push,p="length",v=!s((function(){RegExp(4294967295,"y")}));r(71)("split",2,(function(t,n,r,s){var y;return y="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[p]||2!="ab".split(/(?:ab)*/)[p]||4!=".".split(/(.?)(.?)/)[p]||".".split(/()()/)[p]>1||"".split(/.?/)[p]?function(t,n){var i=String(this);if(void 0===t&&0===n)return[];if(!e(t))return r.call(i,t,n);for(var o,u,c,f=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,v=void 0===n?4294967295:n>>>0,y=new RegExp(t.source,s+"g");(o=a.call(y,i))&&!((u=y.lastIndex)>l&&(f.push(i.slice(l,o.index)),o[p]>1&&o.index=v));)y.lastIndex===o.index&&y.lastIndex++;return l===i[p]?!c&&y.test("")||f.push(""):f.push(i.slice(l)),f[p]>v?f.slice(0,v):f}:"0".split(void 0,0)[p]?function(t,n){return void 0===t&&0===n?[]:r.call(this,t,n)}:r,[function(r,e){var i=t(this),o=null==r?void 0:r[n];return void 0!==o?o.call(r,i,e):y.call(String(i),r,e)},function(t,n){var e=s(y,t,this,n,y!==r);if(e.done)return e.value;var a=i(t),h=String(this),p=o(a,RegExp),d=a.unicode,g=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(v?"y":"g"),x=new p(v?a:"^(?:"+a.source+")",g),b=void 0===n?4294967295:n>>>0;if(0===b)return[];if(0===h.length)return null===f(x,h)?[h]:[];for(var m=0,S=0,w=[];S0?arguments[0]:void 0)}}),{get:function(t){var n=e.getEntry(i(this,"Map"),t);return n&&n.v},set:function(t,n){return e.def(i(this,"Map"),0===t?0:t,n)}},e,!0)},function(t,n,r){"use strict";var e=r(136),i=r(48);t.exports=r(74)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return e.def(i(this,"Set"),t=0===t?0:t,t)}},e)},function(t,n,r){"use strict";var e,i=r(1),o=r(29)(0),u=r(17),c=r(36),f=r(116),a=r(137),s=r(4),l=r(48),h=r(48),p=!i.ActiveXObject&&"ActiveXObject"in i,v=c.getWeak,y=Object.isExtensible,d=a.ufstore,g=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},x={get:function(t){if(s(t)){var n=v(t);return!0===n?d(l(this,"WeakMap")).get(t):n?n[this._i]:void 0}},set:function(t,n){return a.def(l(this,"WeakMap"),t,n)}},b=t.exports=r(74)("WeakMap",g,x,a,!0,!0);h&&p&&(f((e=a.getConstructor(g,"WeakMap")).prototype,x),c.NEED=!0,o(["delete","has","get","set"],(function(t){var n=b.prototype,r=n[t];u(n,t,(function(n,i){if(s(n)&&!y(n)){this._f||(this._f=new e);var o=this._f[t](n,i);return"set"==t?this:o}return r.call(this,n,i)}))})))},function(t,n,r){"use strict";var e=r(137),i=r(48);r(74)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return e.def(i(this,"WeakSet"),t,!0)}},e,!1,!0)},function(t,n,r){"use strict";var e=r(0),i=r(75),o=r(102),u=r(3),c=r(43),f=r(6),a=r(4),s=r(1).ArrayBuffer,l=r(62),h=o.ArrayBuffer,p=o.DataView,v=i.ABV&&s.isView,y=h.prototype.slice,d=i.VIEW;e(e.G+e.W+e.F*(s!==h),{ArrayBuffer:h}),e(e.S+e.F*!i.CONSTR,"ArrayBuffer",{isView:function(t){return v&&v(t)||a(t)&&d in t}}),e(e.P+e.U+e.F*r(2)((function(){return!new h(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,n){if(void 0!==y&&void 0===n)return y.call(u(this),t);for(var r=u(this).byteLength,e=c(t,r),i=c(void 0===n?r:n,r),o=new(l(this,h))(f(i-e)),a=new p(this),s=new p(o),v=0;e=n.length)return{value:void 0,done:!0}}while(!((t=n[this._i++])in this._t));return{value:t,done:!1}})),e(e.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,n,r){var e=r(27),i=r(46),o=r(19),u=r(0),c=r(4),f=r(3);u(u.S,"Reflect",{get:function t(n,r){var u,a,s=arguments.length<3?n:arguments[2];return f(n)===s?n[r]:(u=e.f(n,r))?o(u,"value")?u.value:void 0!==u.get?u.get.call(s):void 0:c(a=i(n))?t(a,r,s):void 0}})},function(t,n,r){var e=r(27),i=r(0),o=r(3);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,n){return e.f(o(t),n)}})},function(t,n,r){var e=r(0),i=r(46),o=r(3);e(e.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,n,r){var e=r(0);e(e.S,"Reflect",{has:function(t,n){return n in t}})},function(t,n,r){var e=r(0),i=r(3),o=Object.isExtensible;e(e.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,n,r){var e=r(0);e(e.S,"Reflect",{ownKeys:r(139)})},function(t,n,r){var e=r(0),i=r(3),o=Object.preventExtensions;e(e.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,n,r){var e=r(10),i=r(27),o=r(46),u=r(19),c=r(0),f=r(39),a=r(3),s=r(4);c(c.S,"Reflect",{set:function t(n,r,c){var l,h,p=arguments.length<4?n:arguments[3],v=i.f(a(n),r);if(!v){if(s(h=o(n)))return t(h,r,c,p);v=f(0)}if(u(v,"value")){if(!1===v.writable||!s(p))return!1;if(l=i.f(p,r)){if(l.get||l.set||!1===l.writable)return!1;l.value=c,e.f(p,r,l)}else e.f(p,r,f(0,c));return!0}return void 0!==v.set&&(v.set.call(p,c),!0)}})},function(t,n,r){var e=r(0),i=r(83);i&&e(e.S,"Reflect",{setPrototypeOf:function(t,n){i.check(t,n);try{return i.set(t,n),!0}catch(t){return!1}}})},function(t,n,r){r(292),t.exports=r(8).Array.includes},function(t,n,r){"use strict";var e=r(0),i=r(65)(!0);e(e.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(47)("includes")},function(t,n,r){r(294),t.exports=r(8).Array.flatMap},function(t,n,r){"use strict";var e=r(0),i=r(295),o=r(14),u=r(6),c=r(25),f=r(127);e(e.P,"Array",{flatMap:function(t){var n,r,e=o(this);return c(t),n=u(e.length),r=f(e,0),i(r,e,e,n,0,1,t,arguments[1]),r}}),r(47)("flatMap")},function(t,n,r){"use strict";var e=r(67),i=r(4),o=r(6),u=r(24),c=r(5)("isConcatSpreadable");t.exports=function t(n,r,f,a,s,l,h,p){for(var v,y,d=s,g=0,x=!!h&&u(h,p,3);g0)d=t(n,r,v,o(v.length),d,l-1)-1;else{if(d>=9007199254740991)throw TypeError();n[d]=v}d++}g++}return d}},function(t,n,r){r(297),t.exports=r(8).String.padStart},function(t,n,r){"use strict";var e=r(0),i=r(140),o=r(73),u=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);e(e.P+e.F*u,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,n,r){r(299),t.exports=r(8).String.padEnd},function(t,n,r){"use strict";var e=r(0),i=r(140),o=r(73),u=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);e(e.P+e.F*u,"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,n,r){r(301),t.exports=r(8).String.trimLeft},function(t,n,r){"use strict";r(51)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,n,r){r(303),t.exports=r(8).String.trimRight},function(t,n,r){"use strict";r(51)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,n,r){r(305),t.exports=r(79).f("asyncIterator")},function(t,n,r){r(112)("asyncIterator")},function(t,n,r){r(307),t.exports=r(8).Object.getOwnPropertyDescriptors},function(t,n,r){var e=r(0),i=r(139),o=r(21),u=r(27),c=r(95);e(e.S,"Object",{getOwnPropertyDescriptors:function(t){for(var n,r,e=o(t),f=u.f,a=i(e),s={},l=0;a.length>l;)void 0!==(r=f(e,n=a[l++]))&&c(s,n,r);return s}})},function(t,n,r){r(309),t.exports=r(8).Object.values},function(t,n,r){var e=r(0),i=r(141)(!1);e(e.S,"Object",{values:function(t){return i(t)}})},function(t,n,r){r(311),t.exports=r(8).Object.entries},function(t,n,r){var e=r(0),i=r(141)(!0);e(e.S,"Object",{entries:function(t){return i(t)}})},function(t,n,r){"use strict";r(133),r(313),t.exports=r(8).Promise.finally},function(t,n,r){"use strict";var e=r(0),i=r(8),o=r(1),u=r(62),c=r(135);e(e.P+e.R,"Promise",{finally:function(t){var n=u(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return c(n,t()).then((function(){return r}))}:t,r?function(r){return c(n,t()).then((function(){throw r}))}:t)}})},function(t,n,r){r(315),r(316),r(317),t.exports=r(8)},function(t,n,r){var e=r(1),i=r(0),o=r(73),u=[].slice,c=/MSIE .\./.test(o),f=function(t){return function(n,r){var e=arguments.length>2,i=!!e&&u.call(arguments,2);return t(e?function(){("function"==typeof n?n:Function(n)).apply(this,i)}:n,r)}};i(i.G+i.B+i.F*c,{setTimeout:f(e.setTimeout),setInterval:f(e.setInterval)})},function(t,n,r){var e=r(0),i=r(101);e(e.G+e.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,n,r){for(var e=r(98),i=r(42),o=r(17),u=r(1),c=r(20),f=r(52),a=r(5),s=a("iterator"),l=a("toStringTag"),h=f.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},v=i(p),y=0;y0?i(e(t),9007199254740991):0}},,function(t,n){var r=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},function(t,n,r){t.exports=!r(4)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,n,r){var e=r(5),i=r(112),o=r(36),u=Object.defineProperty;n.f=r(12)?Object.defineProperty:function(t,n,r){if(e(t),n=o(n,!0),e(r),i)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},,function(t,n,r){var e=r(33);t.exports=function(t){return Object(e(t))}},,function(t,n,r){var e=r(3),i=r(22),o=r(21),u=r(41)("src"),c=r(153),f=(""+c).split("toString");r(11).inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,r,c){var a="function"==typeof r;a&&(o(r,"name")||i(r,"name",n)),t[n]!==r&&(a&&(o(r,u)||i(r,u,t[n]?""+t[n]:f.join(String(n)))),t===e?t[n]=r:c?t[n]?t[n]=r:i(t,n,r):(delete t[n],i(t,n,r)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[u]||c.call(this)}))},function(t,n,r){var e=r(0),i=r(4),o=r(33),u=/"/g,c=function(t,n,r,e){var i=String(o(t)),c="<"+n;return""!==r&&(c+=" "+r+'="'+String(e).replace(u,""")+'"'),c+">"+i+""};t.exports=function(t,n){var r={};r[t]=n(c),e(e.P+e.F*i((function(){var n=""[t]('"');return n!==n.toLowerCase()||n.split('"').length>3})),"String",r)}},,,function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n,r){var e=r(13),i=r(40);t.exports=r(12)?function(t,n,r){return e.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(59),i=r(33);t.exports=function(t){return e(i(t))}},,function(t,n,r){"use strict";var e=r(4);t.exports=function(t,n){return!!t&&e((function(){n?t.call(null,(function(){}),1):t.call(null)}))}},function(t,n,r){var e=r(27);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,i){return t.call(n,r,e,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){var e=r(60),i=r(40),o=r(23),u=r(36),c=r(21),f=r(112),a=Object.getOwnPropertyDescriptor;n.f=r(12)?a:function(t,n){if(t=o(t),n=u(n,!0),f)try{return a(t,n)}catch(t){}if(c(t,n))return i(!e.f.call(t,n),t[n])}},function(t,n,r){var e=r(0),i=r(11),o=r(4);t.exports=function(t,n){var r=(i.Object||{})[t]||Object[t],u={};u[t]=n(r),e(e.S+e.F*o((function(){r(1)})),"Object",u)}},function(t,n,r){var e=r(26),i=r(59),o=r(15),u=r(9),c=r(128);t.exports=function(t,n){var r=1==t,f=2==t,a=3==t,s=4==t,l=6==t,h=5==t||l,p=n||c;return function(n,c,v){for(var y,d,g=o(n),x=i(g),b=e(c,v,3),m=u(x.length),S=0,w=r?p(n,m):f?p(n,0):void 0;m>S;S++)if((h||S in x)&&(d=b(y=x[S],S,g),t))if(r)w[S]=d;else if(d)switch(t){case 3:return!0;case 5:return y;case 6:return S;case 2:w.push(y)}else if(s)return!1;return l?-1:a||s?s:w}}},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,r){"use strict";if(r(12)){var e=r(42),i=r(3),o=r(4),u=r(0),c=r(76),f=r(103),a=r(26),s=r(55),l=r(40),h=r(22),p=r(56),v=r(28),y=r(9),d=r(139),g=r(44),x=r(36),b=r(21),m=r(61),S=r(6),w=r(15),_=r(95),E=r(45),O=r(47),P=r(46).f,F=r(97),M=r(41),A=r(8),j=r(31),I=r(66),N=r(62),T=r(99),L=r(53),R=r(69),k=r(54),C=r(98),D=r(130),W=r(13),G=r(29),U=W.f,B=G.f,V=i.RangeError,z=i.TypeError,Y=i.Uint8Array,q=Array.prototype,$=f.ArrayBuffer,K=f.DataView,J=j(0),X=j(2),H=j(3),Z=j(4),Q=j(5),tt=j(6),nt=I(!0),rt=I(!1),et=T.values,it=T.keys,ot=T.entries,ut=q.lastIndexOf,ct=q.reduce,ft=q.reduceRight,at=q.join,st=q.sort,lt=q.slice,ht=q.toString,pt=q.toLocaleString,vt=A("iterator"),yt=A("toStringTag"),dt=M("typed_constructor"),gt=M("def_constructor"),xt=c.CONSTR,bt=c.TYPED,mt=c.VIEW,St=j(1,(function(t,n){return Pt(N(t,t[gt]),n)})),wt=o((function(){return 1===new Y(new Uint16Array([1]).buffer)[0]})),_t=!!Y&&!!Y.prototype.set&&o((function(){new Y(1).set({})})),Et=function(t,n){var r=v(t);if(r<0||r%n)throw V("Wrong offset!");return r},Ot=function(t){if(S(t)&&bt in t)return t;throw z(t+" is not a typed array!")},Pt=function(t,n){if(!S(t)||!(dt in t))throw z("It is not a typed array constructor!");return new t(n)},Ft=function(t,n){return Mt(N(t,t[gt]),n)},Mt=function(t,n){for(var r=0,e=n.length,i=Pt(t,e);e>r;)i[r]=n[r++];return i},At=function(t,n,r){U(t,n,{get:function(){return this._d[r]}})},jt=function(t){var n,r,e,i,o,u,c=w(t),f=arguments.length,s=f>1?arguments[1]:void 0,l=void 0!==s,h=F(c);if(null!=h&&!_(h)){for(u=h.call(c),e=[],n=0;!(o=u.next()).done;n++)e.push(o.value);c=e}for(l&&f>2&&(s=a(s,arguments[2],2)),n=0,r=y(c.length),i=Pt(this,r);r>n;n++)i[n]=l?s(c[n],n):c[n];return i},It=function(){for(var t=0,n=arguments.length,r=Pt(this,n);n>t;)r[t]=arguments[t++];return r},Nt=!!Y&&o((function(){pt.call(new Y(1))})),Tt=function(){return pt.apply(Nt?lt.call(Ot(this)):Ot(this),arguments)},Lt={copyWithin:function(t,n){return D.call(Ot(this),t,n,arguments.length>2?arguments[2]:void 0)},every:function(t){return Z(Ot(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return C.apply(Ot(this),arguments)},filter:function(t){return Ft(this,X(Ot(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Q(Ot(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){J(Ot(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return rt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return nt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return at.apply(Ot(this),arguments)},lastIndexOf:function(t){return ut.apply(Ot(this),arguments)},map:function(t){return St(Ot(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ct.apply(Ot(this),arguments)},reduceRight:function(t){return ft.apply(Ot(this),arguments)},reverse:function(){for(var t,n=Ot(this).length,r=Math.floor(n/2),e=0;e1?arguments[1]:void 0)},sort:function(t){return st.call(Ot(this),t)},subarray:function(t,n){var r=Ot(this),e=r.length,i=g(t,e);return new(N(r,r[gt]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,y((void 0===n?e:g(n,e))-i))}},Rt=function(t,n){return Ft(this,lt.call(Ot(this),t,n))},kt=function(t){Ot(this);var n=Et(arguments[1],1),r=this.length,e=w(t),i=y(e.length),o=0;if(i+n>r)throw V("Wrong length!");for(;o255?255:255&e),i.v[p](r*n+i.o,e,wt)}(this,r,t)},enumerable:!0})};b?(v=r((function(t,r,e,i){s(t,v,a,"_d");var o,u,c,f,l=0,p=0;if(S(r)){if(!(r instanceof $||"ArrayBuffer"==(f=m(r))||"SharedArrayBuffer"==f))return bt in r?Mt(v,r):jt.call(v,r);o=r,p=Et(e,n);var g=r.byteLength;if(void 0===i){if(g%n)throw V("Wrong length!");if((u=g-p)<0)throw V("Wrong length!")}else if((u=y(i)*n)+p>g)throw V("Wrong length!");c=u/n}else c=d(r),o=new $(u=c*n);for(h(t,"_d",{b:o,o:p,l:u,e:c,v:new K(o)});ldocument.F=Object<\/script>"),t.close(),f=t.F;e--;)delete f.prototype[o[e]];return f()};t.exports=Object.create||function(t,n){var r;return null!==t?(c.prototype=e(t),r=new c,c.prototype=null,r[u]=t):r=f(),void 0===n?r:i(r,n)}},function(t,n,r){var e=r(114),i=r(82).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,i)}},function(t,n,r){var e=r(21),i=r(15),o=r(81)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),e(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,r){var e=r(8)("unscopables"),i=Array.prototype;null==i[e]&&r(22)(i,e,{}),t.exports=function(t){i[e][t]=!0}},function(t,n,r){var e=r(6);t.exports=function(t,n){if(!e(t)||t._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return t}},,function(t,n,r){var e=r(13).f,i=r(21),o=r(8)("toStringTag");t.exports=function(t,n,r){t&&!i(t=r?t:t.prototype,o)&&e(t,o,{configurable:!0,value:n})}},function(t,n,r){var e=r(0),i=r(33),o=r(4),u=r(85),c="["+u+"]",f=RegExp("^"+c+c+"*"),a=RegExp(c+c+"*$"),s=function(t,n,r){var i={},c=o((function(){return!!u[t]()||"​…"!="​…"[t]()})),f=i[t]=c?n(l):u[t];r&&(i[r]=f),e(e.P+e.F*c,"String",i)},l=s.trim=function(t,n){return t=String(i(t)),1&n&&(t=t.replace(f,"")),2&n&&(t=t.replace(a,"")),t};t.exports=s},function(t,n){t.exports={}},function(t,n,r){"use strict";var e=r(3),i=r(13),o=r(12),u=r(8)("species");t.exports=function(t){var n=e[t];o&&n&&!n[u]&&i.f(n,u,{configurable:!0,get:function(){return this}})}},function(t,n){t.exports=function(t,n,r,e){if(!(t instanceof n)||void 0!==e&&e in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,n,r){var e=r(17);t.exports=function(t,n,r){for(var i in n)e(t,i,n[i],r);return t}},,,function(t,n,r){var e=r(32);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,r){var e=r(32),i=r(8)("toStringTag"),o="Arguments"==e(function(){return arguments}());t.exports=function(t){var n,r,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),i))?r:o?e(n):"Object"==(u=e(n))&&"function"==typeof n.callee?"Arguments":u}},function(t,n,r){var e=r(5),i=r(27),o=r(8)("species");t.exports=function(t,n){var r,u=e(t).constructor;return void 0===u||null==(r=e(u)[o])?n:i(r)}},function(t,n,r){var e=function(t){"use strict";var n=Object.prototype,r=n.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},i=e.iterator||"@@iterator",o=e.asyncIterator||"@@asyncIterator",u=e.toStringTag||"@@toStringTag";function c(t,n,r){return Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{c({},"")}catch(t){c=function(t,n,r){return t[n]=r}}function f(t,n,r,e){var i=n&&n.prototype instanceof l?n:l,o=Object.create(i.prototype),u=new _(e||[]);return o._invoke=function(t,n,r){var e="suspendedStart";return function(i,o){if("executing"===e)throw new Error("Generator is already running");if("completed"===e){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var u=r.delegate;if(u){var c=m(u,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===e)throw e="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);e="executing";var f=a(t,n,r);if("normal"===f.type){if(e=r.done?"completed":"suspendedYield",f.arg===s)continue;return{value:f.arg,done:r.done}}"throw"===f.type&&(e="completed",r.method="throw",r.arg=f.arg)}}}(t,r,u),o}function a(t,n,r){try{return{type:"normal",arg:t.call(n,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var s={};function l(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,d=y&&y(y(E([])));d&&d!==n&&r.call(d,i)&&(v=d);var g=p.prototype=l.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(n){c(t,n,(function(t){return this._invoke(n,t)}))}))}function b(t,n){var e;this._invoke=function(i,o){function u(){return new n((function(e,u){!function e(i,o,u,c){var f=a(t[i],t,o);if("throw"!==f.type){var s=f.arg,l=s.value;return l&&"object"==typeof l&&r.call(l,"__await")?n.resolve(l.__await).then((function(t){e("next",t,u,c)}),(function(t){e("throw",t,u,c)})):n.resolve(l).then((function(t){s.value=t,u(s)}),(function(t){return e("throw",t,u,c)}))}c(f.arg)}(i,o,e,u)}))}return e=e?e.then(u,u):u()}}function m(t,n){var r=t.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=void 0,m(t,n),"throw"===n.method))return s;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var e=a(r,t.iterator,n.arg);if("throw"===e.type)return n.method="throw",n.arg=e.arg,n.delegate=null,s;var i=e.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,s):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,s)}function S(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function w(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function E(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,o=function n(){for(;++e=0;--i){var o=this.tryEntries[i],u=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),f=r.call(o,"finallyLoc");if(c&&f){if(this.prev=0;--e){var i=this.tryEntries[e];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),s}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var e=r.completion;if("throw"===e.type){var i=e.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:E(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},,function(t,n,r){var e=r(11),i=r(3),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:e.version,mode:r(42)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,n,r){var e=r(23),i=r(9),o=r(44);t.exports=function(t){return function(n,r,u){var c,f=e(n),a=i(f.length),s=o(u,a);if(t&&r!=r){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===r)return t||s||0;return!t&&-1}}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,r){var e=r(32);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,n,r){var e=r(8)("iterator"),i=!1;try{var o=[7][e]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,n){if(!n&&!i)return!1;var r=!1;try{var o=[7],u=o[e]();u.next=function(){return{done:r=!0}},o[e]=function(){return u},t(o)}catch(t){}return r}},function(t,n,r){"use strict";var e=r(5);t.exports=function(){var t=e(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,r){"use strict";var e=r(61),i=RegExp.prototype.exec;t.exports=function(t,n){var r=t.exec;if("function"==typeof r){var o=r.call(t,n);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==e(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,n)}},function(t,n,r){"use strict";r(132);var e=r(17),i=r(22),o=r(4),u=r(33),c=r(8),f=r(100),a=c("species"),s=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),l=function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var r="ab".split(t);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();t.exports=function(t,n,r){var h=c(t),p=!o((function(){var n={};return n[h]=function(){return 7},7!=""[t](n)})),v=p?!o((function(){var n=!1,r=/a/;return r.exec=function(){return n=!0,null},"split"===t&&(r.constructor={},r.constructor[a]=function(){return r}),r[h](""),!n})):void 0;if(!p||!v||"replace"===t&&!s||"split"===t&&!l){var y=/./[h],d=r(u,h,""[t],(function(t,n,r,e,i){return n.exec===f?p&&!i?{done:!0,value:y.call(n,r,e)}:{done:!0,value:t.call(r,n,e)}:{done:!1}})),g=d[0],x=d[1];e(String.prototype,t,g),i(RegExp.prototype,h,2==n?function(t,n){return x.call(t,this,n)}:function(t){return x.call(t,this)})}}},function(t,n,r){var e=r(26),i=r(127),o=r(95),u=r(5),c=r(9),f=r(97),a={},s={};(n=t.exports=function(t,n,r,l,h){var p,v,y,d,g=h?function(){return t}:f(t),x=e(r,l,n?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(p=c(t.length);p>b;b++)if((d=n?x(u(v=t[b])[0],v[1]):x(t[b]))===a||d===s)return d}else for(y=g.call(t);!(v=y.next()).done;)if((d=i(y,x,v.value,n))===a||d===s)return d}).BREAK=a,n.RETURN=s},function(t,n,r){var e=r(3).navigator;t.exports=e&&e.userAgent||""},function(t,n,r){"use strict";var e=r(3),i=r(0),o=r(17),u=r(56),c=r(37),f=r(73),a=r(55),s=r(6),l=r(4),h=r(69),p=r(51),v=r(86);t.exports=function(t,n,r,y,d,g){var x=e[t],b=x,m=d?"set":"add",S=b&&b.prototype,w={},_=function(t){var n=S[t];o(S,t,"delete"==t||"has"==t?function(t){return!(g&&!s(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!s(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,r){return n.call(this,0===t?0:t,r),this})};if("function"==typeof b&&(g||S.forEach&&!l((function(){(new b).entries().next()})))){var E=new b,O=E[m](g?{}:-0,1)!=E,P=l((function(){E.has(1)})),F=h((function(t){new b(t)})),M=!g&&l((function(){for(var t=new b,n=5;n--;)t[m](n,n);return!t.has(-0)}));F||((b=n((function(n,r){a(n,b,t);var e=v(new x,n,b);return null!=r&&f(r,d,e[m],e),e}))).prototype=S,S.constructor=b),(P||M)&&(_("delete"),_("has"),d&&_("get")),(M||O)&&_(m),g&&S.clear&&delete S.clear}else b=y.getConstructor(n,t,d,m),u(b.prototype,r),c.NEED=!0;return p(b,t),w[t]=b,i(i.G+i.W+i.F*(b!=x),w),g||y.setStrong(b,t,d),b}},function(t,n,r){for(var e,i=r(3),o=r(22),u=r(41),c=u("typed_array"),f=u("view"),a=!(!i.ArrayBuffer||!i.DataView),s=a,l=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(e=i[h[l++]])?(o(e.prototype,c,!0),o(e.prototype,f,!0)):s=!1;t.exports={ABV:a,CONSTR:s,TYPED:c,VIEW:f}},,,function(t,n,r){var e=r(6),i=r(3).document,o=e(i)&&e(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n,r){n.f=r(8)},function(t,n,r){var e=r(65)("keys"),i=r(41);t.exports=function(t){return e[t]||(e[t]=i(t))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,r){var e=r(3).document;t.exports=e&&e.documentElement},function(t,n,r){var e=r(6),i=r(5),o=function(t,n){if(i(t),!e(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,e){try{(e=r(26)(Function.call,r(29).f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,r){return o(t,r),n?t.__proto__=r:e(t,r),t}}({},!1):void 0),check:o}},function(t,n){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,n,r){var e=r(6),i=r(84).set;t.exports=function(t,n,r){var o,u=n.constructor;return u!==r&&"function"==typeof u&&(o=u.prototype)!==r.prototype&&e(o)&&i&&i(t,o),t}},function(t,n,r){"use strict";var e=r(28),i=r(33);t.exports=function(t){var n=String(i(this)),r="",o=e(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(n+=n))1&o&&(r+=n);return r}},function(t,n){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,n){var r=Math.expm1;t.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:r},function(t,n,r){var e=r(28),i=r(33);t.exports=function(t){return function(n,r){var o,u,c=String(i(n)),f=e(r),a=c.length;return f<0||f>=a?t?"":void 0:(o=c.charCodeAt(f))<55296||o>56319||f+1===a||(u=c.charCodeAt(f+1))<56320||u>57343?t?c.charAt(f):o:t?c.slice(f,f+2):u-56320+(o-55296<<10)+65536}}},function(t,n,r){"use strict";var e=r(42),i=r(0),o=r(17),u=r(22),c=r(53),f=r(126),a=r(51),s=r(47),l=r(8)("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,n,r,v,y,d,g){f(r,n,v);var x,b,m,S=function(t){if(!h&&t in O)return O[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},w=n+" Iterator",_="values"==y,E=!1,O=t.prototype,P=O[l]||O["@@iterator"]||y&&O[y],F=P||S(y),M=y?_?S("entries"):F:void 0,A="Array"==n&&O.entries||P;if(A&&(m=s(A.call(new t)))!==Object.prototype&&m.next&&(a(m,w,!0),e||"function"==typeof m[l]||u(m,l,p)),_&&P&&"values"!==P.name&&(E=!0,F=function(){return P.call(this)}),e&&!g||!h&&!E&&O[l]||u(O,l,F),c[n]=F,c[w]=p,y)if(x={values:_?F:S("values"),keys:d?F:S("keys"),entries:M},g)for(b in x)b in O||o(O,b,x[b]);else i(i.P+i.F*(h||E),n,x);return x}},function(t,n,r){var e=r(93),i=r(33);t.exports=function(t,n,r){if(e(n))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(t))}},function(t,n,r){var e=r(6),i=r(32),o=r(8)("match");t.exports=function(t){var n;return e(t)&&(void 0!==(n=t[o])?!!n:"RegExp"==i(t))}},function(t,n,r){var e=r(8)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(r){try{return n[e]=!1,!"/./"[t](n)}catch(t){}}return!0}},function(t,n,r){var e=r(53),i=r(8)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(e.Array===t||o[i]===t)}},function(t,n,r){"use strict";var e=r(13),i=r(40);t.exports=function(t,n,r){n in t?e.f(t,n,i(0,r)):t[n]=r}},function(t,n,r){var e=r(61),i=r(8)("iterator"),o=r(53);t.exports=r(11).getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[e(t)]}},function(t,n,r){"use strict";var e=r(15),i=r(44),o=r(9);t.exports=function(t){for(var n=e(this),r=o(n.length),u=arguments.length,c=i(u>1?arguments[1]:void 0,r),f=u>2?arguments[2]:void 0,a=void 0===f?r:i(f,r);a>c;)n[c++]=t;return n}},function(t,n,r){"use strict";var e=r(48),i=r(131),o=r(53),u=r(23);t.exports=r(91)(Array,"Array",(function(t,n){this._t=u(t),this._i=0,this._k=n}),(function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):i(0,"keys"==n?r:"values"==n?t[r]:[r,t[r]])}),"values"),o.Arguments=o.Array,e("keys"),e("values"),e("entries")},function(t,n,r){"use strict";var e,i,o=r(70),u=RegExp.prototype.exec,c=String.prototype.replace,f=u,a=(e=/a/,i=/b*/g,u.call(e,"a"),u.call(i,"a"),0!==e.lastIndex||0!==i.lastIndex),s=void 0!==/()??/.exec("")[1];(a||s)&&(f=function(t){var n,r,e,i,f=this;return s&&(r=new RegExp("^"+f.source+"$(?!\\s)",o.call(f))),a&&(n=f.lastIndex),e=u.call(f,t),a&&e&&(f.lastIndex=f.global?e.index+e[0].length:n),s&&e&&e.length>1&&c.call(e[0],r,(function(){for(i=1;ir;)n.push(arguments[r++]);return g[++d]=function(){c("function"==typeof t?t:Function(t),n)},e(d),d},p=function(t){delete g[t]},"process"==r(32)(l)?e=function(t){l.nextTick(u(x,t,1))}:y&&y.now?e=function(t){y.now(u(x,t,1))}:v?(o=(i=new v).port2,i.port1.onmessage=b,e=u(o.postMessage,o,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(e=function(t){s.postMessage(t+"","*")},s.addEventListener("message",b,!1)):e="onreadystatechange"in a("script")?function(t){f.appendChild(a("script")).onreadystatechange=function(){f.removeChild(this),x.call(t)}}:function(t){setTimeout(u(x,t,1),0)}),t.exports={set:h,clear:p}},function(t,n,r){"use strict";var e=r(3),i=r(12),o=r(42),u=r(76),c=r(22),f=r(56),a=r(4),s=r(55),l=r(28),h=r(9),p=r(139),v=r(46).f,y=r(13).f,d=r(98),g=r(51),x=e.ArrayBuffer,b=e.DataView,m=e.Math,S=e.RangeError,w=e.Infinity,_=x,E=m.abs,O=m.pow,P=m.floor,F=m.log,M=m.LN2,A=i?"_b":"buffer",j=i?"_l":"byteLength",I=i?"_o":"byteOffset";function N(t,n,r){var e,i,o,u=new Array(r),c=8*r-n-1,f=(1<>1,s=23===n?O(2,-24)-O(2,-77):0,l=0,h=t<0||0===t&&1/t<0?1:0;for((t=E(t))!=t||t===w?(i=t!=t?1:0,e=f):(e=P(F(t)/M),t*(o=O(2,-e))<1&&(e--,o*=2),(t+=e+a>=1?s/o:s*O(2,1-a))*o>=2&&(e++,o/=2),e+a>=f?(i=0,e=f):e+a>=1?(i=(t*o-1)*O(2,n),e+=a):(i=t*O(2,a-1)*O(2,n),e=0));n>=8;u[l++]=255&i,i/=256,n-=8);for(e=e<0;u[l++]=255&e,e/=256,c-=8);return u[--l]|=128*h,u}function T(t,n,r){var e,i=8*r-n-1,o=(1<>1,c=i-7,f=r-1,a=t[f--],s=127&a;for(a>>=7;c>0;s=256*s+t[f],f--,c-=8);for(e=s&(1<<-c)-1,s>>=-c,c+=n;c>0;e=256*e+t[f],f--,c-=8);if(0===s)s=1-u;else{if(s===o)return e?NaN:a?-w:w;e+=O(2,n),s-=u}return(a?-1:1)*e*O(2,s-n)}function L(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function R(t){return[255&t]}function k(t){return[255&t,t>>8&255]}function C(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function D(t){return N(t,52,8)}function W(t){return N(t,23,4)}function G(t,n,r){y(t.prototype,n,{get:function(){return this[r]}})}function U(t,n,r,e){var i=p(+r);if(i+n>t[j])throw S("Wrong index!");var o=t[A]._b,u=i+t[I],c=o.slice(u,u+n);return e?c:c.reverse()}function B(t,n,r,e,i,o){var u=p(+r);if(u+n>t[j])throw S("Wrong index!");for(var c=t[A]._b,f=u+t[I],a=e(+i),s=0;sq;)(V=Y[q++])in x||c(x,V,_[V]);o||(z.constructor=x)}var $=new b(new x(2)),K=b.prototype.setInt8;$.setInt8(0,2147483648),$.setInt8(1,2147483649),!$.getInt8(0)&&$.getInt8(1)||f(b.prototype,{setInt8:function(t,n){K.call(this,t,n<<24>>24)},setUint8:function(t,n){K.call(this,t,n<<24>>24)}},!0)}else x=function(t){s(this,x,"ArrayBuffer");var n=p(t);this._b=d.call(new Array(n),0),this[j]=n},b=function(t,n,r){s(this,b,"DataView"),s(t,x,"DataView");var e=t[j],i=l(n);if(i<0||i>e)throw S("Wrong offset!");if(i+(r=void 0===r?e-i:h(r))>e)throw S("Wrong length!");this[A]=t,this[I]=i,this[j]=r},i&&(G(x,"byteLength","_l"),G(b,"buffer","_b"),G(b,"byteLength","_l"),G(b,"byteOffset","_o")),f(b.prototype,{getInt8:function(t){return U(this,1,t)[0]<<24>>24},getUint8:function(t){return U(this,1,t)[0]},getInt16:function(t){var n=U(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t){var n=U(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function(t){return L(U(this,4,t,arguments[1]))},getUint32:function(t){return L(U(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return T(U(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return T(U(this,8,t,arguments[1]),52,8)},setInt8:function(t,n){B(this,1,t,R,n)},setUint8:function(t,n){B(this,1,t,R,n)},setInt16:function(t,n){B(this,2,t,k,n,arguments[2])},setUint16:function(t,n){B(this,2,t,k,n,arguments[2])},setInt32:function(t,n){B(this,4,t,C,n,arguments[2])},setUint32:function(t,n){B(this,4,t,C,n,arguments[2])},setFloat32:function(t,n){B(this,4,t,W,n,arguments[2])},setFloat64:function(t,n){B(this,8,t,D,n,arguments[2])}});g(x,"ArrayBuffer"),g(b,"DataView"),c(b.prototype,u.VIEW,!0),n.ArrayBuffer=x,n.DataView=b},function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,r){t.exports=!r(144)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},,,,,,function(t,n,r){t.exports=!r(12)&&!r(4)((function(){return 7!=Object.defineProperty(r(79)("div"),"a",{get:function(){return 7}}).a}))},function(t,n,r){var e=r(3),i=r(11),o=r(42),u=r(80),c=r(13).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:e.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n,r){var e=r(21),i=r(23),o=r(66)(!1),u=r(81)("IE_PROTO");t.exports=function(t,n){var r,c=i(t),f=0,a=[];for(r in c)r!=u&&e(c,r)&&a.push(r);for(;n.length>f;)e(c,r=n[f++])&&(~o(a,r)||a.push(r));return a}},function(t,n,r){var e=r(13),i=r(5),o=r(43);t.exports=r(12)?Object.defineProperties:function(t,n){i(t);for(var r,u=o(n),c=u.length,f=0;c>f;)e.f(t,r=u[f++],n[r]);return t}},function(t,n,r){var e=r(23),i=r(46).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return u.slice()}}(t):i(e(t))}},function(t,n,r){"use strict";var e=r(12),i=r(43),o=r(67),u=r(60),c=r(15),f=r(59),a=Object.assign;t.exports=!a||r(4)((function(){var t={},n={},r=Symbol(),e="abcdefghijklmnopqrst";return t[r]=7,e.split("").forEach((function(t){n[t]=t})),7!=a({},t)[r]||Object.keys(a({},n)).join("")!=e}))?function(t,n){for(var r=c(t),a=arguments.length,s=1,l=o.f,h=u.f;a>s;)for(var p,v=f(arguments[s++]),y=l?i(v).concat(l(v)):i(v),d=y.length,g=0;d>g;)p=y[g++],e&&!h.call(v,p)||(r[p]=v[p]);return r}:a},function(t,n){t.exports=Object.is||function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}},function(t,n,r){"use strict";var e=r(27),i=r(6),o=r(120),u=[].slice,c={},f=function(t,n,r){if(!(n in c)){for(var e=[],i=0;i>>0||(u.test(r)?16:10))}:e},function(t,n,r){var e=r(3).parseFloat,i=r(52).trim;t.exports=1/e(r(85)+"-0")!=-1/0?function(t){var n=i(String(t),3),r=e(n);return 0===r&&"-"==n.charAt(0)?-0:r}:e},function(t,n,r){var e=r(32);t.exports=function(t,n){if("number"!=typeof t&&"Number"!=e(t))throw TypeError(n);return+t}},function(t,n,r){var e=r(6),i=Math.floor;t.exports=function(t){return!e(t)&&isFinite(t)&&i(t)===t}},function(t,n){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,n,r){"use strict";var e=r(45),i=r(40),o=r(51),u={};r(22)(u,r(8)("iterator"),(function(){return this})),t.exports=function(t,n,r){t.prototype=e(u,{next:i(1,r)}),o(t,n+" Iterator")}},function(t,n,r){var e=r(5);t.exports=function(t,n,r,i){try{return i?n(e(r)[0],r[1]):n(r)}catch(n){var o=t.return;throw void 0!==o&&e(o.call(t)),n}}},function(t,n,r){var e=r(243);t.exports=function(t,n){return new(e(t))(n)}},function(t,n,r){var e=r(27),i=r(15),o=r(59),u=r(9);t.exports=function(t,n,r,c,f){e(n);var a=i(t),s=o(a),l=u(a.length),h=f?l-1:0,p=f?-1:1;if(r<2)for(;;){if(h in s){c=s[h],h+=p;break}if(h+=p,f?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;f?h>=0:l>h;h+=p)h in s&&(c=n(c,s[h],h,a));return c}},function(t,n,r){"use strict";var e=r(15),i=r(44),o=r(9);t.exports=[].copyWithin||function(t,n){var r=e(this),u=o(r.length),c=i(t,u),f=i(n,u),a=arguments.length>2?arguments[2]:void 0,s=Math.min((void 0===a?u:i(a,u))-f,u-c),l=1;for(f0;)f in r?r[c]=r[f]:delete r[c],c+=l,f+=l;return r}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,r){"use strict";var e=r(100);r(0)({target:"RegExp",proto:!0,forced:e!==/./.exec},{exec:e})},function(t,n,r){r(12)&&"g"!=/./g.flags&&r(13).f(RegExp.prototype,"flags",{configurable:!0,get:r(70)})},function(t,n,r){"use strict";var e,i,o,u,c=r(42),f=r(3),a=r(26),s=r(61),l=r(0),h=r(6),p=r(27),v=r(55),y=r(73),d=r(62),g=r(102).set,x=r(263)(),b=r(135),m=r(264),S=r(74),w=r(136),_=f.TypeError,E=f.process,O=E&&E.versions,P=O&&O.v8||"",F=f.Promise,M="process"==s(E),A=function(){},j=i=b.f,I=!!function(){try{var t=F.resolve(1),n=(t.constructor={})[r(8)("species")]=function(t){t(A,A)};return(M||"function"==typeof PromiseRejectionEvent)&&t.then(A)instanceof n&&0!==P.indexOf("6.6")&&-1===S.indexOf("Chrome/66")}catch(t){}}(),N=function(t){var n;return!(!h(t)||"function"!=typeof(n=t.then))&&n},T=function(t,n){if(!t._n){t._n=!0;var r=t._c;x((function(){for(var e=t._v,i=1==t._s,o=0,u=function(n){var r,o,u,c=i?n.ok:n.fail,f=n.resolve,a=n.reject,s=n.domain;try{c?(i||(2==t._h&&k(t),t._h=1),!0===c?r=e:(s&&s.enter(),r=c(e),s&&(s.exit(),u=!0)),r===n.promise?a(_("Promise-chain cycle")):(o=N(r))?o.call(r,f,a):f(r)):a(e)}catch(t){s&&!u&&s.exit(),a(t)}};r.length>o;)u(r[o++]);t._c=[],t._n=!1,n&&!t._h&&L(t)}))}},L=function(t){g.call(f,(function(){var n,r,e,i=t._v,o=R(t);if(o&&(n=m((function(){M?E.emit("unhandledRejection",i,t):(r=f.onunhandledrejection)?r({promise:t,reason:i}):(e=f.console)&&e.error&&e.error("Unhandled promise rejection",i)})),t._h=M||R(t)?2:1),t._a=void 0,o&&n.e)throw n.v}))},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},k=function(t){g.call(f,(function(){var n;M?E.emit("rejectionHandled",t):(n=f.onrejectionhandled)&&n({promise:t,reason:t._v})}))},C=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),T(n,!0))},D=function(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw _("Promise can't be resolved itself");(n=N(t))?x((function(){var e={_w:r,_d:!1};try{n.call(t,a(D,e,1),a(C,e,1))}catch(t){C.call(e,t)}})):(r._v=t,r._s=1,T(r,!1))}catch(t){C.call({_w:r,_d:!1},t)}}};I||(F=function(t){v(this,F,"Promise","_h"),p(t),e.call(this);try{t(a(D,this,1),a(C,this,1))}catch(t){C.call(this,t)}},(e=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(56)(F.prototype,{then:function(t,n){var r=j(d(this,F));return r.ok="function"!=typeof t||t,r.fail="function"==typeof n&&n,r.domain=M?E.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&T(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new e;this.promise=t,this.resolve=a(D,t,1),this.reject=a(C,t,1)},b.f=j=function(t){return t===F||t===u?new o(t):i(t)}),l(l.G+l.W+l.F*!I,{Promise:F}),r(51)(F,"Promise"),r(54)("Promise"),u=r(11).Promise,l(l.S+l.F*!I,"Promise",{reject:function(t){var n=j(this);return(0,n.reject)(t),n.promise}}),l(l.S+l.F*(c||!I),"Promise",{resolve:function(t){return w(c&&this===u?F:this,t)}}),l(l.S+l.F*!(I&&r(69)((function(t){F.all(t).catch(A)}))),"Promise",{all:function(t){var n=this,r=j(n),e=r.resolve,i=r.reject,o=m((function(){var r=[],o=0,u=1;y(t,!1,(function(t){var c=o++,f=!1;r.push(void 0),u++,n.resolve(t).then((function(t){f||(f=!0,r[c]=t,--u||e(r))}),i)})),--u||e(r)}));return o.e&&i(o.v),r.promise},race:function(t){var n=this,r=j(n),e=r.reject,i=m((function(){y(t,!1,(function(t){n.resolve(t).then(r.resolve,e)}))}));return i.e&&e(i.v),r.promise}})},function(t,n,r){"use strict";var e=r(27);function i(t){var n,r;this.promise=new t((function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e})),this.resolve=e(n),this.reject=e(r)}t.exports.f=function(t){return new i(t)}},function(t,n,r){var e=r(5),i=r(6),o=r(135);t.exports=function(t,n){if(e(t),i(n)&&n.constructor===t)return n;var r=o.f(t);return(0,r.resolve)(n),r.promise}},function(t,n,r){"use strict";var e=r(13).f,i=r(45),o=r(56),u=r(26),c=r(55),f=r(73),a=r(91),s=r(131),l=r(54),h=r(12),p=r(37).fastKey,v=r(49),y=h?"_s":"size",d=function(t,n){var r,e=p(n);if("F"!==e)return t._i[e];for(r=t._f;r;r=r.n)if(r.k==n)return r};t.exports={getConstructor:function(t,n,r,a){var s=t((function(t,e){c(t,s,n,"_i"),t._t=n,t._i=i(null),t._f=void 0,t._l=void 0,t[y]=0,null!=e&&f(e,r,t[a],t)}));return o(s.prototype,{clear:function(){for(var t=v(this,n),r=t._i,e=t._f;e;e=e.n)e.r=!0,e.p&&(e.p=e.p.n=void 0),delete r[e.i];t._f=t._l=void 0,t[y]=0},delete:function(t){var r=v(this,n),e=d(r,t);if(e){var i=e.n,o=e.p;delete r._i[e.i],e.r=!0,o&&(o.n=i),i&&(i.p=o),r._f==e&&(r._f=i),r._l==e&&(r._l=o),r[y]--}return!!e},forEach:function(t){v(this,n);for(var r,e=u(t,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(e(r.v,r.k,this);r&&r.r;)r=r.p},has:function(t){return!!d(v(this,n),t)}}),h&&e(s.prototype,"size",{get:function(){return v(this,n)[y]}}),s},def:function(t,n,r){var e,i,o=d(t,n);return o?o.v=r:(t._l=o={i:i=p(n,!0),k:n,v:r,p:e=t._l,n:void 0,r:!1},t._f||(t._f=o),e&&(e.n=o),t[y]++,"F"!==i&&(t._i[i]=o)),t},getEntry:d,setStrong:function(t,n,r){a(t,n,(function(t,r){this._t=v(t,n),this._k=r,this._l=void 0}),(function(){for(var t=this._k,n=this._l;n&&n.r;)n=n.p;return this._t&&(this._l=n=n?n.n:this._t._f)?s(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(this._t=void 0,s(1))}),r?"entries":"values",!r,!0),l(n)}}},function(t,n,r){"use strict";var e=r(56),i=r(37).getWeak,o=r(5),u=r(6),c=r(55),f=r(73),a=r(31),s=r(21),l=r(49),h=a(5),p=a(6),v=0,y=function(t){return t._l||(t._l=new d)},d=function(){this.a=[]},g=function(t,n){return h(t.a,(function(t){return t[0]===n}))};d.prototype={get:function(t){var n=g(this,t);if(n)return n[1]},has:function(t){return!!g(this,t)},set:function(t,n){var r=g(this,t);r?r[1]=n:this.a.push([t,n])},delete:function(t){var n=p(this.a,(function(n){return n[0]===t}));return~n&&this.a.splice(n,1),!!~n}},t.exports={getConstructor:function(t,n,r,o){var a=t((function(t,e){c(t,a,n,"_i"),t._t=n,t._i=v++,t._l=void 0,null!=e&&f(e,r,t[o],t)}));return e(a.prototype,{delete:function(t){if(!u(t))return!1;var r=i(t);return!0===r?y(l(this,n)).delete(t):r&&s(r,this._i)&&delete r[this._i]},has:function(t){if(!u(t))return!1;var r=i(t);return!0===r?y(l(this,n)).has(t):r&&s(r,this._i)}}),a},def:function(t,n,r){var e=i(o(n),!0);return!0===e?y(t).set(n,r):e[t._i]=r,t},ufstore:y}},function(t,n,r){var e=r(28),i=r(9);t.exports=function(t){if(void 0===t)return 0;var n=e(t),r=i(n);if(n!==r)throw RangeError("Wrong length!");return r}},function(t,n,r){var e=r(46),i=r(67),o=r(5),u=r(3).Reflect;t.exports=u&&u.ownKeys||function(t){var n=e.f(o(t)),r=i.f;return r?n.concat(r(t)):n}},function(t,n,r){var e=r(9),i=r(87),o=r(33);t.exports=function(t,n,r,u){var c=String(o(t)),f=c.length,a=void 0===r?" ":String(r),s=e(n);if(s<=f||""==a)return c;var l=s-f,h=i.call(a,Math.ceil(l/a.length));return h.length>l&&(h=h.slice(0,l)),u?h+c:c+h}},function(t,n,r){var e=r(12),i=r(43),o=r(23),u=r(60).f;t.exports=function(t){return function(n){for(var r,c=o(n),f=i(c),a=f.length,s=0,l=[];a>s;)r=f[s++],e&&!u.call(c,r)||l.push(t?[r,c[r]]:c[r]);return l}}},function(t,n){var r=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},,,,,function(t,n,r){"use strict";r(150);var e,i=(e=r(321))&&e.__esModule?e:{default:e};i.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),i.default._babelPolyfill=!0},function(t,n,r){"use strict";r(151),r(294),r(296),r(299),r(301),r(303),r(305),r(307),r(309),r(311),r(313),r(315),r(317),r(63)},function(t,n,r){r(152),r(155),r(156),r(157),r(158),r(159),r(160),r(161),r(162),r(163),r(164),r(165),r(166),r(167),r(168),r(169),r(170),r(171),r(172),r(173),r(174),r(175),r(176),r(177),r(178),r(179),r(180),r(181),r(182),r(183),r(184),r(185),r(186),r(187),r(188),r(189),r(190),r(191),r(192),r(193),r(194),r(195),r(196),r(198),r(199),r(200),r(201),r(202),r(203),r(204),r(205),r(206),r(207),r(208),r(209),r(210),r(211),r(212),r(213),r(214),r(215),r(216),r(217),r(218),r(219),r(220),r(221),r(222),r(223),r(224),r(225),r(226),r(227),r(228),r(229),r(230),r(231),r(233),r(234),r(236),r(237),r(238),r(239),r(240),r(241),r(242),r(244),r(245),r(246),r(247),r(248),r(249),r(250),r(251),r(252),r(253),r(254),r(255),r(256),r(99),r(257),r(132),r(258),r(133),r(259),r(260),r(261),r(262),r(134),r(265),r(266),r(267),r(268),r(269),r(270),r(271),r(272),r(273),r(274),r(275),r(276),r(277),r(278),r(279),r(280),r(281),r(282),r(283),r(284),r(285),r(286),r(287),r(288),r(289),r(290),r(291),r(292),r(293),t.exports=r(11)},function(t,n,r){"use strict";var e=r(3),i=r(21),o=r(12),u=r(0),c=r(17),f=r(37).KEY,a=r(4),s=r(65),l=r(51),h=r(41),p=r(8),v=r(80),y=r(113),d=r(154),g=r(68),x=r(5),b=r(6),m=r(15),S=r(23),w=r(36),_=r(40),E=r(45),O=r(116),P=r(29),F=r(67),M=r(13),A=r(43),j=P.f,I=M.f,N=O.f,T=e.Symbol,L=e.JSON,R=L&&L.stringify,k=p("_hidden"),C=p("toPrimitive"),D={}.propertyIsEnumerable,W=s("symbol-registry"),G=s("symbols"),U=s("op-symbols"),B=Object.prototype,V="function"==typeof T&&!!F.f,z=e.QObject,Y=!z||!z.prototype||!z.prototype.findChild,q=o&&a((function(){return 7!=E(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a}))?function(t,n,r){var e=j(B,n);e&&delete B[n],I(t,n,r),e&&t!==B&&I(B,n,e)}:I,$=function(t){var n=G[t]=E(T.prototype);return n._k=t,n},K=V&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},J=function(t,n,r){return t===B&&J(U,n,r),x(t),n=w(n,!0),x(r),i(G,n)?(r.enumerable?(i(t,k)&&t[k][n]&&(t[k][n]=!1),r=E(r,{enumerable:_(0,!1)})):(i(t,k)||I(t,k,_(1,{})),t[k][n]=!0),q(t,n,r)):I(t,n,r)},X=function(t,n){x(t);for(var r,e=d(n=S(n)),i=0,o=e.length;o>i;)J(t,r=e[i++],n[r]);return t},H=function(t){var n=D.call(this,t=w(t,!0));return!(this===B&&i(G,t)&&!i(U,t))&&(!(n||!i(this,t)||!i(G,t)||i(this,k)&&this[k][t])||n)},Z=function(t,n){if(t=S(t),n=w(n,!0),t!==B||!i(G,n)||i(U,n)){var r=j(t,n);return!r||!i(G,n)||i(t,k)&&t[k][n]||(r.enumerable=!0),r}},Q=function(t){for(var n,r=N(S(t)),e=[],o=0;r.length>o;)i(G,n=r[o++])||n==k||n==f||e.push(n);return e},tt=function(t){for(var n,r=t===B,e=N(r?U:S(t)),o=[],u=0;e.length>u;)!i(G,n=e[u++])||r&&!i(B,n)||o.push(G[n]);return o};V||(c((T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(r){this===B&&n.call(U,r),i(this,k)&&i(this[k],t)&&(this[k][t]=!1),q(this,t,_(1,r))};return o&&Y&&q(B,t,{configurable:!0,set:n}),$(t)}).prototype,"toString",(function(){return this._k})),P.f=Z,M.f=J,r(46).f=O.f=Q,r(60).f=H,F.f=tt,o&&!r(42)&&c(B,"propertyIsEnumerable",H,!0),v.f=function(t){return $(p(t))}),u(u.G+u.W+u.F*!V,{Symbol:T});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;nt.length>rt;)p(nt[rt++]);for(var et=A(p.store),it=0;et.length>it;)y(et[it++]);u(u.S+u.F*!V,"Symbol",{for:function(t){return i(W,t+="")?W[t]:W[t]=T(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var n in W)if(W[n]===t)return n},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),u(u.S+u.F*!V,"Object",{create:function(t,n){return void 0===n?E(t):X(E(t),n)},defineProperty:J,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:Q,getOwnPropertySymbols:tt});var ot=a((function(){F.f(1)}));u(u.S+u.F*ot,"Object",{getOwnPropertySymbols:function(t){return F.f(m(t))}}),L&&u(u.S+u.F*(!V||a((function(){var t=T();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))}))),"JSON",{stringify:function(t){for(var n,r,e=[t],i=1;arguments.length>i;)e.push(arguments[i++]);if(r=n=e[1],(b(n)||void 0!==t)&&!K(t))return g(n)||(n=function(t,n){if("function"==typeof r&&(n=r.call(this,t,n)),!K(n))return n}),e[1]=n,R.apply(L,e)}}),T.prototype[C]||r(22)(T.prototype,C,T.prototype.valueOf),l(T,"Symbol"),l(Math,"Math",!0),l(e.JSON,"JSON",!0)},function(t,n,r){t.exports=r(65)("native-function-to-string",Function.toString)},function(t,n,r){var e=r(43),i=r(67),o=r(60);t.exports=function(t){var n=e(t),r=i.f;if(r)for(var u,c=r(t),f=o.f,a=0;c.length>a;)f.call(t,u=c[a++])&&n.push(u);return n}},function(t,n,r){var e=r(0);e(e.S,"Object",{create:r(45)})},function(t,n,r){var e=r(0);e(e.S+e.F*!r(12),"Object",{defineProperty:r(13).f})},function(t,n,r){var e=r(0);e(e.S+e.F*!r(12),"Object",{defineProperties:r(115)})},function(t,n,r){var e=r(23),i=r(29).f;r(30)("getOwnPropertyDescriptor",(function(){return function(t,n){return i(e(t),n)}}))},function(t,n,r){var e=r(15),i=r(47);r(30)("getPrototypeOf",(function(){return function(t){return i(e(t))}}))},function(t,n,r){var e=r(15),i=r(43);r(30)("keys",(function(){return function(t){return i(e(t))}}))},function(t,n,r){r(30)("getOwnPropertyNames",(function(){return r(116).f}))},function(t,n,r){var e=r(6),i=r(37).onFreeze;r(30)("freeze",(function(t){return function(n){return t&&e(n)?t(i(n)):n}}))},function(t,n,r){var e=r(6),i=r(37).onFreeze;r(30)("seal",(function(t){return function(n){return t&&e(n)?t(i(n)):n}}))},function(t,n,r){var e=r(6),i=r(37).onFreeze;r(30)("preventExtensions",(function(t){return function(n){return t&&e(n)?t(i(n)):n}}))},function(t,n,r){var e=r(6);r(30)("isFrozen",(function(t){return function(n){return!e(n)||!!t&&t(n)}}))},function(t,n,r){var e=r(6);r(30)("isSealed",(function(t){return function(n){return!e(n)||!!t&&t(n)}}))},function(t,n,r){var e=r(6);r(30)("isExtensible",(function(t){return function(n){return!!e(n)&&(!t||t(n))}}))},function(t,n,r){var e=r(0);e(e.S+e.F,"Object",{assign:r(117)})},function(t,n,r){var e=r(0);e(e.S,"Object",{is:r(118)})},function(t,n,r){var e=r(0);e(e.S,"Object",{setPrototypeOf:r(84).set})},function(t,n,r){"use strict";var e=r(61),i={};i[r(8)("toStringTag")]="z",i+""!="[object z]"&&r(17)(Object.prototype,"toString",(function(){return"[object "+e(this)+"]"}),!0)},function(t,n,r){var e=r(0);e(e.P,"Function",{bind:r(119)})},function(t,n,r){var e=r(13).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||r(12)&&e(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,n,r){"use strict";var e=r(6),i=r(47),o=r(8)("hasInstance"),u=Function.prototype;o in u||r(13).f(u,o,{value:function(t){if("function"!=typeof this||!e(t))return!1;if(!e(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,n,r){var e=r(0),i=r(121);e(e.G+e.F*(parseInt!=i),{parseInt:i})},function(t,n,r){var e=r(0),i=r(122);e(e.G+e.F*(parseFloat!=i),{parseFloat:i})},function(t,n,r){"use strict";var e=r(3),i=r(21),o=r(32),u=r(86),c=r(36),f=r(4),a=r(46).f,s=r(29).f,l=r(13).f,h=r(52).trim,p=e.Number,v=p,y=p.prototype,d="Number"==o(r(45)(y)),g="trim"in String.prototype,x=function(t){var n=c(t,!1);if("string"==typeof n&&n.length>2){var r,e,i,o=(n=g?n.trim():h(n,3)).charCodeAt(0);if(43===o||45===o){if(88===(r=n.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(n.charCodeAt(1)){case 66:case 98:e=2,i=49;break;case 79:case 111:e=8,i=55;break;default:return+n}for(var u,f=n.slice(2),a=0,s=f.length;ai)return NaN;return parseInt(f,e)}}return+n};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var n=arguments.length<1?0:t,r=this;return r instanceof p&&(d?f((function(){y.valueOf.call(r)})):"Number"!=o(r))?u(new v(x(n)),r,p):x(n)};for(var b,m=r(12)?a(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;m.length>S;S++)i(v,b=m[S])&&!i(p,b)&&l(p,b,s(v,b));p.prototype=y,y.constructor=p,r(17)(e,"Number",p)}},function(t,n,r){"use strict";var e=r(0),i=r(28),o=r(123),u=r(87),c=1..toFixed,f=Math.floor,a=[0,0,0,0,0,0],s="Number.toFixed: incorrect invocation!",l=function(t,n){for(var r=-1,e=n;++r<6;)e+=t*a[r],a[r]=e%1e7,e=f(e/1e7)},h=function(t){for(var n=6,r=0;--n>=0;)r+=a[n],a[n]=f(r/t),r=r%t*1e7},p=function(){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==a[t]){var r=String(a[t]);n=""===n?r:n+u.call("0",7-r.length)+r}return n},v=function(t,n,r){return 0===n?r:n%2==1?v(t,n-1,r*t):v(t*t,n/2,r)};e(e.P+e.F*(!!c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r(4)((function(){c.call({})}))),"Number",{toFixed:function(t){var n,r,e,c,f=o(this,s),a=i(t),y="",d="0";if(a<0||a>20)throw RangeError(s);if(f!=f)return"NaN";if(f<=-1e21||f>=1e21)return String(f);if(f<0&&(y="-",f=-f),f>1e-21)if(r=(n=function(t){for(var n=0,r=t;r>=4096;)n+=12,r/=4096;for(;r>=2;)n+=1,r/=2;return n}(f*v(2,69,1))-69)<0?f*v(2,-n,1):f/v(2,n,1),r*=4503599627370496,(n=52-n)>0){for(l(0,r),e=a;e>=7;)l(1e7,0),e-=7;for(l(v(10,e,1),0),e=n-1;e>=23;)h(1<<23),e-=23;h(1<0?y+((c=d.length)<=a?"0."+u.call("0",a-c)+d:d.slice(0,c-a)+"."+d.slice(c-a)):y+d}})},function(t,n,r){"use strict";var e=r(0),i=r(4),o=r(123),u=1..toPrecision;e(e.P+e.F*(i((function(){return"1"!==u.call(1,void 0)}))||!i((function(){u.call({})}))),"Number",{toPrecision:function(t){var n=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?u.call(n):u.call(n,t)}})},function(t,n,r){var e=r(0);e(e.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,n,r){var e=r(0),i=r(3).isFinite;e(e.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,n,r){var e=r(0);e(e.S,"Number",{isInteger:r(124)})},function(t,n,r){var e=r(0);e(e.S,"Number",{isNaN:function(t){return t!=t}})},function(t,n,r){var e=r(0),i=r(124),o=Math.abs;e(e.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,n,r){var e=r(0);e(e.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,n,r){var e=r(0);e(e.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,n,r){var e=r(0),i=r(122);e(e.S+e.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,n,r){var e=r(0),i=r(121);e(e.S+e.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,n,r){var e=r(0),i=r(125),o=Math.sqrt,u=Math.acosh;e(e.S+e.F*!(u&&710==Math.floor(u(Number.MAX_VALUE))&&u(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,n,r){var e=r(0),i=Math.asinh;e(e.S+e.F*!(i&&1/i(0)>0),"Math",{asinh:function t(n){return isFinite(n=+n)&&0!=n?n<0?-t(-n):Math.log(n+Math.sqrt(n*n+1)):n}})},function(t,n,r){var e=r(0),i=Math.atanh;e(e.S+e.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,n,r){var e=r(0),i=r(88);e(e.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,n,r){var e=r(0);e(e.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,n,r){var e=r(0),i=Math.exp;e(e.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,n,r){var e=r(0),i=r(89);e(e.S+e.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,n,r){var e=r(0);e(e.S,"Math",{fround:r(197)})},function(t,n,r){var e=r(88),i=Math.pow,o=i(2,-52),u=i(2,-23),c=i(2,127)*(2-u),f=i(2,-126);t.exports=Math.fround||function(t){var n,r,i=Math.abs(t),a=e(t);return ic||r!=r?a*(1/0):a*r}},function(t,n,r){var e=r(0),i=Math.abs;e(e.S,"Math",{hypot:function(t,n){for(var r,e,o=0,u=0,c=arguments.length,f=0;u0?(e=r/f)*e:r;return f===1/0?1/0:f*Math.sqrt(o)}})},function(t,n,r){var e=r(0),i=Math.imul;e(e.S+e.F*r(4)((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(t,n){var r=+t,e=+n,i=65535&r,o=65535&e;return 0|i*o+((65535&r>>>16)*o+i*(65535&e>>>16)<<16>>>0)}})},function(t,n,r){var e=r(0);e(e.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,n,r){var e=r(0);e(e.S,"Math",{log1p:r(125)})},function(t,n,r){var e=r(0);e(e.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,n,r){var e=r(0);e(e.S,"Math",{sign:r(88)})},function(t,n,r){var e=r(0),i=r(89),o=Math.exp;e(e.S+e.F*r(4)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,n,r){var e=r(0),i=r(89),o=Math.exp;e(e.S,"Math",{tanh:function(t){var n=i(t=+t),r=i(-t);return n==1/0?1:r==1/0?-1:(n-r)/(o(t)+o(-t))}})},function(t,n,r){var e=r(0);e(e.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,n,r){var e=r(0),i=r(44),o=String.fromCharCode,u=String.fromCodePoint;e(e.S+e.F*(!!u&&1!=u.length),"String",{fromCodePoint:function(t){for(var n,r=[],e=arguments.length,u=0;e>u;){if(n=+arguments[u++],i(n,1114111)!==n)throw RangeError(n+" is not a valid code point");r.push(n<65536?o(n):o(55296+((n-=65536)>>10),n%1024+56320))}return r.join("")}})},function(t,n,r){var e=r(0),i=r(23),o=r(9);e(e.S,"String",{raw:function(t){for(var n=i(t.raw),r=o(n.length),e=arguments.length,u=[],c=0;r>c;)u.push(String(n[c++])),c=n.length?{value:void 0,done:!0}:(t=e(n,r),this._i+=t.length,{value:t,done:!1})}))},function(t,n,r){"use strict";var e=r(0),i=r(90)(!1);e(e.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,n,r){"use strict";var e=r(0),i=r(9),o=r(92),u="".endsWith;e(e.P+e.F*r(94)("endsWith"),"String",{endsWith:function(t){var n=o(this,t,"endsWith"),r=arguments.length>1?arguments[1]:void 0,e=i(n.length),c=void 0===r?e:Math.min(i(r),e),f=String(t);return u?u.call(n,f,c):n.slice(c-f.length,c)===f}})},function(t,n,r){"use strict";var e=r(0),i=r(92);e(e.P+e.F*r(94)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,n,r){var e=r(0);e(e.P,"String",{repeat:r(87)})},function(t,n,r){"use strict";var e=r(0),i=r(9),o=r(92),u="".startsWith;e(e.P+e.F*r(94)("startsWith"),"String",{startsWith:function(t){var n=o(this,t,"startsWith"),r=i(Math.min(arguments.length>1?arguments[1]:void 0,n.length)),e=String(t);return u?u.call(n,e,r):n.slice(r,r+e.length)===e}})},function(t,n,r){"use strict";r(18)("anchor",(function(t){return function(n){return t(this,"a","name",n)}}))},function(t,n,r){"use strict";r(18)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,n,r){"use strict";r(18)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,n,r){"use strict";r(18)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,n,r){"use strict";r(18)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,n,r){"use strict";r(18)("fontcolor",(function(t){return function(n){return t(this,"font","color",n)}}))},function(t,n,r){"use strict";r(18)("fontsize",(function(t){return function(n){return t(this,"font","size",n)}}))},function(t,n,r){"use strict";r(18)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,n,r){"use strict";r(18)("link",(function(t){return function(n){return t(this,"a","href",n)}}))},function(t,n,r){"use strict";r(18)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,n,r){"use strict";r(18)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,n,r){"use strict";r(18)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,n,r){"use strict";r(18)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,n,r){var e=r(0);e(e.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,n,r){"use strict";var e=r(0),i=r(15),o=r(36);e(e.P+e.F*r(4)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var n=i(this),r=o(n);return"number"!=typeof r||isFinite(r)?n.toISOString():null}})},function(t,n,r){var e=r(0),i=r(232);e(e.P+e.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(t,n,r){"use strict";var e=r(4),i=Date.prototype.getTime,o=Date.prototype.toISOString,u=function(t){return t>9?t:"0"+t};t.exports=e((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-50000000000001))}))||!e((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,n=t.getUTCFullYear(),r=t.getUTCMilliseconds(),e=n<0?"-":n>9999?"+":"";return e+("00000"+Math.abs(n)).slice(e?-6:-4)+"-"+u(t.getUTCMonth()+1)+"-"+u(t.getUTCDate())+"T"+u(t.getUTCHours())+":"+u(t.getUTCMinutes())+":"+u(t.getUTCSeconds())+"."+(r>99?r:"0"+u(r))+"Z"}:o},function(t,n,r){var e=Date.prototype,i=e.toString,o=e.getTime;new Date(NaN)+""!="Invalid Date"&&r(17)(e,"toString",(function(){var t=o.call(this);return t==t?i.call(this):"Invalid Date"}))},function(t,n,r){var e=r(8)("toPrimitive"),i=Date.prototype;e in i||r(22)(i,e,r(235))},function(t,n,r){"use strict";var e=r(5),i=r(36);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(e(this),"number"!=t)}},function(t,n,r){var e=r(0);e(e.S,"Array",{isArray:r(68)})},function(t,n,r){"use strict";var e=r(26),i=r(0),o=r(15),u=r(127),c=r(95),f=r(9),a=r(96),s=r(97);i(i.S+i.F*!r(69)((function(t){Array.from(t)})),"Array",{from:function(t){var n,r,i,l,h=o(t),p="function"==typeof this?this:Array,v=arguments.length,y=v>1?arguments[1]:void 0,d=void 0!==y,g=0,x=s(h);if(d&&(y=e(y,v>2?arguments[2]:void 0,2)),null==x||p==Array&&c(x))for(r=new p(n=f(h.length));n>g;g++)a(r,g,d?y(h[g],g):h[g]);else for(l=x.call(h),r=new p;!(i=l.next()).done;g++)a(r,g,d?u(l,y,[i.value,g],!0):i.value);return r.length=g,r}})},function(t,n,r){"use strict";var e=r(0),i=r(96);e(e.S+e.F*r(4)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,n=arguments.length,r=new("function"==typeof this?this:Array)(n);n>t;)i(r,t,arguments[t++]);return r.length=n,r}})},function(t,n,r){"use strict";var e=r(0),i=r(23),o=[].join;e(e.P+e.F*(r(59)!=Object||!r(25)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,n,r){"use strict";var e=r(0),i=r(83),o=r(32),u=r(44),c=r(9),f=[].slice;e(e.P+e.F*r(4)((function(){i&&f.call(i)})),"Array",{slice:function(t,n){var r=c(this.length),e=o(this);if(n=void 0===n?r:n,"Array"==e)return f.call(this,t,n);for(var i=u(t,r),a=u(n,r),s=c(a-i),l=new Array(s),h=0;h1&&(e=Math.min(e,o(arguments[1]))),e<0&&(e=r+e);e>=0;e--)if(e in n&&n[e]===t)return e||0;return-1}})},function(t,n,r){var e=r(0);e(e.P,"Array",{copyWithin:r(130)}),r(48)("copyWithin")},function(t,n,r){var e=r(0);e(e.P,"Array",{fill:r(98)}),r(48)("fill")},function(t,n,r){"use strict";var e=r(0),i=r(31)(5),o=!0;"find"in[]&&Array(1).find((function(){o=!1})),e(e.P+e.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(48)("find")},function(t,n,r){"use strict";var e=r(0),i=r(31)(6),o="findIndex",u=!0;o in[]&&Array(1)[o]((function(){u=!1})),e(e.P+e.F*u,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(48)(o)},function(t,n,r){r(54)("Array")},function(t,n,r){var e=r(3),i=r(86),o=r(13).f,u=r(46).f,c=r(93),f=r(70),a=e.RegExp,s=a,l=a.prototype,h=/a/g,p=/a/g,v=new a(h)!==h;if(r(12)&&(!v||r(4)((function(){return p[r(8)("match")]=!1,a(h)!=h||a(p)==p||"/a/i"!=a(h,"i")})))){a=function(t,n){var r=this instanceof a,e=c(t),o=void 0===n;return!r&&e&&t.constructor===a&&o?t:i(v?new s(e&&!o?t.source:t,n):s((e=t instanceof a)?t.source:t,e&&o?f.call(t):n),r?this:l,a)};for(var y=function(t){t in a||o(a,t,{configurable:!0,get:function(){return s[t]},set:function(n){s[t]=n}})},d=u(s),g=0;d.length>g;)y(d[g++]);l.constructor=a,a.prototype=l,r(17)(e,"RegExp",a)}r(54)("RegExp")},function(t,n,r){"use strict";r(133);var e=r(5),i=r(70),o=r(12),u=/./.toString,c=function(t){r(17)(RegExp.prototype,"toString",t,!0)};r(4)((function(){return"/a/b"!=u.call({source:"a",flags:"b"})}))?c((function(){var t=e(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)})):"toString"!=u.name&&c((function(){return u.call(this)}))},function(t,n,r){"use strict";var e=r(5),i=r(9),o=r(101),u=r(71);r(72)("match",1,(function(t,n,r,c){return[function(r){var e=t(this),i=null==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},function(t){var n=c(r,t,this);if(n.done)return n.value;var f=e(t),a=String(this);if(!f.global)return u(f,a);var s=f.unicode;f.lastIndex=0;for(var l,h=[],p=0;null!==(l=u(f,a));){var v=String(l[0]);h[p]=v,""===v&&(f.lastIndex=o(a,i(f.lastIndex),s)),p++}return 0===p?null:h}]}))},function(t,n,r){"use strict";var e=r(5),i=r(15),o=r(9),u=r(28),c=r(101),f=r(71),a=Math.max,s=Math.min,l=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;r(72)("replace",2,(function(t,n,r,v){return[function(e,i){var o=t(this),u=null==e?void 0:e[n];return void 0!==u?u.call(e,o,i):r.call(String(o),e,i)},function(t,n){var i=v(r,t,this,n);if(i.done)return i.value;var l=e(t),h=String(this),p="function"==typeof n;p||(n=String(n));var d=l.global;if(d){var g=l.unicode;l.lastIndex=0}for(var x=[];;){var b=f(l,h);if(null===b)break;if(x.push(b),!d)break;""===String(b[0])&&(l.lastIndex=c(h,o(l.lastIndex),g))}for(var m,S="",w=0,_=0;_=w&&(S+=h.slice(w,O)+j,w=O+E.length)}return S+h.slice(w)}];function y(t,n,e,o,u,c){var f=e+t.length,a=o.length,s=p;return void 0!==u&&(u=i(u),s=h),r.call(c,s,(function(r,i){var c;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,e);case"'":return n.slice(f);case"<":c=u[i.slice(1,-1)];break;default:var s=+i;if(0===s)return r;if(s>a){var h=l(s/10);return 0===h?r:h<=a?void 0===o[h-1]?i.charAt(1):o[h-1]+i.charAt(1):r}c=o[s-1]}return void 0===c?"":c}))}}))},function(t,n,r){"use strict";var e=r(5),i=r(118),o=r(71);r(72)("search",1,(function(t,n,r,u){return[function(r){var e=t(this),i=null==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},function(t){var n=u(r,t,this);if(n.done)return n.value;var c=e(t),f=String(this),a=c.lastIndex;i(a,0)||(c.lastIndex=0);var s=o(c,f);return i(c.lastIndex,a)||(c.lastIndex=a),null===s?-1:s.index}]}))},function(t,n,r){"use strict";var e=r(93),i=r(5),o=r(62),u=r(101),c=r(9),f=r(71),a=r(100),s=r(4),l=Math.min,h=[].push,p="length",v=!s((function(){RegExp(4294967295,"y")}));r(72)("split",2,(function(t,n,r,s){var y;return y="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[p]||2!="ab".split(/(?:ab)*/)[p]||4!=".".split(/(.?)(.?)/)[p]||".".split(/()()/)[p]>1||"".split(/.?/)[p]?function(t,n){var i=String(this);if(void 0===t&&0===n)return[];if(!e(t))return r.call(i,t,n);for(var o,u,c,f=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,v=void 0===n?4294967295:n>>>0,y=new RegExp(t.source,s+"g");(o=a.call(y,i))&&!((u=y.lastIndex)>l&&(f.push(i.slice(l,o.index)),o[p]>1&&o.index=v));)y.lastIndex===o.index&&y.lastIndex++;return l===i[p]?!c&&y.test("")||f.push(""):f.push(i.slice(l)),f[p]>v?f.slice(0,v):f}:"0".split(void 0,0)[p]?function(t,n){return void 0===t&&0===n?[]:r.call(this,t,n)}:r,[function(r,e){var i=t(this),o=null==r?void 0:r[n];return void 0!==o?o.call(r,i,e):y.call(String(i),r,e)},function(t,n){var e=s(y,t,this,n,y!==r);if(e.done)return e.value;var a=i(t),h=String(this),p=o(a,RegExp),d=a.unicode,g=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(v?"y":"g"),x=new p(v?a:"^(?:"+a.source+")",g),b=void 0===n?4294967295:n>>>0;if(0===b)return[];if(0===h.length)return null===f(x,h)?[h]:[];for(var m=0,S=0,w=[];S0?arguments[0]:void 0)}}),{get:function(t){var n=e.getEntry(i(this,"Map"),t);return n&&n.v},set:function(t,n){return e.def(i(this,"Map"),0===t?0:t,n)}},e,!0)},function(t,n,r){"use strict";var e=r(137),i=r(49);t.exports=r(75)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return e.def(i(this,"Set"),t=0===t?0:t,t)}},e)},function(t,n,r){"use strict";var e,i=r(3),o=r(31)(0),u=r(17),c=r(37),f=r(117),a=r(138),s=r(6),l=r(49),h=r(49),p=!i.ActiveXObject&&"ActiveXObject"in i,v=c.getWeak,y=Object.isExtensible,d=a.ufstore,g=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},x={get:function(t){if(s(t)){var n=v(t);return!0===n?d(l(this,"WeakMap")).get(t):n?n[this._i]:void 0}},set:function(t,n){return a.def(l(this,"WeakMap"),t,n)}},b=t.exports=r(75)("WeakMap",g,x,a,!0,!0);h&&p&&(f((e=a.getConstructor(g,"WeakMap")).prototype,x),c.NEED=!0,o(["delete","has","get","set"],(function(t){var n=b.prototype,r=n[t];u(n,t,(function(n,i){if(s(n)&&!y(n)){this._f||(this._f=new e);var o=this._f[t](n,i);return"set"==t?this:o}return r.call(this,n,i)}))})))},function(t,n,r){"use strict";var e=r(138),i=r(49);r(75)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return e.def(i(this,"WeakSet"),t,!0)}},e,!1,!0)},function(t,n,r){"use strict";var e=r(0),i=r(76),o=r(103),u=r(5),c=r(44),f=r(9),a=r(6),s=r(3).ArrayBuffer,l=r(62),h=o.ArrayBuffer,p=o.DataView,v=i.ABV&&s.isView,y=h.prototype.slice,d=i.VIEW;e(e.G+e.W+e.F*(s!==h),{ArrayBuffer:h}),e(e.S+e.F*!i.CONSTR,"ArrayBuffer",{isView:function(t){return v&&v(t)||a(t)&&d in t}}),e(e.P+e.U+e.F*r(4)((function(){return!new h(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,n){if(void 0!==y&&void 0===n)return y.call(u(this),t);for(var r=u(this).byteLength,e=c(t,r),i=c(void 0===n?r:n,r),o=new(l(this,h))(f(i-e)),a=new p(this),s=new p(o),v=0;e=n.length)return{value:void 0,done:!0}}while(!((t=n[this._i++])in this._t));return{value:t,done:!1}})),e(e.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,n,r){var e=r(29),i=r(47),o=r(21),u=r(0),c=r(6),f=r(5);u(u.S,"Reflect",{get:function t(n,r){var u,a,s=arguments.length<3?n:arguments[2];return f(n)===s?n[r]:(u=e.f(n,r))?o(u,"value")?u.value:void 0!==u.get?u.get.call(s):void 0:c(a=i(n))?t(a,r,s):void 0}})},function(t,n,r){var e=r(29),i=r(0),o=r(5);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,n){return e.f(o(t),n)}})},function(t,n,r){var e=r(0),i=r(47),o=r(5);e(e.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,n,r){var e=r(0);e(e.S,"Reflect",{has:function(t,n){return n in t}})},function(t,n,r){var e=r(0),i=r(5),o=Object.isExtensible;e(e.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,n,r){var e=r(0);e(e.S,"Reflect",{ownKeys:r(140)})},function(t,n,r){var e=r(0),i=r(5),o=Object.preventExtensions;e(e.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,n,r){var e=r(13),i=r(29),o=r(47),u=r(21),c=r(0),f=r(40),a=r(5),s=r(6);c(c.S,"Reflect",{set:function t(n,r,c){var l,h,p=arguments.length<4?n:arguments[3],v=i.f(a(n),r);if(!v){if(s(h=o(n)))return t(h,r,c,p);v=f(0)}if(u(v,"value")){if(!1===v.writable||!s(p))return!1;if(l=i.f(p,r)){if(l.get||l.set||!1===l.writable)return!1;l.value=c,e.f(p,r,l)}else e.f(p,r,f(0,c));return!0}return void 0!==v.set&&(v.set.call(p,c),!0)}})},function(t,n,r){var e=r(0),i=r(84);i&&e(e.S,"Reflect",{setPrototypeOf:function(t,n){i.check(t,n);try{return i.set(t,n),!0}catch(t){return!1}}})},function(t,n,r){r(295),t.exports=r(11).Array.includes},function(t,n,r){"use strict";var e=r(0),i=r(66)(!0);e(e.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(48)("includes")},function(t,n,r){r(297),t.exports=r(11).Array.flatMap},function(t,n,r){"use strict";var e=r(0),i=r(298),o=r(15),u=r(9),c=r(27),f=r(128);e(e.P,"Array",{flatMap:function(t){var n,r,e=o(this);return c(t),n=u(e.length),r=f(e,0),i(r,e,e,n,0,1,t,arguments[1]),r}}),r(48)("flatMap")},function(t,n,r){"use strict";var e=r(68),i=r(6),o=r(9),u=r(26),c=r(8)("isConcatSpreadable");t.exports=function t(n,r,f,a,s,l,h,p){for(var v,y,d=s,g=0,x=!!h&&u(h,p,3);g0)d=t(n,r,v,o(v.length),d,l-1)-1;else{if(d>=9007199254740991)throw TypeError();n[d]=v}d++}g++}return d}},function(t,n,r){r(300),t.exports=r(11).String.padStart},function(t,n,r){"use strict";var e=r(0),i=r(141),o=r(74),u=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);e(e.P+e.F*u,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,n,r){r(302),t.exports=r(11).String.padEnd},function(t,n,r){"use strict";var e=r(0),i=r(141),o=r(74),u=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);e(e.P+e.F*u,"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,n,r){r(304),t.exports=r(11).String.trimLeft},function(t,n,r){"use strict";r(52)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,n,r){r(306),t.exports=r(11).String.trimRight},function(t,n,r){"use strict";r(52)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,n,r){r(308),t.exports=r(80).f("asyncIterator")},function(t,n,r){r(113)("asyncIterator")},function(t,n,r){r(310),t.exports=r(11).Object.getOwnPropertyDescriptors},function(t,n,r){var e=r(0),i=r(140),o=r(23),u=r(29),c=r(96);e(e.S,"Object",{getOwnPropertyDescriptors:function(t){for(var n,r,e=o(t),f=u.f,a=i(e),s={},l=0;a.length>l;)void 0!==(r=f(e,n=a[l++]))&&c(s,n,r);return s}})},function(t,n,r){r(312),t.exports=r(11).Object.values},function(t,n,r){var e=r(0),i=r(142)(!1);e(e.S,"Object",{values:function(t){return i(t)}})},function(t,n,r){r(314),t.exports=r(11).Object.entries},function(t,n,r){var e=r(0),i=r(142)(!0);e(e.S,"Object",{entries:function(t){return i(t)}})},function(t,n,r){"use strict";r(134),r(316),t.exports=r(11).Promise.finally},function(t,n,r){"use strict";var e=r(0),i=r(11),o=r(3),u=r(62),c=r(136);e(e.P+e.R,"Promise",{finally:function(t){var n=u(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return c(n,t()).then((function(){return r}))}:t,r?function(r){return c(n,t()).then((function(){throw r}))}:t)}})},function(t,n,r){r(318),r(319),r(320),t.exports=r(11)},function(t,n,r){var e=r(3),i=r(0),o=r(74),u=[].slice,c=/MSIE .\./.test(o),f=function(t){return function(n,r){var e=arguments.length>2,i=!!e&&u.call(arguments,2);return t(e?function(){("function"==typeof n?n:Function(n)).apply(this,i)}:n,r)}};i(i.G+i.B+i.F*c,{setTimeout:f(e.setTimeout),setInterval:f(e.setInterval)})},function(t,n,r){var e=r(0),i=r(102);e(e.G+e.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,n,r){for(var e=r(99),i=r(43),o=r(17),u=r(3),c=r(22),f=r(53),a=r(8),s=a("iterator"),l=a("toStringTag"),h=f.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},v=i(p),y=0;y=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),l}},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 o=n.arg;w(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},107:function(t,e,r){var n=r(63);t.exports=function(t){if(Array.isArray(t))return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports},108:function(t,e){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},109:function(t,e,r){var n=r(63);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},11:function(t,e){t.exports=function(t,e,r){return 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},110:function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},12:function(t,e){t.exports=jQuery},13:function(t,e){var r=/^(?:submit|button|image|reset|file)$/i,n=/^(?:input|select|textarea|keygen)/i,o=/(\[[^\[\]]*\])/g;function i(t,e,r){if(e.match(o))!function t(e,r,n){if(0===r.length)return n;var o=r.shift(),i=o.match(/^\[(.+?)\]$/);if("[]"===o)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(i){var a=i[1],c=+a;isNaN(c)?(e=e||{})[a]=t(e[a],r,n):(e=e||[])[c]=t(e[c],r,n)}else e[o]=t(e[o],r,n);return e}(t,function(t){var e=[],r=new RegExp(o),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 o=e.hash?{}:"",c=e.serializer||(e.hash?i:a),u=t&&t.elements?t.elements:[],s=Object.create(null),l=0;l'.concat(f,"");u=u.replace("{{amount}}",p),a.find("span").html(u)}}},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(12))},15:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return c}));var n=r(57),o=r.n(n),i=r(34),a=r.n(i);function c(_x,t){return u.apply(this,arguments)}function u(){return(u=o()(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(12))},16:function(t,e){function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},22:function(t,e,r){"use strict";r.d(e,"a",(function(){return m})),r.d(e,"c",(function(){return v}));var n=function(t){return"string"!=typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)},o=function(t){return"string"!=typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)},i=function(t){return function(e,r,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;if(o(e)&&n(r))if("function"==typeof i)if("number"==typeof a){var c={callback:i,priority:a,namespace:r};if(t[e]){var u,s=t[e].handlers;for(u=s.length;u>0&&!(a>=s[u-1].priority);u--);u===s.length?s[u]=c:s.splice(u,0,c),(t.__current||[]).forEach((function(t){t.name===e&&t.currentIndex>=u&&t.currentIndex++}))}else t[e]={handlers:[c],runs:0};"hookAdded"!==e&&y("hookAdded",e,r,i,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,i){if(o(r)&&(e||n(i))){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 c=t[r].handlers,u=function(e){c[e].namespace===i&&(c.splice(e,1),a++,(t.__current||[]).forEach((function(t){t.name===r&&t.currentIndex>=e&&t.currentIndex--})))},s=c.length-1;s>=0;s--)u(s);return"hookRemoved"!==r&&y("hookRemoved",r,i),a}}},c=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}},u=function(t,e){return function(r){t[r]||(t[r]={handlers:[],runs:0}),t[r].runs++;for(var n=t[r].handlers,o=arguments.length,i=new Array(o>1?o-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r=e.id,n=e.state,o=e.__unstableLegacyFormData;return Object(s.a)("v2/charge",h({form_values:d()(e[0],{hash:!0}),form_data:JSON.stringify(h(h({},o),n)),form_id:r},t))}function v(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 g(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.state,o=e.__unstableLegacyFormData;return Object(s.a)("v2/customer",g({form_values:d()(e[0],{hash:!0}),form_data:JSON.stringify(g(g({},o),n)),form_id:r},t))}function O(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 x(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.state,o=e.__unstableLegacyFormData;return Object(s.a)("v2/paymentintent/create",x({form_values:d()(e[0],{hash:!0}),form_data:JSON.stringify(x(x({},o),n)),form_id:r},t))}function _(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&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r=e.id,n=e.state,o=e.__unstableLegacyFormData;return Object(s.a)("v2/checkout-session",j({form_values:d()(e[0],{hash:!0}),form_data:JSON.stringify(j(j({},o),n)),form_id:r},t))}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 T(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.state;return Object(s.a)("v2/setupintent/create",T({form_values:d()(e[0],{hash:!0}),form_data:JSON.stringify(n),form_id:r},t))}function F(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 D(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.state,o=e.__unstableLegacyFormData;return Object(s.a)("v2/subscription",D({form_values:d()(e[0],{hash:!0}),form_data:JSON.stringify(D(D({},o),n)),form_id:r},t))}function A(t,e,r,n,o){return Object(s.a)("v2/subscription/payment_method/".concat(r,"/").concat(t),{customer_nonce:e,form_values:o,form_id:n})}},34:function(t,e,r){t.exports=r(103)},343:function(t,e,r){"use strict";r.r(e),function(t){var e=r(11),n=r.n(e),o=r(22),i=r(49),a=r(30),c=r(145);function u(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;e1&&void 0!==arguments[1]&&arguments[1],c=window.simpayApp.formCount;if(e.attr("data-simpay-form-instance",c),!1===a){var u=window.simplePayForms;r=u[n=e.data("simpay-form-id")]}else r=a,n=a.id;var l=r,f=l.type,p=l.form,d=p.prices,y=p.livemode,h=p.config,m=void 0===h?{}:h,v=m.taxRates,g=void 0===v?[]:v,b=m.paymentMethods,O=void 0===b?[]:b,x=s(s(s(s(s({formId:n,formInstance:c,quantity:1,isValid:!0,stripeParams:s(s({},r.stripe.strings),r.stripe.bools),prices:d},r.form.bools),r.form.integers),r.form.i18n),r.form.strings),r.form.config);e.__unstableLegacyFormData=x;var w=i.getPaymentFormType(f);_.each(w,(function(t,r){e[r]=_.isFunction(t)?_.bind(t,e,e):t})),e.id=n,e.state={isValid:!0,customAmount:!1,coupon:!1,price:_.find(d,(function(t){return!0===t.default})),paymentMethod:_.first(O),taxRates:g,paymentMethods:O,livemode:y,displayType:x.formDisplayType},e.setState=function(t){e.state=s(s({},e.state),t)};var j=r.stripe.strings,P=j.key,k=j.elementsLocale;e.stripeInstance=Stripe(P,{locale:k||"auto"}),Object(o.c)("simpaySetupPaymentForm",e),window.simpayApp.spFormData[n]=x,window.simpayApp.spFormElems[n]=e,t(document.body).trigger("simpayCoreFormVarsInitialized",[e,x]).trigger("simpayBindCoreFormEventsAndTriggers",[e,x]).trigger("simpaySetupCoreForm",[e])}window.wpsp={hooks:o.b,paymentForms:i,initPaymentForm:m,api:{charges:l,customers:f,paymentintents:p,sessions:d,setupintents:y,subscriptions:h}},window.simpayApp=s({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++,m(t(this))}));var e}))}.call(this,r(12))},344:function(t,e){function r(e,n){return t.exports=r=Object.setPrototypeOf||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},345: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},351:function(t,e,r){"use strict";var n=r(57),o=r.n(n),i=r(34),a=r.n(i),c=r(49),u=r(22),s=r(37),l=r.n(s),f=r(38),p=r.n(f),d=r(76),y=r.n(d),h=r(77),m=r.n(h),v=r(58),g=r.n(v),b=r(56),O=r.n(b),x=r(16),w=r.n(x),_=r(11),j=r.n(_);function P(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 k(t){for(var e=1;e'.concat(a,"");i.find("span").html(o.replace("{{amount}}",c))}},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,o=t.__unstableLegacyFormData,i=o.stripeErrorMessages,a=o.unknownError;if(e&&""===e)r="";else if(void 0!==e){var c=e.message,u=e.code;r=c||e,u&&i[u]&&(r=i[u])}else r=a;t.find(".simpay-errors").html(r),n()}}),Object(u.a)("simpaySetupPaymentForm","wpsp/paymentForm",(function(t){return(0,t.setup)()})),Object(u.a)("simpaySubmitPaymentForm","wpsp/paymentForm",(function(_x){return q.apply(this,arguments)}))},37:function(t,e){function r(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r'.concat(f,"");u=u.replace("{{amount}}",p),a.find("span").html(u)}}},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(14))},16:function(t,e){function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},19:function(t,e,r){t.exports=r(63)},2:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return c}));var n=r(35),o=r.n(n),i=r(19),a=r.n(i);function c(_x,t){return u.apply(this,arguments)}function u(){return(u=o()(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(14))},20:function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return o})),r.d(e,"c",(function(){return i})),r.d(e,"d",(function(){return a})),r.d(e,"e",(function(){return c})),r.d(e,"f",(function(){return u}));var n={};r.r(n),r.d(n,"create",(function(){return m}));var o={};r.r(o),r.d(o,"create",(function(){return b}));var i={};r.r(i),r.d(i,"create",(function(){return w}));var a={};r.r(a),r.d(a,"create",(function(){return P}));var c={};r.r(c),r.d(c,"create",(function(){return S}));var u={};r.r(u),r.d(u,"create",(function(){return L})),r.d(u,"updatePaymentMethod",(function(){return A}));var s=r(2),l=r(1),f=r.n(l),p=r(7),d=r.n(p);function y(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.state,o=e.__unstableLegacyFormData;return Object(s.a)("v2/charge",h({form_values:d()(e[0],{hash:!0}),form_data:JSON.stringify(h(h({},o),n)),form_id:r},t))}function v(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 g(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.state,o=e.__unstableLegacyFormData;return Object(s.a)("v2/customer",g({form_values:d()(e[0],{hash:!0}),form_data:JSON.stringify(g(g({},o),n)),form_id:r},t))}function O(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 x(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.state,o=e.__unstableLegacyFormData;return Object(s.a)("v2/paymentintent/create",x({form_values:d()(e[0],{hash:!0}),form_data:JSON.stringify(x(x({},o),n)),form_id:r},t))}function _(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&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r=e.id,n=e.state,o=e.__unstableLegacyFormData;return Object(s.a)("v2/checkout-session",j({form_values:d()(e[0],{hash:!0}),form_data:JSON.stringify(j(j({},o),n)),form_id:r},t))}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 T(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.state;return Object(s.a)("v2/setupintent/create",T({form_values:d()(e[0],{hash:!0}),form_data:JSON.stringify(n),form_id:r},t))}function F(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 D(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.state,o=e.__unstableLegacyFormData;return Object(s.a)("v2/subscription",D({form_values:d()(e[0],{hash:!0}),form_data:JSON.stringify(D(D({},o),n)),form_id:r},t))}function A(t,e,r,n,o){return Object(s.a)("v2/subscription/payment_method/".concat(r,"/").concat(t),{customer_nonce:e,form_values:o,form_id:n})}},24:function(t,e,r){"use strict";r.d(e,"a",(function(){return m})),r.d(e,"c",(function(){return v}));var n=function(t){return"string"!=typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)},o=function(t){return"string"!=typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)},i=function(t){return function(e,r,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;if(o(e)&&n(r))if("function"==typeof i)if("number"==typeof a){var c={callback:i,priority:a,namespace:r};if(t[e]){var u,s=t[e].handlers;for(u=s.length;u>0&&!(a>=s[u-1].priority);u--);u===s.length?s[u]=c:s.splice(u,0,c),(t.__current||[]).forEach((function(t){t.name===e&&t.currentIndex>=u&&t.currentIndex++}))}else t[e]={handlers:[c],runs:0};"hookAdded"!==e&&y("hookAdded",e,r,i,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,i){if(o(r)&&(e||n(i))){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 c=t[r].handlers,u=function(e){c[e].namespace===i&&(c.splice(e,1),a++,(t.__current||[]).forEach((function(t){t.name===r&&t.currentIndex>=e&&t.currentIndex--})))},s=c.length-1;s>=0;s--)u(s);return"hookRemoved"!==r&&y("hookRemoved",r,i),a}}},c=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}},u=function(t,e){return function(r){t[r]||(t[r]={handlers:[],runs:0}),t[r].runs++;for(var n=t[r].handlers,o=arguments.length,i=new Array(o>1?o-1:0),a=1;a1&&void 0!==arguments[1]&&arguments[1],c=window.simpayApp.formCount;if(e.attr("data-simpay-form-instance",c),!1===a){var u=window.simplePayForms;r=u[n=e.data("simpay-form-id")]}else r=a,n=a.id;var l=r,f=l.type,p=l.form,d=p.prices,y=p.livemode,h=p.config,m=void 0===h?{}:h,v=m.taxRates,g=void 0===v?[]:v,b=m.paymentMethods,O=void 0===b?[]:b,x=s(s(s(s(s({formId:n,formInstance:c,quantity:1,isValid:!0,stripeParams:s(s({},r.stripe.strings),r.stripe.bools),prices:d},r.form.bools),r.form.integers),r.form.i18n),r.form.strings),r.form.config);e.__unstableLegacyFormData=x;var w=i.getPaymentFormType(f);_.each(w,(function(t,r){e[r]=_.isFunction(t)?_.bind(t,e,e):t})),e.id=n,e.state={isValid:!0,customAmount:!1,coupon:!1,price:_.find(d,(function(t){return!0===t.default})),paymentMethod:_.first(O),taxRates:g,paymentMethods:O,livemode:y,displayType:x.formDisplayType},e.setState=function(t){e.state=s(s({},e.state),t)};var j=r.stripe.strings,P=j.key,k=j.elementsLocale;e.stripeInstance=Stripe(P,{locale:k||"auto"}),Object(o.c)("simpaySetupPaymentForm",e),window.simpayApp.spFormData[n]=x,window.simpayApp.spFormElems[n]=e,t(document.body).trigger("simpayCoreFormVarsInitialized",[e,x]).trigger("simpayBindCoreFormEventsAndTriggers",[e,x]).trigger("simpaySetupCoreForm",[e])}window.wpsp={hooks:o.b,paymentForms:i,initPaymentForm:m,api:{charges:l,customers:f,paymentintents:p,sessions:d,setupintents:y,subscriptions:h}},window.simpayApp=s({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++,m(t(this))}));var e}))}.call(this,r(14))},347:function(t,e){function r(e,n){return t.exports=r=Object.setPrototypeOf||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},348: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},35:function(t,e){function r(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function c(t){r(a,o,i,c,u,"next",t)}function u(t){r(a,o,i,c,u,"throw",t)}c(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},354:function(t,e,r){"use strict";var n=r(35),o=r.n(n),i=r(19),a=r.n(i),c=r(50),u=r(24),s=r(38),l=r.n(s),f=r(39),p=r.n(f),d=r(77),y=r.n(d),h=r(78),m=r.n(h),v=r(58),g=r.n(v),b=r(57),O=r.n(b),x=r(16),w=r.n(x),_=r(1),j=r.n(_);function P(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 k(t){for(var e=1;e'.concat(a,"");i.find("span").html(n.replace("{{amount}}",c))}},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,o=t.__unstableLegacyFormData,i=o.stripeErrorMessages,a=o.unknownError;if(e&&""===e)r="";else if(void 0!==e){var c=e.message,u=e.code;r=c||e,u&&i[u]&&(r=i[u])}else r=a;t.find(".simpay-errors").html(r),n()}}),Object(u.a)("simpaySetupPaymentForm","wpsp/paymentForm",(function(t){return(0,t.setup)()})),Object(u.a)("simpaySubmitPaymentForm","wpsp/paymentForm",(function(_x){return q.apply(this,arguments)}))},38:function(t,e){function r(t,e){for(var r=0;r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),l}},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 o=n.arg;w(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},64:function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r $form->id, + 'action' => 'edit', + ), + admin_url( 'post.php' ) + ); + + return wp_kses_post( + sprintf( + /* translators: %1$s Opening anchor tag, do not translate. %2$s Closing anchor tag, do not translate. */ + __( 'Attention: The payment form does not have prices configured. %1$sAdd price options%2$s to collect payments.', 'stripe' ), + '', + '' + ) + ); + } + + return; + } + ob_start(); $form->html(); diff --git a/includes/core/class-simplepay.php b/includes/core/class-simplepay.php index b028a592..c48704d9 100644 --- a/includes/core/class-simplepay.php +++ b/includes/core/class-simplepay.php @@ -220,9 +220,6 @@ public function load_admin() { require_once( SIMPLE_PAY_INC . 'core/admin/functions/notices.php' ); require_once( SIMPLE_PAY_INC . 'core/admin/functions/plugin-upgrade-notice.php' ); - // Promos (Lite-only). - require_once( SIMPLE_PAY_INC . 'core/admin/notices/promos.php' ); - // Usage tracking functionality. require_once( SIMPLE_PAY_INC . 'core/admin/usage-tracking/functions.php' ); diff --git a/includes/core/forms/class-default-form.php b/includes/core/forms/class-default-form.php index 7a68288e..1a0c7826 100644 --- a/includes/core/forms/class-default-form.php +++ b/includes/core/forms/class-default-form.php @@ -297,6 +297,7 @@ function( $price ) { $custom_fields = simpay_get_saved_meta( $this->id, '_custom_fields' ); $payment_text = __( 'Pay with Card', 'stripe' ); + $payment_trial_text = __( 'Start Trial', 'stripe' ); $payment_loading_text = __( 'Please Wait...', 'stripe' ); // Payment Button (Embed + Stripe Checkout). @@ -309,6 +310,11 @@ function( $price ) { $payment_text = $payment_button['text']; } + // Trial. + if ( ! empty( $payment_button['trial_text'] ) ) { + $payment_trial_text = $payment_button['trial_text']; + } + // Processing. if ( ! empty( $payment_button['processing_text'] ) ) { $payment_loading_text = $payment_button['processing_text']; @@ -321,6 +327,7 @@ function( $price ) { $strings['strings'] = array( 'paymentButtonText' => esc_html( $payment_text ), + 'paymentButtonTrialText' => esc_html( $payment_trial_text ), 'paymentButtonLoadingText' => esc_html( $payment_loading_text ), ); diff --git a/includes/core/forms/functions.php b/includes/core/forms/functions.php index f7c4af6c..ec2d0db3 100644 --- a/includes/core/forms/functions.php +++ b/includes/core/forms/functions.php @@ -140,7 +140,8 @@ function __unstable_simpay_get_payment_form_prices_subscription_price( $prices ) * @since 4.1.0 * * @param \SimplePay\Core\PaymentForm\PriceOption[] $prices Prices list. - * @return \SimplePay\Core\PaymentForm\PriceOption Default price, or first price. + * @return false|\SimplePay\Core\PaymentForm\PriceOption Default price, or first price. + * False if no prices are found. */ function simpay_get_payment_form_default_price( $prices ) { $price = current( @@ -280,6 +281,10 @@ function simpay_payment_form_add_missing_custom_fields( ( isset( $payment_methods['stripe-elements']['sepa-debit'] ) && isset( $payment_methods['stripe-elements']['sepa-debit']['id'] ) + ) || + ( + isset( $payment_methods['stripe-elements']['afterpay-clearpay'] ) && + isset( $payment_methods['stripe-elements']['afterpay-clearpay']['id'] ) ) ) ) { @@ -304,6 +309,44 @@ function simpay_payment_form_add_missing_custom_fields( $count++; } + // Ensure "Address" exists and is required if using Klarna. + if ( + ! isset( $fields['address'] ) && + ( + ( + isset( $payment_methods['stripe-elements']['klarna'] ) && + isset( $payment_methods['stripe-elements']['klarna']['id'] ) + ) || + ( + isset( $payment_methods['stripe-elements']['afterpay-clearpay'] ) && + isset( $payment_methods['stripe-elements']['afterpay-clearpay']['id'] ) + ) + ) + ) { + $args = array( + 'uid' => $count, + 'id' => 'simpay_' . $form_id . '_address', + 'billing-container-label' => 'Billing Address', + 'label-street' => 'Street Address', + 'label-city' => 'City', + 'label-state' => 'State', + 'label-zip' => 'Postal Code', + 'label-country' => 'Country', + 'required' => 'yes', + ); + + if ( + isset( $payment_methods['stripe-elements']['afterpay-clearpay'] ) && + isset( $payment_methods['stripe-elements']['afterpay-clearpay']['id'] ) + ) { + $args['collect-shipping'] = 'yes'; + } + + $fields['address'][] = $args; + + $count++; + } + // Ensure "Payment Methods" exist. if ( ! isset( $fields['card'] ) ) { $fields['card'][] = array( @@ -408,6 +451,7 @@ function simpay_payment_form_add_missing_custom_fields( array( 'customer_name', 'email', + 'address', 'plan_select', 'custom_amount', 'recurring_amount_toggle', diff --git a/includes/core/functions/admin.php b/includes/core/functions/admin.php index 2f6b8a54..fed81bad 100644 --- a/includes/core/functions/admin.php +++ b/includes/core/functions/admin.php @@ -285,13 +285,19 @@ function simpay_ga_url( $base_url, $utm_medium, $utm_content = false ) { * @since 3.0.0 * * @param string $utm_medium utm_medium parameter. + * @param string $utm_content Optional. utm_content parameter. * @return string */ -function simpay_pro_upgrade_url( $utm_medium ) { +function simpay_pro_upgrade_url( $utm_medium, $utm_content = '' ) { return apply_filters( 'simpay_upgrade_link', - simpay_ga_url( 'https://wpsimplepay.com/lite-vs-pro', $utm_medium ), - $utm_medium + simpay_ga_url( + 'https://wpsimplepay.com/lite-vs-pro', + $utm_medium, + $utm_content + ), + $utm_medium, + $utm_content ); } @@ -319,13 +325,13 @@ function simpay_docs_link( $text, $slug, $utm_medium, $plain = false ) { // Add GA campaign params in both cases. if ( $plain ) { - return simpay_ga_url( $url, $utm_medium ); + return simpay_ga_url( $url, $utm_medium, $text ); } else { $html = ''; $html .= ''; diff --git a/includes/core/functions/shared.php b/includes/core/functions/shared.php index 7dfaaa04..b482e332 100644 --- a/includes/core/functions/shared.php +++ b/includes/core/functions/shared.php @@ -12,6 +12,7 @@ exit; } +use SimplePay\Core\License; use SimplePay\Core\Utils; use SimplePay\Core\Forms\Default_Form; use SimplePay\Core\Post_Types\Simple_Pay\Edit_Form; @@ -124,23 +125,35 @@ function simpay_update_setting( $setting, $value ) { } /** - * Check the user's license to see if subscriptions are enabled or not + * Returns the current license. * - * @return bool + * @since 4.4.4 + * + * @return \SimplePay\Core\License\License */ -function simpay_subscriptions_enabled() { - - $license_data = get_option( 'simpay_license_data' ); +function simpay_get_license() { + if ( true === defined( 'SIMPLE_PAY_LICENSE_KEY' ) ) { + $key = SIMPLE_PAY_LICENSE_KEY; // @phpstan-ignore-line + } else { + $key = get_option( 'simpay_license_key', '' ); + } - if ( ! empty( $license_data ) && 'valid' === $license_data->license ) { - $price_id = $license_data->price_id; + /** @var string $key */ + $key = trim( $key ); - if ( '1' !== $price_id ) { - return true; - } - } + return new License\License( $key ); +} - return false; +/** + * Check the user's license to see if subscriptions are enabled or not + * + * @since 3.0.0 + * @since 4.4.4 Deprecated. Use simpay_get_license()->is_subscriptions_enabled() instead. + * + * @return bool + */ +function simpay_subscriptions_enabled() { + return simpay_get_license()->is_subscriptions_enabled(); } /** @@ -1353,9 +1366,10 @@ function simpay_get_payment_form_setting( function __unstable_simpay_get_form_template_category_name( $category_slug ) { $categories = array( - 'business' => __( 'Business', 'stripe' ), - 'non-profit' => __( 'Non-Profit', 'stripe' ), - 'recurring' => __( 'Subscriptions', 'stripe' ), + 'business' => __( 'Business', 'stripe' ), + 'non-profit' => __( 'Non-Profit', 'stripe' ), + 'recurring' => __( 'Subscriptions', 'stripe' ), + 'alternative' => __( 'Alternative Payment Methods', 'stripe' ), ); return isset( $categories[ $category_slug ] ) @@ -1390,6 +1404,28 @@ function __unstable_simpay_get_payment_form_templates() { continue; } + // Adjust licenses if needed. + // Templates that utilize "enhanced" subscription functionality should only continue to be available + // for "Plus" license holders if they have been grandfathered in. + $enhanced_subscription_functionality = array( + 'product-installment-plan-form', + 'recurring-service-trial-period-form', + 'recurring-service-setup-fee-form', + ); + + if ( + in_array( $data['slug'], $enhanced_subscription_functionality, true ) && + false === simpay_get_license()->is_enhanced_subscriptions_enabled() + ) { + $plus = array_search( 'plus', $data['license'], true ); + + if ( false !== $plus ) { + unset( $data['license'][ $plus ] ); + } + + $data['license'] = array_values( $data['license'] ); + } + // Pull category names. if ( isset( $data['categories'] ) ) { $categories = $data['categories']; @@ -1405,8 +1441,18 @@ function __unstable_simpay_get_payment_form_templates() { // Use the store currency if one is not set. foreach ( $data['data']['prices'] as $k => $price ) { + // Top level amounts. if ( ! isset( $price['currency'] ) ) { - $price['data'][ $k ]['currency'] = $currency; + $data['data']['prices'][ $k ]['currency'] = $currency; + } + + // Line items. + if ( isset( $data['data']['prices'][ $k ]['line_items'] ) ) { + foreach ( $data['data']['prices'][ $k ]['line_items'] as $line_k => $line_item ) { + if ( ! isset( $line_item['currency'] ) ) { + $data['data']['prices'][ $k ]['line_items'][ $line_k ]['currency'] = $currency; + } + } } } diff --git a/includes/core/payments/payment-confirmation-template-tags.php b/includes/core/payments/payment-confirmation-template-tags.php index f6919485..e9902344 100644 --- a/includes/core/payments/payment-confirmation-template-tags.php +++ b/includes/core/payments/payment-confirmation-template-tags.php @@ -560,7 +560,7 @@ function __unstable_print_tag_list( $description, $tags ) { // phpcs:ignore PHPC sprintf( /* translators: %1$s Opening anchor tag for template tag documentation, do not translate. %2$s Closing anchor tag, do not translate. */ __( 'Have questions about template tags? %1$sView the template tags documentation%2$s', 'stripe' ), - '', + '', Utils\get_external_link_markup() . '' ) ); diff --git a/includes/core/payments/paymentintent.php b/includes/core/payments/paymentintent.php index 763550de..369ff172 100644 --- a/includes/core/payments/paymentintent.php +++ b/includes/core/payments/paymentintent.php @@ -404,3 +404,51 @@ function( $tax, $tax_rate ) use ( $post_inclusive_unit_amount ) { 'currency' => $currency, ); } + +/** + * Sets the customer's default payment method to the card used to make the payment. + * + * Only applies to card payments made on-site. This is to maintain backwards compatibility + * with previous versions that force-set the default payment method on customer creation. + * + * @since 4.4.4 + * + * @param \SimplePay\Vendor\Stripe\Event $event Webhook event. + * @param \SimplePay\Vendor\Stripe\PaymentIntent $paymentintent PaymentIntent. + * @return void + */ +function set_card_default_payment_method( $event, $payment_intent ) { + $form_id = isset( $payment_intent->metadata->simpay_form_id ) + ? $payment_intent->metadata->simpay_form_id + : 0; + $form = simpay_get_form( $form_id ); + + if ( false === $form ) { + return; + } + + $pm_types = $payment_intent->payment_method_types; + + if ( + 'stripe_checkout' === $form->get_display_type() || + ! in_array( 'card', $pm_types, true ) + ) { + return; + } + + API\Customers\update( + $payment_intent->customer->id, + array( + 'invoice_settings' => array( + 'default_payment_method' => $payment_intent->payment_method, + ), + ), + $form->get_api_request_args() + ); +} +add_action( + 'simpay_webhook_payment_intent_succeeded', + __NAMESPACE__ . '\\set_card_default_payment_method', + 5, + 2 +); diff --git a/includes/core/post-types/simple-pay/actions.php b/includes/core/post-types/simple-pay/actions.php index b5d7a715..dd3d2c41 100644 --- a/includes/core/post-types/simple-pay/actions.php +++ b/includes/core/post-types/simple-pay/actions.php @@ -236,11 +236,25 @@ function save_product( $post_id, $post, $form ) { } else { $product_args['description'] = sanitize_text_field( $description ); - $product = API\Products\update( - $form_product, - $product_args, - $form->get_api_request_args() - ); + // Try to update an existing product. + try { + $product = API\Products\update( + $form_product, + $product_args, + $form->get_api_request_args() + ); + + // Create a new one if the previous cannot be updated. + } catch ( \Exception $e ) { + $product = API\Products\create( + $product_args, + $form->get_api_request_args() + ); + + update_post_meta( $form->id, $product_key, $product->id ); + + $form_product = $product->id; + } } } catch ( ApiErrorException $e ) { $error->add( diff --git a/includes/core/post-types/simple-pay/edit-form-custom-fields.php b/includes/core/post-types/simple-pay/edit-form-custom-fields.php index 7fc36211..b5c7a5ba 100644 --- a/includes/core/post-types/simple-pay/edit-form-custom-fields.php +++ b/includes/core/post-types/simple-pay/edit-form-custom-fields.php @@ -127,7 +127,7 @@ function get_custom_field_types() { 'repeatable' => false, ), 'card' => array( - 'label' => esc_html__( 'Payment Methods (Card, ACH, etc)', 'stripe' ), + 'label' => esc_html__( 'Payment Methods', 'stripe' ), 'type' => 'card', 'category' => 'payment', 'active' => true, @@ -459,4 +459,8 @@ function add_custom_fields( $post_id ) { */ do_action( 'simpay_admin_after_custom_fields' ); } -add_action( 'simpay_form_settings_meta_payment_options_panel', __NAMESPACE__ . '\\add_custom_fields' ); +add_action( + 'simpay_form_settings_meta_payment_options_panel', + __NAMESPACE__ . '\\add_custom_fields', + 15 +); diff --git a/includes/core/post-types/simple-pay/edit-form-payment-options.php b/includes/core/post-types/simple-pay/edit-form-payment-options.php index 368877f7..0bfd6fb1 100644 --- a/includes/core/post-types/simple-pay/edit-form-payment-options.php +++ b/includes/core/post-types/simple-pay/edit-form-payment-options.php @@ -408,7 +408,10 @@ function __add_tax_rates_upsell() { ', + '', Utils\get_external_link_markup() . '' ) ); diff --git a/includes/core/rest-api/v2/class-customer-controller.php b/includes/core/rest-api/v2/class-customer-controller.php index 1c77b7d2..c153deff 100644 --- a/includes/core/rest-api/v2/class-customer-controller.php +++ b/includes/core/rest-api/v2/class-customer-controller.php @@ -100,6 +100,13 @@ public function create_item_permissions_check( $request ) { */ public function create_item( $request ) { try { + // Do not proceed if attempting to set the PaymentMethod or Source (legacy flow). + if ( isset( $request['payment_method_id'], $request['source_id' ] ) ) { + throw new \Exception( + __( 'Unable to complete payment.', 'stripe' ) + ); + } + // Locate form. if ( ! isset( $request['form_id'] ) ) { throw new \Exception( @@ -107,15 +114,6 @@ public function create_item( $request ) { ); } - // Gather Payment Method information. - $source_id = isset( $request['source_id'] ) - ? $request['source_id'] - : null; - - $payment_method_id = isset( $request['payment_method_id'] ) - ? $request['payment_method_id'] - : null; - // Gather
information. $form_id = $request['form_id']; $form_data = json_decode( $request['form_data'], true ); @@ -132,19 +130,10 @@ public function create_item( $request ) { // Handle legacy hook. Legacy\Hooks\simpay_pre_process_form( $form, $form_data, $form_values ); - $customer_args = wp_parse_args( - Payments\Customer\get_args_from_payment_form_request( - $form, - $form_data, - $form_values - ), - array( - 'source' => $source_id, - 'payment_method' => $payment_method_id, - 'invoice_settings' => array( - 'default_payment_method' => $payment_method_id, - ) - ) + $customer_args = Payments\Customer\get_args_from_payment_form_request( + $form, + $form_data, + $form_values ); // Add separately to avoid overwriting existing metadata. diff --git a/includes/core/rest-api/v2/class-paymentintent-controller.php b/includes/core/rest-api/v2/class-paymentintent-controller.php index 3a46a817..522251f9 100644 --- a/includes/core/rest-api/v2/class-paymentintent-controller.php +++ b/includes/core/rest-api/v2/class-paymentintent-controller.php @@ -58,20 +58,6 @@ public function register_routes() { 'schema' => array( $this, 'get_public_item_schema' ), ) ); - - register_rest_route( - $this->namespace, - $this->rest_base . '/confirm', - array( - array( - 'methods' => \WP_REST_Server::CREATABLE, - 'callback' => array( $this, 'confirm_item' ), - 'permission_callback' => array( $this, 'create_item_permissions_check' ), - 'args' => $this->get_endpoint_args_for_item_schema( \WP_REST_Server::CREATABLE ), - ), - 'schema' => array( $this, 'get_public_item_schema' ), - ) - ); } /** @@ -111,10 +97,14 @@ public function create_item_permissions_check( $request ) { public function create_item( $request ) { try { // Payment Method type. - $payment_method_type = isset( $request['payment_method_type'] ) ? $request['payment_method_type'] : 'card'; + $payment_method_type = isset( $request['payment_method_type'] ) + ? $request['payment_method_type'] + : 'card'; // Gather customer information. - $customer_id = isset( $request['customer_id'] ) ? $request['customer_id'] : false; + $customer_id = isset( $request['customer_id'] ) + ? $request['customer_id'] + : false; if ( ! $customer_id ) { throw new \Exception( __( 'A customer must be provided.', 'stripe' ) ); @@ -143,34 +133,25 @@ public function create_item( $request ) { // Generate arguments based on form data. $paymentintent_args = array_merge( - Payments\PaymentIntent\get_args_from_payment_form_request( $form, $form_data, $form_values, $customer_id ), + Payments\PaymentIntent\get_args_from_payment_form_request( + $form, + $form_data, + $form_values, + $customer_id + ), array( - 'customer' => $customer_id, - 'expand' => array( + 'customer' => $customer_id, + 'expand' => array( 'customer', ), + 'payment_method_types' => array( $payment_method_type ), ) ); - $paymentintent_args['payment_method_types'] = array( $payment_method_type ); - - // @todo Move this to more Payment Method-specific areas. - switch ( $payment_method_type ) { - case 'card': - $payment_method_id = isset( $request['payment_method_id'] ) - ? $request['payment_method_id'] - : false; + $off_session_pms = array( 'ach-debit', 'card', 'sepa_debit' ); - if ( false === $payment_method_id ) { - throw new \Exception( __( 'A Payment Method is required.', 'stripe' ) ); - } - - $paymentintent_args['payment_method'] = $payment_method_id; - - break; - case 'sepa_debit': - $paymentintent_args['setup_future_usage'] = 'off_session'; - break; + if ( in_array( $payment_method_type, $off_session_pms, true ) ) { + $paymentintent_args['setup_future_usage'] = 'off_session'; } /** @@ -219,7 +200,7 @@ public function create_item( $request ) { $customer_id ); - return $this->generate_payment_response( $paymentintent, $form, $form_data, $form_values, $customer_id ); + return new \WP_REST_Response( $paymentintent ); } catch ( \Exception $e ) { return new \WP_REST_Response( array( @@ -230,103 +211,4 @@ public function create_item( $request ) { } } - /** - * Confirms a PaymentIntent. - * - * @since 3.6.0 - * - * @param \WP_REST_Request $request { - * Incoming REST API request data. - * - * @type string $payment_intent_id PaymentIntent ID. - * @type string $customer_id Customer ID. - * @type int $form_id Form ID used to generate PaymentIntent data. - * @type array $form_data Client-generated formData information. - * @type array $form_values Values of named fields in the payment form. - * } - * @throws \Exception When required data is missing or cannot be verified. - * @return \WP_REST_Response - */ - public function confirm_item( $request ) { - try { - // Gather PaymentIntent information. - $paymentintent_id = isset( $request['payment_intent_id'] ) ? $request['payment_intent_id'] : false; - - if ( ! $paymentintent_id ) { - throw new \Exception( __( 'Unable to locate PaymentIntent', 'stripe' ) ); - } - - // Gather customer information. - $customer_id = isset( $request['customer_id'] ) ? $request['customer_id'] : false; - - if ( ! $customer_id ) { - throw new \Exception( __( 'A customer must be provided.', 'stripe' ) ); - } - - // Gather information. - $form_id = $request['form_id']; - $form_data = $request['form_data']; - $form_values = $request['form_values']; - - $form = simpay_get_form( $form_id ); - - if ( false === $form ) { - throw new \Exception( - __( 'Unable to locate payment form.', 'stripe' ) - ); - } - - $paymentintent = Payments\PaymentIntent\confirm( - $paymentintent_id, - $form->get_api_request_args() - ); - - return $this->generate_payment_response( $paymentintent, $form, $form_data, $form_values, $customer_id ); - } catch ( \Exception $e ) { - return new \WP_REST_Response( - array( - 'message' => Utils\handle_exception_message( $e ), - ), - 400 - ); - } - } - - /** - * Generates a payment response based on the PaymentIntent status. - * - * @since 3.6.0 - * - * @param \SimplePay\Vendor\Stripe\PaymentIntent $paymentintent Stripe PaymentIntent. - * @param \SimplePay\Core\Abstracts\Form $form Form instance. - * @param array $form_data Form data generated by the client. - * @param array $form_values Values of named fields in the payment form. - * @param int $customer_id Stripe Customer ID. - * @return \WP_REST_Response - */ - private function generate_payment_response( $paymentintent, $form, $form_data, $form_values, $customer_id ) { - $response = new \WP_REST_Response( $paymentintent ); - - /** - * Allows further processing based on a PaymentIntent's status change. - * - * @since 3.6.0 - * - * @param \SimplePay\Vendor\Stripe\PaymentIntent $paymentintent Stripe PaymentIntent. - * @param \SimplePay\Core\Abstracts\Form $form Form instance. - * @param array $form_data Form data generated by the client. - * @param array $form_values Values of named fields in the payment form. - * @param int $customer_id Stripe Customer ID. - */ - do_action( - 'simpay_after_paymentintent_response_from_payment_form_request', - $paymentintent, - $form, - $form_data, - $form_values, - $customer_id - ); - - return $response; - } } diff --git a/includes/core/settings/register-general.php b/includes/core/settings/register-general.php index ffdfee91..d9f57ee2 100644 --- a/includes/core/settings/register-general.php +++ b/includes/core/settings/register-general.php @@ -221,46 +221,50 @@ function register_currency_settings( $settings ) { * @param \SimplePay\Core\Settings\Setting_Collection $settings Settings collection. */ function register_advanced_settings( $settings ) { - /** - * Filters if Usage Tracking should be enabled by default. - * - * @since 4.0.0 - * - * @param bool - */ - $default = apply_filters( 'simpay_usage_tracking_enabled_default', false ); + $license = simpay_get_license(); - $settings->add( - new Settings\Setting_Checkbox( - array( - 'id' => 'usage_tracking_opt_in', - 'section' => 'general', - 'subsection' => 'advanced', - 'label' => esc_html_x( - 'Usage Analytics', - 'setting label', - 'stripe' - ), - 'input_label' => esc_html__( 'Allow usage analytics', 'stripe' ), - 'value' => simpay_get_setting( - 'usage_tracking_opt_in', - false === $default ? 'no' : 'yes' - ), - 'description' => wpautop( - esc_html__( - 'Your site will be considered as we evaluate new features and determine the best improvements to make. No sensitive data is tracked.', + if ( true === $license->is_lite() ) { + /** + * Filters if Usage Tracking should be enabled by default. + * + * @since 4.0.0 + * + * @param bool + */ + $default = apply_filters( 'simpay_usage_tracking_enabled_default', false ); + + $settings->add( + new Settings\Setting_Checkbox( + array( + 'id' => 'usage_tracking_opt_in', + 'section' => 'general', + 'subsection' => 'advanced', + 'label' => esc_html_x( + 'Usage Analytics', + 'setting label', 'stripe' - ) - ), - 'priority' => 30, - 'schema' => array( - 'type' => 'string', - 'enum' => array( 'yes', 'no' ), - 'default' => false === $default ? 'no' : 'yes', - ), + ), + 'input_label' => esc_html__( 'Allow usage analytics', 'stripe' ), + 'value' => simpay_get_setting( + 'usage_tracking_opt_in', + false === $default ? 'no' : 'yes' + ), + 'description' => wpautop( + esc_html__( + 'Your site will be considered as we evaluate new features and determine the best improvements to make. No sensitive data is tracked.', + 'stripe' + ) + ), + 'priority' => 30, + 'schema' => array( + 'type' => 'string', + 'enum' => array( 'yes', 'no' ), + 'default' => false === $default ? 'no' : 'yes', + ), + ) ) - ) - ); + ); + } // Save Settings. $settings->add( diff --git a/includes/core/settings/register-payment-confirmations.php b/includes/core/settings/register-payment-confirmations.php index f90a970d..21351542 100644 --- a/includes/core/settings/register-payment-confirmations.php +++ b/includes/core/settings/register-payment-confirmations.php @@ -118,7 +118,7 @@ function register_page_settings( $settings ) { sprintf( /* translators: %1$s Opening anchor tag, do not translate. %2$s Closing anchor tag, do not translate. */ __( 'Have questions about payment success and failure pages? %1$sView the Payment Confirmation documentation%2$s', 'stripe' ), - '', + '', Utils\get_external_link_markup() . '' ), array( diff --git a/includes/core/settings/register-stripe.php b/includes/core/settings/register-stripe.php index d0c7a945..ce082ce0 100644 --- a/includes/core/settings/register-stripe.php +++ b/includes/core/settings/register-stripe.php @@ -148,7 +148,7 @@ function register_account_settings( $settings ) { 'Connecting to a different Stripe account requires recreating your payment forms and tax rates. Are you sure you want to disconnect?', 'stripe' ), - '' . esc_html__( 'Review the documentation', 'stripe' ) . Utils\get_external_link_markup() . '' + '' . esc_html__( 'Review the documentation', 'stripe' ) . Utils\get_external_link_markup() . '' ); $html .= ''; diff --git a/src/Admin/Addon/AddonInstaller.php b/src/Admin/Addon/AddonInstaller.php index d4922881..e855e7f0 100644 --- a/src/Admin/Addon/AddonInstaller.php +++ b/src/Admin/Addon/AddonInstaller.php @@ -49,7 +49,7 @@ public function activate_addon() { wp_send_json_error( esc_html__( 'Plugin activation is disabled for you on this site.', - 'simple-pay' + 'stripe' ) ); } @@ -69,11 +69,11 @@ public function activate_addon() { if ( ! is_wp_error( $activate ) ) { if ( $type === 'plugin' ) { wp_send_json_success( - esc_html__( 'Plugin activated.', 'simple-pay' ) + esc_html__( 'Plugin activated.', 'stripe' ) ); } else { wp_send_json_success( - esc_html__( 'Addon activated.', 'simple-pay' ) + esc_html__( 'Addon activated.', 'stripe' ) ); } } @@ -83,7 +83,7 @@ public function activate_addon() { wp_send_json_error( esc_html__( 'Could not activate the plugin. Please activate it on the Plugins page.', - 'simple-pay' + 'stripe' ) ); } @@ -91,7 +91,7 @@ public function activate_addon() { wp_send_json_error( esc_html__( 'Could not activate the addon. Please activate it on the Plugins page.', - 'simple-pay' + 'stripe' ) ); } @@ -112,7 +112,7 @@ public function deactivate_addon() { wp_send_json_error( esc_html__( 'Plugin deactivation is disabled for you on this site.', - 'simple-pay' + 'stripe' ) ); } @@ -130,11 +130,11 @@ public function deactivate_addon() { if ( $type === 'plugin' ) { wp_send_json_success( - esc_html__( 'Plugin deactivated.', 'simple-pay' ) + esc_html__( 'Plugin deactivated.', 'stripe' ) ); } else { wp_send_json_success( - esc_html__( 'Addon deactivated.', 'simple-pay' ) + esc_html__( 'Addon deactivated.', 'stripe' ) ); } } @@ -142,7 +142,7 @@ public function deactivate_addon() { wp_send_json_error( esc_html__( 'Could not deactivate the addon. Please deactivate from the Plugins page.', - 'simple-pay' + 'stripe' ) ); } @@ -160,7 +160,7 @@ public function install_addon() { $generic_error = esc_html__( 'There was an error while performing your request.', - 'simple-pay' + 'stripe' ); $type = ! empty( $_POST['type'] ) @@ -175,11 +175,11 @@ public function install_addon() { $error = $type === 'plugin' ? esc_html__( 'Could not install the plugin. Please download and install it manually.', - 'simple-pay' + 'stripe' ) : esc_html__( 'Could not install the addon. Please download it from wpforms.com and install it manually.', - 'simple-pay' + 'stripe' ); /** @var string $plugin */ @@ -264,8 +264,8 @@ public function install_addon() { // Check for permissions. if ( ! current_user_can( 'activate_plugins' ) ) { $result['msg'] = $type === 'plugin' - ? esc_html__( 'Plugin installed.', 'simple-pay' ) - : esc_html__( 'Addon installed.', 'simple-pay' ); + ? esc_html__( 'Plugin installed.', 'stripe' ) + : esc_html__( 'Addon installed.', 'stripe' ); wp_send_json_success( $result ); } @@ -277,8 +277,8 @@ public function install_addon() { if ( ! is_wp_error( $activated ) ) { $result['is_activated'] = true; $result['msg'] = $type === 'plugin' - ? esc_html__( 'Plugin installed & activated.', 'simple-pay' ) - : esc_html__( 'Addon installed & activated.', 'simple-pay' ); + ? esc_html__( 'Plugin installed & activated.', 'stripe' ) + : esc_html__( 'Addon installed & activated.', 'stripe' ); wp_send_json_success( $result ); } diff --git a/src/Admin/AdminNoticeSubscriber.php b/src/Admin/AdminNoticeSubscriber.php index e720334e..639c1662 100644 --- a/src/Admin/AdminNoticeSubscriber.php +++ b/src/Admin/AdminNoticeSubscriber.php @@ -56,13 +56,13 @@ public function get_subscribed_events() { /** * Adds an admin notice to be registered. * - * @since x.x. + * @since 4.4.1 * - * @param \SimplePay\Core\AdminNotice\AdminNoticeInterface $page Admin page. + * @param \SimplePay\Core\AdminNotice\AdminNoticeInterface $notice Admin notice. * @return void */ - private function add_admin_notice( AdminNoticeInterface $page ) { - $this->notices[] = $page; + private function add_admin_notice( AdminNoticeInterface $notice ) { + $this->notices[] = $notice; } /** diff --git a/src/Admin/AdminServiceProvider.php b/src/Admin/AdminServiceProvider.php index 2c035bda..a8c84fe8 100644 --- a/src/Admin/AdminServiceProvider.php +++ b/src/Admin/AdminServiceProvider.php @@ -29,6 +29,9 @@ public function get_services() { return array( 'admin-page-about-us', 'admin-page-setup-wizard', + 'admin-notice-update-available', + 'admin-notice-five-star-rating', + 'admin-notice-license-upgrade-top-of-page', ); } @@ -102,22 +105,37 @@ private function get_pages() { * Returns a list of admin notices to register. * * @since 4.4.1 + * @since 4.4.4 Register notices against container to take advantage of dependency injection. * - * @return \SimplePay\Core\AdminNotice\AdminNoticeInterface[] Admin notices to register. + * @return array<\SimplePay\Core\AdminNotice\AdminNoticeInterface> Admin notices to register. */ private function get_notices() { $container = $this->getContainer(); - $notices = array(); - $license = $container->get( 'license' ); + // Update Available. + $container->share( + 'admin-notice-update-available', + AdminNotice\UpdateAvailableNotice::class + ); + + // Five Star Rating. + $container->share( + 'admin-notice-five-star-rating', + AdminNotice\FiveStarRatingNotice::class + ); - if ( $license instanceof \SimplePay\Core\License\License ) { - // "Update Available" notice. - $notices[] = new AdminNotice\UpdateAvailableNotice( $license ); + // License Upgrade (top of page). + $container->share( + 'admin-notice-license-upgrade-top-of-page', + AdminNotice\LicenseUpgradeTopOfPageNotice::class + ); - // "5 Star Rating" notice. - $notices[] = new AdminNotice\FiveStarRatingNotice( $license ); - } + /** @var array<\SimplePay\Core\AdminNotice\AdminNoticeInterface> */ + $notices = array( + $container->get( 'admin-notice-update-available' ), + $container->get( 'admin-notice-five-star-rating' ), + $container->get( 'admin-notice-license-upgrade-top-of-page' ) + ); return $notices; } diff --git a/src/Admin/Education/AbstractProductEducation.php b/src/Admin/Education/AbstractProductEducation.php index 6098a480..1d61f4eb 100644 --- a/src/Admin/Education/AbstractProductEducation.php +++ b/src/Admin/Education/AbstractProductEducation.php @@ -42,8 +42,8 @@ public function __construct( LicenseInterface $license ) { /** * {@inheritdoc} */ - public function get_upgrade_button_url( $utm_medium ) { - return simpay_pro_upgrade_url( $utm_medium ); + public function get_upgrade_button_url( $utm_medium, $utm_content = '' ) { + return simpay_pro_upgrade_url( $utm_medium, $utm_content ); } /** @@ -51,9 +51,9 @@ public function get_upgrade_button_url( $utm_medium ) { */ public function get_upgrade_button_text() { if ( true === $this->license->is_lite() ) { - $text = __( 'Upgrade to WP Simple Pay Pro', 'simple-pay' ); + $text = __( 'Upgrade to WP Simple Pay Pro', 'stripe' ); } else { - $text = __( 'Upgrade Now', 'simple-pay' ); + $text = __( 'Upgrade Now', 'stripe' ); } return $text; @@ -63,7 +63,7 @@ public function get_upgrade_button_text() { * {@inheritdoc} */ public function get_upgrade_button_subtext() { - return __( 'Special Upgrade Offer - Save 50%', 'simple-pay' ); + return __( 'Special Upgrade Offer - Save 50%', 'stripe' ); } } diff --git a/src/Admin/Education/EducationServiceProvider.php b/src/Admin/Education/EducationServiceProvider.php index 23991262..d2c986d1 100644 --- a/src/Admin/Education/EducationServiceProvider.php +++ b/src/Admin/Education/EducationServiceProvider.php @@ -34,6 +34,7 @@ public function get_services() { */ public function get_subscribers() { return array( + 'admin-education-upgrade-modal', 'admin-education-dashboard-widget', 'admin-education-payment-forms-stripe-connect', 'admin-education-payment-forms-first-form', @@ -45,6 +46,7 @@ public function get_subscribers() { 'admin-education-payment-form-settings', 'admin-education-settings-upgrade', 'admin-education-license-settings-upgrade', + 'admin-education-instant-payouts', ); } @@ -54,6 +56,12 @@ public function get_subscribers() { public function register() { $container = $this->getContainer(); + // Upgrade modal. + $container->share( + 'admin-education-upgrade-modal', + UpgradeModal::class + ); + // Payment Forms: Stripe Connect $container->share( 'admin-education-payment-forms-stripe-connect', @@ -127,6 +135,12 @@ public function register() { ) ->withArgument( $license ); } + + // Instant payouts. + $container->share( + 'admin-education-instant-payouts', + InstantPayouts::class + ); } } diff --git a/src/Admin/Education/InstantPayouts.php b/src/Admin/Education/InstantPayouts.php new file mode 100644 index 00000000..cb69dd16 --- /dev/null +++ b/src/Admin/Education/InstantPayouts.php @@ -0,0 +1,172 @@ + 'register_settings_subsection', + 'simpay_admin_page_settings_keys_end' => 'output_global_settings_page', + + // Form settings. + 'simpay_form_settings_meta_payment_options_panel' => array( + 'output_form_settings_notice', + $this->license->is_lite() ? 10 : 9 + ), + ); + } + + /** + * Registers the "Instant Payouts" settings subsections. + * + * @since 4.4.4 + * + * @param \SimplePay\Core\Settings\Subsection_Collection<\SimplePay\Core\Settings\Subsection> $subsections Subsections collection. + * @return void + */ + function register_settings_subsection( $subsections ) { + if ( false === $this->has_account_support() ) { + return; + } + + $subsections->add( + new Settings\Subsection( + array( + 'id' => 'instant-payouts', + 'section' => 'stripe', + 'label' => esc_html_x( + 'Instant Payouts', + 'settings subsection label', + 'stripe' + ), + 'priority' => 60, + ) + ) + ); + } + + /** + * Outputs the "Instant Payouts" product education in the global settings. + * + * @since 4.4.4 + * + * @return void + */ + public function output_global_settings_page() { + if ( false === $this->has_account_support() ) { + return; + } + + $subsection = isset( $_GET['subsection'] ) + ? sanitize_text_field( $_GET['subsection'] ) + : false; + + if ( false === $subsection || 'instant-payouts' !== $subsection ) { + return; + } + + add_filter( + 'simpay_admin_page_settings_keys_submit', + '__return_false' + ); + + $docs_url = simpay_docs_link( + 'Instant Payouts documentation', + 'stripe-instant-payouts', + 'instant-payout-settings', + true + ); + + $enroll_url = simpay_ga_url( + 'https://wpsimplepay.com/stripe-instant-payouts-refer', + 'instant-payout-settings', + 'Enable Stripe Instant Payouts' + ); + + // @todo use a ViewLoader + include_once SIMPLE_PAY_DIR . '/views/admin-education-plugin-instant-payouts-settings.php'; // @phpstan-ignore-line + } + + /** + * Outputs the "Instant Payouts" product education in the form settings. + * + * @since 4.4.4 + * + * @return void + */ + public function output_form_settings_notice() { + if ( false === $this->has_account_support() ) { + return; + } + + // Dismissed temporary notice. + $dismissed_notice = (bool) Persistent_Dismissible::get( + array( + 'id' => 'simpay-form-settings-instant-payouts-education', + ) + ); + + if ( true === $dismissed_notice ) { + return; + } + + $enroll_url = simpay_ga_url( + 'https://wpsimplepay.com/stripe-instant-payouts-refer', + 'form-payment-settings', + 'Enable Stripe Instant Payouts' + ); + + // @todo use a ViewLoader + include_once SIMPLE_PAY_DIR . '/views/admin-education-payment-form-instant-payouts-settings.php'; // @phpstan-ignore-line + } + + /** + * Determines if the current account country supports instant payouts. + * + * @since 4.4.4 + * + * @return bool + */ + private function has_account_support() { + $instant_payout_countries = array( + 'ca', + 'sg', + 'us', + 'gb' + ); + + /** @var string $account_country */ + $account_country = simpay_get_setting( 'account_country', 'US' ); + $account_country = strtolower( $account_country ); + + return in_array( $account_country, $instant_payout_countries, true ); + } + +} diff --git a/src/Admin/Education/PaymentFormSettings.php b/src/Admin/Education/PaymentFormSettings.php index acf94177..a903e6e2 100644 --- a/src/Admin/Education/PaymentFormSettings.php +++ b/src/Admin/Education/PaymentFormSettings.php @@ -71,7 +71,10 @@ public function form_type() { return; } - $upgrade_url = $this->get_upgrade_button_url( 'form-settings' ); + $upgrade_url = $this->get_upgrade_button_url( + 'form-settings-form-type', + 'Create On-Site Payment Forms' + ); $upgrade_text = $this->get_upgrade_button_text(); $upgrade_subtext = $this->get_upgrade_button_subtext(); @@ -98,7 +101,10 @@ public function price_options() { return; } - $upgrade_url = $this->get_upgrade_button_url( 'form-settings' ); + $upgrade_url = $this->get_upgrade_button_url( + 'form-settings-payment', + 'Multiple Price Options & Subscriptions' + ); $upgrade_text = $this->get_upgrade_button_text(); $upgrade_subtext = $this->get_upgrade_button_subtext(); @@ -125,7 +131,10 @@ public function subscription_options() { return; } - $upgrade_url = $this->get_upgrade_button_url( 'form-settings' ); + $upgrade_url = $this->get_upgrade_button_url( + 'form-settings-subscription', + 'Need your customers to sign up for recurring payments?' + ); $upgrade_text = $this->get_upgrade_button_text(); $upgrade_subtext = $this->get_upgrade_button_subtext(); @@ -149,7 +158,10 @@ public function subscription_options() { * @return void */ public function form_fields() { - $upgrade_url = $this->get_upgrade_button_url( 'form-settings' ); + $upgrade_url = $this->get_upgrade_button_url( + 'form-settings-fields', + 'Custom Fields + Custom Data' + ); $upgrade_text = $this->get_upgrade_button_text(); $upgrade_subtext = $this->get_upgrade_button_subtext(); $field_groups = Edit_Form\get_custom_fields_grouped(); @@ -177,7 +189,10 @@ public function payment_methods() { return; } - $upgrade_url = $this->get_upgrade_button_url( 'form-settings' ); + $upgrade_url = $this->get_upgrade_button_url( + 'form-settings-payment-methods', + 'Offer Multiple Payment Methods (Stripe Checkout)' + ); $upgrade_text = $this->get_upgrade_button_text(); $upgrade_subtext = $this->get_upgrade_button_subtext(); diff --git a/src/Admin/Education/PluginCouponMenuItem.php b/src/Admin/Education/PluginCouponMenuItem.php index ac5d8e3c..06a225a3 100644 --- a/src/Admin/Education/PluginCouponMenuItem.php +++ b/src/Admin/Education/PluginCouponMenuItem.php @@ -43,8 +43,8 @@ public function get_subscribed_events() { public function menu_item() { add_submenu_page( 'edit.php?post_type=simple-pay', - __( 'Coupons', 'simple-pay' ), - __( 'Coupons', 'simple-pay' ), + __( 'Coupons', 'stripe' ), + __( 'Coupons', 'stripe' ), 'manage_options', 'simpay_coupons', array( $this, 'upsell' ) @@ -75,7 +75,10 @@ public function upsell() { true ); - $upgrade_url = $this->get_upgrade_button_url( 'coupons' ); + $upgrade_url = $this->get_upgrade_button_url( + 'coupons', + 'Offer Coupon Codes to Customers' + ); $upgrade_text = $this->get_upgrade_button_text(); $upgrade_subtext = $this->get_upgrade_button_subtext(); diff --git a/src/Admin/Education/PluginCustomersSettings.php b/src/Admin/Education/PluginCustomersSettings.php index ee33b74c..56d66341 100644 --- a/src/Admin/Education/PluginCustomersSettings.php +++ b/src/Admin/Education/PluginCustomersSettings.php @@ -56,7 +56,7 @@ function register_section( $sections ) { 'label' => esc_html_x( 'Subscription Management', 'settings subsection label', - 'simple-pay' + 'stripe' ), 'priority' => 60, ) @@ -82,7 +82,7 @@ function register_subsections( $subsections ) { 'label' => esc_html_x( 'General', 'settings subsection label', - 'simple-pay' + 'stripe' ), ) ); @@ -119,7 +119,10 @@ public function upsell() { true ); - $upgrade_url = $this->get_upgrade_button_url( 'global-settings' ); + $upgrade_url = $this->get_upgrade_button_url( + 'subscription-management-settings', + 'Allow Customers to Manage Subscriptions' + ); $upgrade_text = $this->get_upgrade_button_text(); $upgrade_subtext = $this->get_upgrade_button_subtext(); $license = $this->license; diff --git a/src/Admin/Education/PluginEmailSettings.php b/src/Admin/Education/PluginEmailSettings.php index ec6e0da6..55917f8e 100644 --- a/src/Admin/Education/PluginEmailSettings.php +++ b/src/Admin/Education/PluginEmailSettings.php @@ -52,7 +52,7 @@ function register_section( $sections ) { 'label' => esc_html_x( 'Emails', 'settings subsection label', - 'simple-pay' + 'stripe' ), 'priority' => 60, ) @@ -78,7 +78,7 @@ function register_subsections( $subsections ) { 'label' => esc_html_x( 'General', 'settings subsection label', - 'simple-pay' + 'stripe' ), ) ); @@ -136,7 +136,7 @@ public function upsell() { ? sanitize_text_field( $_GET['subsection'] ) : 'general'; - $title = __( '️📨 Customize Emails Receipts and More', 'simple-pay' ); + $title = __( '️📨 Customize Emails Receipts and More', 'stripe' ); if ( 'general' !== $subsection && $subsections->get_item( $subsection ) ) { /** @var \SimplePay\Core\Settings\Subsection $obj */ @@ -144,13 +144,16 @@ public function upsell() { if ( $obj instanceof \SimplePay\Core\Settings\Subsection ) { $title = sprintf( - __( 'Customize the "%s" Email', 'simple-pay' ), + __( 'Customize the "%s" Email', 'stripe' ), esc_html( $obj->label ) ); } } - $upgrade_url = $this->get_upgrade_button_url( 'global-settings' ); + $upgrade_url = $this->get_upgrade_button_url( + 'email-settings', + 'Customize Emails Receipts and More' + ); $upgrade_text = $this->get_upgrade_button_text(); $upgrade_subtext = $this->get_upgrade_button_subtext(); @@ -170,9 +173,9 @@ public function upsell() { */ private function get_registered_emails() { return array( - 'payment-receipt' => __( 'Payment Confirmation', 'simple-pay' ), - 'payment-notification' => __( 'Payment Notification', 'simple-pay' ), - 'upcoming-invoice' => __( 'Upcoming Invoice', 'simple-pay' ), + 'payment-receipt' => __( 'Payment Confirmation', 'stripe' ), + 'payment-notification' => __( 'Payment Notification', 'stripe' ), + 'upcoming-invoice' => __( 'Upcoming Invoice', 'stripe' ), ); } diff --git a/src/Admin/Education/PluginLicenseSettings.php b/src/Admin/Education/PluginLicenseSettings.php index 7b4bb5e9..33a71b39 100644 --- a/src/Admin/Education/PluginLicenseSettings.php +++ b/src/Admin/Education/PluginLicenseSettings.php @@ -55,7 +55,10 @@ public function license_upgrade() { return; } - $upgrade_url = $this->get_upgrade_button_url( 'global-settings' ); + $upgrade_url = $this->get_upgrade_button_url( + 'license-settings', + 'Upgrade Your License Today and Save' + ); $upgrade_text = $this->get_upgrade_button_text(); $upgrade_subtext = $this->get_upgrade_button_subtext(); diff --git a/src/Admin/Education/PluginTaxesSettings.php b/src/Admin/Education/PluginTaxesSettings.php index 3d38ef2f..d6fee02c 100644 --- a/src/Admin/Education/PluginTaxesSettings.php +++ b/src/Admin/Education/PluginTaxesSettings.php @@ -51,7 +51,7 @@ function register_subsections( $subsections ) { 'label' => esc_html_x( 'Taxes', 'settings subsection label', - 'simple-pay' + 'stripe' ), 'priority' => 20, ) @@ -97,7 +97,10 @@ public function upsell() { true ); - $upgrade_url = $this->get_upgrade_button_url( 'global-settings' ); + $upgrade_url = $this->get_upgrade_button_url( + 'taxes', + 'Collect Taxes and Additional Fees' + ); $upgrade_text = $this->get_upgrade_button_text(); $upgrade_subtext = $this->get_upgrade_button_subtext(); diff --git a/src/Admin/Education/ProductEducationInterface.php b/src/Admin/Education/ProductEducationInterface.php index c970ed6e..0e0e8354 100644 --- a/src/Admin/Education/ProductEducationInterface.php +++ b/src/Admin/Education/ProductEducationInterface.php @@ -24,9 +24,10 @@ interface ProductEducationInterface { * @since 4.4.0 * * @param string $utm_medium utm_medium parameter. + * @param string $utm_content Optional. utm_content parameter. * @return string */ - public function get_upgrade_button_url( $utm_medium ); + public function get_upgrade_button_url( $utm_medium, $utm_content = '' ); /** * Returns the upgrade button text for product education. diff --git a/src/Admin/Education/SettingsUpgrade.php b/src/Admin/Education/SettingsUpgrade.php index fc3d5044..829acb2a 100644 --- a/src/Admin/Education/SettingsUpgrade.php +++ b/src/Admin/Education/SettingsUpgrade.php @@ -59,9 +59,12 @@ public function settings_upgrade() { return; } - $upgrade_url = $this->get_upgrade_button_url( 'global-settings' ); $upgrade_text = $this->get_upgrade_button_text(); $upgrade_subtext = $this->get_upgrade_button_subtext(); + $upgrade_url = $this->get_upgrade_button_url( + 'global-settings', + $upgrade_text + ); include_once SIMPLE_PAY_DIR . 'views/admin-settings-upgrade.php'; // @phpstan-ignore-line } diff --git a/src/Admin/Education/UpgradeModal.php b/src/Admin/Education/UpgradeModal.php new file mode 100644 index 00000000..96abd3a3 --- /dev/null +++ b/src/Admin/Education/UpgradeModal.php @@ -0,0 +1,61 @@ + 'maybe_output_upgrade_modal', + ); + } + + /** + * Outputs markup (a hidden div) for the upgrade modal on WP Simple Pay pages. + * + * @since 4.4.4 + * + * @return void + */ + public function maybe_output_upgrade_modal() { + if ( false === simpay_is_admin_screen() ) { + return; + } + + wp_enqueue_script( 'jquery-ui-dialog' ); + wp_enqueue_style( 'wp-jquery-ui-dialog' ); + + $license = $this->license; + + // @todo use a ViewLoader + include_once SIMPLE_PAY_DIR . '/views/admin-education-upgrade-modal.php'; // @phpstan-ignore-line + } + +} diff --git a/src/Admin/FormBuilder/TemplateExplorer.php b/src/Admin/FormBuilder/TemplateExplorer.php index dad03f14..4f66fca1 100644 --- a/src/Admin/FormBuilder/TemplateExplorer.php +++ b/src/Admin/FormBuilder/TemplateExplorer.php @@ -173,7 +173,8 @@ public function maybe_show_template_explorer( $post ) { ), 'suggestUrl' => simpay_ga_url( 'https://wpsimplepay.com/payment-form-template-suggestion/', - 'template-explorer' + 'template-explorer', + 'suggest a template' ), 'upgradeUrl' => simpay_ga_url( ( @@ -182,10 +183,11 @@ public function maybe_show_template_explorer( $post ) { // add_query_arg escapes this, which doesn't play nicely on the client. : 'https://wpsimplepay.com/pricing?license_key=' . $this->license->get_key() ), - 'template-explorer' + 'template-explorer', + $is_lite ? 'Upgrade to Pro' : 'Upgrade Now' ), 'alreadyPurchasedUrl' => simpay_docs_link( - '', + 'Already purchased?', ( $is_lite ? 'upgrading-wp-simple-pay-lite-to-pro' diff --git a/src/Admin/SetupWizard/SetupWizardLaunch.php b/src/Admin/SetupWizard/SetupWizardLaunch.php index 792c78ce..da6d183c 100644 --- a/src/Admin/SetupWizard/SetupWizardLaunch.php +++ b/src/Admin/SetupWizard/SetupWizardLaunch.php @@ -109,12 +109,12 @@ public function add_settings_launch( $settings ) { 'id' => 'setup-wizard', 'section' => 'general', 'subsection' => 'advanced', - 'label' => esc_html__( 'Setup Wizard', 'simple-pay' ), + 'label' => esc_html__( 'Setup Wizard', 'stripe' ), 'output' => function() { printf( '%s', esc_url( $this->get_wizard_url() ), - esc_html__( 'Launch Setup Wizard', 'simple-pay' ) + esc_html__( 'Launch Setup Wizard', 'stripe' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped }, 'priority' => 60, @@ -138,7 +138,7 @@ public function add_system_report_launch() { diff --git a/src/Admin/SetupWizard/SetupWizardMarketing.php b/src/Admin/SetupWizard/SetupWizardMarketing.php index 321a1eb1..2e682466 100644 --- a/src/Admin/SetupWizard/SetupWizardMarketing.php +++ b/src/Admin/SetupWizard/SetupWizardMarketing.php @@ -57,9 +57,10 @@ public function subscribe_email() { 'sslverify' => false, 'blocking' => false, 'body' => array( - 'action' => 'setup-wizard-subscription', - 'email' => base64_encode( $email ), // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode - 'license' => $this->get_license_name(), + 'action' => 'setup-wizard-subscription', + 'email' => base64_encode( $email ), // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode + 'license' => $this->get_license_name(), + 'site_url' => home_url(), ), ) ); diff --git a/src/AdminNotice/AbstractAdminNotice.php b/src/AdminNotice/AbstractAdminNotice.php index 4e3e7117..e3e7f286 100644 --- a/src/AdminNotice/AbstractAdminNotice.php +++ b/src/AdminNotice/AbstractAdminNotice.php @@ -12,33 +12,17 @@ namespace SimplePay\Core\AdminNotice; use Sandhills\Utils\Persistent_Dismissible; -use SimplePay\Core\License\License; +use SimplePay\Core\License\LicenseAwareInterface; +use SimplePay\Core\License\LicenseAwareTrait; /** * AbstractAdminNotice abstract. * - * @since x.x. + * @since 4.4.0 */ -abstract class AbstractAdminNotice implements AdminNoticeInterface { +abstract class AbstractAdminNotice implements AdminNoticeInterface, LicenseAwareInterface { - /** - * Plugin license. - * - * @since 4.4.1 - * @var \SimplePay\Core\License\License - */ - protected $license; - - /** - * AbstractAdminNotice. - * - * @since 4.4.1. - * - * @param \SimplePay\Core\License\License $license Plugin license. - */ - public function __construct( License $license ) { - $this->license = $license; - } + use LicenseAwareTrait; /** * {@inheritdoc} @@ -125,9 +109,11 @@ public function render() { /** * Returns the notice attributes. * + * @since 4.4.1 + * * @return array */ - private function get_attributes() { + protected function get_attributes() { $attributes = array(); // class. diff --git a/src/AdminNotice/FiveStarRatingNotice.php b/src/AdminNotice/FiveStarRatingNotice.php index bc30308c..ad7132ba 100644 --- a/src/AdminNotice/FiveStarRatingNotice.php +++ b/src/AdminNotice/FiveStarRatingNotice.php @@ -80,7 +80,8 @@ public function get_notice_data() { return array( 'feedback_url' => simpay_ga_url( 'https://wpsimplepay.com/plugin-feedback/', - 'admin-notice' + 'admin-notice', + 'Give Feedback' ), ); } diff --git a/src/AdminNotice/LicenseUpgradeTopOfPageNotice.php b/src/AdminNotice/LicenseUpgradeTopOfPageNotice.php new file mode 100644 index 00000000..9642540d --- /dev/null +++ b/src/AdminNotice/LicenseUpgradeTopOfPageNotice.php @@ -0,0 +1,155 @@ +post_type ) || + 'simple-pay' !== $current_screen->post_type + ) { + return false; + } + + /** @var \SimplePay\Core\License\License $license */ + $license = $this->license; + + // Grandfathered Plus, Professional or higher license, show nothing. + if ( + ( + true === $license->is_pro( 'plus', '=' ) && + true === $license->is_enhanced_subscriptions_enabled() + ) || + true === $license->is_pro( 'professional', '>=' ) + ) { + return false; + } + + return true; + } + + /** + * {@inheritdoc} + * + * Override the parent method class for backwards compatibility. + */ + protected function get_attributes() { + $attributes = parent::get_attributes(); + + $attributes['class'] = 'simpay-notice simpay-admin-notice-top-of-page'; + + return $attributes; + } + + /** + * {@inheritdoc} + */ + public function get_notice_data() { + $license_level = $this->license->get_level(); + $upgrade_url = simpay_pro_upgrade_url( + 'notice-bar', + sprintf( 'Upgrade from %s', ucfirst( $license_level ) ) + ); + + switch ( $license_level ) { + case 'lite': + /* translators: %1$s Opening anchor tag, do not translate. %2$s Closing anchor tag, do not translate. */ + $message = __( + 'You\'re using WP Simple Pay Lite. To unlock more features consider %1$supgrading to Pro%2$s.', + 'stripe' + ); + break; + default: + /* translators: %s license level. */ + $message = sprintf( + __( + 'You\'re using WP Simple Pay with a %s license.', + 'stripe' + ), + ucfirst( $license_level ) + ); + + /* translators: %1$s Opening anchor tag, do not translate. %2$s Closing anchor tag, do not translate. */ + $message .= ' ' . __( + 'To unlock more features consider %1$supgrading now%2$s.', + 'stripe' + ); + } + + $message = wp_kses( + sprintf( + $message, + '', + '' + ), + array( + 'a' => array( + 'href' => true, + 'target' => true, + 'rel' => true, + ), + ) + ); + + return array( + 'message' => $message, + ); + } + +} diff --git a/src/AdminPage/AboutUsPage.php b/src/AdminPage/AboutUsPage.php index f95b562e..fec920be 100644 --- a/src/AdminPage/AboutUsPage.php +++ b/src/AdminPage/AboutUsPage.php @@ -34,14 +34,14 @@ public function get_capability_requirement() { * {@inheritdoc} */ public function get_menu_title() { - return __( 'About Us', 'simple-pay' ); + return __( 'About Us', 'stripe' ); } /** * {@inheritdoc} */ public function get_page_title() { - return __( 'About Us', 'simple-pay' ); + return __( 'About Us', 'stripe' ); } /** @@ -86,8 +86,8 @@ public function render() { ); $tabs = array( - 'about-us' => __( 'About Us', 'simple-pay' ), - 'getting-started' => __( 'Getting Started', 'simple-pay' ), + 'about-us' => __( 'About Us', 'stripe' ), + 'getting-started' => __( 'Getting Started', 'stripe' ), ); // Assets. @@ -105,7 +105,7 @@ public function render() { case 'getting-started': $is_lite = $this->license->is_lite(); $upgrade_url = simpay_pro_upgrade_url( 'about-us' ); - $upgrade_text = esc_html__( 'Upgrade to WP Simple Pay Pro', 'simple-pay' ); + $upgrade_text = esc_html__( 'Upgrade to WP Simple Pay Pro', 'stripe' ); } $license = $this->license; @@ -129,8 +129,8 @@ private function get_am_plugins() { // AffiliateWP. 'affiliatewp/affiliate-wp.php' => array( 'icon' => $images_url . 'plugin-affwp.png', - 'name' => esc_html__( 'AffiliateWP', 'simple-pay' ), - 'desc' => esc_html__( 'The #1 affiliate management plugin for WordPress. Easily create an affiliate program for your eCommerce store or membership site within minutes and start growing your sales with the power of referral marketing.', 'simple-pay' ), + 'name' => esc_html__( 'AffiliateWP', 'stripe' ), + 'desc' => esc_html__( 'The #1 affiliate management plugin for WordPress. Easily create an affiliate program for your eCommerce store or membership site within minutes and start growing your sales with the power of referral marketing.', 'stripe' ), 'wporg' => '', 'url' => 'https://www.affiliatewp.com/?utm_source=wpsimplepay-plugin&utm_medium=link&utm_campaign=about-wpsimplepay', 'act' => 'go-to-url', @@ -139,8 +139,8 @@ private function get_am_plugins() { // OptinMonster. 'optinmonster/optin-monster-wp-api.php' => array( 'icon' => $images_url . 'plugin-om.png', - 'name' => esc_html__( 'OptinMonster', 'simple-pay' ), - 'desc' => esc_html__( 'Instantly get more subscribers, leads, and sales with the #1 conversion optimization toolkit. Create high converting popups, announcement bars, spin a wheel, and more with smart targeting and personalization.', 'simple-pay' ), + 'name' => esc_html__( 'OptinMonster', 'stripe' ), + 'desc' => esc_html__( 'Instantly get more subscribers, leads, and sales with the #1 conversion optimization toolkit. Create high converting popups, announcement bars, spin a wheel, and more with smart targeting and personalization.', 'stripe' ), 'wporg' => 'https://wordpress.org/plugins/optinmonster/', 'url' => 'https://downloads.wordpress.org/plugin/optinmonster.zip', ), @@ -148,15 +148,15 @@ private function get_am_plugins() { // MonsterInsights. 'google-analytics-for-wordpress/googleanalytics.php' => array( 'icon' => $images_url . 'plugin-mi.png', - 'name' => esc_html__( 'MonsterInsights', 'simple-pay' ), - 'desc' => esc_html__( 'The leading WordPress analytics plugin that shows you how people find and use your website, so you can make data driven decisions to grow your business. Properly set up Google Analytics without writing code.', 'simple-pay' ), + 'name' => esc_html__( 'MonsterInsights', 'stripe' ), + 'desc' => esc_html__( 'The leading WordPress analytics plugin that shows you how people find and use your website, so you can make data driven decisions to grow your business. Properly set up Google Analytics without writing code.', 'stripe' ), 'wporg' => 'https://wordpress.org/plugins/google-analytics-for-wordpress/', 'url' => 'https://downloads.wordpress.org/plugin/google-analytics-for-wordpress.zip', 'pro' => array( 'plug' => 'google-analytics-premium/googleanalytics-premium.php', 'icon' => $images_url . 'plugin-mi.png', - 'name' => esc_html__( 'MonsterInsights Pro', 'simple-pay' ), - 'desc' => esc_html__( 'The leading WordPress analytics plugin that shows you how people find and use your website, so you can make data driven decisions to grow your business. Properly set up Google Analytics without writing code.', 'simple-pay' ), + 'name' => esc_html__( 'MonsterInsights Pro', 'stripe' ), + 'desc' => esc_html__( 'The leading WordPress analytics plugin that shows you how people find and use your website, so you can make data driven decisions to grow your business. Properly set up Google Analytics without writing code.', 'stripe' ), 'url' => 'https://www.monsterinsights.com/?utm_source=wpsimplepay-plugin&utm_medium=link&utm_campaign=about-wpsimplepay', 'act' => 'go-to-url', ), @@ -165,15 +165,15 @@ private function get_am_plugins() { // WP Mail SMTP. 'wp-mail-smtp/wp_mail_smtp.php' => array( 'icon' => $images_url . 'plugin-smtp.png', - 'name' => esc_html__( 'WP Mail SMTP', 'simple-pay' ), - 'desc' => esc_html__( "Improve your WordPress email deliverability and make sure that your website emails reach user's inbox with the #1 SMTP plugin for WordPress. Over 2 million websites use it to fix WordPress email issues.", 'simple-pay' ), + 'name' => esc_html__( 'WP Mail SMTP', 'stripe' ), + 'desc' => esc_html__( "Improve your WordPress email deliverability and make sure that your website emails reach user's inbox with the #1 SMTP plugin for WordPress. Over 2 million websites use it to fix WordPress email issues.", 'stripe' ), 'wporg' => 'https://wordpress.org/plugins/wp-mail-smtp/', 'url' => 'https://downloads.wordpress.org/plugin/wp-mail-smtp.zip', 'pro' => array( 'plug' => 'wp-mail-smtp-pro/wp_mail_smtp.php', 'icon' => $images_url . 'plugin-smtp.png', - 'name' => esc_html__( 'WP Mail SMTP Pro', 'simple-pay' ), - 'desc' => esc_html__( "Improve your WordPress email deliverability and make sure that your website emails reach user's inbox with the #1 SMTP plugin for WordPress. Over 2 million websites use it to fix WordPress email issues.", 'simple-pay' ), + 'name' => esc_html__( 'WP Mail SMTP Pro', 'stripe' ), + 'desc' => esc_html__( "Improve your WordPress email deliverability and make sure that your website emails reach user's inbox with the #1 SMTP plugin for WordPress. Over 2 million websites use it to fix WordPress email issues.", 'stripe' ), 'url' => 'https://wpmailsmtp.com/?utm_source=wpsimplepay-plugin&utm_medium=link&utm_campaign=about-wpsimplepay', 'act' => 'go-to-url', ), @@ -182,15 +182,15 @@ private function get_am_plugins() { // All in One SEO Pack. 'all-in-one-seo-pack/all_in_one_seo_pack.php' => array( 'icon' => $images_url . 'plugin-aioseo.png', - 'name' => esc_html__( 'AIOSEO', 'simple-pay' ), - 'desc' => esc_html__( "The original WordPress SEO plugin and toolkit that improves your website's search rankings. Comes with all the SEO features like Local SEO, WooCommerce SEO, sitemaps, SEO optimizer, schema, and more.", 'simple-pay' ), + 'name' => esc_html__( 'AIOSEO', 'stripe' ), + 'desc' => esc_html__( "The original WordPress SEO plugin and toolkit that improves your website's search rankings. Comes with all the SEO features like Local SEO, WooCommerce SEO, sitemaps, SEO optimizer, schema, and more.", 'stripe' ), 'wporg' => 'https://wordpress.org/plugins/all-in-one-seo-pack/', 'url' => 'https://downloads.wordpress.org/plugin/all-in-one-seo-pack.zip', 'pro' => array( 'plug' => 'all-in-one-seo-pack-pro/all_in_one_seo_pack.php', 'icon' => $images_url . 'plugin-aioseo.png', - 'name' => esc_html__( 'AIOSEO Pro', 'simple-pay' ), - 'desc' => esc_html__( "The original WordPress SEO plugin and toolkit that improves your website's search rankings. Comes with all the SEO features like Local SEO, WooCommerce SEO, sitemaps, SEO optimizer, schema, and more.", 'simple-pay' ), + 'name' => esc_html__( 'AIOSEO Pro', 'stripe' ), + 'desc' => esc_html__( "The original WordPress SEO plugin and toolkit that improves your website's search rankings. Comes with all the SEO features like Local SEO, WooCommerce SEO, sitemaps, SEO optimizer, schema, and more.", 'stripe' ), 'url' => 'https://aioseo.com/?utm_source=wpsimplepay-plugin&utm_medium=link&utm_campaign=about-wpsimplepay', 'act' => 'go-to-url', ), @@ -199,15 +199,15 @@ private function get_am_plugins() { // SeedProd. 'coming-soon/coming-soon.php' => array( 'icon' => $images_url . 'plugin-seedprod.png', - 'name' => esc_html__( 'SeedProd', 'simple-pay' ), - 'desc' => esc_html__( 'The fastest drag & drop landing page builder for WordPress. Create custom landing pages without writing code, connect them with your CRM, collect subscribers, and grow your audience. Trusted by 1 million sites.', 'simple-pay' ), + 'name' => esc_html__( 'SeedProd', 'stripe' ), + 'desc' => esc_html__( 'The fastest drag & drop landing page builder for WordPress. Create custom landing pages without writing code, connect them with your CRM, collect subscribers, and grow your audience. Trusted by 1 million sites.', 'stripe' ), 'wporg' => 'https://wordpress.org/plugins/coming-soon/', 'url' => 'https://downloads.wordpress.org/plugin/coming-soon.zip', 'pro' => array( 'plug' => 'seedprod-coming-soon-pro-5/seedprod-coming-soon-pro-5.php', 'icon' => $images_url . 'plugin-seedprod.png', - 'name' => esc_html__( 'SeedProd Pro', 'simple-pay' ), - 'desc' => esc_html__( 'The fastest drag & drop landing page builder for WordPress. Create custom landing pages without writing code, connect them with your CRM, collect subscribers, and grow your audience. Trusted by 1 million sites.', 'simple-pay' ), + 'name' => esc_html__( 'SeedProd Pro', 'stripe' ), + 'desc' => esc_html__( 'The fastest drag & drop landing page builder for WordPress. Create custom landing pages without writing code, connect them with your CRM, collect subscribers, and grow your audience. Trusted by 1 million sites.', 'stripe' ), 'url' => 'https://www.seedprod.com/?utm_source=wpsimplepay-plugin&utm_medium=link&utm_campaign=about-wpsimplepay', 'act' => 'go-to-url', ), @@ -216,15 +216,15 @@ private function get_am_plugins() { // RafflePress. 'rafflepress/rafflepress.php' => array( 'icon' => $images_url . 'plugin-rp.png', - 'name' => esc_html__( 'RafflePress', 'simple-pay' ), - 'desc' => esc_html__( 'Turn your website visitors into brand ambassadors! Easily grow your email list, website traffic, and social media followers with the most powerful giveaways & contests plugin for WordPress.', 'simple-pay' ), + 'name' => esc_html__( 'RafflePress', 'stripe' ), + 'desc' => esc_html__( 'Turn your website visitors into brand ambassadors! Easily grow your email list, website traffic, and social media followers with the most powerful giveaways & contests plugin for WordPress.', 'stripe' ), 'wporg' => 'https://wordpress.org/plugins/rafflepress/', 'url' => 'https://downloads.wordpress.org/plugin/rafflepress.zip', 'pro' => array( 'plug' => 'rafflepress-pro/rafflepress-pro.php', 'icon' => $images_url . 'plugin-rp.png', - 'name' => esc_html__( 'RafflePress Pro', 'simple-pay' ), - 'desc' => esc_html__( 'Turn your website visitors into brand ambassadors! Easily grow your email list, website traffic, and social media followers with the most powerful giveaways & contests plugin for WordPress.', 'simple-pay' ), + 'name' => esc_html__( 'RafflePress Pro', 'stripe' ), + 'desc' => esc_html__( 'Turn your website visitors into brand ambassadors! Easily grow your email list, website traffic, and social media followers with the most powerful giveaways & contests plugin for WordPress.', 'stripe' ), 'url' => 'https://rafflepress.com/?utm_source=wpsimplepay-plugin&utm_medium=link&utm_campaign=about-wpsimplepay', 'act' => 'go-to-url', ), @@ -233,8 +233,8 @@ private function get_am_plugins() { // SearchWP. 'searchwp/searchwp.php' => array( 'icon' => $images_url . 'plugin-searchwp.png', - 'name' => esc_html__( 'SearchWP', 'simple-pay' ), - 'desc' => esc_html__( 'The most advanced WordPress search plugin. Customize your WordPress search algorithm, reorder search results, track search metrics, and everything you need to leverage search to grow your business.', 'simple-pay' ), + 'name' => esc_html__( 'SearchWP', 'stripe' ), + 'desc' => esc_html__( 'The most advanced WordPress search plugin. Customize your WordPress search algorithm, reorder search results, track search metrics, and everything you need to leverage search to grow your business.', 'stripe' ), 'wporg' => '', 'url' => 'https://www.searchwp.com/?utm_source=wpsimplepay-plugin&utm_medium=link&utm_campaign=about-wpsimplepay', 'act' => 'go-to-url', @@ -243,8 +243,8 @@ private function get_am_plugins() { // PushEngage. 'pushengage/main.php' => array( 'icon' => $images_url . 'plugin-pushengage.png', - 'name' => esc_html__( 'PushEngage', 'simple-pay' ), - 'desc' => esc_html__( 'Connect with your visitors after they leave your website with the leading web push notification software. Over 10,000+ businesses worldwide use PushEngage to send 9 billion notifications each month.', 'simple-pay' ), + 'name' => esc_html__( 'PushEngage', 'stripe' ), + 'desc' => esc_html__( 'Connect with your visitors after they leave your website with the leading web push notification software. Over 10,000+ businesses worldwide use PushEngage to send 9 billion notifications each month.', 'stripe' ), 'wporg' => 'https://wordpress.org/plugins/pushengage/', 'url' => 'https://downloads.wordpress.org/plugin/pushengage.zip', ), @@ -252,15 +252,15 @@ private function get_am_plugins() { // Smash Balloon (Facebook). 'custom-facebook-feed/custom-facebook-feed.php' => array( 'icon' => $images_url . 'plugin-sb-fb.png', - 'name' => esc_html__( 'Smash Balloon Facebook Feeds', 'simple-pay' ), - 'desc' => esc_html__( 'Easily display Facebook content on your WordPress site without writing any code. Comes with multiple templates, ability to embed albums, group content, reviews, live videos, comments, and reactions.', 'simple-pay' ), + 'name' => esc_html__( 'Smash Balloon Facebook Feeds', 'stripe' ), + 'desc' => esc_html__( 'Easily display Facebook content on your WordPress site without writing any code. Comes with multiple templates, ability to embed albums, group content, reviews, live videos, comments, and reactions.', 'stripe' ), 'wporg' => 'https://wordpress.org/plugins/custom-facebook-feed/', 'url' => 'https://downloads.wordpress.org/plugin/custom-facebook-feed.zip', 'pro' => array( 'plug' => 'custom-facebook-feed-pro/custom-facebook-feed.php', 'icon' => $images_url . 'plugin-sb-fb.png', - 'name' => esc_html__( 'Smash Balloon Facebook Feeds Pro', 'simple-pay' ), - 'desc' => esc_html__( 'Easily display Facebook content on your WordPress site without writing any code. Comes with multiple templates, ability to embed albums, group content, reviews, live videos, comments, and reactions.', 'simple-pay' ), + 'name' => esc_html__( 'Smash Balloon Facebook Feeds Pro', 'stripe' ), + 'desc' => esc_html__( 'Easily display Facebook content on your WordPress site without writing any code. Comes with multiple templates, ability to embed albums, group content, reviews, live videos, comments, and reactions.', 'stripe' ), 'url' => 'https://smashballoon.com/custom-facebook-feed/?utm_source=wpsimplepay-plugin&utm_medium=link&utm_campaign=about-wpsimplepay', 'act' => 'go-to-url', ), @@ -269,15 +269,15 @@ private function get_am_plugins() { // Smash Balloon (YouTube). 'feeds-for-youtube/youtube-feed.php' => array( 'icon' => $images_url . 'plugin-sb-youtube.png', - 'name' => esc_html__( 'Smash Balloon YouTube Feeds', 'simple-pay' ), - 'desc' => esc_html__( 'Easily display YouTube videos on your WordPress site without writing any code. Comes with multiple layouts, ability to embed live streams, video filtering, ability to combine multiple channel videos, and more.', 'simple-pay' ), + 'name' => esc_html__( 'Smash Balloon YouTube Feeds', 'stripe' ), + 'desc' => esc_html__( 'Easily display YouTube videos on your WordPress site without writing any code. Comes with multiple layouts, ability to embed live streams, video filtering, ability to combine multiple channel videos, and more.', 'stripe' ), 'wporg' => 'https://wordpress.org/plugins/feeds-for-youtube/', 'url' => 'https://downloads.wordpress.org/plugin/feeds-for-youtube.zip', 'pro' => array( 'plug' => 'youtube-feed-pro/youtube-feed.php', 'icon' => $images_url . 'plugin-sb-youtube.png', - 'name' => esc_html__( 'Smash Balloon YouTube Feeds Pro', 'simple-pay' ), - 'desc' => esc_html__( 'Easily display YouTube videos on your WordPress site without writing any code. Comes with multiple layouts, ability to embed live streams, video filtering, ability to combine multiple channel videos, and more.', 'simple-pay' ), + 'name' => esc_html__( 'Smash Balloon YouTube Feeds Pro', 'stripe' ), + 'desc' => esc_html__( 'Easily display YouTube videos on your WordPress site without writing any code. Comes with multiple layouts, ability to embed live streams, video filtering, ability to combine multiple channel videos, and more.', 'stripe' ), 'url' => 'https://smashballoon.com/youtube-feed/?utm_source=wpsimplepay-plugin&utm_medium=link&utm_campaign=about-wpsimplepay', 'act' => 'go-to-url', ), @@ -286,8 +286,8 @@ private function get_am_plugins() { // Trust Pulse. 'trustpulse-api/trustpulse.php' => array( 'icon' => $images_url . 'plugin-trustpulse.png', - 'name' => esc_html__( 'TrustPulse', 'simple-pay' ), - 'desc' => esc_html__( 'Boost your sales and conversions by up to 15% with real-time social proof notifications. TrustPulse helps you show live user activity and purchases to help convince other users to purchase.', 'simple-pay' ), + 'name' => esc_html__( 'TrustPulse', 'stripe' ), + 'desc' => esc_html__( 'Boost your sales and conversions by up to 15% with real-time social proof notifications. TrustPulse helps you show live user activity and purchases to help convince other users to purchase.', 'stripe' ), 'wporg' => 'https://wordpress.org/plugins/trustpulse-api/', 'url' => 'https://downloads.wordpress.org/plugin/trustpulse-api.zip', ), @@ -295,8 +295,8 @@ private function get_am_plugins() { // Easy Digital Downloads 'easy-digital-downloads/easy-digital-downloads.php' => array( 'icon' => $images_url . 'plugin-edd.png', - 'name' => esc_html__( 'Easy Digital Downloads', 'simple-pay' ), - 'desc' => esc_html__( 'The best WordPress eCommerce plugin for selling digital downloads. Start selling eBooks, software, music, digital art, and more within minutes. Accept payments, manage subscriptions, advanced access control, and more.', 'simple-pay' ), + 'name' => esc_html__( 'Easy Digital Downloads', 'stripe' ), + 'desc' => esc_html__( 'The best WordPress eCommerce plugin for selling digital downloads. Start selling eBooks, software, music, digital art, and more within minutes. Accept payments, manage subscriptions, advanced access control, and more.', 'stripe' ), 'wporg' => 'https://wordpress.org/plugins/easy-digital-downloads/', 'url' => 'https://downloads.wordpress.org/plugin/easy-digital-downloads.zip', ), @@ -304,15 +304,15 @@ private function get_am_plugins() { // Sugar Calendar. 'sugar-calendar-lite/sugar-calendar-lite.php' => array( 'icon' => $images_url . 'plugin-sugarcalendar.png', - 'name' => esc_html__( 'Sugar Calendar', 'simple-pay' ), - 'desc' => esc_html__( 'A simple & powerful event calendar plugin for WordPress that comes with all the event management features including payments, scheduling, timezones, ticketing, recurring events, and more.', 'simple-pay' ), + 'name' => esc_html__( 'Sugar Calendar', 'stripe' ), + 'desc' => esc_html__( 'A simple & powerful event calendar plugin for WordPress that comes with all the event management features including payments, scheduling, timezones, ticketing, recurring events, and more.', 'stripe' ), 'wporg' => 'https://wordpress.org/plugins/sugar-calendar-lite/', 'url' => 'https://downloads.wordpress.org/plugin/sugar-calendar-lite.zip', 'pro' => array( 'plug' => 'sugar-calendar/sugar-calendar.php', 'icon' => $images_url . 'plugin-sugarcalendar.png', - 'name' => esc_html__( 'Sugar Calendar Pro', 'simple-pay' ), - 'desc' => esc_html__( 'A simple & powerful event calendar plugin for WordPress that comes with all the event management features including payments, scheduling, timezones, ticketing, recurring events, and more.', 'simple-pay' ), + 'name' => esc_html__( 'Sugar Calendar Pro', 'stripe' ), + 'desc' => esc_html__( 'A simple & powerful event calendar plugin for WordPress that comes with all the event management features including payments, scheduling, timezones, ticketing, recurring events, and more.', 'stripe' ), 'url' => 'https://sugarcalendar.com/?utm_source=wpsimplepay-plugin&utm_medium=link&utm_campaign=about-wpsimplepay', 'act' => 'go-to-url', ), @@ -321,15 +321,15 @@ private function get_am_plugins() { // WPForms 'wpforms-lite/wpforms.php' => array( 'icon' => $images_url . 'plugin-wpforms.png', - 'name' => esc_html__( 'WPForms', 'simple-pay' ), - 'desc' => esc_html__( 'The best drag & drop WordPress form builder. Easily create beautiful contact forms, surveys, payment forms, and more with our 100+ form templates. Trusted by over 4 million websites as the best forms plugin.', 'simple-pay' ), + 'name' => esc_html__( 'WPForms', 'stripe' ), + 'desc' => esc_html__( 'The best drag & drop WordPress form builder. Easily create beautiful contact forms, surveys, payment forms, and more with our 100+ form templates. Trusted by over 4 million websites as the best forms plugin.', 'stripe' ), 'wporg' => 'https://wordpress.org/plugins/wpforms-lite/', 'url' => 'https://downloads.wordpress.org/plugin/wpforms-lite.zip', 'pro' => array( 'plug' => 'wpforms/wpforms.php', 'icon' => $images_url . 'plugin-wpforms.png', - 'name' => esc_html__( 'WPForms Pro', 'simple-pay' ), - 'desc' => esc_html__( 'The best drag & drop WordPress form builder. Easily create beautiful contact forms, surveys, payment forms, and more with our 100+ form templates. Trusted by over 4 million websites as the best forms plugin.', 'simple-pay' ), + 'name' => esc_html__( 'WPForms Pro', 'stripe' ), + 'desc' => esc_html__( 'The best drag & drop WordPress form builder. Easily create beautiful contact forms, surveys, payment forms, and more with our 100+ form templates. Trusted by over 4 million websites as the best forms plugin.', 'stripe' ), 'url' => 'https://wpforms.com/?utm_source=wpsimplepay-plugin&utm_medium=link&utm_campaign=about-wpsimplepay', 'act' => 'go-to-url', ), @@ -386,20 +386,20 @@ private function get_plugin_data( $plugin, $details, $all_plugins ) { if ( is_plugin_active( $plugin ) ) { // Status text/status. $plugin_data['status_class'] = 'status-active'; - $plugin_data['status_text'] = esc_html__( 'Active', 'simple-pay' ); + $plugin_data['status_text'] = esc_html__( 'Active', 'stripe' ); // Button text/status. $plugin_data['action_class'] = $plugin_data['status_class'] . ' button button-secondary disabled'; - $plugin_data['action_text'] = esc_html__( 'Activated', 'simple-pay' ); + $plugin_data['action_text'] = esc_html__( 'Activated', 'stripe' ); $plugin_data['plugin_src'] = esc_attr( $plugin ); } else { // Status text/status. $plugin_data['status_class'] = 'status-installed'; - $plugin_data['status_text'] = esc_html__( 'Inactive', 'simple-pay' ); + $plugin_data['status_text'] = esc_html__( 'Inactive', 'stripe' ); // Button text/status. $plugin_data['action_class'] = $plugin_data['status_class'] . ' button button-secondary'; - $plugin_data['action_text'] = esc_html__( 'Activate', 'simple-pay' ); + $plugin_data['action_text'] = esc_html__( 'Activate', 'stripe' ); $plugin_data['plugin_src'] = esc_attr( $plugin ); } } else { @@ -411,11 +411,11 @@ private function get_plugin_data( $plugin, $details, $all_plugins ) { $plugin_data['status_class'] = 'status-go-to-url'; } - $plugin_data['status_text'] = esc_html__( 'Not Installed', 'simple-pay' ); + $plugin_data['status_text'] = esc_html__( 'Not Installed', 'stripe' ); // Button text/status. $plugin_data['action_class'] = $plugin_data['status_class'] . ' button button-primary'; - $plugin_data['action_text'] = esc_html__( 'Install Plugin', 'simple-pay' ); + $plugin_data['action_text'] = esc_html__( 'Install Plugin', 'stripe' ); if ( isset( $details['url'] ) ) { /** @var string $url */ $url = $details['url']; diff --git a/src/AdminPage/SetupWizardPage.php b/src/AdminPage/SetupWizardPage.php index daf68f51..75a94010 100644 --- a/src/AdminPage/SetupWizardPage.php +++ b/src/AdminPage/SetupWizardPage.php @@ -35,14 +35,14 @@ public function get_capability_requirement() { * {@inheritdoc} */ public function get_menu_title() { - return __( 'Setup Wizard', 'simple-pay' ); + return __( 'Setup Wizard', 'stripe' ); } /** * {@inheritdoc} */ public function get_page_title() { - return __( 'Setup Wizard', 'simple-pay' ); + return __( 'Setup Wizard', 'stripe' ); } /** @@ -102,7 +102,8 @@ public function render() { ), 'accountLicensesUrl' => simpay_ga_url( 'https://wpsimplepay.com/my-account/licenses/', - 'setup-wizard' + 'setup-wizard', + 'WP Simple Pay account' ), 'newFormUrl' => add_query_arg( array( @@ -137,19 +138,19 @@ public function render() { ) ), 'donationsDocsUrl' => simpay_docs_link( - '', + 'Accept Donations', 'accepting-donations-form-setup', 'setup-wizard', true ), 'invoicesDocsUrl' => simpay_docs_link( - '', + 'Reconcile Invoices', 'invoice-payment-form-set-up', 'setup-wizard', true ), 'analyticsDocsUrl' => simpay_docs_link( - '', + 'usage analytics', 'advanced-settings', 'setup-wizard', true diff --git a/src/Block/PaymentFormBlock.php b/src/Block/PaymentFormBlock.php index 4004df55..9a858010 100644 --- a/src/Block/PaymentFormBlock.php +++ b/src/Block/PaymentFormBlock.php @@ -44,20 +44,20 @@ public function register() { 'title' => _x( 'WP Simple Pay', 'block title', - 'simple-pay' + 'stripe' ), 'description' => _x( 'Display a WP Simple Pay payment form.', 'block description', - 'simple-pay' + 'stripe' ), 'category' => 'widgets', 'keywords' => array( - _x( 'form', 'block keyword', 'simple-pay' ), - _x( 'payment', 'block keyword', 'simple-pay' ), - _x( 'stripe', 'block keyword', 'simple-pay' ), - _x( 'simple pay', 'block keyword', 'simple-pay' ), - _x( 'wp simple pay', 'block keyword', 'simple-pay' ), + _x( 'form', 'block keyword', 'stripe' ), + _x( 'payment', 'block keyword', 'stripe' ), + _x( 'stripe', 'block keyword', 'stripe' ), + _x( 'simple pay', 'block keyword', 'stripe' ), + _x( 'wp simple pay', 'block keyword', 'stripe' ), ), 'attributes' => array( 'formId' => array( diff --git a/src/FormPreview/FormPreviewOutput.php b/src/FormPreview/FormPreviewOutput.php index db230f0f..f470ed11 100644 --- a/src/FormPreview/FormPreviewOutput.php +++ b/src/FormPreview/FormPreviewOutput.php @@ -45,7 +45,7 @@ public function maybe_output_preview() { wp_die( esc_html__( 'You do not have permission to preview this payment form.', - 'simple-pay' + 'stripe' ) ); } @@ -66,117 +66,9 @@ public function maybe_output_preview() { wp_head(); ?> - - - - <?php - echo esc_html( - sprintf( - __( 'Previewing Payment Form #%d - WP Simple Pay', 'simple-pay' ), - $id - ) - ); - ?> - - - -
-

- -

- - -

- - - -

- - -

- -

- -

- - - -

- -

- - - - - - -

-
- - - - - - - - esc_html__( 'WP Simple Pay', 'siple-pay' ), + 'label' => esc_html__( 'WP Simple Pay', 'stripe' ), 'type' => 'select', 'options' => $this->get_payment_form_options(), 'description' => esc_html__( 'WP Simple Pay form ID.', - 'simple-pay' + 'stripe' ), ); } @@ -394,7 +394,7 @@ public function get_payment_form_options() { ); $options = array( - '0' => __( 'Select a form…', 'simple-pay' ), + '0' => __( 'Select a form…', 'stripe' ), ); foreach ( $forms as $form_id ) { diff --git a/src/Integration/Elementor/PaymentFormControl.php b/src/Integration/Elementor/PaymentFormControl.php index 8e1f2191..8812d970 100644 --- a/src/Integration/Elementor/PaymentFormControl.php +++ b/src/Integration/Elementor/PaymentFormControl.php @@ -32,7 +32,7 @@ public function add_control( $widget ) { // @phpstan-ignore-line $widget->start_controls_section( // @phpstan-ignore-line sprintf( 'simpay-%s', $widget->get_name() ), // @phpstan-ignore-line array( - 'label' => esc_html__( 'WP Simple Pay', 'simple-pay' ), + 'label' => esc_html__( 'WP Simple Pay', 'stripe' ), 'tab' => Elementor\Controls_Manager::TAB_CONTENT, // @phpstan-ignore-line ) ); @@ -40,7 +40,7 @@ public function add_control( $widget ) { // @phpstan-ignore-line $widget->add_control( // @phpstan-ignore-line 'simpay_payment_form', array( - 'label' => __( 'Payment Form', 'simple-pay' ), + 'label' => __( 'Payment Form', 'stripe' ), 'type' => Elementor\Controls_Manager::SELECT, // @phpstan-ignore-line 'separator' => 'after', 'label_block' => true, @@ -118,7 +118,7 @@ private function get_payment_form_options() { ); $options = array( - '0' => __( 'Select a form…', 'simple-pay' ), + '0' => __( 'Select a form…', 'stripe' ), ); foreach ( $forms as $form_id ) { diff --git a/src/License/AbstractLicense.php b/src/License/AbstractLicense.php index 8d70b1dd..82c777f4 100644 --- a/src/License/AbstractLicense.php +++ b/src/License/AbstractLicense.php @@ -11,6 +11,8 @@ namespace SimplePay\Core\License; +use stdClass; + /** * AbstractLicense abstract. * @@ -43,6 +45,11 @@ abstract public function get_price_id(); */ abstract public function get_expiration(); + /** + * {@inheritdoc} + */ + abstract public function get_date_created(); + /** * {@inheritdoc} */ @@ -67,6 +74,56 @@ public function is_valid() { return 'valid' === $this->get_status(); } + /** + * Determines if the current license has access to subscription functionality. + * + * @since 4.4.4 + * + * @return bool + */ + public function is_subscriptions_enabled() { + // Invalid, so no subscriptions. + if ( false === $this->is_valid() ) { + return false; + } + + // Lite, so no subscriptions. + if ( true === $this->is_lite() ) { + return false; + } + + return $this->is_pro( 'plus', '>=' ); + } + + /** + * Determines if the current license has access to enhanced subscription functionality. + * + * @since 4.4.4 + * + * @return bool + */ + public function is_enhanced_subscriptions_enabled() { + // Not valid, so no subscriptions. + if ( false === $this->is_subscriptions_enabled() ) { + return false; + } + + // Grandfather Plus or higher to all subscription features when purchased + // before March 30, 2022. + /** @var string $created */ + $created = $this->get_date_created(); + + if ( + $this->is_pro( 'plus', '=' ) && + strtotime( $created ) < strtotime( '2022-02-30 23:23:59' ) + ) { + return true; + } + + // Available to Professional or higher. + return $this->is_pro( 'professional', '>=' ); + } + /** * {@inheritdoc} */ @@ -139,4 +196,22 @@ public function is_pro( $tier = 'personal', $comparison = '>=' ) { return false; } } + + /** + * Returns the license data from the cache or remote response. + * + * @since 4.4.0 + * + * @return object + */ + protected function get_license_data() { + $license_data = get_option( 'simpay_license_data', '' ); + + if ( empty( $license_data ) ) { + return new stdClass; + } + + /** @var object $license_data */ + return $license_data; + } } diff --git a/src/License/License.php b/src/License/License.php index 4a9416ce..d230834d 100644 --- a/src/License/License.php +++ b/src/License/License.php @@ -11,8 +11,6 @@ namespace SimplePay\Core\License; -use stdClass; - /** * License class. * @@ -76,11 +74,19 @@ class License extends AbstractLicense { */ private $expiration; + /** + * License creation date. + * + * @since 4.4.4 + * @var string|null + */ + private $date_created; + /** * License status. * * @since 4.4.0 - * @var 'empty'|'valid'|'valid-forever'|'expired'|'disabled'|'revoked'|'invalid'|'inactive'|'deactivated'|'failed'|'site_inactive'|'item_name_mismatch'|'invalid_item_id'|'no_activations_left'|null + * @var 'empty'|'valid'|'expired'|'disabled'|'revoked'|'invalid'|'inactive'|'deactivated'|'failed'|'site_inactive'|'item_name_mismatch'|'invalid_item_id'|'no_activations_left'|null */ private $status; @@ -173,8 +179,8 @@ public function get_expiration() { $data = $this->get_license_data(); - if ( isset( $data->expiration ) ) { - $this->expiration = $data->expiration; + if ( isset( $data->expires ) ) { + $this->expiration = $data->expires; } return $this->expiration; @@ -183,36 +189,35 @@ public function get_expiration() { /** * {@inheritdoc} */ - public function get_status() { - if ( $this->status ) { - return $this->status; + public function get_date_created() { + if ( $this->date_created ) { + return $this->date_created; } $data = $this->get_license_data(); - if ( isset( $data->license ) ) { - $this->status = $data->license; + if ( isset( $data->date_created ) ) { + $this->date_created = $data->date_created; } - return $this->status; + return $this->date_created; } /** - * Returns the license data from the cache or remote response. - * - * @since 4.4.0 - * - * @return object + * {@inheritdoc} */ - private function get_license_data() { - $license_data = get_option( 'simpay_license_data', '' ); + public function get_status() { + if ( $this->status ) { + return $this->status; + } + + $data = $this->get_license_data(); - if ( empty( $license_data ) ) { - return new stdClass; + if ( isset( $data->license ) ) { + $this->status = $data->license; } - /** @var object $license_data */ - return $license_data; + return $this->status; } } diff --git a/src/License/LicenseAwareTrait.php b/src/License/LicenseAwareTrait.php index febffad3..273aae9e 100644 --- a/src/License/LicenseAwareTrait.php +++ b/src/License/LicenseAwareTrait.php @@ -22,9 +22,10 @@ trait LicenseAwareTrait { * License. * * @since 4.4.1 + * @since 4.4.4 Set visibility to protected. * @var \SimplePay\Core\License\LicenseInterface */ - private $license; + protected $license; /** * {@inheritdoc} diff --git a/src/License/LicenseInterface.php b/src/License/LicenseInterface.php index bdd97e72..82808769 100644 --- a/src/License/LicenseInterface.php +++ b/src/License/LicenseInterface.php @@ -59,46 +59,47 @@ public function get_price_id(); * * @since 4.4.0 * - * @return 'unlimited'|string + * @return 'unlimited'|string|null */ public function get_expiration(); /** - * Returns the license's status. + * Returns the license's creation date. * - * @since 4.4.0 + * @since 4.4.4 * - * @return 'empty'|'valid'|'valid-forever'|'expired'|'disabled'|'revoked'|'invalid'|'inactive'|'deactivated'|'failed'|'site_inactive'|'item_name_mismatch'|'invalid_item_id'|'no_activations_left'|null + * @return null|string */ - public function get_status(); + public function get_date_created(); /** - * Determines if a license is valid. + * Returns the license's status. * * @since 4.4.0 * - * @return bool + * @return 'empty'|'valid'|'expired'|'disabled'|'revoked'|'invalid'|'inactive'|'deactivated'|'failed'|'site_inactive'|'item_name_mismatch'|'invalid_item_id'|'no_activations_left'|null */ - public function is_valid(); + public function get_status(); /** - * Returns the license level name. + * Returns the license key. * * @since 4.4.3 - * @return string + * @return null|string */ - public function get_level(); + public function get_key(); /** - * Returns the license key. + * Determines if the current license is valid. * - * @since 4.4.3 - * @return null|string + * @since 4.4.0 + * + * @return bool */ - public function get_key(); + public function is_valid(); /** - * Determines if a license (install) is Lite. + * Determines if the current license is Lite. * * @since 4.4.0 * @@ -107,14 +108,23 @@ public function get_key(); public function is_lite(); /** - * Determines if a license is Pro. + * Determines if the current license is a specific type of Pro license. * * @since 4.4.0 * - * @param 'personal'|'plus'|'professional' $tier License tier. Default personal. - * @param '>'|'>=' $comparison Tier comparision. Default greater or equal to. + * @param string $tier License tier/level. + * @param string $comparison PHP comparison string. * @return bool */ public function is_pro( $tier = 'personal', $comparison = '>=' ); + /** + * Returns the current license level name. + * + * @since 4.4.0 + * + * @return string 'lite'|'personal'|'plus'|'professional'|'ultimate'|'elite' + */ + public function get_level(); + } diff --git a/src/StripeConnect/ApplicationFee.php b/src/StripeConnect/ApplicationFee.php index f0e50c6d..477b6c26 100644 --- a/src/StripeConnect/ApplicationFee.php +++ b/src/StripeConnect/ApplicationFee.php @@ -53,13 +53,13 @@ public function maybe_show_application_fee( $message ) { return $message; } - $upgrade_url = simpay_pro_upgrade_url( 'global-settings' ); + $upgrade_url = simpay_pro_upgrade_url( 'stripe-account-settings' ); $message .= '

' . sprintf( /* translators: %1$s Opening strong tag, do not translate. %2$s Closing strong tag, do not translate. %3$s Opening anchor tag, do not translate. %4$s Closing anchor tag, do not translate. */ __( '%1$sPay as you go pricing%2$s: 2%% fee per-transaction + Stripe fees. %3$sUpgrade to Pro%4$s for no added fees and priority support.', - 'simple-pay' + 'stripe' ), '', '', diff --git a/src/StripeConnect/ConnectionSubscriber.php b/src/StripeConnect/ConnectionSubscriber.php index becf0ff6..55c51c33 100644 --- a/src/StripeConnect/ConnectionSubscriber.php +++ b/src/StripeConnect/ConnectionSubscriber.php @@ -11,6 +11,7 @@ namespace SimplePay\Core\StripeConnect; +use Exception; use SimplePay\Core\API; use SimplePay\Core\EventManagement\SubscriberInterface; use SimplePay\Core\License\LicenseAwareInterface; @@ -110,7 +111,7 @@ public function connect() { /* translators: %1$s Opening anchor tag, do not translate. %2$s Closing anchor tag, do not translate. */ __( 'There was an error getting your Stripe credentials. Please %1$stry again%2$s. If you continue to have this problem, please contact support.', - 'simple-pay' + 'stripe' ), '', '' @@ -185,6 +186,11 @@ public function disconnect() { update_option( 'simpay_stripe_connect_account_id', false ); update_option( 'simpay_stripe_connect_type', false ); + // Clear cached objects. + global $wpdb; + $wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE '_transient_simpay\_stripe\_%'" ); + $wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE '_transient_timeout_simpay\_stripe\_%'" ); + $redirect = Settings\get_url( array( 'section' => 'stripe', @@ -205,7 +211,7 @@ public function disconnect() { */ public function get_account_information_json() { $unknown_error = array( - 'message' => esc_html__( 'Unable to retrieve account information.', 'simple-pay' ), + 'message' => esc_html__( 'Unable to retrieve account information.', 'stripe' ), ); if ( ! current_user_can( 'manage_options' ) ) { @@ -217,8 +223,8 @@ public function get_account_information_json() { } $mode = simpay_is_test_mode() - ? __( 'test', 'simple-pay' ) - : __( 'live', 'simple-pay' ); + ? __( 'test', 'stripe' ) + : __( 'live', 'stripe' ); $connect = sprintf( '
%s
', @@ -228,11 +234,11 @@ public function get_account_information_json() { $access_string = class_exists( 'SimplePay\Pro\SimplePayPro', false ) ? __( 'You cannot manage this account in Stripe to configure features such as Subscriptions, Webhooks, or Coupons.', - 'simple-pay' + 'stripe' ) : __( 'You cannot manage this account in Stripe.', - 'simple-pay' + 'stripe' ); $dev_account_error = array( @@ -241,7 +247,7 @@ public function get_account_information_json() { /* translators: %1$s Opening strong tag, do not translate. %2$s Closing anchor tag, do not translate. */ __( 'You are currently connected to a %1$stemporary%2$s Stripe account, which can only be used for testing purposes.', - 'simple-pay' + 'stripe' ), '', '' @@ -263,7 +269,7 @@ public function get_account_information_json() { 'simpay_sk_mismatch', __( 'Invalid Secret Key. Secret Key should begin with sk_.', - 'simple-pay' + 'stripe' ) ); } @@ -274,7 +280,7 @@ public function get_account_information_json() { 'simpay_pk_mismatch', __( 'Invalid Publishable Key. Publishable Key should begin with pk_.', - 'simple-pay' + 'stripe' ) ); } @@ -286,7 +292,7 @@ public function get_account_information_json() { 'simpay_pk_mode_mismatch', __( 'Invalid Publishable Key for current mode. Publishable Key should begin with pk_test_.', - 'simple-pay' + 'stripe' ) ); } @@ -297,7 +303,7 @@ public function get_account_information_json() { 'simpay_sk_mode_mismatch', __( 'Invalid Secret Key for current mode. Secret Key should begin with sk_test_.', - 'simple-pay' + 'stripe' ) ); } @@ -308,7 +314,7 @@ public function get_account_information_json() { 'simpay_pk_mode_mismatch', __( 'Invalid Publishable Key for current mode. Publishable Key should begin with pk_live_.', - 'simple-pay' + 'stripe' ) ); } @@ -319,7 +325,7 @@ public function get_account_information_json() { 'simpay_sk_mode_mismatch', __( 'Invalid Secret Key for current mode. Secret Key should begin with sk_live_.', - 'simple-pay' + 'stripe' ) ); } @@ -333,7 +339,7 @@ public function get_account_information_json() { $key_errors->get_error_message(), __( 'If you have manually modified these values after connecting your account, please reconnect below or update your API keys manually.', - 'simple-pay' + 'stripe' ), $connect ) @@ -383,7 +389,7 @@ public function get_account_information_json() { $message = ( $display_name . $email . - esc_html__( 'Administrator (Owner)', 'simple-pay' ) + esc_html__( 'Administrator (Owner)', 'stripe' ) ); /** @@ -409,7 +415,7 @@ public function get_account_information_json() { array( 'message' => esc_html__( 'Unable to validate your Stripe Account with the API keys provided. If you have manually modified these values after connecting your account, please reconnect below or update your API keys manually.', - 'simple-pay' + 'stripe' ) . $connect, ) ); @@ -435,7 +441,7 @@ public function get_account_information_json() { 'message' => ( sprintf( /* translators: %1$s Stripe payment mode.*/ - __( 'Your manually managed %1$s mode API keys are valid.', 'simple-pay' ), + __( 'Your manually managed %1$s mode API keys are valid.', 'stripe' ), '' . $mode . '' ) ), @@ -448,7 +454,7 @@ public function get_account_information_json() { '' . sprintf( /* translators: %1$s Stripe payment mode.*/ - __( 'Your manually managed %1$s mode API keys are invalid.', 'simple-pay' ), + __( 'Your manually managed %1$s mode API keys are invalid.', 'stripe' ), '' . $mode . '' ) . '' @@ -488,6 +494,22 @@ private function save_account_information( $data ) { $type = $this->license->is_lite() ? 'lite' : 'pro'; update_option( 'simpay_stripe_connect_type', $type ); + + // Try to set the account country. + try { + $account = Stripe_API::request( + 'Account', + 'retrieve', + $data['stripe_user_id'], + array( + 'api_key' => simpay_get_secret_key(), + ) + ); + + simpay_update_setting( 'account_country', $account->country ); + } catch ( Exception $e ) { + // Do nothing. + } } } diff --git a/src/Webhook/NoneReceivedNotice.php b/src/Webhook/NoneReceivedNotice.php index 9aa1a3a9..bd3579a5 100644 --- a/src/Webhook/NoneReceivedNotice.php +++ b/src/Webhook/NoneReceivedNotice.php @@ -146,8 +146,8 @@ public function maybe_show_admin_bar_bubble() { // We are already showing the parent item in test mode. if ( simpay_is_test_mode() ) { $label = ( - __( 'WP Simple Pay', 'simple-pay' ) . - ' ' . __( 'Test Mode', 'simple-pay' ) . '' . + __( 'WP Simple Pay', 'stripe' ) . + ' ' . __( 'Test Mode', 'stripe' ) . '' . $this->get_bubble_markup( '1' ) ); @@ -158,7 +158,7 @@ public function maybe_show_admin_bar_bubble() { ) ); } else { $label = ( - __( 'WP Simple Pay', 'simple-pay' ) . + __( 'WP Simple Pay', 'stripe' ) . $this->get_bubble_markup( '1' ) ); @@ -181,7 +181,7 @@ public function maybe_show_admin_bar_bubble() { 'id' => 'simpay-webhook-none-received', 'title' => esc_html__( 'Notifications', - 'simple-pay' + 'stripe' ) . $this->get_bubble_markup( '' ), 'href' => $webhooks_url, ) @@ -238,7 +238,7 @@ public function maybe_show_settings_section_bubble( Settings\Section_Collection 'label' => esc_html_x( 'Stripe', 'settings section label', - 'simple-pay' + 'stripe' ) . $this->get_bubble_markup( '' ), 'priority' => 20, ) @@ -271,7 +271,7 @@ public function maybe_show_settings_subsection_bubble( 'label' => esc_html_x( 'Webhooks', 'settings subsection label', - 'simple-pay' + 'stripe' ) . $this->get_bubble_markup( '1' ), 'priority' => 20, ) @@ -292,9 +292,9 @@ public function maybe_show_setting_notice() { } $docs_url = simpay_docs_link( - '', + 'Learn more', 'webhooks', - 'global-settings', + 'webhook-settings', true ); @@ -430,7 +430,7 @@ public function dismiss_expected_event() { * @return bool */ public function received_expected_event() { - $timeframe = MINUTE_IN_SECONDS * 5; + $timeframe = MINUTE_IN_SECONDS * 15; $expected = $this->get_most_recent_expected_event(); // No event was expected, then we can't assume anything went wrong. diff --git a/vendor/autoload.php b/vendor/autoload.php index 7443a803..2c987e60 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -4,4 +4,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit5332682a7f8332fbe70b01e3c0fe205e::getLoader(); +return ComposerAutoloaderInitd2a470f94191e5ae1cb8689135c436d5::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 6627322d..d65c77ec 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit5332682a7f8332fbe70b01e3c0fe205e +class ComposerAutoloaderInitd2a470f94191e5ae1cb8689135c436d5 { private static $loader; @@ -22,15 +22,15 @@ public static function getLoader() return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInit5332682a7f8332fbe70b01e3c0fe205e', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInitd2a470f94191e5ae1cb8689135c436d5', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); - spl_autoload_unregister(array('ComposerAutoloaderInit5332682a7f8332fbe70b01e3c0fe205e', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInitd2a470f94191e5ae1cb8689135c436d5', 'loadClassLoader')); $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); if ($useStaticLoader) { require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit5332682a7f8332fbe70b01e3c0fe205e::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInitd2a470f94191e5ae1cb8689135c436d5::getInitializer($loader)); } else { $map = require __DIR__ . '/autoload_namespaces.php'; foreach ($map as $namespace => $path) { diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 73464c6e..99bd9163 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit5332682a7f8332fbe70b01e3c0fe205e +class ComposerStaticInitd2a470f94191e5ae1cb8689135c436d5 { public static $prefixLengthsPsr4 = array ( 'S' => @@ -74,9 +74,9 @@ class ComposerStaticInit5332682a7f8332fbe70b01e3c0fe205e public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit5332682a7f8332fbe70b01e3c0fe205e::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit5332682a7f8332fbe70b01e3c0fe205e::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInit5332682a7f8332fbe70b01e3c0fe205e::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInitd2a470f94191e5ae1cb8689135c436d5::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInitd2a470f94191e5ae1cb8689135c436d5::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInitd2a470f94191e5ae1cb8689135c436d5::$classMap; }, null, ClassLoader::class); } diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 375cd31d..5da658e4 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -5,7 +5,7 @@ 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => 'c9c2f6050dadce6008871cca00b9630c26d39d2c', + 'reference' => 'c8817edc0c8f00ba9c739741f25e461739b4f9af', 'name' => 'wpsimplepay/wp-simple-pay-pro-3', 'dev' => false, ), @@ -79,7 +79,7 @@ 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => 'c9c2f6050dadce6008871cca00b9630c26d39d2c', + 'reference' => 'c8817edc0c8f00ba9c739741f25e461739b4f9af', 'dev_requirement' => false, ), ), diff --git a/views/admin-dashboard-widget-first-form.php b/views/admin-dashboard-widget-first-form.php index e4c23522..0e600ea6 100644 --- a/views/admin-dashboard-widget-first-form.php +++ b/views/admin-dashboard-widget-first-form.php @@ -10,9 +10,9 @@ */ $docs_url = simpay_docs_link( - '', + 'Learn more', 'first-payment-form', - 'global-settings', + 'dashboard-widget-first-form', true ); @@ -30,7 +30,7 @@ @@ -39,7 +39,7 @@

@@ -49,7 +49,7 @@ @@ -58,7 +58,7 @@ diff --git a/views/admin-dashboard-widget-lite-upgrade.php b/views/admin-dashboard-widget-lite-upgrade.php index 070ca518..dd1ee6fc 100644 --- a/views/admin-dashboard-widget-lite-upgrade.php +++ b/views/admin-dashboard-widget-lite-upgrade.php @@ -18,7 +18,7 @@ @@ -27,7 +27,7 @@

@@ -37,7 +37,7 @@ diff --git a/views/admin-dashboard-widget-stripe-connect.php b/views/admin-dashboard-widget-stripe-connect.php index 84e48960..1b9f09e4 100644 --- a/views/admin-dashboard-widget-stripe-connect.php +++ b/views/admin-dashboard-widget-stripe-connect.php @@ -10,9 +10,9 @@ */ $docs_url = simpay_docs_link( - '', + 'Learn More', 'stripe-setup', - 'global-settings', + 'dashboard-widget-connect', true ); ?> @@ -23,7 +23,7 @@ @@ -32,7 +32,7 @@

@@ -44,7 +44,7 @@ diff --git a/views/admin-education-payment-form-form-field-settings.php b/views/admin-education-payment-form-form-field-settings.php index b024688f..3ebbe8f2 100644 --- a/views/admin-education-payment-form-form-field-settings.php +++ b/views/admin-education-payment-form-form-field-settings.php @@ -19,7 +19,7 @@

- +

@@ -29,7 +29,7 @@ /* translators: %1$s Opening tag, do not translate. %2$s Closing tag, do not translate. */ __( 'Collect as little or as much data as you need on your payment forms. Add a variety of field types to capture more data for each payment record: %1$snumbers, dates, checkboxes, drop-downs and more%2$s.', - 'simple-pay' + 'stripe' ), '', '' @@ -42,7 +42,7 @@