diff --git a/includes/core/assets/css/admin/admin.scss b/includes/core/assets/css/admin/admin.scss index 333604ef..36754486 100644 --- a/includes/core/assets/css/admin/admin.scss +++ b/includes/core/assets/css/admin/admin.scss @@ -352,6 +352,10 @@ position: relative; flex: 0 0 25%; + @media screen and (min-width: 1400px) { + flex-basis: 22%; + } + @media screen and (max-width: 782px) { flex-basis: 100%; flex-grow: 1; @@ -363,7 +367,7 @@ padding: 0; &:first-child { - margin-top: -1px; + margin-top: 12px; } &:last-child { @@ -430,7 +434,7 @@ align-items: center; line-height: 20px; margin: 0; - padding: 10px 10px 10px 14px; + padding: 8px 10px 8px 14px; text-decoration: none; transition: all 0.05s ease-in-out; @@ -447,10 +451,11 @@ outline: 0; position: relative; z-index: 3; - box-shadow: inset 0 0 0 2px currentColor; + box-shadow: inset 0 0 0 1px currentColor, 0 0 0 1px currentColor; } - &[href="#purchase-restrictions-settings-panel"] { + &[href="#purchase-restrictions-settings-panel"], + &[href="#payment-page-settings-panel"] { margin-bottom: 20px; position: relative; @@ -465,6 +470,14 @@ background: #eaeaea; } } + + span > span { + color: #f18500; + font-size: 12px; + font-weight: 600; + margin: 0 0 0 5px; + display: inline-block; + } } &:not(.active) { @@ -490,6 +503,10 @@ flex: 0 0 75%; display: flex; + @media screen and (min-width: 1400px) { + flex-basis: 78%; + } + @media screen and (max-width: 782px) { flex-basis: 100%; } @@ -2277,6 +2294,72 @@ select.simpay-currency-symbol { } } +.simpay-form-builder-automations { + + &__cta { + margin: 24px 0 6px; + text-align: center; + } +} + +.simpay-form-builder-automator { + padding: 16px 4px 26px !important; + + &, + * { + box-sizing: border-box; + } + + input[type="search"] { + font-size: 15px; + padding: 2px 8px; + } + + &__integrations { + display: grid; + grid-template-columns: repeat(4, minmax(0, 1fr)); + grid-column-gap: 16px; + grid-row-gap: 16px; + margin: 18px -18px 0; + padding: 0 18px 10px; + width: calc(100% + 36px); + max-height: 400px; + overflow-y: scroll; + } + + &__integrations-integration { + color: initial; + text-align: center; + text-decoration: none; + background: #fff; + border: 1px solid #eee; + border-radius: 4px; + box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03); + transition: all ease-in 0.15s; + + img { + display: block; + margin: 16px auto; + height: 50px; + } + + span { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + padding: 8px 16px; + display: block; + border-top: 1px solid #eee; + } + + &:hover { + cursor: pointer; + border-color: #ddd; + box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.06); + } + } +} + body.site-health #wpbody-content, body.post-type-simple-pay #wpbody-content { padding-bottom: 200px; diff --git a/includes/core/assets/css/simpay-admin.min.css b/includes/core/assets/css/simpay-admin.min.css index 9c2e16f4..4be670c5 100644 --- a/includes/core/assets/css/simpay-admin.min.css +++ b/includes/core/assets/css/simpay-admin.min.css @@ -1 +1 @@ -.simpay-settings-subsections{display:flex;align-items:center;box-shadow:inset 0 -1px 0 0 #ccc}.simpay-settings-subsections__subsection{font-weight:500;text-decoration:none;padding:15px;display:flex;align-items:center}.simpay-settings-subsections__subsection .dashicons{width:18px;height:18px;font-size:18px;margin-right:4px}.simpay-settings-subsections__subsection.is-active{box-shadow:inset 0 -4px 0 0 currentColor;position:relative;z-index:1}.simpay-settings-subsections__subsection:not(.is-active){color:#23282d}.simpay-settings form>h2:not(.nav-tab-wrapper){clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px}.simpay-settings .form-table td fieldset+p,.simpay-settings .form-table td label+p,.simpay-settings .form-table td select+p,.simpay-settings .form-table td input+p{color:#666;font-style:italic}.simpay-settings .simpay-settings-subsections__subsection{display:flex;align-items:center}.simpay-settings .simpay-settings-subsections__subsection .simpay-settings-bubble{margin-left:5px}.simpay-settings .simpay-settings-visual-toggles{margin:30px 0 0;display:flex}.simpay-settings .simpay-settings-visual-toggles input[type=radio]{display:none}.simpay-settings .simpay-settings-visual-toggles__toggle{-webkit-user-select:none;-moz-user-select:none;user-select:none;min-width:180px;margin:0 30px 0 0 !important;position:relative;display:block;background-color:#fff;border-radius:4px;border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04)}.simpay-settings .simpay-settings-visual-toggles__toggle:hover{border:1px solid #999;box-shadow:0 1px 2px rgba(0,0,0,.1)}.simpay-settings .simpay-settings-visual-toggles input[type=radio]:checked+.simpay-settings-visual-toggles__toggle{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.simpay-settings .simpay-settings-visual-toggles__toggle-recommended,.simpay-settings .simpay-settings-visual-toggles__toggle-not-recommended{text-align:center;font-size:12px;text-transform:uppercase;font-weight:bold;margin:0;padding:5px 0;display:block;border-top-right-radius:4px;border-top-left-radius:4px}.simpay-settings .simpay-settings-visual-toggles__toggle-recommended{color:#0f8569;background:#f4f9f7}.simpay-settings .simpay-settings-visual-toggles__toggle-not-recommended{color:#b91c1b;background:#fef2f2}.simpay-settings .simpay-settings-visual-toggles__toggle-icon{margin:20px auto 15px;padding:0 15px;display:block}.simpay-settings .simpay-settings-visual-toggles__toggle-label{line-height:1.5;text-align:center;font-size:16px;font-weight:500;margin:15px;display:block}.simpay-settings .simpay-settings-visual-toggles__toggle-label small{color:#666;font-weight:normal;font-size:13px;line-height:1;display:block;margin:4px 0}.simpay-settings .simpay-settings-visual-toggles.simpay-settings-captcha-type .simpay-settings-visual-toggles__toggle{min-height:160px}.simpay-settings .simpay-settings-visual-toggles.simpay-settings-captcha-type .simpay-settings-visual-toggles__toggle-icon{width:80px;height:80px}.simpay-settings .simpay-settings-visual-toggles.simpay-settings-captcha-type input[type=radio].simpay-settings-captcha-type--is-recommended:checked+.simpay-settings-visual-toggles__toggle{border-color:#0f8569;box-shadow:0 0 0 1px #0f8569}.simpay-settings .simpay-settings-visual-toggles.simpay-settings-captcha-type input[type=radio].simpay-settings-captcha-type--is-not-recommended:checked+.simpay-settings-visual-toggles__toggle{border-color:#b91c1b;box-shadow:0 0 0 1px #b91c1b}.simpay-settings .simpay-settings-visual-toggles.simpay-settings-captcha-type label[for=simpay-settings-captcha-type-cloudflare-turnstile] .simpay-settings-visual-toggles__toggle-icon{width:120px}.simpay-settings-general-recaptcha-no_captcha_warning th,.simpay-settings-general-recaptcha-no_captcha_warning td,.simpay-settings-hcaptcha_secret_key th,.simpay-settings-hcaptcha_secret_key td,.simpay-settings-cloudflare_turnstile_secret_key th,.simpay-settings-cloudflare_turnstile_secret_key td,.simpay-settings-recaptcha_score_threshold th,.simpay-settings-recaptcha_score_threshold td{padding-bottom:50px !important}.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-summary-report,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-payment-confirmation,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-payment-notification,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-upcoming-invoice,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-invoice-confirmation{display:none}.simpay-settings .simpay-settings-subsection-emails-tools{margin-left:auto}.simpay-admin-charts-period-over-period{position:relative;padding-bottom:12px}.simpay-admin-charts-period-over-period *{box-sizing:border-box}.simpay-admin-charts-period-over-period__tooltip{position:absolute;background:#fff;border:1px solid #c3c3c3;box-shadow:0 2px 6px rgba(0,0,0,.05);border-radius:2px;padding:10px 14px;display:flex;flex-direction:column;z-Index:10000;min-width:175px}.simpay-admin-charts-period-over-period__tooltip-data{white-space:nowrap;margin-bottom:8px;display:grid;grid-template-columns:1fr auto;grid-auto-rows:auto;-moz-column-gap:16px;column-gap:16px}.simpay-admin-charts-period-over-period__tooltip-data:last-child{margin-bottom:0}.simpay-admin-charts-period-over-period__tooltip-data[data-dataset="1"]{opacity:.65}.simpay-admin-charts-period-over-period__tooltip-data em{font-style:normal;text-align:right}.simpay-admin-charts-period-over-period__tooltip-delta{font-size:12px;margin:0 -14px -10px;padding:8px 14px;border-top:1px solid #eee;background:#fdfdfd;border-radius:2px;display:flex;align-items:center;justify-content:center}.simpay-admin-charts-period-over-period__tooltip-delta .simpay-admin-charts-badge{margin-right:4px}.simpay-admin-charts-period-over-period__tooltip-delta strong.is-positive{color:#006908}.simpay-admin-charts-period-over-period__tooltip-delta strong.is-negative{color:#b3093c}.simpay-admin-charts-badge{color:#2f2f2f;font-size:12px;font-weight:500;font-style:normal;line-height:1;padding:3px 6px;display:inline-flex;align-items:center;background:#f0f0f0;border-radius:100px}.simpay-admin-charts-badge.is-positive{color:#006908;background-color:#d7f7c2}.simpay-admin-charts-badge.is-negative{color:#b3093c;background-color:#ffe7f2}.simpay-admin-charts-badge__icon{width:15px;height:15px}.simpay-admin-charts-no-data{position:absolute;top:0;left:0;display:flex;justify-content:center;align-items:center;background:rgba(255,255,255,.5);z-index:2}.simpay-admin-charts-no-data>div{text-align:center;padding:24px;background:#fff;border:1px solid #c3c3c3;box-shadow:0 2px 6px rgba(0,0,0,.1);border-radius:2px;max-width:60%}.simpay-admin-charts-no-data strong{font-size:15px;margin-bottom:8px;display:block}.button.button-large.simpay-button-large{font-size:14px;line-height:30px;padding:4px 12px}.simpay-copy-hidden-input{clip:rect(1px, 1px, 1px, 1px);-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}.simple-pay_page_simpay_settings .simpay-settings-upgrade,.post-type-simple-pay .simpay-settings-upgrade{margin-top:20px;padding:1px;position:relative;background:#fff;border-radius:4px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2),0 5px 10px rgba(0,0,0,.1);max-width:677px}.simple-pay_page_simpay_settings .simpay-settings-upgrade__inner,.post-type-simple-pay .simpay-settings-upgrade__inner{text-align:center;margin:0;padding:30px}.simple-pay_page_simpay_settings .simpay-settings-upgrade h3,.post-type-simple-pay .simpay-settings-upgrade h3{line-height:1.5;font-size:22px;margin:0 0 1.5rem}.simple-pay_page_simpay_settings .simpay-settings-upgrade ul,.post-type-simple-pay .simpay-settings-upgrade ul{margin:1.5rem 0 calc(1.5rem - 6px);display:flex;flex-wrap:wrap;justify-content:center}@media screen and (min-width: 782px){.simple-pay_page_simpay_settings .simpay-settings-upgrade ul,.post-type-simple-pay .simpay-settings-upgrade ul{margin-left:4rem;margin-right:4rem}}.simple-pay_page_simpay_settings .simpay-settings-upgrade li,.post-type-simple-pay .simpay-settings-upgrade li{font-size:15px;margin:6px 0;width:100%}.simple-pay_page_simpay_settings .simpay-settings-upgrade li a,.post-type-simple-pay .simpay-settings-upgrade li a{color:#3c434a;text-decoration:none}.simple-pay_page_simpay_settings .simpay-settings-upgrade li a:hover,.post-type-simple-pay .simpay-settings-upgrade li a:hover{color:var(--wp-admin-theme-color);text-decoration:underline}@media screen and (min-width: 782px){.simple-pay_page_simpay_settings .simpay-settings-upgrade li,.post-type-simple-pay .simpay-settings-upgrade li{text-align:left;width:50%}}.simple-pay_page_simpay_settings .simpay-settings-upgrade .button.button-large,.post-type-simple-pay .simpay-settings-upgrade .button.button-large{font-size:17px;line-height:30px;padding:10px 20px}.simple-pay_page_simpay_settings .simpay-settings-upgrade small,.post-type-simple-pay .simpay-settings-upgrade small{color:#666;margin:15px 0 0;display:block}.simple-pay_page_simpay_settings .simpay-settings-upgrade .dashicons-yes,.post-type-simple-pay .simpay-settings-upgrade .dashicons-yes{color:#428bca}.simple-pay_page_simpay_settings .simpay-settings-upgrade .button-link,.post-type-simple-pay .simpay-settings-upgrade .button-link{position:absolute;top:0;right:0;font-size:20px;color:#666;font-weight:bold;text-decoration:none;margin-left:5px;padding:6px 10px;z-index:2}.simple-pay_page_simpay_settings .simpay-settings-upgrade .button-link:hover,.simple-pay_page_simpay_settings .simpay-settings-upgrade .button-link:active,.simple-pay_page_simpay_settings .simpay-settings-upgrade .button-link:focus,.post-type-simple-pay .simpay-settings-upgrade .button-link:hover,.post-type-simple-pay .simpay-settings-upgrade .button-link:active,.post-type-simple-pay .simpay-settings-upgrade .button-link:focus{color:#666;text-decoration:none}.simple-pay_page_simpay_settings .simpay-settings-upgrade .simpay-upgrade-btn-subtext,.post-type-simple-pay .simpay-settings-upgrade .simpay-upgrade-btn-subtext{text-align:center;margin:0;padding:30px 20px 20px;background-color:#fcf9e8;border:1px solid #edeac9;border-width:1px 0 0;position:relative;border-radius:0;border-bottom-left-radius:4px;border-bottom-right-radius:4px}@media screen and (min-width: 782px){.simple-pay_page_simpay_settings .simpay-settings-upgrade .simpay-upgrade-btn-subtext,.post-type-simple-pay .simpay-settings-upgrade .simpay-upgrade-btn-subtext{padding-left:4rem;padding-right:4rem}}.simple-pay_page_simpay_settings .simpay-settings-upgrade .simpay-upgrade-btn-subtext svg,.post-type-simple-pay .simpay-settings-upgrade .simpay-upgrade-btn-subtext svg{background:#00a32a;fill:#fff;border-radius:50%;border:4px solid #fff;box-shadow:0 0 0 1px #edeac9;width:28px;height:28px;position:absolute;top:-18px;left:50%;margin-left:-18px}.simple-pay_page_simpay_settings .simpay-settings-upgrade .simpay-upgrade-btn-subtext u,.post-type-simple-pay .simpay-settings-upgrade .simpay-upgrade-btn-subtext u{text-decoration:none;font-weight:bold;color:#00a32a}.simple-pay_page_simpay_settings .simpay-settings-upgrade .simpay-upgrade-btn-subtext a,.post-type-simple-pay .simpay-settings-upgrade .simpay-upgrade-btn-subtext a{font-weight:normal;display:inline-block}#simpay-payment-form-settings table{width:100%;border-collapse:collapse}#simpay-payment-form-settings ::-webkit-input-placeholder{color:#9ba1a9}#simpay-payment-form-settings ::-moz-placeholder{color:#9ba1a9;opacity:1}#simpay-payment-form-settings :-ms-input-placeholder{color:#9ba1a9}#simpay-payment-form-settings .inside{margin:0;padding:0}#simpay-payment-form-settings .simpay-panel-field .toolbar{margin-bottom:-4px}#simpay-payment-form-settings .simpay-panel-field .toolbar .simpay-field-select{margin:0 0 4px;width:auto;max-width:70%}#simpay-payment-form-settings .simpay-tabs{margin:0;padding:0;list-style:none;background:#fafafa;border-right:1px solid #ccd0d4;line-height:1em;position:relative;flex:0 0 25%}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-tabs{flex-basis:100%;flex-grow:1;border-right:0}}#simpay-payment-form-settings .simpay-tabs li{margin:0;padding:0}#simpay-payment-form-settings .simpay-tabs li:first-child{margin-top:-1px}#simpay-payment-form-settings .simpay-tabs li:last-child{margin-bottom:20px}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-tabs li:last-child{margin-bottom:0}}#simpay-payment-form-settings .simpay-tabs li.active{margin-left:-1px;box-shadow:0 1px 1px rgba(0,0,0,.04);position:relative}#simpay-payment-form-settings .simpay-tabs li.active:focus:after{display:none}#simpay-payment-form-settings .simpay-tabs li.active:before,#simpay-payment-form-settings .simpay-tabs li.active:after{content:"";width:calc(100% + 1px);height:1px;background:#ccd0d4;position:absolute;top:0;left:0;right:0;z-index:2}#simpay-payment-form-settings .simpay-tabs li.active:after{top:auto;bottom:0}#simpay-payment-form-settings .simpay-tabs li.active a{font-weight:bold;background-color:#fff;position:relative;margin-right:-1px}#simpay-payment-form-settings .simpay-tabs li.active a:before{content:"";position:absolute;top:0;left:0;bottom:0;width:4px;height:100%;background:currentColor;z-index:3}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-tabs li.active a{margin-right:0}}#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item{display:flex;align-items:center;line-height:20px;margin:0;padding:10px 10px 10px 14px;text-decoration:none;transition:all .05s ease-in-out}#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item svg,#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item .dashicons{margin-right:6px}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item{padding:18px}}#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item:focus{outline:0;position:relative;z-index:3;box-shadow:inset 0 0 0 2px currentColor}#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item[href="#purchase-restrictions-settings-panel"]{margin-bottom:20px;position:relative}#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item[href="#purchase-restrictions-settings-panel"]:after{content:"";position:absolute;left:14px;right:14px;bottom:-10px;width:calc(100% - 28px);height:1px;background:#eaeaea}#simpay-payment-form-settings .simpay-tabs li: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>table:last-child>tbody:last-child>tr:last-child>td{border-bottom:0}#simpay-payment-form-settings .simpay-panel-field--requires-upgrade{position:relative}#simpay-payment-form-settings .simpay-panel-field--requires-upgrade td>div{margin-right:80px}#simpay-payment-form-settings .simpay-panel-field--requires-upgrade td>div .button-small{position:absolute;top:calc(50% - 13px);right:18px}#simpay-payment-form-settings .simpay-panel-field,#simpay-payment-form-settings .simpay-panel-field>td,#simpay-payment-form-settings .simpay-panel-field>th{text-align:left;display:block}#simpay-payment-form-settings .simpay-panel-field>td,#simpay-payment-form-settings .simpay-panel-field>th{width:calc(100% - 36px);margin-left:18px;margin-right:18px}#simpay-payment-form-settings .simpay-panel-field th{font-weight:bold;padding-top:18px;padding-bottom:5px}#simpay-payment-form-settings .simpay-panel-field td{border-bottom:1px solid #ddd;padding-bottom:18px}#simpay-payment-form-settings .simpay-panel-field p.description{margin-top:4px}#simpay-payment-form-settings .simpay-panel-field p.description:last-of-type{margin-bottom:0}#simpay-payment-form-settings .simpay-panel-field .simpay-panel-field__nested{margin-top:18px}#simpay-payment-form-settings .simpay-panel-field .simpay-panel-field__nested label{font-weight:bold;display:block;margin-bottom:4px}#simpay-payment-form-settings .simpay-panel-field .simpay-field-select,#simpay-payment-form-settings .simpay-panel-field .simpay-field-text{min-width:75%;max-width:100%}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-panel-field .simpay-field-select,#simpay-payment-form-settings .simpay-panel-field .simpay-field-text{min-width:0;width:100%}}#simpay-payment-form-settings .simpay-panel-field .simpay-field-textarea{width:100%;max-width:100%}#simpay-payment-form-settings .simpay-panel-field .notice:last-of-type{margin-bottom:0}#simpay-payment-form-settings .simpay-panel-field .error,#simpay-payment-form-settings .simpay-panel-field .simpay-important{color:#a94442;font-weight:normal}#simpay-payment-form-settings .simpay-panel-field .simpay-image-preview-wrap{position:relative;margin-top:12px}#simpay-payment-form-settings .simpay-panel-field .simpay-image-preview-wrap .simpay-remove-image-preview{position:absolute;top:-15px;left:-15px;cursor:pointer;background-color:#fff}#simpay-payment-form-settings .simpay-panel-field .simpay-image-preview-wrap .simpay-remove-image-preview::before{font-size:22px;line-height:26px}#simpay-payment-form-settings .simpay-panel-field .simpay-image-preview-wrap .simpay-image-preview{max-height:128px;max-width:128px;border:1px solid #ddd}#simpay-payment-form-settings .simpay-panel .simpay-promo-under-box{background-color:#f4f4f4;border:1px solid #e5e5e5;padding:18px;margin-top:18px;position:relative}#simpay-payment-form-settings .simpay-panel .simpay-promo-under-box__dismiss{color:inherit;text-decoration:none;position:absolute;top:8px;right:8px}#simpay-payment-form-settings .simpay-panel .simpay-promo-under-box__dismiss .dashicons-dismiss{font-size:16px;width:16px;height:16px}#simpay-payment-form-settings .simpay-panel .simpay-promo-under-box h3{font-size:18px;font-weight:600;margin:0;padding:0}#simpay-payment-form-settings .simpay-panel .simpay-promo-under-box p{font-size:14px}#simpay-payment-form-settings .simpay-panel .simpay-promo-under-box p:last-child{margin-bottom:0}#simpay-payment-form-settings .simpay-metabox-content{margin-bottom:-1px;background-color:#f5f5f5;border:1px solid #c3c4c7;border-width:1px 0;box-shadow:0 1px 1px rgba(0,0,0,.04);position:relative}#simpay-payment-form-settings .simpay-show-if,#simpay-payment-form-settings .simpay-panel-hidden{display:none}#simpay-payment-form-settings .simpay-payment-methods{border:1px solid #ccd0d4;border-radius:4px;box-shadow:0 1px 1px rgba(0,0,0,.04)}#simpay-payment-form-settings .simpay-panel-field-payment-method{display:block;border-top:1px solid #ccd0d4;padding:7px;box-sizing:border-box}#simpay-payment-form-settings .simpay-panel-field-payment-method:first-child{border-top:0;border-top-left-radius:4px;border-top-right-radius:4px}#simpay-payment-form-settings .simpay-panel-field-payment-method__enable{display:flex;align-items:center}#simpay-payment-form-settings .simpay-panel-field-payment-method__enable input[type=checkbox]{margin-top:0;margin-right:8px}#simpay-payment-form-settings .simpay-panel-field-payment-method__help{text-decoration:none}#simpay-payment-form-settings .simpay-panel-field-payment-method__help .dashicons{font-size:18px;width:18px;height:18px}#simpay-payment-form-settings .simpay-panel-field-payment-method__restrictions,#simpay-payment-form-settings .simpay-panel-field-payment-method__restrictions-ach{margin-left:72px}#simpay-payment-form-settings .simpay-panel-field-payment-method__icon{border-radius:3px;overflow:hidden;margin:0 8px 0 5px;width:30px;height:30px;flex-shrink:0}#simpay-payment-form-settings .simpay-panel-field-payment-method__icon svg{width:30px;height:30px}#simpay-payment-form-settings .simpay-panel-field-payment-method__configure{display:flex;align-items:center;justify-content:center}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metaboxes:not(.is-empty),#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metaboxes:not(.is-empty){border:1px solid #ccd0d4;box-shadow:0 1px 1px rgba(0,0,0,.04);border-radius:4px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-handlediv,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-handlediv{display:none;float:right;width:36px;height:36px;margin:0;padding:0;border:0;background:none;cursor:pointer;display:block}#simpay-global-settings .simpay-metaboxes-wrapper .postbox.closed .simpay-handlediv .toggle-indicator:before,#simpay-form-settings .simpay-metaboxes-wrapper .postbox.closed .simpay-handlediv .toggle-indicator:before{content:""}#simpay-global-settings .simpay-metaboxes-wrapper .postbox .simpay-handlediv:focus,#simpay-form-settings .simpay-metaboxes-wrapper .postbox .simpay-handlediv:focus{outline:0}#simpay-global-settings .simpay-metaboxes-wrapper .postbox .simpay-handlediv:focus .toggle-indicator:before,#simpay-form-settings .simpay-metaboxes-wrapper .postbox .simpay-handlediv:focus .toggle-indicator:before{box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}#simpay-global-settings .simpay-metaboxes-wrapper .postbox .simpay-handlediv .toggle-indicator:before,#simpay-form-settings .simpay-metaboxes-wrapper .postbox .simpay-handlediv .toggle-indicator:before{margin-top:4px;width:20px;border-radius:50%;text-indent:-1px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox{background:#fff;border:1px solid #ccd0d4;margin:0 -1px -1px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .hndle,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .hndle{border:0}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox select,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox select{font-weight:400}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox:first-of-type,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox:first-of-type{margin-top:-1px;border-top-left-radius:4px;border-top-right-radius:4px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox:last-of-type,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox:last-of-type{margin-bottom:-1px;border-bottom-left-radius:4px;border-bottom-right-radius:4px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox:last-of-type .simpay-metabox-content,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox:last-of-type .simpay-metabox-content{border-bottom-left-radius:4px;border-bottom-right-radius:4px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2{cursor:pointer;display:flex;align-items:center;padding:10px 0 10px 12px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .simpay-field-type,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .simpay-field-type{font-size:90%;color:gray;font-weight:normal;text-decoration:none;margin-left:10px}@media screen and (max-width: 782px){#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .simpay-field-type,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .simpay-field-type{display:none}}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .dashicons-handle,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .dashicons-handle{cursor:move}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 strong,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 strong{font-size:95%;margin-left:8px;display:flex;align-items:center;flex-grow:1}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 svg,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 svg{border-radius:3px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 select,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 select{font-family:sans-serif;max-width:20%;margin:.25em .25em .25em 0}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2.fixed,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2.fixed{cursor:pointer !important}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .dashicons-menu,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .dashicons-menu{cursor:move}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions{padding:9px 18px;justify-content:space-between;display:flex;align-items:center}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions__field-id,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions__field-id{display:flex;align-items:center}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions__field-id input,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions__field-id input{margin:0 2px 0 5px;width:50px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions__field-id a,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions__field-id a{text-decoration:none}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .button-link.simpay-remove-field-link,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .button-link.simpay-remove-field-link{color:#a00}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .button-link.simpay-remove-field-link:hover,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .button-link.simpay-remove-field-link:hover{color:#dc3232}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox table,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox table{border-spacing:0;width:100%}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox table.simpay-inner-table,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox table.simpay-inner-table{border:none;padding:0 1em}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox table tr td,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox table tr td{border-bottom-color:#ccd0d4}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-remove-plan,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-remove-plan{color:#a00}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-custom-field-payment-button .dashicons-menu,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-custom-field-payment-button .dashicons-menu{visibility:hidden}#simpay-global-settings .sortable-placeholder,#simpay-form-settings .sortable-placeholder{margin:5px;display:block;min-height:36px}#simpay-global-settings .chosen-container,#simpay-form-settings .chosen-container{min-width:20em;max-width:30em}#simpay-global-settings .simpay-field.simpay-small-text,#simpay-form-settings .simpay-field.simpay-small-text{width:7em}#simpay-global-settings .simpay-field.simpay-medium-text,#simpay-form-settings .simpay-field.simpay-medium-text{width:15em}#simpay-global-settings .simpay-field-radios ul,#simpay-form-settings .simpay-field-radios ul{margin:0}#simpay-global-settings .simpay-field-radios>i,#simpay-form-settings .simpay-field-radios>i{margin-left:5px;vertical-align:middle}#simpay-global-settings ul.simpay-field-radios-inline,#simpay-form-settings ul.simpay-field-radios-inline{margin:0 0 -10px}#simpay-global-settings ul.simpay-field-radios-inline li,#simpay-form-settings ul.simpay-field-radios-inline li{display:inline-block;margin:0 10px 10px 0}#simpay-global-settings ul.simpay-field-radios-inline li:last-child,#simpay-form-settings ul.simpay-field-radios-inline li:last-child{margin-right:0}#simpay-global-settings .simpay-currency-field,#simpay-form-settings .simpay-currency-field{display:flex;align-items:center}>#simpay-global-settings .simpay-currency-field:focus,>#simpay-form-settings .simpay-currency-field:focus{position:relative;z-index:5}#simpay-global-settings .simpay-currency-symbol,#simpay-form-settings .simpay-currency-symbol{margin:0;padding-left:8px;padding-right:8px;line-height:28px;font-size:14px}@media screen and (max-width: 782px){#simpay-global-settings .simpay-currency-symbol,#simpay-form-settings .simpay-currency-symbol{line-height:38px}}#simpay-global-settings .simpay-currency-symbol-left,#simpay-form-settings .simpay-currency-symbol-left{border-top-left-radius:4px;border-bottom-left-radius:4px}#simpay-global-settings .simpay-currency-symbol-right,#simpay-form-settings .simpay-currency-symbol-right{border-top-right-radius:4px;border-bottom-right-radius:4px}#simpay-global-settings div.simpay-currency-symbol,#simpay-form-settings div.simpay-currency-symbol{border-color:#7e8993;border-style:solid;background-color:#fff}#simpay-global-settings select.simpay-currency-symbol,#simpay-form-settings select.simpay-currency-symbol{padding-right:25px}#simpay-global-settings .simpay-currency-symbol-left,#simpay-form-settings .simpay-currency-symbol-left{border-width:1px 0 1px 1px}#simpay-global-settings .simpay-currency-symbol-left+.simpay-field-amount,#simpay-form-settings .simpay-currency-symbol-left+.simpay-field-amount{border-radius:0 4px 4px 0}#simpay-global-settings .simpay-currency-symbol-right,#simpay-form-settings .simpay-currency-symbol-right{border-width:1px 1px 1px 0}#simpay-global-settings .simpay-field-amount,#simpay-form-settings .simpay-field-amount{margin:0;padding-left:8px;padding-right:8px;font-size:14px;width:6em;position:relative;z-index:2;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px}#simpay-global-settings .simpay-error,#simpay-form-settings .simpay-error{color:red}#simpay-global-settings .simpay-docs-link-wrap,#simpay-form-settings .simpay-docs-link-wrap{position:absolute;right:0;bottom:0;color:#666;font-size:13px;font-style:italic;padding:15px 18px}#simpay-global-settings .simpay-docs-link-wrap a .dashicons-editor-help,#simpay-form-settings .simpay-docs-link-wrap a .dashicons-editor-help{color:#666;text-decoration:none;width:17px;height:17px;font-size:17px;padding-left:4px}#simpay-global-settings .simpay-docs-icon,#simpay-form-settings .simpay-docs-icon{color:#666}#simpay-global-settings .simpay-docs-icon,#simpay-global-settings .simpay-docs-icon .dashicons-editor-help,#simpay-form-settings .simpay-docs-icon,#simpay-form-settings .simpay-docs-icon .dashicons-editor-help{text-decoration:none;width:17px;height:17px;font-size:17px}.button.button-primary.simpay-upgrade-btn{background-color:#428bca;border:1px solid #428bca;color:#fff;display:inline-block}.button.button-primary.simpay-upgrade-btn:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #2d6ca2}.button.button-primary.simpay-upgrade-btn:hover{background-color:#037ad0;border:1px solid #428bca}.simpay-upgrade-btn-subtext{color:#3c434a;font-size:14px;line-height:1.5;text-align:center;margin:40px 0 0;padding:30px 35px 20px;background-color:#fcf9e8;border:3px solid #ebe29a;border-radius:4px;position:relative}.simpay-upgrade-btn-subtext svg{background:#00a32a;fill:#fff;border-radius:50%;border:3px solid #ebe29a;width:28px;height:28px;position:absolute;top:-14px;left:50%;margin-left:-14px}.simpay-upgrade-btn-subtext u{text-decoration:none;font-weight:bold;color:#00a32a}.simpay-upgrade-btn-subtext a{text-decoration:none;display:block;margin-top:6px;font-weight:bold}.post-type-simple-pay #post-body-content{display:none}.simpay-card{margin:0 0 20px;padding:30px;background:#fff;border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04)}.simpay-card,.simpay-card p{line-height:1.5;font-size:16px}.simpay-card h3{line-height:1.6;font-size:18px;margin:0 0 20px;color:#23282c}.simpay-card p{margin:0 0 20px}.simpay-card p:last-child,.simpay-card ul:last-child{margin-bottom:0}.simpay-card figure{float:right;margin:0 0 30px 30px;max-width:400px}.simpay-card figure iframe,.simpay-card figure img{max-width:100%}.simpay-card figure figcaption{text-align:center}@media screen and (max-width: 782px){.simpay-card figure{margin:0 0 30px;max-width:100%;float:none}}.simpay-doc-suggestions{width:100%;display:flex;flex-wrap:wrap;padding:0}.simpay-doc-suggestion{text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:0 1 33.333%;padding:30px;border-right:1px solid #c3c4c7;box-sizing:border-box}.simpay-doc-suggestion:nth-child(3n){border-right:0}@media screen and (max-width: 782px){.simpay-doc-suggestion{flex:0 1 100%;border-bottom:1px solid #c3c4c7;border-right:0}.simpay-doc-suggestion:last-child{border-bottom:0}}.simpay-doc-suggestion h3{font-size:20px;margin-bottom:10px}.simpay-doc-suggestion p{font-size:15px}.simpay-doc-suggestion .dashicons{font-size:40px;width:40px;height:40px;display:block;margin-bottom:10px}.simpay-doc-suggestion .button-large{font-size:16px}.simpay-addons{display:flex;flex-wrap:wrap;justify-content:space-between;margin:20px 0}.simpay-addon{background:#fff;border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04);margin-bottom:20px;display:flex;flex-direction:column;flex-basis:calc(33% - 10px);box-sizing:border-box}@media screen and (max-width: 782px){.simpay-addon{flex-basis:100%}}.simpay-addon img{float:left;max-width:75px}.simpay-addon h5{margin:0 0 10px 100px;font-size:16px}.simpay-addon__details{padding:20px;flex:1 0 auto}.simpay-addon__actions{display:flex;align-items:center;justify-content:space-between;flex:0 1 auto;background-color:#f7f7f7;border-top:1px solid #ddd;margin-top:auto;padding:20px;position:relative}.simpay-addon__actions .msg{text-align:center;justify-content:center;display:flex;align-items:center;position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;background-color:#f7f7f7;z-index:3}.simpay-addon .error,.simpay-addon .status-label.status-installed{color:#d63638}.simpay-addon .success,.simpay-addon .status-label.status-active{color:#00a32a}.simpay-addon .addon-desc{margin:0 0 0 100px}.form-table td .simpay-stripe-connect-help{margin:15px 0;display:flex;align-items:center}.form-table td .simpay-stripe-connect-help .dashicons{margin-right:4px}.simpay-currency-field{display:flex;align-items:center}>.simpay-currency-field:focus{position:relative;z-index:5}.simpay-currency-symbol{margin:0;padding-left:8px;padding-right:8px;line-height:28px;font-size:14px}@media screen and (max-width: 782px){.simpay-currency-symbol{line-height:38px}}.simpay-currency-symbol-left{border-top-left-radius:4px;border-bottom-left-radius:4px}.simpay-currency-symbol-right{border-top-right-radius:4px;border-bottom-right-radius:4px}div.simpay-currency-symbol{border-color:#7e8993;border-style:solid;background-color:#fff}select.simpay-currency-symbol{padding-right:25px}.simpay-currency-symbol-left{border-width:1px 0 1px 1px}.simpay-currency-symbol-left+.simpay-field-amount{border-radius:0 4px 4px 0}.simpay-currency-symbol-right{border-width:1px 1px 1px 0}.simpay-field-amount{margin:0;padding-left:8px;padding-right:8px;font-size:14px;width:6em;position:relative;z-index:2;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.simpay-template-explorer-open .show-settings{display:none !important}.simpay-branding-bar{margin:0 -20px;padding:14px 22px;background:#fff;border-bottom:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04);width:calc(100% + 20px);display:flex;justify-content:space-between;box-sizing:border-box}.site-health .simpay-branding-bar{display:none}.simpay-branding-bar__title{display:flex;align-items:center;margin:8px 0}.simpay-branding-bar__logo{width:200px}.simpay-branding-bar__divider{color:#dadbdf;font-size:23px;font-weight:400;margin:0 15px}.simpay-branding-bar__actions{display:flex;align-items:center}.simpay-branding-bar__actions>div{margin-left:10px;min-width:40px}.simpay-branding-bar__actions-button{color:#000;cursor:pointer;padding:10px;width:40px;height:40px;background-color:#f3f4f5;border-radius:50%;border:0;box-shadow:none;position:relative;transition:background-color .2s ease;box-sizing:border-box;display:block}.simpay-branding-bar__actions-button:hover{background-color:#e5e5e5}.simpay-branding-bar__actions-button:active,.simpay-branding-bar__actions-button:focus{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.simpay-branding-bar__actions-button-count{font-weight:600;font-size:10px;line-height:16px;color:#fff;margin:0;background-color:#df2a4a;border-radius:100%;width:16px;height:16px;position:absolute;top:-8px;left:50%;margin-left:-8px}.simpay-branding-bar .wp-heading-inline{font-size:23px;font-weight:400;margin:0}.simpay-branding-bar .page-title-action{font-weight:600;font-size:13px;line-height:normal;cursor:pointer;text-shadow:none;text-decoration:none;margin-left:10px;padding:4px 8px;border:1px solid currentColor;border-radius:2px;background:#f6f7f7}.simpay-landing-zone{text-align:center;max-width:700px;margin:40px auto}.simpay-landing-zone__title{font-size:26px;font-weight:600;margin:0 0 1.5rem;padding:0}.simpay-landing-zone__subtitle{font-size:17px;color:#666;margin:.25rem 0}.simpay-landing-zone__subtitle strong{color:#444}.simpay-landing-zone section{margin:2rem 0}.simpay-landing-zone__empty-state-graphic img{width:425px}.simpay-landing-zone__screenshot>*{vertical-align:middle}.simpay-landing-zone__screenshot-img{display:inline-block;position:relative;width:315px;padding:5px;background-color:#fff;box-shadow:0px 2px 5px 0px rgba(0,0,0,.05);border-radius:3px}.simpay-landing-zone__screenshot-img img{max-width:100%;display:block}.simpay-landing-zone__screenshot-img .hover{position:absolute;opacity:0;height:calc(100% - 10px);width:calc(100% - 10px);top:0;left:0;border:5px solid #fff;background-color:rgba(0,0,0,.15);background-image:url(data:image/svg+xml;base64,PHN2ZyBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjojZmZmZmZmMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCIgaGVpZ2h0PSIxMDAiPjxwYXRoIGQ9Ik01MCAwYzI3LjYxNCAwIDUwIDIyLjM4NiA1MCA1MHMtMjIuMzg2IDUwLTUwIDUwUzAgNzcuNjE0IDAgNTAgMjIuMzg2IDAgNTAgMHoiIGZpbGw9IiMxNjg1YjciLz48cGF0aCBkPSJNNzMuMDIzIDY3LjA2N2wtOS4zNDQtOS4zNDRhMi4yNDcgMi4yNDcgMCAwMC0xLjU5My0uNjU2aC0xLjUyOGExOS4zOTkgMTkuMzk5IDAgMDA0LjEyNC0xMS45OTZjMC0xMC43Ny04LjcyNS0xOS40OTUtMTkuNDk0LTE5LjQ5NS0xMC43NjggMC0xOS40OTQgOC43MjYtMTkuNDk0IDE5LjQ5NSAwIDEwLjc2OCA4LjcyNiAxOS40OTMgMTkuNDk0IDE5LjQ5M2ExOS40IDE5LjQgMCAwMDExLjk5Ny00LjEyM3YxLjUyN2MwIC42LjIzNCAxLjE3Mi42NTUgMS41OTRsOS4zNDQgOS4zNDRhMi4yNCAyLjI0IDAgMDAzLjE3OCAwbDIuNjUyLTIuNjUzYTIuMjYgMi4yNiAwIDAwLjAxLTMuMTg2em0tMjcuODM1LTEwYy02LjYyNiAwLTExLjk5Ni01LjM2MS0xMS45OTYtMTEuOTk2IDAtNi42MjcgNS4zNi0xMS45OTcgMTEuOTk2LTExLjk5NyA2LjYyNiAwIDExLjk5NyA1LjM2MSAxMS45OTcgMTEuOTk3IDAgNi42MjYtNS4zNjEgMTEuOTk2LTExLjk5NyAxMS45OTZ6IiBmaWxsPSIjZmZmIi8+PC9zdmc+);background-repeat:no-repeat;background-position:center;background-size:50px;transition:all .3s}.simpay-landing-zone__screenshot-img:hover .hover{opacity:1;transition:all .3s}.simpay-landing-zone__screenshot ul{text-align:left;display:inline-block;margin:0 0 0 30px;list-style-type:none;max-width:calc(100% - 350px)}@media screen and (max-width: 782px){.simpay-landing-zone__screenshot ul{text-align:center;margin:30px auto;max-width:100%;display:block}}.simpay-landing-zone__screenshot li{margin:16px 0;padding:0;font-size:15px;color:#777;position:relative}.simpay-landing-zone__screenshot li:before{content:"";background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjc3NjIgNi40NTYwNUw4LjcyMDMyIDEuNDAwMDVDOC41NzU5OSAxLjI1NTcyIDguMzgzNjQgMS4xNzY1IDguMTc4NTMgMS4xNzY1QzcuOTczMiAxLjE3NjUgNy43ODA5NiAxLjI1NTg0IDcuNjM2NjQgMS40MDAwNUw3LjE3NzYgMS44NTkyQzcuMDMzMzkgMi4wMDMyOSA2Ljk1Mzk1IDIuMTk1NzYgNi45NTM5NSAyLjQwMDk4QzYuOTUzOTUgMi42MDYwOCA3LjAzMzM5IDIuODA1MDQgNy4xNzc2IDIuOTQ5MTRMMTAuMTI3MSA1LjkwNTE2SDAuNzU2MzM0QzAuMzMzODM0IDUuOTA1MTYgMCA2LjIzNTkyIDAgNi42NTg1NFY3LjMwNzY1QzAgNy43MzAyNyAwLjMzMzgzNCA4LjA5NDM4IDAuNzU2MzM0IDguMDk0MzhIMTAuMTYwNkw3LjE3NzcyIDExLjA2NjlDNy4wMzM1MSAxMS4yMTEyIDYuOTU0MDYgMTEuMzk4NSA2Ljk1NDA2IDExLjYwMzdDNi45NTQwNiAxMS44MDg3IDcuMDMzNTEgMTEuOTk4NiA3LjE3NzcyIDEyLjE0MjhMNy42MzY3NSAxMi42MDA1QzcuNzgxMDcgMTIuNzQ0OCA3Ljk3MzMyIDEyLjgyMzUgOC4xNzg2NSAxMi44MjM1QzguMzgzNzUgMTIuODIzNSA4LjU3NjExIDEyLjc0MzggOC43MjA0MyAxMi41OTk1TDEzLjc3NjMgNy41NDM2QzEzLjkyMSA3LjM5ODgyIDE0LjAwMDUgNy4yMDU1NiAxNCA3LjAwMDExQzE0LjAwMDQgNi43OTM5OCAxMy45MjEgNi42MDA2IDEzLjc3NjIgNi40NTYwNVY2LjQ1NjA1WiIgZmlsbD0iIzQyOEJDQSIvPgo8L3N2Zz4K);background-position:center;background-repeat:no-repeat;background-size:14px;width:14px;height:14px;display:inline-block;margin:-3px 5px 0 0;vertical-align:middle}.simpay-landing-zone .button.button-large{font-size:17px;line-height:30px;padding:10px 20px}.simpay-landing-zone__purchased{display:block;margin:15px 0 0}.simpay-upgrade-modal,.simpay-upgrade-upe-modal{padding:0 !important}.simpay-upgrade-modal *,.simpay-upgrade-upe-modal *{box-sizing:border-box}.simpay-upgrade-modal__content,.simpay-upgrade-upe-modal__content{text-align:center;display:flex;flex-direction:column;align-items:center;padding:16px 32px 32px}.simpay-upgrade-modal__content>.dashicons,.simpay-upgrade-upe-modal__content>.dashicons{color:#333;font-size:48px;width:48px;height:48px}.simpay-upgrade-modal__title,.simpay-upgrade-upe-modal__title{font-size:22px;line-height:1.5;display:block;margin:12px 0 0}.simpay-upgrade-modal__description,.simpay-upgrade-upe-modal__description{color:#777;font-size:16px;margin:16px 0 24px}.simpay-upgrade-modal__description strong,.simpay-upgrade-upe-modal__description strong{color:#333}.simpay-upgrade-modal__discount,.simpay-upgrade-upe-modal__discount{font-size:15px;text-align:center;margin:32px -32px -32px;padding:24px 40px;background-color:#fcf9e8;position:relative}.simpay-upgrade-modal__discount svg,.simpay-upgrade-upe-modal__discount svg{background:#00a32a;fill:#fff;border-radius:50%;border:4px solid #fff;width:32px;height:32px;position:absolute;top:-16px;left:50%;margin-left:-16px}.simpay-upgrade-modal__discount u,.simpay-upgrade-upe-modal__discount u{text-decoration:none;font-weight:bold;color:#00a32a}.simpay-upgrade-modal .button-large,.simpay-upgrade-upe-modal .button-large{font-size:16px;font-weight:bold;margin:0 0 15px;padding:8px 30px !important;height:auto}.simpay-teaser-float{margin:50px;position:relative}.simpay-teaser-float__card{text-align:center;padding:30px;background:#fff;border-radius:4px;box-shadow:0 0 30px 15px rgba(0,0,0,.18);position:relative;z-index:2}#poststuff .simpay-teaser-float h2,.simpay-teaser-float h2{font-size:24px;font-weight:600;margin:0;padding:0}.simpay-teaser-float p{font-size:15px;line-height:1.35;color:#666}.simpay-teaser-float p strong{color:#444}.simpay-teaser-float ul{text-align:left;display:inline-block;margin:-10px 0 20px;list-style-type:none}.simpay-teaser-float li{margin:16px 0;padding:0 0 0 24px;font-size:15px;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjc3NjIgNi40NTYwNUw4LjcyMDMyIDEuNDAwMDVDOC41NzU5OSAxLjI1NTcyIDguMzgzNjQgMS4xNzY1IDguMTc4NTMgMS4xNzY1QzcuOTczMiAxLjE3NjUgNy43ODA5NiAxLjI1NTg0IDcuNjM2NjQgMS40MDAwNUw3LjE3NzYgMS44NTkyQzcuMDMzMzkgMi4wMDMyOSA2Ljk1Mzk1IDIuMTk1NzYgNi45NTM5NSAyLjQwMDk4QzYuOTUzOTUgMi42MDYwOCA3LjAzMzM5IDIuODA1MDQgNy4xNzc2IDIuOTQ5MTRMMTAuMTI3MSA1LjkwNTE2SDAuNzU2MzM0QzAuMzMzODM0IDUuOTA1MTYgMCA2LjIzNTkyIDAgNi42NTg1NFY3LjMwNzY1QzAgNy43MzAyNyAwLjMzMzgzNCA4LjA5NDM4IDAuNzU2MzM0IDguMDk0MzhIMTAuMTYwNkw3LjE3NzcyIDExLjA2NjlDNy4wMzM1MSAxMS4yMTEyIDYuOTU0MDYgMTEuMzk4NSA2Ljk1NDA2IDExLjYwMzdDNi45NTQwNiAxMS44MDg3IDcuMDMzNTEgMTEuOTk4NiA3LjE3NzcyIDEyLjE0MjhMNy42MzY3NSAxMi42MDA1QzcuNzgxMDcgMTIuNzQ0OCA3Ljk3MzMyIDEyLjgyMzUgOC4xNzg2NSAxMi44MjM1QzguMzgzNzUgMTIuODIzNSA4LjU3NjExIDEyLjc0MzggOC43MjA0MyAxMi41OTk1TDEzLjc3NjMgNy41NDM2QzEzLjkyMSA3LjM5ODgyIDE0LjAwMDUgNy4yMDU1NiAxNCA3LjAwMDExQzE0LjAwMDQgNi43OTM5OCAxMy45MjEgNi42MDA2IDEzLjc3NjIgNi40NTYwNVY2LjQ1NjA1WiIgZmlsbD0iIzQyOEJDQSIvPgo8L3N2Zz4K);background-position:left 3px;background-repeat:no-repeat;background-size:14px;color:#777}.simpay-teaser-float .button.button-large{font-size:17px;line-height:30px;padding:10px 20px}.simpay-teaser-float .simpay-notice-dismiss{position:absolute;top:0;right:0;font-size:20px;color:#666;font-weight:bold;text-decoration:none;margin-left:5px;padding:6px 10px;z-index:2}.simpay-teaser-float .simpay-notice-dismiss:hover,.simpay-teaser-float .simpay-notice-dismiss:active,.simpay-teaser-float .simpay-notice-dismiss:focus{color:#666;text-decoration:none}.simpay-teaser-float:after,.simpay-teaser-float:before{opacity:.75;z-index:0;content:"";position:absolute;left:-30px;right:-30px;top:-35px;width:calc(100% + 60px);height:170px;background-image:linear-gradient(#ddd, #ddd),linear-gradient(#eee, #eee),linear-gradient(#ddd, #ddd),linear-gradient(#eee, #eee);background-repeat:no-repeat;background-size:100% 20px,100% 40px,100% 20px,100% 40px;background-position:0 0,0 30px,0 100px,0 130px}.simpay-teaser-float:before{top:170px}.simpay-teaser-float .simpay-upgrade-btn-subtext{margin:24px -30px -30px;padding:32px 40px;border-bottom-left-radius:2px;border-bottom-right-radius:2px;border:0}.simpay-teaser-float .simpay-upgrade-btn-subtext svg{border-color:#fff}.simpay-teaser-float--inline{margin:40px 30px 30px}.simpay-teaser-float--inline .simpay-teaser-float__card{padding:30px;box-shadow:0 0 12px 6px rgba(0,0,0,.16)}#poststuff .simpay-teaser-float--inline h2,.simpay-teaser-float--inline h2{font-size:20px}.simpay-teaser-float--inline p{font-size:15px;margin:.75rem 0}.simpay-teaser-float--inline .button.button-large{font-size:15px;line-height:24px;margin:1rem 0;padding:8px 14px;display:inline-block}.simpay-teaser-float--inline:before,.simpay-teaser-float--inline:after{opacity:.6}.simpay-teaser-float--inline:before{display:none}.simpay-teaser-float--inline:after{top:15px}.simpay-form-settings-notice{font-weight:normal;color:#1d2327;position:relative;margin:18px 18px 0;padding:14px;border-radius:4px;background:#f5f5ff}.simpay-form-settings-notice a{color:#635aff}.simpay-form-settings-notice .simpay-external-link .dashicons-external{margin:1px 0 0 2px}.simpay-form-settings-notice strong{font-size:14px}.simpay-form-settings-notice p{margin:5px 0 0 23px}.simpay-form-settings-notice .simpay-notice-dismiss{font-size:20px;color:#b0b0f0;font-weight:bold;line-height:1;position:absolute;top:0;right:5px;text-decoration:none;padding:0 5px;z-index:2}.simpay-form-settings-notice .simpay-notice-dismiss:hover,.simpay-form-settings-notice .simpay-notice-dismiss:active,.simpay-form-settings-notice .simpay-notice-dismiss:focus{color:#9191ef;text-decoration:none;background:none}.simpay-settings .simpay-form-settings-notice{border:2px solid #645aff;box-shadow:0 1px 1px rgba(0,0,0,.04)}.post-type-simple-pay .lity{z-index:999999999;padding:20px}.post-type-simple-pay .lity-close{margin:10px}.post-type-simple-pay .lity-content{max-width:80vw;max-height:80vh}.post-type-simple-pay .lity-content img{max-height:80vh !important;max-width:80vw !important}#wpsp-api-keys-row-hide{display:none}.post-type-simple-pay #post-preview:not(.simpay-preview-button){display:none}.simpay-license-field-wrapper{margin:20px 0}#simpay-settings-license-key-license-key{margin:0}#simpay-settings-license-key-license-key[readonly]{background:#fff}.simpay-license-message__loading,.simpay-license-field{display:flex;align-items:center}.wp-core-ui .button.simpay-license-button.button-primary,.wp-core-ui .button.simpay-license-button.button-secondary{font-size:1rem;line-height:1;margin:0 8px;padding:13px}.simpay-license-message{font-size:15px;margin-top:8px}.simpay-license-message--valid{color:#15803d}.simpay-license-message--invalid{color:#b91c1c}.simpay-recaptcha-payment-form-feedback .dashicons{margin-top:-1px;display:inline-block}.simpay-recaptcha-payment-form-feedback .dashicons-update-alt{animation:rotation 2s infinite linear}.simpay-form-builder-inset-settings{margin:3px 0 0 24px}fieldset.simpay-form-builder-inset-settings>*:not(legend){margin:5px 0 8px}.simpay-form-builder-inset-settings>*:last-child{margin-bottom:0}.simpay-form-builder-inventory-control{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;padding:6px 8px;box-shadow:0 0 0 rgba(0,0,0,0);transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;margin:0;padding:0;width:auto;display:inline-flex;align-items:center}@media(prefers-reduced-motion: reduce){.simpay-form-builder-inventory-control{transition-duration:0s;transition-delay:0s}}@media(min-width: 600px){.simpay-form-builder-inventory-control{font-size:13px;line-height:normal}}.simpay-form-builder-inventory-control:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid rgba(0,0,0,0)}.simpay-form-builder-inventory-control::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.simpay-form-builder-inventory-control::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.simpay-form-builder-inventory-control:-ms-input-placeholder{color:rgba(30,30,30,.62)}.simpay-form-builder-inventory-control:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid rgba(0,0,0,0)}.simpay-form-builder-inventory-control input[type=number]{border:0;box-shadow:none;background:none;border-radius:0;width:75px}.simpay-form-builder-inventory-control input[type=number]:focus{border:0;box-shadow:none;outline:0}.simpay-form-builder-inventory-control+label{margin-left:8px}.simpay-form-builder-inventory-control__initial{color:#757575;font-size:16px;line-height:normal;padding-right:8px}@media(min-width: 600px){.simpay-form-builder-inventory-control__initial{font-size:13px;line-height:normal}}.simpay-form-builder-inventory-control__initial:before{content:"/";display:inline-block;vertical-align:top;margin-top:-1px}.simpay-form-builder-purchase-restrictions__restriction-item{display:flex;align-items:center;margin-top:8px;margin-bottom:8px}.simpay-form-builder-purchase-restrictions__restriction-item label{margin-left:8px}.simpay-form-builder-purchase-restrictions__restriction-item-datetime{display:flex;align-items:center}.simpay-form-builder-purchase-restrictions__restriction-item-datetime>*{margin-right:10px}.simpay-form-builder-purchase-restrictions__restriction-item-datetime span{color:#757575}.simpay-form-builder-fee-recovery__amounts{display:flex;align-items:center;margin-top:5px}.simpay-form-builder-fee-recovery ::-webkit-input-placeholder{color:#b7bec7}.simpay-form-builder-fee-recovery ::-moz-placeholder{color:#b7bec7;opacity:1}.simpay-form-builder-fee-recovery :-ms-input-placeholder{color:#b7bec7}.simpay-form-builder-fee-recovery>*{margin-right:8px}.simpay-form-builder-fee-percent-control{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;padding:6px 8px;box-shadow:0 0 0 rgba(0,0,0,0);transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;margin:0;padding:0;width:auto;display:inline-flex;align-items:center}@media(prefers-reduced-motion: reduce){.simpay-form-builder-fee-percent-control{transition-duration:0s;transition-delay:0s}}@media(min-width: 600px){.simpay-form-builder-fee-percent-control{font-size:13px;line-height:normal}}.simpay-form-builder-fee-percent-control:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid rgba(0,0,0,0)}.simpay-form-builder-fee-percent-control::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.simpay-form-builder-fee-percent-control::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.simpay-form-builder-fee-percent-control:-ms-input-placeholder{color:rgba(30,30,30,.62)}.simpay-form-builder-fee-percent-control:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid rgba(0,0,0,0)}.simpay-form-builder-fee-percent-control input[type=number]{border:0;box-shadow:none;background:none;border-radius:0;width:75px}.simpay-form-builder-fee-percent-control input[type=number]:focus{border:0;box-shadow:none;outline:0}.simpay-form-builder-fee-percent-control+label{margin-left:8px}.simpay-form-builder-fee-percent-control__suffix{color:#757575;font-size:16px;line-height:normal;padding-right:8px}@media(min-width: 600px){.simpay-form-builder-fee-percent-control__suffix{font-size:13px;line-height:normal}}body.site-health #wpbody-content,body.post-type-simple-pay #wpbody-content{padding-bottom:200px}#wpfooter .simpay-footer-promotion{text-align:center;font-weight:400;font-size:13px;line-height:16px;color:#787c82;padding:20px 0 30px 0;margin-bottom:20px}#wpfooter .simpay-footer-promotion p{font-weight:600}#wpfooter .simpay-footer-promotion-links,#wpfooter .simpay-footer-promotion-social{display:flex;justify-content:center;align-items:center}#wpfooter .simpay-footer-promotion-links{margin:9px 0 0}#wpfooter .simpay-footer-promotion-links span{color:#c3c4c7;padding:0 7px}#wpfooter .simpay-footer-promotion-social{margin:10px 0 0 0;gap:10px}#wpfooter .simpay-footer-promotion-social li{margin-bottom:0}#wpfooter .simpay-footer-promotion-social li:hover path{fill:#50575e}#wpfooter .simpay-footer-promotion-social a{display:block;height:16px} +.simpay-settings-subsections{display:flex;align-items:center;box-shadow:inset 0 -1px 0 0 #ccc}.simpay-settings-subsections__subsection{font-weight:500;text-decoration:none;padding:15px;display:flex;align-items:center}.simpay-settings-subsections__subsection .dashicons{width:18px;height:18px;font-size:18px;margin-right:4px}.simpay-settings-subsections__subsection.is-active{box-shadow:inset 0 -4px 0 0 currentColor;position:relative;z-index:1}.simpay-settings-subsections__subsection:not(.is-active){color:#23282d}.simpay-settings form>h2:not(.nav-tab-wrapper){clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px}.simpay-settings .form-table td fieldset+p,.simpay-settings .form-table td label+p,.simpay-settings .form-table td select+p,.simpay-settings .form-table td input+p{color:#666;font-style:italic}.simpay-settings .simpay-settings-subsections__subsection{display:flex;align-items:center}.simpay-settings .simpay-settings-subsections__subsection .simpay-settings-bubble{margin-left:5px}.simpay-settings .simpay-settings-visual-toggles{margin:30px 0 0;display:flex}.simpay-settings .simpay-settings-visual-toggles input[type=radio]{display:none}.simpay-settings .simpay-settings-visual-toggles__toggle{-webkit-user-select:none;-moz-user-select:none;user-select:none;min-width:180px;margin:0 30px 0 0 !important;position:relative;display:block;background-color:#fff;border-radius:4px;border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04)}.simpay-settings .simpay-settings-visual-toggles__toggle:hover{border:1px solid #999;box-shadow:0 1px 2px rgba(0,0,0,.1)}.simpay-settings .simpay-settings-visual-toggles input[type=radio]:checked+.simpay-settings-visual-toggles__toggle{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.simpay-settings .simpay-settings-visual-toggles__toggle-recommended,.simpay-settings .simpay-settings-visual-toggles__toggle-not-recommended{text-align:center;font-size:12px;text-transform:uppercase;font-weight:bold;margin:0;padding:5px 0;display:block;border-top-right-radius:4px;border-top-left-radius:4px}.simpay-settings .simpay-settings-visual-toggles__toggle-recommended{color:#0f8569;background:#f4f9f7}.simpay-settings .simpay-settings-visual-toggles__toggle-not-recommended{color:#b91c1b;background:#fef2f2}.simpay-settings .simpay-settings-visual-toggles__toggle-icon{margin:20px auto 15px;padding:0 15px;display:block}.simpay-settings .simpay-settings-visual-toggles__toggle-label{line-height:1.5;text-align:center;font-size:16px;font-weight:500;margin:15px;display:block}.simpay-settings .simpay-settings-visual-toggles__toggle-label small{color:#666;font-weight:normal;font-size:13px;line-height:1;display:block;margin:4px 0}.simpay-settings .simpay-settings-visual-toggles.simpay-settings-captcha-type .simpay-settings-visual-toggles__toggle{min-height:160px}.simpay-settings .simpay-settings-visual-toggles.simpay-settings-captcha-type .simpay-settings-visual-toggles__toggle-icon{width:80px;height:80px}.simpay-settings .simpay-settings-visual-toggles.simpay-settings-captcha-type input[type=radio].simpay-settings-captcha-type--is-recommended:checked+.simpay-settings-visual-toggles__toggle{border-color:#0f8569;box-shadow:0 0 0 1px #0f8569}.simpay-settings .simpay-settings-visual-toggles.simpay-settings-captcha-type input[type=radio].simpay-settings-captcha-type--is-not-recommended:checked+.simpay-settings-visual-toggles__toggle{border-color:#b91c1b;box-shadow:0 0 0 1px #b91c1b}.simpay-settings .simpay-settings-visual-toggles.simpay-settings-captcha-type label[for=simpay-settings-captcha-type-cloudflare-turnstile] .simpay-settings-visual-toggles__toggle-icon{width:120px}.simpay-settings-general-recaptcha-no_captcha_warning th,.simpay-settings-general-recaptcha-no_captcha_warning td,.simpay-settings-hcaptcha_secret_key th,.simpay-settings-hcaptcha_secret_key td,.simpay-settings-cloudflare_turnstile_secret_key th,.simpay-settings-cloudflare_turnstile_secret_key td,.simpay-settings-recaptcha_score_threshold th,.simpay-settings-recaptcha_score_threshold td{padding-bottom:50px !important}.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-summary-report,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-payment-confirmation,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-payment-notification,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-upcoming-invoice,.simpay-settings .simpay-settings-subsections__subsection.simpay-settings-subsection-invoice-confirmation{display:none}.simpay-settings .simpay-settings-subsection-emails-tools{margin-left:auto}.simpay-admin-charts-period-over-period{position:relative;padding-bottom:12px}.simpay-admin-charts-period-over-period *{box-sizing:border-box}.simpay-admin-charts-period-over-period__tooltip{position:absolute;background:#fff;border:1px solid #c3c3c3;box-shadow:0 2px 6px rgba(0,0,0,.05);border-radius:2px;padding:10px 14px;display:flex;flex-direction:column;z-Index:10000;min-width:175px}.simpay-admin-charts-period-over-period__tooltip-data{white-space:nowrap;margin-bottom:8px;display:grid;grid-template-columns:1fr auto;grid-auto-rows:auto;-moz-column-gap:16px;column-gap:16px}.simpay-admin-charts-period-over-period__tooltip-data:last-child{margin-bottom:0}.simpay-admin-charts-period-over-period__tooltip-data[data-dataset="1"]{opacity:.65}.simpay-admin-charts-period-over-period__tooltip-data em{font-style:normal;text-align:right}.simpay-admin-charts-period-over-period__tooltip-delta{font-size:12px;margin:0 -14px -10px;padding:8px 14px;border-top:1px solid #eee;background:#fdfdfd;border-radius:2px;display:flex;align-items:center;justify-content:center}.simpay-admin-charts-period-over-period__tooltip-delta .simpay-admin-charts-badge{margin-right:4px}.simpay-admin-charts-period-over-period__tooltip-delta strong.is-positive{color:#006908}.simpay-admin-charts-period-over-period__tooltip-delta strong.is-negative{color:#b3093c}.simpay-admin-charts-badge{color:#2f2f2f;font-size:12px;font-weight:500;font-style:normal;line-height:1;padding:3px 6px;display:inline-flex;align-items:center;background:#f0f0f0;border-radius:100px}.simpay-admin-charts-badge.is-positive{color:#006908;background-color:#d7f7c2}.simpay-admin-charts-badge.is-negative{color:#b3093c;background-color:#ffe7f2}.simpay-admin-charts-badge__icon{width:15px;height:15px}.simpay-admin-charts-no-data{position:absolute;top:0;left:0;display:flex;justify-content:center;align-items:center;background:rgba(255,255,255,.5);z-index:2}.simpay-admin-charts-no-data>div{text-align:center;padding:24px;background:#fff;border:1px solid #c3c3c3;box-shadow:0 2px 6px rgba(0,0,0,.1);border-radius:2px;max-width:60%}.simpay-admin-charts-no-data strong{font-size:15px;margin-bottom:8px;display:block}.button.button-large.simpay-button-large{font-size:14px;line-height:30px;padding:4px 12px}.simpay-copy-hidden-input{clip:rect(1px, 1px, 1px, 1px);-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}.simple-pay_page_simpay_settings .simpay-settings-upgrade,.post-type-simple-pay .simpay-settings-upgrade{margin-top:20px;padding:1px;position:relative;background:#fff;border-radius:4px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2),0 5px 10px rgba(0,0,0,.1);max-width:677px}.simple-pay_page_simpay_settings .simpay-settings-upgrade__inner,.post-type-simple-pay .simpay-settings-upgrade__inner{text-align:center;margin:0;padding:30px}.simple-pay_page_simpay_settings .simpay-settings-upgrade h3,.post-type-simple-pay .simpay-settings-upgrade h3{line-height:1.5;font-size:22px;margin:0 0 1.5rem}.simple-pay_page_simpay_settings .simpay-settings-upgrade ul,.post-type-simple-pay .simpay-settings-upgrade ul{margin:1.5rem 0 calc(1.5rem - 6px);display:flex;flex-wrap:wrap;justify-content:center}@media screen and (min-width: 782px){.simple-pay_page_simpay_settings .simpay-settings-upgrade ul,.post-type-simple-pay .simpay-settings-upgrade ul{margin-left:4rem;margin-right:4rem}}.simple-pay_page_simpay_settings .simpay-settings-upgrade li,.post-type-simple-pay .simpay-settings-upgrade li{font-size:15px;margin:6px 0;width:100%}.simple-pay_page_simpay_settings .simpay-settings-upgrade li a,.post-type-simple-pay .simpay-settings-upgrade li a{color:#3c434a;text-decoration:none}.simple-pay_page_simpay_settings .simpay-settings-upgrade li a:hover,.post-type-simple-pay .simpay-settings-upgrade li a:hover{color:var(--wp-admin-theme-color);text-decoration:underline}@media screen and (min-width: 782px){.simple-pay_page_simpay_settings .simpay-settings-upgrade li,.post-type-simple-pay .simpay-settings-upgrade li{text-align:left;width:50%}}.simple-pay_page_simpay_settings .simpay-settings-upgrade .button.button-large,.post-type-simple-pay .simpay-settings-upgrade .button.button-large{font-size:17px;line-height:30px;padding:10px 20px}.simple-pay_page_simpay_settings .simpay-settings-upgrade small,.post-type-simple-pay .simpay-settings-upgrade small{color:#666;margin:15px 0 0;display:block}.simple-pay_page_simpay_settings .simpay-settings-upgrade .dashicons-yes,.post-type-simple-pay .simpay-settings-upgrade .dashicons-yes{color:#428bca}.simple-pay_page_simpay_settings .simpay-settings-upgrade .button-link,.post-type-simple-pay .simpay-settings-upgrade .button-link{position:absolute;top:0;right:0;font-size:20px;color:#666;font-weight:bold;text-decoration:none;margin-left:5px;padding:6px 10px;z-index:2}.simple-pay_page_simpay_settings .simpay-settings-upgrade .button-link:hover,.simple-pay_page_simpay_settings .simpay-settings-upgrade .button-link:active,.simple-pay_page_simpay_settings .simpay-settings-upgrade .button-link:focus,.post-type-simple-pay .simpay-settings-upgrade .button-link:hover,.post-type-simple-pay .simpay-settings-upgrade .button-link:active,.post-type-simple-pay .simpay-settings-upgrade .button-link:focus{color:#666;text-decoration:none}.simple-pay_page_simpay_settings .simpay-settings-upgrade .simpay-upgrade-btn-subtext,.post-type-simple-pay .simpay-settings-upgrade .simpay-upgrade-btn-subtext{text-align:center;margin:0;padding:30px 20px 20px;background-color:#fcf9e8;border:1px solid #edeac9;border-width:1px 0 0;position:relative;border-radius:0;border-bottom-left-radius:4px;border-bottom-right-radius:4px}@media screen and (min-width: 782px){.simple-pay_page_simpay_settings .simpay-settings-upgrade .simpay-upgrade-btn-subtext,.post-type-simple-pay .simpay-settings-upgrade .simpay-upgrade-btn-subtext{padding-left:4rem;padding-right:4rem}}.simple-pay_page_simpay_settings .simpay-settings-upgrade .simpay-upgrade-btn-subtext svg,.post-type-simple-pay .simpay-settings-upgrade .simpay-upgrade-btn-subtext svg{background:#00a32a;fill:#fff;border-radius:50%;border:4px solid #fff;box-shadow:0 0 0 1px #edeac9;width:28px;height:28px;position:absolute;top:-18px;left:50%;margin-left:-18px}.simple-pay_page_simpay_settings .simpay-settings-upgrade .simpay-upgrade-btn-subtext u,.post-type-simple-pay .simpay-settings-upgrade .simpay-upgrade-btn-subtext u{text-decoration:none;font-weight:bold;color:#00a32a}.simple-pay_page_simpay_settings .simpay-settings-upgrade .simpay-upgrade-btn-subtext a,.post-type-simple-pay .simpay-settings-upgrade .simpay-upgrade-btn-subtext a{font-weight:normal;display:inline-block}#simpay-payment-form-settings table{width:100%;border-collapse:collapse}#simpay-payment-form-settings ::-webkit-input-placeholder{color:#9ba1a9}#simpay-payment-form-settings ::-moz-placeholder{color:#9ba1a9;opacity:1}#simpay-payment-form-settings :-ms-input-placeholder{color:#9ba1a9}#simpay-payment-form-settings .inside{margin:0;padding:0}#simpay-payment-form-settings .simpay-panel-field .toolbar{margin-bottom:-4px}#simpay-payment-form-settings .simpay-panel-field .toolbar .simpay-field-select{margin:0 0 4px;width:auto;max-width:70%}#simpay-payment-form-settings .simpay-tabs{margin:0;padding:0;list-style:none;background:#fafafa;border-right:1px solid #ccd0d4;line-height:1em;position:relative;flex:0 0 25%}@media screen and (min-width: 1400px){#simpay-payment-form-settings .simpay-tabs{flex-basis:22%}}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-tabs{flex-basis:100%;flex-grow:1;border-right:0}}#simpay-payment-form-settings .simpay-tabs li{margin:0;padding:0}#simpay-payment-form-settings .simpay-tabs li:first-child{margin-top:12px}#simpay-payment-form-settings .simpay-tabs li:last-child{margin-bottom:20px}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-tabs li:last-child{margin-bottom:0}}#simpay-payment-form-settings .simpay-tabs li.active{margin-left:-1px;box-shadow:0 1px 1px rgba(0,0,0,.04);position:relative}#simpay-payment-form-settings .simpay-tabs li.active:focus:after{display:none}#simpay-payment-form-settings .simpay-tabs li.active:before,#simpay-payment-form-settings .simpay-tabs li.active:after{content:"";width:calc(100% + 1px);height:1px;background:#ccd0d4;position:absolute;top:0;left:0;right:0;z-index:2}#simpay-payment-form-settings .simpay-tabs li.active:after{top:auto;bottom:0}#simpay-payment-form-settings .simpay-tabs li.active a{font-weight:bold;background-color:#fff;position:relative;margin-right:-1px}#simpay-payment-form-settings .simpay-tabs li.active a:before{content:"";position:absolute;top:0;left:0;bottom:0;width:4px;height:100%;background:currentColor;z-index:3}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-tabs li.active a{margin-right:0}}#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item{display:flex;align-items:center;line-height:20px;margin:0;padding:8px 10px 8px 14px;text-decoration:none;transition:all .05s ease-in-out}#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item svg,#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item .dashicons{margin-right:6px}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item{padding:18px}}#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item:focus{outline:0;position:relative;z-index:3;box-shadow:inset 0 0 0 1px currentColor,0 0 0 1px currentColor}#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item[href="#purchase-restrictions-settings-panel"],#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item[href="#payment-page-settings-panel"]{margin-bottom:20px;position:relative}#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item[href="#purchase-restrictions-settings-panel"]:after,#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item[href="#payment-page-settings-panel"]:after{content:"";position:absolute;left:14px;right:14px;bottom:-10px;width:calc(100% - 28px);height:1px;background:#eaeaea}#simpay-payment-form-settings .simpay-tabs li .simpay-tab-item span>span{color:#f18500;font-size:12px;font-weight:600;margin:0 0 0 5px;display:inline-block}#simpay-payment-form-settings .simpay-tabs li:not(.active) .simpay-tab-item{color:inherit}#simpay-payment-form-settings .simpay-panels-wrap{background:#fff;display:flex}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-panels-wrap{flex-direction:column}}#simpay-payment-form-settings .simpay-panels{flex:0 0 75%;display:flex}@media screen and (min-width: 1400px){#simpay-payment-form-settings .simpay-panels{flex-basis:78%}}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-panels{flex-basis:100%}}#simpay-payment-form-settings .simpay-panel,#simpay-payment-form-settings .simpay-panel-section{width:100%}#simpay-payment-form-settings .simpay-panel>table,#simpay-payment-form-settings .simpay-panel>table>tr,#simpay-payment-form-settings .simpay-panel>table>tbody,#simpay-payment-form-settings .simpay-panel>table>tbody>tr,#simpay-payment-form-settings .simpay-panel>table>thead,#simpay-payment-form-settings .simpay-panel>table>thead>tr{display:block;width:100%}#simpay-payment-form-settings .simpay-panel>table:last-child>tbody:last-child>tr:last-child>td{border-bottom:0}#simpay-payment-form-settings .simpay-panel-field--requires-upgrade{position:relative}#simpay-payment-form-settings .simpay-panel-field--requires-upgrade td>div{margin-right:80px}#simpay-payment-form-settings .simpay-panel-field--requires-upgrade td>div .button-small{position:absolute;top:calc(50% - 13px);right:18px}#simpay-payment-form-settings .simpay-panel-field,#simpay-payment-form-settings .simpay-panel-field>td,#simpay-payment-form-settings .simpay-panel-field>th{text-align:left;display:block}#simpay-payment-form-settings .simpay-panel-field>td,#simpay-payment-form-settings .simpay-panel-field>th{width:calc(100% - 36px);margin-left:18px;margin-right:18px}#simpay-payment-form-settings .simpay-panel-field th{font-weight:bold;padding-top:18px;padding-bottom:5px}#simpay-payment-form-settings .simpay-panel-field td{border-bottom:1px solid #ddd;padding-bottom:18px}#simpay-payment-form-settings .simpay-panel-field p.description{margin-top:4px}#simpay-payment-form-settings .simpay-panel-field p.description:last-of-type{margin-bottom:0}#simpay-payment-form-settings .simpay-panel-field .simpay-panel-field__nested{margin-top:18px}#simpay-payment-form-settings .simpay-panel-field .simpay-panel-field__nested label{font-weight:bold;display:block;margin-bottom:4px}#simpay-payment-form-settings .simpay-panel-field .simpay-field-select,#simpay-payment-form-settings .simpay-panel-field .simpay-field-text{min-width:75%;max-width:100%}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-panel-field .simpay-field-select,#simpay-payment-form-settings .simpay-panel-field .simpay-field-text{min-width:0;width:100%}}#simpay-payment-form-settings .simpay-panel-field .simpay-field-textarea{width:100%;max-width:100%}#simpay-payment-form-settings .simpay-panel-field .notice:last-of-type{margin-bottom:0}#simpay-payment-form-settings .simpay-panel-field .error,#simpay-payment-form-settings .simpay-panel-field .simpay-important{color:#a94442;font-weight:normal}#simpay-payment-form-settings .simpay-panel-field .simpay-image-preview-wrap{position:relative;margin-top:12px}#simpay-payment-form-settings .simpay-panel-field .simpay-image-preview-wrap .simpay-remove-image-preview{position:absolute;top:-15px;left:-15px;cursor:pointer;background-color:#fff}#simpay-payment-form-settings .simpay-panel-field .simpay-image-preview-wrap .simpay-remove-image-preview::before{font-size:22px;line-height:26px}#simpay-payment-form-settings .simpay-panel-field .simpay-image-preview-wrap .simpay-image-preview{max-height:128px;max-width:128px;border:1px solid #ddd}#simpay-payment-form-settings .simpay-panel .simpay-promo-under-box{background-color:#f4f4f4;border:1px solid #e5e5e5;padding:18px;margin-top:18px;position:relative}#simpay-payment-form-settings .simpay-panel .simpay-promo-under-box__dismiss{color:inherit;text-decoration:none;position:absolute;top:8px;right:8px}#simpay-payment-form-settings .simpay-panel .simpay-promo-under-box__dismiss .dashicons-dismiss{font-size:16px;width:16px;height:16px}#simpay-payment-form-settings .simpay-panel .simpay-promo-under-box h3{font-size:18px;font-weight:600;margin:0;padding:0}#simpay-payment-form-settings .simpay-panel .simpay-promo-under-box p{font-size:14px}#simpay-payment-form-settings .simpay-panel .simpay-promo-under-box p:last-child{margin-bottom:0}#simpay-payment-form-settings .simpay-metabox-content{margin-bottom:-1px;background-color:#f5f5f5;border:1px solid #c3c4c7;border-width:1px 0;box-shadow:0 1px 1px rgba(0,0,0,.04);position:relative}#simpay-payment-form-settings .simpay-show-if,#simpay-payment-form-settings .simpay-panel-hidden{display:none}#simpay-payment-form-settings .simpay-payment-methods{border:1px solid #ccd0d4;border-radius:4px;box-shadow:0 1px 1px rgba(0,0,0,.04)}#simpay-payment-form-settings .simpay-panel-field-payment-method{display:block;border-top:1px solid #ccd0d4;padding:7px;box-sizing:border-box}#simpay-payment-form-settings .simpay-panel-field-payment-method:first-child{border-top:0;border-top-left-radius:4px;border-top-right-radius:4px}#simpay-payment-form-settings .simpay-panel-field-payment-method__enable{display:flex;align-items:center}#simpay-payment-form-settings .simpay-panel-field-payment-method__enable input[type=checkbox]{margin-top:0;margin-right:8px}#simpay-payment-form-settings .simpay-panel-field-payment-method__help{text-decoration:none}#simpay-payment-form-settings .simpay-panel-field-payment-method__help .dashicons{font-size:18px;width:18px;height:18px}#simpay-payment-form-settings .simpay-panel-field-payment-method__restrictions,#simpay-payment-form-settings .simpay-panel-field-payment-method__restrictions-ach{margin-left:72px}#simpay-payment-form-settings .simpay-panel-field-payment-method__icon{border-radius:3px;overflow:hidden;margin:0 8px 0 5px;width:30px;height:30px;flex-shrink:0}#simpay-payment-form-settings .simpay-panel-field-payment-method__icon svg{width:30px;height:30px}#simpay-payment-form-settings .simpay-panel-field-payment-method__configure{display:flex;align-items:center;justify-content:center}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metaboxes:not(.is-empty),#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metaboxes:not(.is-empty){border:1px solid #ccd0d4;box-shadow:0 1px 1px rgba(0,0,0,.04);border-radius:4px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-handlediv,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-handlediv{display:none;float:right;width:36px;height:36px;margin:0;padding:0;border:0;background:none;cursor:pointer;display:block}#simpay-global-settings .simpay-metaboxes-wrapper .postbox.closed .simpay-handlediv .toggle-indicator:before,#simpay-form-settings .simpay-metaboxes-wrapper .postbox.closed .simpay-handlediv .toggle-indicator:before{content:""}#simpay-global-settings .simpay-metaboxes-wrapper .postbox .simpay-handlediv:focus,#simpay-form-settings .simpay-metaboxes-wrapper .postbox .simpay-handlediv:focus{outline:0}#simpay-global-settings .simpay-metaboxes-wrapper .postbox .simpay-handlediv:focus .toggle-indicator:before,#simpay-form-settings .simpay-metaboxes-wrapper .postbox .simpay-handlediv:focus .toggle-indicator:before{box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}#simpay-global-settings .simpay-metaboxes-wrapper .postbox .simpay-handlediv .toggle-indicator:before,#simpay-form-settings .simpay-metaboxes-wrapper .postbox .simpay-handlediv .toggle-indicator:before{margin-top:4px;width:20px;border-radius:50%;text-indent:-1px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox{background:#fff;border:1px solid #ccd0d4;margin:0 -1px -1px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .hndle,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .hndle{border:0}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox select,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox select{font-weight:400}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox:first-of-type,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox:first-of-type{margin-top:-1px;border-top-left-radius:4px;border-top-right-radius:4px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox:last-of-type,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox:last-of-type{margin-bottom:-1px;border-bottom-left-radius:4px;border-bottom-right-radius:4px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox:last-of-type .simpay-metabox-content,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox:last-of-type .simpay-metabox-content{border-bottom-left-radius:4px;border-bottom-right-radius:4px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2{cursor:pointer;display:flex;align-items:center;padding:10px 0 10px 12px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .simpay-field-type,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .simpay-field-type{font-size:90%;color:gray;font-weight:normal;text-decoration:none;margin-left:10px}@media screen and (max-width: 782px){#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .simpay-field-type,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .simpay-field-type{display:none}}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .dashicons-handle,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .dashicons-handle{cursor:move}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 strong,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 strong{font-size:95%;margin-left:8px;display:flex;align-items:center;flex-grow:1}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 svg,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 svg{border-radius:3px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 select,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 select{font-family:sans-serif;max-width:20%;margin:.25em .25em .25em 0}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2.fixed,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2.fixed{cursor:pointer !important}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .dashicons-menu,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox h2 .dashicons-menu{cursor:move}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions{padding:9px 18px;justify-content:space-between;display:flex;align-items:center}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions__field-id,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions__field-id{display:flex;align-items:center}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions__field-id input,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions__field-id input{margin:0 2px 0 5px;width:50px}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions__field-id a,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-metabox-content-actions__field-id a{text-decoration:none}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .button-link.simpay-remove-field-link,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .button-link.simpay-remove-field-link{color:#a00}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .button-link.simpay-remove-field-link:hover,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .button-link.simpay-remove-field-link:hover{color:#dc3232}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox table,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox table{border-spacing:0;width:100%}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox table.simpay-inner-table,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox table.simpay-inner-table{border:none;padding:0 1em}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox table tr td,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox table tr td{border-bottom-color:#ccd0d4}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-remove-plan,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-metabox .simpay-remove-plan{color:#a00}#simpay-global-settings .simpay-metaboxes-wrapper .simpay-custom-field-payment-button .dashicons-menu,#simpay-form-settings .simpay-metaboxes-wrapper .simpay-custom-field-payment-button .dashicons-menu{visibility:hidden}#simpay-global-settings .sortable-placeholder,#simpay-form-settings .sortable-placeholder{margin:5px;display:block;min-height:36px}#simpay-global-settings .chosen-container,#simpay-form-settings .chosen-container{min-width:20em;max-width:30em}#simpay-global-settings .simpay-field.simpay-small-text,#simpay-form-settings .simpay-field.simpay-small-text{width:7em}#simpay-global-settings .simpay-field.simpay-medium-text,#simpay-form-settings .simpay-field.simpay-medium-text{width:15em}#simpay-global-settings .simpay-field-radios ul,#simpay-form-settings .simpay-field-radios ul{margin:0}#simpay-global-settings .simpay-field-radios>i,#simpay-form-settings .simpay-field-radios>i{margin-left:5px;vertical-align:middle}#simpay-global-settings ul.simpay-field-radios-inline,#simpay-form-settings ul.simpay-field-radios-inline{margin:0 0 -10px}#simpay-global-settings ul.simpay-field-radios-inline li,#simpay-form-settings ul.simpay-field-radios-inline li{display:inline-block;margin:0 10px 10px 0}#simpay-global-settings ul.simpay-field-radios-inline li:last-child,#simpay-form-settings ul.simpay-field-radios-inline li:last-child{margin-right:0}#simpay-global-settings .simpay-currency-field,#simpay-form-settings .simpay-currency-field{display:flex;align-items:center}>#simpay-global-settings .simpay-currency-field:focus,>#simpay-form-settings .simpay-currency-field:focus{position:relative;z-index:5}#simpay-global-settings .simpay-currency-symbol,#simpay-form-settings .simpay-currency-symbol{margin:0;padding-left:8px;padding-right:8px;line-height:28px;font-size:14px}@media screen and (max-width: 782px){#simpay-global-settings .simpay-currency-symbol,#simpay-form-settings .simpay-currency-symbol{line-height:38px}}#simpay-global-settings .simpay-currency-symbol-left,#simpay-form-settings .simpay-currency-symbol-left{border-top-left-radius:4px;border-bottom-left-radius:4px}#simpay-global-settings .simpay-currency-symbol-right,#simpay-form-settings .simpay-currency-symbol-right{border-top-right-radius:4px;border-bottom-right-radius:4px}#simpay-global-settings div.simpay-currency-symbol,#simpay-form-settings div.simpay-currency-symbol{border-color:#7e8993;border-style:solid;background-color:#fff}#simpay-global-settings select.simpay-currency-symbol,#simpay-form-settings select.simpay-currency-symbol{padding-right:25px}#simpay-global-settings .simpay-currency-symbol-left,#simpay-form-settings .simpay-currency-symbol-left{border-width:1px 0 1px 1px}#simpay-global-settings .simpay-currency-symbol-left+.simpay-field-amount,#simpay-form-settings .simpay-currency-symbol-left+.simpay-field-amount{border-radius:0 4px 4px 0}#simpay-global-settings .simpay-currency-symbol-right,#simpay-form-settings .simpay-currency-symbol-right{border-width:1px 1px 1px 0}#simpay-global-settings .simpay-field-amount,#simpay-form-settings .simpay-field-amount{margin:0;padding-left:8px;padding-right:8px;font-size:14px;width:6em;position:relative;z-index:2;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px}#simpay-global-settings .simpay-error,#simpay-form-settings .simpay-error{color:red}#simpay-global-settings .simpay-docs-link-wrap,#simpay-form-settings .simpay-docs-link-wrap{position:absolute;right:0;bottom:0;color:#666;font-size:13px;font-style:italic;padding:15px 18px}#simpay-global-settings .simpay-docs-link-wrap a .dashicons-editor-help,#simpay-form-settings .simpay-docs-link-wrap a .dashicons-editor-help{color:#666;text-decoration:none;width:17px;height:17px;font-size:17px;padding-left:4px}#simpay-global-settings .simpay-docs-icon,#simpay-form-settings .simpay-docs-icon{color:#666}#simpay-global-settings .simpay-docs-icon,#simpay-global-settings .simpay-docs-icon .dashicons-editor-help,#simpay-form-settings .simpay-docs-icon,#simpay-form-settings .simpay-docs-icon .dashicons-editor-help{text-decoration:none;width:17px;height:17px;font-size:17px}.button.button-primary.simpay-upgrade-btn{background-color:#428bca;border:1px solid #428bca;color:#fff;display:inline-block}.button.button-primary.simpay-upgrade-btn:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #2d6ca2}.button.button-primary.simpay-upgrade-btn:hover{background-color:#037ad0;border:1px solid #428bca}.simpay-upgrade-btn-subtext{color:#3c434a;font-size:14px;line-height:1.5;text-align:center;margin:40px 0 0;padding:30px 35px 20px;background-color:#fcf9e8;border:3px solid #ebe29a;border-radius:4px;position:relative}.simpay-upgrade-btn-subtext svg{background:#00a32a;fill:#fff;border-radius:50%;border:3px solid #ebe29a;width:28px;height:28px;position:absolute;top:-14px;left:50%;margin-left:-14px}.simpay-upgrade-btn-subtext u{text-decoration:none;font-weight:bold;color:#00a32a}.simpay-upgrade-btn-subtext a{text-decoration:none;display:block;margin-top:6px;font-weight:bold}.post-type-simple-pay #post-body-content{display:none}.simpay-card{margin:0 0 20px;padding:30px;background:#fff;border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04)}.simpay-card,.simpay-card p{line-height:1.5;font-size:16px}.simpay-card h3{line-height:1.6;font-size:18px;margin:0 0 20px;color:#23282c}.simpay-card p{margin:0 0 20px}.simpay-card p:last-child,.simpay-card ul:last-child{margin-bottom:0}.simpay-card figure{float:right;margin:0 0 30px 30px;max-width:400px}.simpay-card figure iframe,.simpay-card figure img{max-width:100%}.simpay-card figure figcaption{text-align:center}@media screen and (max-width: 782px){.simpay-card figure{margin:0 0 30px;max-width:100%;float:none}}.simpay-doc-suggestions{width:100%;display:flex;flex-wrap:wrap;padding:0}.simpay-doc-suggestion{text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:0 1 33.333%;padding:30px;border-right:1px solid #c3c4c7;box-sizing:border-box}.simpay-doc-suggestion:nth-child(3n){border-right:0}@media screen and (max-width: 782px){.simpay-doc-suggestion{flex:0 1 100%;border-bottom:1px solid #c3c4c7;border-right:0}.simpay-doc-suggestion:last-child{border-bottom:0}}.simpay-doc-suggestion h3{font-size:20px;margin-bottom:10px}.simpay-doc-suggestion p{font-size:15px}.simpay-doc-suggestion .dashicons{font-size:40px;width:40px;height:40px;display:block;margin-bottom:10px}.simpay-doc-suggestion .button-large{font-size:16px}.simpay-addons{display:flex;flex-wrap:wrap;justify-content:space-between;margin:20px 0}.simpay-addon{background:#fff;border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04);margin-bottom:20px;display:flex;flex-direction:column;flex-basis:calc(33% - 10px);box-sizing:border-box}@media screen and (max-width: 782px){.simpay-addon{flex-basis:100%}}.simpay-addon img{float:left;max-width:75px}.simpay-addon h5{margin:0 0 10px 100px;font-size:16px}.simpay-addon__details{padding:20px;flex:1 0 auto}.simpay-addon__actions{display:flex;align-items:center;justify-content:space-between;flex:0 1 auto;background-color:#f7f7f7;border-top:1px solid #ddd;margin-top:auto;padding:20px;position:relative}.simpay-addon__actions .msg{text-align:center;justify-content:center;display:flex;align-items:center;position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;background-color:#f7f7f7;z-index:3}.simpay-addon .error,.simpay-addon .status-label.status-installed{color:#d63638}.simpay-addon .success,.simpay-addon .status-label.status-active{color:#00a32a}.simpay-addon .addon-desc{margin:0 0 0 100px}.form-table td .simpay-stripe-connect-help{margin:15px 0;display:flex;align-items:center}.form-table td .simpay-stripe-connect-help .dashicons{margin-right:4px}.simpay-currency-field{display:flex;align-items:center}>.simpay-currency-field:focus{position:relative;z-index:5}.simpay-currency-symbol{margin:0;padding-left:8px;padding-right:8px;line-height:28px;font-size:14px}@media screen and (max-width: 782px){.simpay-currency-symbol{line-height:38px}}.simpay-currency-symbol-left{border-top-left-radius:4px;border-bottom-left-radius:4px}.simpay-currency-symbol-right{border-top-right-radius:4px;border-bottom-right-radius:4px}div.simpay-currency-symbol{border-color:#7e8993;border-style:solid;background-color:#fff}select.simpay-currency-symbol{padding-right:25px}.simpay-currency-symbol-left{border-width:1px 0 1px 1px}.simpay-currency-symbol-left+.simpay-field-amount{border-radius:0 4px 4px 0}.simpay-currency-symbol-right{border-width:1px 1px 1px 0}.simpay-field-amount{margin:0;padding-left:8px;padding-right:8px;font-size:14px;width:6em;position:relative;z-index:2;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.simpay-template-explorer-open .show-settings{display:none !important}.simpay-branding-bar{margin:0 -20px;padding:14px 22px;background:#fff;border-bottom:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04);width:calc(100% + 20px);display:flex;justify-content:space-between;box-sizing:border-box}.site-health .simpay-branding-bar{display:none}.simpay-branding-bar__title{display:flex;align-items:center;margin:8px 0}.simpay-branding-bar__logo{width:200px}.simpay-branding-bar__divider{color:#dadbdf;font-size:23px;font-weight:400;margin:0 15px}.simpay-branding-bar__actions{display:flex;align-items:center}.simpay-branding-bar__actions>div{margin-left:10px;min-width:40px}.simpay-branding-bar__actions-button{color:#000;cursor:pointer;padding:10px;width:40px;height:40px;background-color:#f3f4f5;border-radius:50%;border:0;box-shadow:none;position:relative;transition:background-color .2s ease;box-sizing:border-box;display:block}.simpay-branding-bar__actions-button:hover{background-color:#e5e5e5}.simpay-branding-bar__actions-button:active,.simpay-branding-bar__actions-button:focus{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.simpay-branding-bar__actions-button-count{font-weight:600;font-size:10px;line-height:16px;color:#fff;margin:0;background-color:#df2a4a;border-radius:100%;width:16px;height:16px;position:absolute;top:-8px;left:50%;margin-left:-8px}.simpay-branding-bar .wp-heading-inline{font-size:23px;font-weight:400;margin:0}.simpay-branding-bar .page-title-action{font-weight:600;font-size:13px;line-height:normal;cursor:pointer;text-shadow:none;text-decoration:none;margin-left:10px;padding:4px 8px;border:1px solid currentColor;border-radius:2px;background:#f6f7f7}.simpay-landing-zone{text-align:center;max-width:700px;margin:40px auto}.simpay-landing-zone__title{font-size:26px;font-weight:600;margin:0 0 1.5rem;padding:0}.simpay-landing-zone__subtitle{font-size:17px;color:#666;margin:.25rem 0}.simpay-landing-zone__subtitle strong{color:#444}.simpay-landing-zone section{margin:2rem 0}.simpay-landing-zone__empty-state-graphic img{width:425px}.simpay-landing-zone__screenshot>*{vertical-align:middle}.simpay-landing-zone__screenshot-img{display:inline-block;position:relative;width:315px;padding:5px;background-color:#fff;box-shadow:0px 2px 5px 0px rgba(0,0,0,.05);border-radius:3px}.simpay-landing-zone__screenshot-img img{max-width:100%;display:block}.simpay-landing-zone__screenshot-img .hover{position:absolute;opacity:0;height:calc(100% - 10px);width:calc(100% - 10px);top:0;left:0;border:5px solid #fff;background-color:rgba(0,0,0,.15);background-image:url(data:image/svg+xml;base64,PHN2ZyBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjojZmZmZmZmMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCIgaGVpZ2h0PSIxMDAiPjxwYXRoIGQ9Ik01MCAwYzI3LjYxNCAwIDUwIDIyLjM4NiA1MCA1MHMtMjIuMzg2IDUwLTUwIDUwUzAgNzcuNjE0IDAgNTAgMjIuMzg2IDAgNTAgMHoiIGZpbGw9IiMxNjg1YjciLz48cGF0aCBkPSJNNzMuMDIzIDY3LjA2N2wtOS4zNDQtOS4zNDRhMi4yNDcgMi4yNDcgMCAwMC0xLjU5My0uNjU2aC0xLjUyOGExOS4zOTkgMTkuMzk5IDAgMDA0LjEyNC0xMS45OTZjMC0xMC43Ny04LjcyNS0xOS40OTUtMTkuNDk0LTE5LjQ5NS0xMC43NjggMC0xOS40OTQgOC43MjYtMTkuNDk0IDE5LjQ5NSAwIDEwLjc2OCA4LjcyNiAxOS40OTMgMTkuNDk0IDE5LjQ5M2ExOS40IDE5LjQgMCAwMDExLjk5Ny00LjEyM3YxLjUyN2MwIC42LjIzNCAxLjE3Mi42NTUgMS41OTRsOS4zNDQgOS4zNDRhMi4yNCAyLjI0IDAgMDAzLjE3OCAwbDIuNjUyLTIuNjUzYTIuMjYgMi4yNiAwIDAwLjAxLTMuMTg2em0tMjcuODM1LTEwYy02LjYyNiAwLTExLjk5Ni01LjM2MS0xMS45OTYtMTEuOTk2IDAtNi42MjcgNS4zNi0xMS45OTcgMTEuOTk2LTExLjk5NyA2LjYyNiAwIDExLjk5NyA1LjM2MSAxMS45OTcgMTEuOTk3IDAgNi42MjYtNS4zNjEgMTEuOTk2LTExLjk5NyAxMS45OTZ6IiBmaWxsPSIjZmZmIi8+PC9zdmc+);background-repeat:no-repeat;background-position:center;background-size:50px;transition:all .3s}.simpay-landing-zone__screenshot-img:hover .hover{opacity:1;transition:all .3s}.simpay-landing-zone__screenshot ul{text-align:left;display:inline-block;margin:0 0 0 30px;list-style-type:none;max-width:calc(100% - 350px)}@media screen and (max-width: 782px){.simpay-landing-zone__screenshot ul{text-align:center;margin:30px auto;max-width:100%;display:block}}.simpay-landing-zone__screenshot li{margin:16px 0;padding:0;font-size:15px;color:#777;position:relative}.simpay-landing-zone__screenshot li:before{content:"";background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjc3NjIgNi40NTYwNUw4LjcyMDMyIDEuNDAwMDVDOC41NzU5OSAxLjI1NTcyIDguMzgzNjQgMS4xNzY1IDguMTc4NTMgMS4xNzY1QzcuOTczMiAxLjE3NjUgNy43ODA5NiAxLjI1NTg0IDcuNjM2NjQgMS40MDAwNUw3LjE3NzYgMS44NTkyQzcuMDMzMzkgMi4wMDMyOSA2Ljk1Mzk1IDIuMTk1NzYgNi45NTM5NSAyLjQwMDk4QzYuOTUzOTUgMi42MDYwOCA3LjAzMzM5IDIuODA1MDQgNy4xNzc2IDIuOTQ5MTRMMTAuMTI3MSA1LjkwNTE2SDAuNzU2MzM0QzAuMzMzODM0IDUuOTA1MTYgMCA2LjIzNTkyIDAgNi42NTg1NFY3LjMwNzY1QzAgNy43MzAyNyAwLjMzMzgzNCA4LjA5NDM4IDAuNzU2MzM0IDguMDk0MzhIMTAuMTYwNkw3LjE3NzcyIDExLjA2NjlDNy4wMzM1MSAxMS4yMTEyIDYuOTU0MDYgMTEuMzk4NSA2Ljk1NDA2IDExLjYwMzdDNi45NTQwNiAxMS44MDg3IDcuMDMzNTEgMTEuOTk4NiA3LjE3NzcyIDEyLjE0MjhMNy42MzY3NSAxMi42MDA1QzcuNzgxMDcgMTIuNzQ0OCA3Ljk3MzMyIDEyLjgyMzUgOC4xNzg2NSAxMi44MjM1QzguMzgzNzUgMTIuODIzNSA4LjU3NjExIDEyLjc0MzggOC43MjA0MyAxMi41OTk1TDEzLjc3NjMgNy41NDM2QzEzLjkyMSA3LjM5ODgyIDE0LjAwMDUgNy4yMDU1NiAxNCA3LjAwMDExQzE0LjAwMDQgNi43OTM5OCAxMy45MjEgNi42MDA2IDEzLjc3NjIgNi40NTYwNVY2LjQ1NjA1WiIgZmlsbD0iIzQyOEJDQSIvPgo8L3N2Zz4K);background-position:center;background-repeat:no-repeat;background-size:14px;width:14px;height:14px;display:inline-block;margin:-3px 5px 0 0;vertical-align:middle}.simpay-landing-zone .button.button-large{font-size:17px;line-height:30px;padding:10px 20px}.simpay-landing-zone__purchased{display:block;margin:15px 0 0}.simpay-upgrade-modal,.simpay-upgrade-upe-modal{padding:0 !important}.simpay-upgrade-modal *,.simpay-upgrade-upe-modal *{box-sizing:border-box}.simpay-upgrade-modal__content,.simpay-upgrade-upe-modal__content{text-align:center;display:flex;flex-direction:column;align-items:center;padding:16px 32px 32px}.simpay-upgrade-modal__content>.dashicons,.simpay-upgrade-upe-modal__content>.dashicons{color:#333;font-size:48px;width:48px;height:48px}.simpay-upgrade-modal__title,.simpay-upgrade-upe-modal__title{font-size:22px;line-height:1.5;display:block;margin:12px 0 0}.simpay-upgrade-modal__description,.simpay-upgrade-upe-modal__description{color:#777;font-size:16px;margin:16px 0 24px}.simpay-upgrade-modal__description strong,.simpay-upgrade-upe-modal__description strong{color:#333}.simpay-upgrade-modal__discount,.simpay-upgrade-upe-modal__discount{font-size:15px;text-align:center;margin:32px -32px -32px;padding:24px 40px;background-color:#fcf9e8;position:relative}.simpay-upgrade-modal__discount svg,.simpay-upgrade-upe-modal__discount svg{background:#00a32a;fill:#fff;border-radius:50%;border:4px solid #fff;width:32px;height:32px;position:absolute;top:-16px;left:50%;margin-left:-16px}.simpay-upgrade-modal__discount u,.simpay-upgrade-upe-modal__discount u{text-decoration:none;font-weight:bold;color:#00a32a}.simpay-upgrade-modal .button-large,.simpay-upgrade-upe-modal .button-large{font-size:16px;font-weight:bold;margin:0 0 15px;padding:8px 30px !important;height:auto}.simpay-teaser-float{margin:50px;position:relative}.simpay-teaser-float__card{text-align:center;padding:30px;background:#fff;border-radius:4px;box-shadow:0 0 30px 15px rgba(0,0,0,.18);position:relative;z-index:2}#poststuff .simpay-teaser-float h2,.simpay-teaser-float h2{font-size:24px;font-weight:600;margin:0;padding:0}.simpay-teaser-float p{font-size:15px;line-height:1.35;color:#666}.simpay-teaser-float p strong{color:#444}.simpay-teaser-float ul{text-align:left;display:inline-block;margin:-10px 0 20px;list-style-type:none}.simpay-teaser-float li{margin:16px 0;padding:0 0 0 24px;font-size:15px;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjc3NjIgNi40NTYwNUw4LjcyMDMyIDEuNDAwMDVDOC41NzU5OSAxLjI1NTcyIDguMzgzNjQgMS4xNzY1IDguMTc4NTMgMS4xNzY1QzcuOTczMiAxLjE3NjUgNy43ODA5NiAxLjI1NTg0IDcuNjM2NjQgMS40MDAwNUw3LjE3NzYgMS44NTkyQzcuMDMzMzkgMi4wMDMyOSA2Ljk1Mzk1IDIuMTk1NzYgNi45NTM5NSAyLjQwMDk4QzYuOTUzOTUgMi42MDYwOCA3LjAzMzM5IDIuODA1MDQgNy4xNzc2IDIuOTQ5MTRMMTAuMTI3MSA1LjkwNTE2SDAuNzU2MzM0QzAuMzMzODM0IDUuOTA1MTYgMCA2LjIzNTkyIDAgNi42NTg1NFY3LjMwNzY1QzAgNy43MzAyNyAwLjMzMzgzNCA4LjA5NDM4IDAuNzU2MzM0IDguMDk0MzhIMTAuMTYwNkw3LjE3NzcyIDExLjA2NjlDNy4wMzM1MSAxMS4yMTEyIDYuOTU0MDYgMTEuMzk4NSA2Ljk1NDA2IDExLjYwMzdDNi45NTQwNiAxMS44MDg3IDcuMDMzNTEgMTEuOTk4NiA3LjE3NzcyIDEyLjE0MjhMNy42MzY3NSAxMi42MDA1QzcuNzgxMDcgMTIuNzQ0OCA3Ljk3MzMyIDEyLjgyMzUgOC4xNzg2NSAxMi44MjM1QzguMzgzNzUgMTIuODIzNSA4LjU3NjExIDEyLjc0MzggOC43MjA0MyAxMi41OTk1TDEzLjc3NjMgNy41NDM2QzEzLjkyMSA3LjM5ODgyIDE0LjAwMDUgNy4yMDU1NiAxNCA3LjAwMDExQzE0LjAwMDQgNi43OTM5OCAxMy45MjEgNi42MDA2IDEzLjc3NjIgNi40NTYwNVY2LjQ1NjA1WiIgZmlsbD0iIzQyOEJDQSIvPgo8L3N2Zz4K);background-position:left 3px;background-repeat:no-repeat;background-size:14px;color:#777}.simpay-teaser-float .button.button-large{font-size:17px;line-height:30px;padding:10px 20px}.simpay-teaser-float .simpay-notice-dismiss{position:absolute;top:0;right:0;font-size:20px;color:#666;font-weight:bold;text-decoration:none;margin-left:5px;padding:6px 10px;z-index:2}.simpay-teaser-float .simpay-notice-dismiss:hover,.simpay-teaser-float .simpay-notice-dismiss:active,.simpay-teaser-float .simpay-notice-dismiss:focus{color:#666;text-decoration:none}.simpay-teaser-float:after,.simpay-teaser-float:before{opacity:.75;z-index:0;content:"";position:absolute;left:-30px;right:-30px;top:-35px;width:calc(100% + 60px);height:170px;background-image:linear-gradient(#ddd, #ddd),linear-gradient(#eee, #eee),linear-gradient(#ddd, #ddd),linear-gradient(#eee, #eee);background-repeat:no-repeat;background-size:100% 20px,100% 40px,100% 20px,100% 40px;background-position:0 0,0 30px,0 100px,0 130px}.simpay-teaser-float:before{top:170px}.simpay-teaser-float .simpay-upgrade-btn-subtext{margin:24px -30px -30px;padding:32px 40px;border-bottom-left-radius:2px;border-bottom-right-radius:2px;border:0}.simpay-teaser-float .simpay-upgrade-btn-subtext svg{border-color:#fff}.simpay-teaser-float--inline{margin:40px 30px 30px}.simpay-teaser-float--inline .simpay-teaser-float__card{padding:30px;box-shadow:0 0 12px 6px rgba(0,0,0,.16)}#poststuff .simpay-teaser-float--inline h2,.simpay-teaser-float--inline h2{font-size:20px}.simpay-teaser-float--inline p{font-size:15px;margin:.75rem 0}.simpay-teaser-float--inline .button.button-large{font-size:15px;line-height:24px;margin:1rem 0;padding:8px 14px;display:inline-block}.simpay-teaser-float--inline:before,.simpay-teaser-float--inline:after{opacity:.6}.simpay-teaser-float--inline:before{display:none}.simpay-teaser-float--inline:after{top:15px}.simpay-form-settings-notice{font-weight:normal;color:#1d2327;position:relative;margin:18px 18px 0;padding:14px;border-radius:4px;background:#f5f5ff}.simpay-form-settings-notice a{color:#635aff}.simpay-form-settings-notice .simpay-external-link .dashicons-external{margin:1px 0 0 2px}.simpay-form-settings-notice strong{font-size:14px}.simpay-form-settings-notice p{margin:5px 0 0 23px}.simpay-form-settings-notice .simpay-notice-dismiss{font-size:20px;color:#b0b0f0;font-weight:bold;line-height:1;position:absolute;top:0;right:5px;text-decoration:none;padding:0 5px;z-index:2}.simpay-form-settings-notice .simpay-notice-dismiss:hover,.simpay-form-settings-notice .simpay-notice-dismiss:active,.simpay-form-settings-notice .simpay-notice-dismiss:focus{color:#9191ef;text-decoration:none;background:none}.simpay-settings .simpay-form-settings-notice{border:2px solid #645aff;box-shadow:0 1px 1px rgba(0,0,0,.04)}.post-type-simple-pay .lity{z-index:999999999;padding:20px}.post-type-simple-pay .lity-close{margin:10px}.post-type-simple-pay .lity-content{max-width:80vw;max-height:80vh}.post-type-simple-pay .lity-content img{max-height:80vh !important;max-width:80vw !important}#wpsp-api-keys-row-hide{display:none}.post-type-simple-pay #post-preview:not(.simpay-preview-button){display:none}.simpay-license-field-wrapper{margin:20px 0}#simpay-settings-license-key-license-key{margin:0}#simpay-settings-license-key-license-key[readonly]{background:#fff}.simpay-license-message__loading,.simpay-license-field{display:flex;align-items:center}.wp-core-ui .button.simpay-license-button.button-primary,.wp-core-ui .button.simpay-license-button.button-secondary{font-size:1rem;line-height:1;margin:0 8px;padding:13px}.simpay-license-message{font-size:15px;margin-top:8px}.simpay-license-message--valid{color:#15803d}.simpay-license-message--invalid{color:#b91c1c}.simpay-recaptcha-payment-form-feedback .dashicons{margin-top:-1px;display:inline-block}.simpay-recaptcha-payment-form-feedback .dashicons-update-alt{animation:rotation 2s infinite linear}.simpay-form-builder-inset-settings{margin:3px 0 0 24px}fieldset.simpay-form-builder-inset-settings>*:not(legend){margin:5px 0 8px}.simpay-form-builder-inset-settings>*:last-child{margin-bottom:0}.simpay-form-builder-inventory-control{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;padding:6px 8px;box-shadow:0 0 0 rgba(0,0,0,0);transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;margin:0;padding:0;width:auto;display:inline-flex;align-items:center}@media(prefers-reduced-motion: reduce){.simpay-form-builder-inventory-control{transition-duration:0s;transition-delay:0s}}@media(min-width: 600px){.simpay-form-builder-inventory-control{font-size:13px;line-height:normal}}.simpay-form-builder-inventory-control:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid rgba(0,0,0,0)}.simpay-form-builder-inventory-control::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.simpay-form-builder-inventory-control::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.simpay-form-builder-inventory-control:-ms-input-placeholder{color:rgba(30,30,30,.62)}.simpay-form-builder-inventory-control:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid rgba(0,0,0,0)}.simpay-form-builder-inventory-control input[type=number]{border:0;box-shadow:none;background:none;border-radius:0;width:75px}.simpay-form-builder-inventory-control input[type=number]:focus{border:0;box-shadow:none;outline:0}.simpay-form-builder-inventory-control+label{margin-left:8px}.simpay-form-builder-inventory-control__initial{color:#757575;font-size:16px;line-height:normal;padding-right:8px}@media(min-width: 600px){.simpay-form-builder-inventory-control__initial{font-size:13px;line-height:normal}}.simpay-form-builder-inventory-control__initial:before{content:"/";display:inline-block;vertical-align:top;margin-top:-1px}.simpay-form-builder-purchase-restrictions__restriction-item{display:flex;align-items:center;margin-top:8px;margin-bottom:8px}.simpay-form-builder-purchase-restrictions__restriction-item label{margin-left:8px}.simpay-form-builder-purchase-restrictions__restriction-item-datetime{display:flex;align-items:center}.simpay-form-builder-purchase-restrictions__restriction-item-datetime>*{margin-right:10px}.simpay-form-builder-purchase-restrictions__restriction-item-datetime span{color:#757575}.simpay-form-builder-fee-recovery__amounts{display:flex;align-items:center;margin-top:5px}.simpay-form-builder-fee-recovery ::-webkit-input-placeholder{color:#b7bec7}.simpay-form-builder-fee-recovery ::-moz-placeholder{color:#b7bec7;opacity:1}.simpay-form-builder-fee-recovery :-ms-input-placeholder{color:#b7bec7}.simpay-form-builder-fee-recovery>*{margin-right:8px}.simpay-form-builder-fee-percent-control{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;padding:6px 8px;box-shadow:0 0 0 rgba(0,0,0,0);transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;margin:0;padding:0;width:auto;display:inline-flex;align-items:center}@media(prefers-reduced-motion: reduce){.simpay-form-builder-fee-percent-control{transition-duration:0s;transition-delay:0s}}@media(min-width: 600px){.simpay-form-builder-fee-percent-control{font-size:13px;line-height:normal}}.simpay-form-builder-fee-percent-control:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid rgba(0,0,0,0)}.simpay-form-builder-fee-percent-control::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.simpay-form-builder-fee-percent-control::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.simpay-form-builder-fee-percent-control:-ms-input-placeholder{color:rgba(30,30,30,.62)}.simpay-form-builder-fee-percent-control:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid rgba(0,0,0,0)}.simpay-form-builder-fee-percent-control input[type=number]{border:0;box-shadow:none;background:none;border-radius:0;width:75px}.simpay-form-builder-fee-percent-control input[type=number]:focus{border:0;box-shadow:none;outline:0}.simpay-form-builder-fee-percent-control+label{margin-left:8px}.simpay-form-builder-fee-percent-control__suffix{color:#757575;font-size:16px;line-height:normal;padding-right:8px}@media(min-width: 600px){.simpay-form-builder-fee-percent-control__suffix{font-size:13px;line-height:normal}}.simpay-form-builder-automations__cta{margin:24px 0 6px;text-align:center}.simpay-form-builder-automator{padding:16px 4px 26px !important}.simpay-form-builder-automator,.simpay-form-builder-automator *{box-sizing:border-box}.simpay-form-builder-automator input[type=search]{font-size:15px;padding:2px 8px}.simpay-form-builder-automator__integrations{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));grid-column-gap:16px;grid-row-gap:16px;margin:18px -18px 0;padding:0 18px 10px;width:calc(100% + 36px);max-height:400px;overflow-y:scroll}.simpay-form-builder-automator__integrations-integration{color:initial;text-align:center;text-decoration:none;background:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 1px 3px 0 rgba(0,0,0,.03);transition:all ease-in .15s}.simpay-form-builder-automator__integrations-integration img{display:block;margin:16px auto;height:50px}.simpay-form-builder-automator__integrations-integration span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:8px 16px;display:block;border-top:1px solid #eee}.simpay-form-builder-automator__integrations-integration:hover{cursor:pointer;border-color:#ddd;box-shadow:0 2px 4px 0 rgba(0,0,0,.06)}body.site-health #wpbody-content,body.post-type-simple-pay #wpbody-content{padding-bottom:200px}#wpfooter .simpay-footer-promotion{text-align:center;font-weight:400;font-size:13px;line-height:16px;color:#787c82;padding:20px 0 30px 0;margin-bottom:20px}#wpfooter .simpay-footer-promotion p{font-weight:600}#wpfooter .simpay-footer-promotion-links,#wpfooter .simpay-footer-promotion-social{display:flex;justify-content:center;align-items:center}#wpfooter .simpay-footer-promotion-links{margin:9px 0 0}#wpfooter .simpay-footer-promotion-links span{color:#c3c4c7;padding:0 7px}#wpfooter .simpay-footer-promotion-social{margin:10px 0 0 0;gap:10px}#wpfooter .simpay-footer-promotion-social li{margin-bottom:0}#wpfooter .simpay-footer-promotion-social li:hover path{fill:#50575e}#wpfooter .simpay-footer-promotion-social a{display:block;height:16px} diff --git a/includes/core/assets/images/simple-pay-uncanny.svg b/includes/core/assets/images/simple-pay-uncanny.svg new file mode 100644 index 00000000..5bbc1903 --- /dev/null +++ b/includes/core/assets/images/simple-pay-uncanny.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/includes/core/assets/js/admin/payment-form/automations.js b/includes/core/assets/js/admin/payment-form/automations.js new file mode 100644 index 00000000..ba49d1ef --- /dev/null +++ b/includes/core/assets/js/admin/payment-form/automations.js @@ -0,0 +1,49 @@ +/** + * WordPress dependencies + */ +import domReady from '@wordpress/dom-ready'; + +/** + * Filters the integrations list based on a fuzzy search of data-name and + * data-description attributes on the integrations. + * + * @since 4.7.8 + */ +domReady( () => { + const searchEl = document.getElementById( 'automations-search' ); + + if ( ! searchEl ) { + return; + } + + const integrationEls = document.querySelectorAll( + '.simpay-form-builder-automator__integrations-integration' + ); + + searchEl.addEventListener( 'input', () => { + const search = searchEl.value.toLowerCase(); + + integrationEls.forEach( ( integrationEl ) => { + const fields = Object.values( integrationEl.dataset ); + + for ( let i = 0; i < fields.length; i++ ) { + const fieldValue = fields[ i ].toLowerCase(); + + if ( fieldValue.includes( search ) ) { + integrationEl.style.display = 'block'; + return; + } + + integrationEl.style.display = 'none'; + } + } ); + + if ( '' === search ) { + integrationEls.forEach( ( integrationEl ) => { + if ( integrationEl.dataset.overflow === 'yes' ) { + integrationEl.style.display = 'none'; + } + } ); + } + } ); +} ); diff --git a/includes/core/assets/js/admin/payment-form/index.js b/includes/core/assets/js/admin/payment-form/index.js index 37621b16..f9c4bc5d 100644 --- a/includes/core/assets/js/admin/payment-form/index.js +++ b/includes/core/assets/js/admin/payment-form/index.js @@ -6,3 +6,4 @@ import './custom-fields.js'; import './stripe-checkout.js'; import './payment-page.js'; import './purchase-restrictions.js'; +import './automations.js'; diff --git a/includes/core/assets/js/admin/payment-form/prices.js b/includes/core/assets/js/admin/payment-form/prices.js index 9ceb71a6..925bba80 100644 --- a/includes/core/assets/js/admin/payment-form/prices.js +++ b/includes/core/assets/js/admin/payment-form/prices.js @@ -265,14 +265,14 @@ function onToggleCanRecur( priceEl, checkbox ) { * Handles displaying the current price's custom amount settings. * * @param {HTMLElement} priceEl Price container element. + * @param {HTMLElement} checkbox Custom amount toggle element. */ -function onToggleCustomAmount( priceEl ) { +function onToggleCustomAmount( priceEl, checkbox ) { const customAmountSettings = priceEl.querySelector( '.simpay-price-custom-amount' ); - customAmountSettings.style.display = - 'none' === customAmountSettings.style.display ? 'block' : 'none'; + customAmountSettings.style.display = checkbox.checked ? 'table' : 'none'; } /** @@ -610,8 +610,8 @@ function bindPriceOptions() { '.simpay-price-enable-custom-amount' ); - customAmountToggle.addEventListener( 'click', () => { - onToggleCustomAmount( priceEl ); + customAmountToggle.addEventListener( 'change', () => { + onToggleCustomAmount( priceEl, customAmountToggle ); onChangeLabel( priceEl ); } ); 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 e3663e9e..fe81fc34 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' => '9b527dabbf6325253c12ff2ddfdb65b3'); \ 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' => '4aff03f69181385113accdc15b5e0c51'); \ 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 f9d53e21..9c130236 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,2 +1,2 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=76)}([function(e,t){e.exports=window.wp.element},,function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.wp.components},,function(e,t){e.exports=window.React},function(e,t,n){var r=n(26),a=n(27),i=n(22),c=n(28);e.exports=function(e,t){return r(e)||a(e,t)||i(e,t)||c()},e.exports.__esModule=!0,e.exports.default=e.exports},,,function(e,t){e.exports=window.wp.primitives},function(e,t){e.exports=window.wp.url},function(e,t,n){var r=n(30);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=window.lodash},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;te.length)&&(t=e.length);for(var n=0,r=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(61)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for,a=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,c=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,p=r?Symbol.for("react.async_mode"):60111,m=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,b=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,h=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,O=r?Symbol.for("react.responder"):60118,j=r?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case p:case m:case c:case s:case o:case d:return e;default:switch(e=e&&e.$$typeof){case u:case f:case h:case y:case l:return e;default:return t}}case i:return t}}}function x(e){return _(e)===m}t.AsyncMode=p,t.ConcurrentMode=m,t.ContextConsumer=u,t.ContextProvider=l,t.Element=a,t.ForwardRef=f,t.Fragment=c,t.Lazy=h,t.Memo=y,t.Portal=i,t.Profiler=s,t.StrictMode=o,t.Suspense=d,t.isAsyncMode=function(e){return x(e)||_(e)===p},t.isConcurrentMode=x,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return _(e)===f},t.isFragment=function(e){return _(e)===c},t.isLazy=function(e){return _(e)===h},t.isMemo=function(e){return _(e)===y},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===o},t.isSuspense=function(e){return _(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===c||e===m||e===s||e===o||e===d||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===y||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===v||e.$$typeof===O||e.$$typeof===j||e.$$typeof===g)},t.typeOf=_},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,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),a=n(9);const i=Object(r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(a.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),a=n(9);const i=Object(r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(a.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"}));t.a=i},,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(6),a=n.n(r),i=n(0),c=(n(59),n(3)),o=n(2),s=n(10),l=n(37),u=n(12),p=n(25),m=n.n(p),f=n(43),d=n(64),b=n(17),y=n.n(b),h=n(19),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|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,_=O((function(e){return j.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));function x(){return(x=Object.assign?Object.assign.bind():function(e){for(var t=1;t2||te(G)>3?"":" "}function ce(e,t){for(;--t&&Q()&&!(G<48||G>102||G>57&&G<65||G>70&&G<97););return ee(e,J()+(t<6&&32==K()&&32==Q()))}function oe(e,t){for(;Q()&&e+G!==57&&(e+G!==84||47!==K()););return"/*"+ee(t,H-1)+"*"+N(47===e?e:Q())}function se(e){for(;!te(K());)Q();return ee(e,H)}function le(e,t,n,r,a,i,c,o,s,l,u){for(var p=a-1,m=0===a?i:[""],f=U(m),d=0,b=0,y=0;d0?m[h]+" "+g:T(g,/&\f/g,m[h])))&&(s[y++]=v);return Y(e,t,n,0===a?P:o,s,l,u)}function ue(e,t,n){return Y(e,t,n,C,N(G),D(e,2,-2),0)}function pe(e,t,n,r){return Y(e,t,n,z,D(e,0,r),D(e,r+1,-1),r)}function me(e,t){for(var n="",r=U(e),a=0;a-1&&!e.return)switch(e.type){case z:e.return=function e(t,n){switch(function(e,t){return 45^L(e,0)?(((t<<2^L(e,0))<<2^L(e,1))<<2^L(e,2))<<2^L(e,3):0}(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+T(t,/(\w+).+(:[^]+)/,k+"box-$1$2"+E+"flex-$1$2")+t;case 5443:return k+t+E+"flex-item-"+T(t,/flex-|-self/,"")+t;case 4675:return k+t+E+"flex-line-pack"+T(t,/align-content|flex-|-self/,"")+t;case 5548:return k+t+E+T(t,"shrink","negative")+t;case 5292:return k+t+E+T(t,"basis","preferred-size")+t;case 6060:return k+"box-"+T(t,"-grow","")+k+t+E+T(t,"grow","positive")+t;case 4554:return k+T(t,/([^-])(transform)/g,"$1"+k+"$2")+t;case 6187:return T(T(T(t,/(zoom-|grab)/,k+"$1"),/(image-set)/,k+"$1"),t,"")+t;case 5495:case 3959:return T(t,/(image-set\([^]*)/,k+"$1$`$1");case 4968:return T(T(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 T(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(B(t)-1-n>6)switch(L(t,n+1)){case 109:if(45!==L(t,n+4))break;case 102:return T(t,/(.+:)(.+)-([^]+)/,"$1"+k+"$2-$3$1"+S+(108==L(t,n+3)?"$3":"$2-$3"))+t;case 115:return~F(t,"stretch")?e(T(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==L(t,n+1))break;case 6444:switch(L(t,B(t)-3-(~F(t,"!important")&&10))){case 107:return T(t,":",":"+k)+t;case 101:return T(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+T(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return k+t+E+T(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return k+t+E+T(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return k+t+E+t+t}return t}(e.value,e.length);break;case A:return me([X(e,{value:T(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=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return me([X(e,{props:[T(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return me([X(e,{props:[T(t,/:(plac\w+)/,":"+k+"input-$1")]}),X(e,{props:[T(t,/:(plac\w+)/,":-moz-$1")]}),X(e,{props:[T(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&&B(w)-m&&W(d>32?pe(w+";",a,r,m-1):pe(T(w," ","")+";",a,r,m-2),l);break;case 59:w+=";";default:if(W(x=le(w,n,r,u,p,i,s,O,j=[],_=[],m),c),123===v)if(0===p)e(w,n,x,x,j,c,m,s,_);else switch(99===f&&110===L(w,3)?100:f){case 100:case 109:case 115:e(t,x,x,a&&W(le(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+B(w),d=b;default:if(y<1)if(123==v)--y;else if(125==v&&0==y++&&125==(G=H>0?L(q,--H):0,Z--,10===G&&(Z=1,I--),G))continue;switch(w+=N(v),v*y){case 38:g=p>0?1:(w+="\f",-1);break;case 44:s[u++]=(B(w)-1)*g,g=1;break;case 64:45===K()&&(w+=ae(Q())),f=K(),p=m=B(O=w+=se(J())),v++;break;case 45:45===b&&2==B(w)&&(y=0)}}return c}("",null,null,null,[""],e=ne(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(50);var xe=function(e,t,n){!function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)}(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+r:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}},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 Ne={name:t,styles:n,next:Ne},t}))}return 1===Ee[e]||Ce(e)||"number"!=typeof t||0===t?t:t+"px"};function Me(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 Ne={name:n.name,styles:n.styles,next:Ne},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Ne={name:r.name,styles:r.styles,next:Ne},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a96?De:Be},We=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},Ze=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=We(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,f=1;f div {\n\t\tmargin-left: 8px;\n\t}\n\n\tsvg {\n\t\tdisplay: block;\n\n\t\t&:hover {\n\t\t\tcursor: pointer;\n\t\t}\n\t}\n"]))),nt=Je(c.Popover)(Ge||(Ge=y()(["\n\t.components-popover__content {\n\t\tpadding: 20px;\n\t\twidth: 200px;\n\t}\n"]))),rt=Je(c.ToggleControl)(qe||(qe=y()(["\n\t&& {\n\t\t.components-base-control__field {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\t}\n"]))),at=n(51),it=n.n(at),ct=Je(c.Card)(Ye||(Ye=y()(["\n\tpadding: 30px;\n\n\t&& {\n\t\tbox-shadow: 0 2px 6px 0 rgba( 0, 0, 0, 0.05 );\n\t\tborder: 1px solid #ccc;\n\t\twidth: 100%;\n\t}\n"]))),ot=Je(c.CardHeader)(Xe||(Xe=y()(["\n\t&&& {\n\t\tpadding: 0 0 30px;\n\t}\n\n\th1 {\n\t\tfont-size: 26px;\n\t\tline-height: 1;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\n\tsmall {\n\t\tcolor: #c0c0c0;\n\t\tfont-size: 13px;\n\t\tfont-weight: normal;\n\t\tdisplay: block;\n\t\tmargin: 0 0 3px;\n\t}\n"]))),st=Je(c.CardFooter)(Qe||(Qe=y()(["\n\t&&& {\n\t\tpadding: 30px 0 0;\n\t}\n"]))),lt=Je(c.CardBody)(Ke||(Ke=y()(["\n\t&&& {\n\t\tpadding: 30px 0;\n\t}\n\n\t> * {\n\t\tmargin: 0 0 2rem;\n\n\t\t&:last-child {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\t}\n\n\t> p {\n\t\tcolor: #555555;\n\t\tfont-size: 15px;\n\t}\n"]))),ut=["title","supTitle","children"];function pt(e){return Object(i.createElement)(ct,e)}function mt(e){var t=e.title,n=e.supTitle,r=e.children,a=it()(e,ut);return Object(i.createElement)(ot,a,Object(i.createElement)("div",null,n&&Object(i.createElement)("small",null,n),t&&Object(i.createElement)("h1",null,t)),r)}function ft(e){return Object(i.createElement)(st,e)}function dt(e){return Object(i.createElement)(lt,e)}var bt,yt=simpaySetupWizard.adminUrl;function ht(e){var t=e.isFirst,n=Object(i.useState)(!1),r=a()(n,2),s=r[0],l=r[1];return Object(i.createElement)(c.Flex,{justify:"center"},s&&Object(i.createElement)(c.Modal,{title:Object(o.__)("Are you sure you want to exit the wizard?","simple-pay"),onRequestClose:function(){return l(!1)}},Object(i.createElement)("p",{style:{marginBottom:"2rem"}},Object(o.__)("Manual setup is only recommended for experienced users.","simple-pay")),Object(i.createElement)(c.Flex,null,Object(i.createElement)(c.Button,{href:yt,isDestructive:!0,variant:"destructive"},Object(o.__)("Exit Setup Wizard","simple-pay")),Object(i.createElement)(c.Button,{variant:"primary",isPrimary:!0,onClick:function(){return l(!1)}},Object(o.__)("Continue Setup","simple-pay")))),Object(i.createElement)(c.Button,{isLink:!0,variant:"link",className:"simpay-setup-wizard-subtle-link",onClick:function(){return l(!0)}},t?Object(o.__)("Go back to the Dashboard","simple-pay"):Object(o.__)("Close and exit the Setup Wizard","simple-pay")))}var gt=Je(c.Button)(bt||(bt=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"]))),vt=Object(i.forwardRef)((function(e,t){return Object(i.createElement)(gt,g()({isPrimary:!0,variant:"primary"},e,{ref:t}))}));function Ot(e){return e.width,Object(i.createElement)("svg",{width:"311",height:"41",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(i.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.352 0C1.052 0 0 1.02 0 2.277v30.746C0 34.281 1.053 35.3 2.352 35.3h28.806c.975 0 1.764-.764 1.764-1.708 0-.943-.79-1.708-1.763-1.708H5.29c-.974 0-1.764-.765-1.764-1.708v-17.08c0-.944.79-1.709 1.764-1.709h44.092c1.299 0 2.352-1.02 2.352-2.277V2.277C51.735 1.02 50.682 0 49.383 0H2.352Zm55.262 24.198h-1.47v-1.993c0-4.088-3.422-7.402-7.643-7.402-4.22 0-7.642 3.314-7.642 7.402v1.993H38.8c-1.299 0-2.352 1.02-2.352 2.277v11.387c0 1.258 1.053 2.278 2.352 2.278h18.813c1.299 0 2.351-1.02 2.351-2.278V26.475c0-1.258-1.053-2.277-2.351-2.277Zm-4.997-1.993v1.993h-8.23v-1.993c0-2.201 1.842-3.985 4.114-3.985 2.273 0 4.116 1.784 4.116 3.985ZM8.23 20.497c0-.629.526-1.139 1.175-1.139H28.22c.65 0 1.176.51 1.176 1.139s-.527 1.139-1.176 1.139H9.406c-.649 0-1.175-.51-1.175-1.139Zm0 5.124c0-.629.526-1.138 1.175-1.138h7.055c.65 0 1.176.51 1.176 1.138 0 .63-.527 1.139-1.176 1.139H9.406c-.649 0-1.175-.51-1.175-1.139Zm31.158 11.672V27.045h17.637v10.248H39.389Z",fill:"#428BCA"}),Object(i.createElement)("path",{d:"M81.08 30.745h5.288l5.41-17.186 5.596 17.187h5.289l7.84-24.29h-5.288l-5.289 17.956L94.7 6.457h-5.842L83.785 24.38 78.528 6.457h-5.289l7.84 24.288Zm31.511 0h4.796v-8.793h6.456c5.319 0 8.302-3.228 8.302-7.963 0-4.735-2.983-7.532-8.302-7.532h-11.252v24.288Zm4.796-13.405V11.1h5.288c2.952 0 4.52 1.168 4.52 3.104 0 1.968-1.507 3.136-4.366 3.136h-5.442Zm35.473 13.897c6.303 0 10.023-3.197 10.023-7.747 0-10.3-14.789-4.581-14.789-10.085 0-1.906 1.599-3.013 4.52-3.013 2.859 0 4.519 1.322 4.704 3.567h5.288c0-4.92-4.089-7.994-9.9-7.994-5.872 0-9.562 2.89-9.562 7.502 0 10.268 14.758 4.642 14.758 10.084 0 1.998-1.752 3.26-4.919 3.26-3.228 0-5.073-1.6-5.165-4.305h-5.381c0 5.503 4.274 8.731 10.423 8.731Zm15.137-18.447c1.66 0 2.89-1.23 2.89-2.89 0-1.66-1.23-2.829-2.89-2.829-1.691 0-2.921 1.169-2.921 2.83 0 1.66 1.23 2.89 2.921 2.89Zm-2.306 17.956h4.581V14.758h-4.581v15.988Zm7.696-.001h4.55v-8.178c0-2.644 1.384-4.366 3.597-4.366 1.968 0 3.136 1.415 3.136 3.751v8.793h4.612v-8.178c0-2.644 1.384-4.366 3.597-4.366 1.968 0 3.136 1.415 3.136 3.751v8.793h4.643v-9.039c0-4.888-1.968-7.44-5.965-7.44-2.459 0-4.642.86-6.21 3.044-.892-2.03-2.583-3.044-5.135-3.044-2.552 0-4.335 1.076-5.411 2.798v-2.306h-4.55v15.988Zm30.183 6.15h4.551v-8.24c1.106 1.63 2.859 2.582 5.38 2.582 4.028 0 6.887-3.504 6.887-8.424 0-5.011-2.859-8.547-6.887-8.547-2.521 0-4.274.953-5.38 2.583v-2.091h-4.551v22.137Zm8.363-9.593c-2.244 0-3.843-1.875-3.843-4.52 0-2.674 1.599-4.58 3.843-4.58 2.275 0 3.874 1.906 3.874 4.58 0 2.645-1.599 4.52-3.874 4.52Zm10.651 3.443h4.551V6.457h-4.551v24.288Zm15.443.492c3.905 0 6.918-2.213 7.41-5.688h-4.551c-.184 1.107-1.229 1.968-2.828 1.968-2.368 0-3.536-1.353-3.751-3.412h11.222v-1.476c0-5.104-3.259-8.363-7.502-8.363-4.919 0-8.363 3.505-8.363 8.455 0 4.98 3.444 8.516 8.363 8.516Zm-3.689-9.93c.276-1.845 1.352-3.106 3.505-3.106 1.937 0 3.013 1.322 3.105 3.106h-6.61Zm22.358 9.438h4.796v-8.793h6.457c5.319 0 8.301-3.228 8.301-7.963 0-4.735-2.982-7.532-8.301-7.532h-11.253v24.288Zm4.796-13.405V11.1h5.288c2.952 0 4.52 1.168 4.52 3.104 0 1.968-1.507 3.136-4.366 3.136h-5.442Zm20.704 13.897c2.736 0 4.458-1.23 5.257-3.228.4 2.183 2.152 3.413 5.688 2.613v-3.259c-1.261.123-1.507-.338-1.507-1.66v-5.411c0-3.782-2.644-6.026-7.317-6.026-4.612 0-7.317 2.275-7.317 6.118h4.488c0-1.383 1.015-2.183 2.768-2.183 1.906 0 2.859.769 2.828 2.091v.492l-3.659.43c-4.519.523-7.071 2.368-7.071 5.258 0 2.429 1.722 4.765 5.842 4.765Zm.922-3.382c-1.414 0-2.183-.645-2.183-1.63 0-1.167 1.507-1.629 4.397-1.998l1.568-.153c-.277 2.152-1.599 3.781-3.782 3.781Zm11.126 9.04h1.967c3.936 0 6.641-1.077 8.271-4.981L311 14.758h-4.766l-3.996 10.669-4.797-10.67h-4.796l7.225 16.234c-1.014 1.446-2.06 1.907-4.058 1.876h-1.568v4.028Z",fill:"#428BCA"}))}var jt=n(15);function _t(e){var t=Object(jt.useSelect)((function(e){return Object(u.filter)(e("core/notices").getNotices(),{type:"snackbar"})}),[]),n=Object(jt.useDispatch)("core/notices").removeNotice;return 0===t.length?null:Object(i.createElement)(c.SnackbarList,g()({onRemove:n,notices:t},e))}var xt,wt,Et,St,kt,Ct=n(63),Pt=Je.div(xt||(xt=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"]))),zt={current:"var(--wp-admin-theme-color)",complete:"var(--wp-admin-theme-color)",incomplete:"#c0c0c0"},At=Je.div(wt||(wt=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 zt[e.status]}),(function(e){return e.isComplete?"1":"0"}),(function(e){var t=e.isCurrent,n=e.isComplete;return t&&!n?"1":"0"})),Mt=Je.div(Et||(Et=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"]))),Nt=Je.div(St||(St=y()(["\n\twidth: 100%;\n\theight: 2px;\n\tbackground-color: rgba( 192, 192, 192, 0.5 );\n\twidth: 100px;\n"])));function $t(e){for(var t=e.current,n=e.total,r=[],a=1;a<=n;a++){var c="incomplete";a * {\n\t\tmargin: 25px 0;\n\t}\n"])));function Ft(e){return Object(i.createElement)(Tt,e)}var Lt=Je(c.Button)(Rt||(Rt=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"]))),Dt=Object(i.forwardRef)((function(e,t){return Object(i.createElement)(Lt,g()({isPrimary:!0,variant:"primary"},e,{ref:t}))}));function Bt(){return Object(i.createElement)("svg",{width:56,height:23,fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(i.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M55.742 11.884c0-3.93-1.92-7.032-5.59-7.032-3.684 0-5.914 3.101-5.914 7.001 0 4.622 2.632 6.955 6.41 6.955 1.843 0 3.236-.414 4.29-.998v-3.07c-1.053.522-2.261.844-3.794.844-1.502 0-2.834-.522-3.004-2.334h7.572c0-.2.03-.998.03-1.366Zm-7.649-1.459c0-1.735 1.069-2.456 2.044-2.456.945 0 1.951.721 1.951 2.456h-3.995Zm-9.832-5.573c-1.517 0-2.493.706-3.035 1.197l-.201-.952h-3.407V23l3.871-.814.016-4.345c.557.4 1.378.967 2.74.967 2.772 0 5.296-2.21 5.296-7.078-.015-4.452-2.57-6.878-5.28-6.878Zm-.929 10.579c-.913 0-1.456-.323-1.827-.722l-.016-5.696c.403-.446.96-.753 1.843-.753 1.41 0 2.385 1.566 2.385 3.578 0 2.057-.96 3.593-2.385 3.593ZM26.292 3.946l3.886-.83V0l-3.886.814v3.132Zm0 1.167h3.886v13.434h-3.886V5.113Zm-4.165 1.136-.248-1.136h-3.345v13.434h3.871V9.443c.914-1.183 2.462-.968 2.942-.799V5.113c-.495-.184-2.307-.522-3.22 1.136Zm-7.742-4.468-3.778.798-.016 12.299c0 2.272 1.719 3.946 4.01 3.946 1.27 0 2.2-.23 2.71-.507V15.2c-.495.2-2.942.906-2.942-1.366v-5.45h2.942V5.112H14.37l.016-3.332ZM3.917 9.013c0-.6.496-.83 1.317-.83 1.176 0 2.663.354 3.84.983V5.558c-1.286-.507-2.555-.706-3.84-.706C2.09 4.852 0 6.479 0 9.197c0 4.238 5.884 3.562 5.884 5.39 0 .705-.62.936-1.487.936-1.285 0-2.926-.522-4.227-1.229v3.655c1.44.614 2.896.875 4.227.875 3.221 0 5.435-1.582 5.435-4.33-.015-4.575-5.915-3.762-5.915-5.481Z",fill:"#fff"}))}var Ut=n(11),Wt=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 Zt(e){for(var t=1;tWP Simple Pay account or purchase receipt email.","simple-pay"),{strong:Object(i.createElement)("strong",null),a:Object(i.createElement)("a",{href:rn,target:"_blank",rel:"noopener noreferrer"})})),Object(i.createElement)(c.TextControl,{label:Object(o.__)("License Key","simple-pay"),value:l,className:_,onChange:function(e){return u(e)},disabled:d,help:g||Object(o.__)("An active license ensures automatic updates and the latest features.","simple-pay"),ref:j})),Object(i.createElement)(ft,{justify:"flex-end",align:"center"},Object(i.createElement)(vt,{onClick:function(){b(!0);var e=new FormData;e.append("action","simpay_activate_license"),e.append("nonce",an),e.append("license",l),m()({url:nn,method:"POST",body:e}).then((function(e){var r=e.success,a=e.data,i=a.message,c=a.license;if(!r)throw{message:i};n(c),O(Object(o.__)("License activated","simple-pay"),{type:"snackbar"}),b(!1),t()})).catch((function(e){var t=e.message;v(t),b(!1)}))},disabled:""===l||d,isBusy:d},Object(o.__)("Activate and Continue →","simple-pay"))))}},{id:"stripe",title:Object(o.__)("Connect to Stripe","simple-pay"),content:Cn},{id:"emails",title:Object(o.__)("Configure Emails","simple-pay"),content:function(e){var t=e.goPrev,n=e.goNext,r=e.licenseData,a=Ht(),s=a.settings,l=a.rawSettings,p=a.discardChanges,m=a.editSettings,f=a.saveSettings,d=Object(i.useRef)();if(Object(i.useLayoutEffect)((function(){d.current&&d.current.focus()}),[l]),Object(u.isEmpty)(s))return Object(i.createElement)(dt,null,Object(i.createElement)(c.Spinner,null));var b=s["email_payment-confirmation"],y=s["email_payment-notification"],h=s["email_payment-notification_to"],g=s["email_upcoming-invoice"],v=s["email_invoice-confirmation"],O=r.features,j=O.subscriptions,_=O.enhanced_subscriptions;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(dt,null,Object(i.createElement)("ul",{className:"simpay-setup-wizard-toggle-list"},Object(i.createElement)("li",null,Object(i.createElement)("label",{htmlFor:"email_payment-confirmation"},Object(i.createElement)("h3",null,Object(o.__)("Payment Receipt","simple-pay")),Object(i.createElement)("p",null,Object(o.__)("Send a payment receipt email to the customer upon successful payment.","simple-pay"))),Object(i.createElement)(c.FormToggle,{id:"email_payment-confirmation",checked:"no"!==b,onChange:function(e){var t=e.target;return m({"email_payment-confirmation":t.checked?"yes":"no"})}})),Object(i.createElement)("li",null,Object(i.createElement)("label",{htmlFor:"email_payment-notification"},Object(i.createElement)("h3",null,Object(o.__)("Payment Notification","simple-pay")),Object(i.createElement)("p",null,Object(o.__)("Receive an email notification when a new payment is made.","simple-pay"))),Object(i.createElement)(c.FormToggle,{id:"email_payment-notification",checked:"no"!==y,onChange:function(e){var t=e.target;return m({"email_payment-notification":t.checked?"yes":"no"})}})),"no"!==y&&Object(i.createElement)("li",{className:"simpay-setup-wizard-toggle-list__child"},Object(i.createElement)(c.TextControl,{label:Object(o.__)("Send to:","simple-pay"),value:h,onChange:function(e){return m({"email_payment-notification_to":e})}})),_&&Object(i.createElement)("li",null,Object(i.createElement)("label",{htmlFor:"email_invoice-confirmation"},Object(i.createElement)("h3",null,Object(o.__)("Invoice Receipt","simple-pay")),Object(i.createElement)("p",null,Object(o.__)("Send a payment receipt email to the customer upon successful invoice.","simple-pay"))),Object(i.createElement)(c.FormToggle,{id:"email_payment-confirmation",checked:"no"!==v,onChange:function(e){var t=e.target;return m({"email_invoice-confirmation":t.checked?"yes":"no"})}})),j&&Object(i.createElement)("li",null,Object(i.createElement)("label",{htmlFor:"email_upcoming-invoice"},Object(i.createElement)("h3",null,Object(o.__)("Upcoming Invoice","simple-pay")),Object(i.createElement)("p",null,Object(o.__)("Remind customers of upcoming invoices and allow payment method changes.","simple-pay"))),Object(i.createElement)(c.FormToggle,{id:"email_upcoming-invoice",checked:"no"!==g,onChange:function(e){var t=e.target;return m({"email_upcoming-invoice":t.checked?"yes":"no"})}})))),Object(i.createElement)(ft,{justify:"space-between",align:"center"},Object(i.createElement)("div",null,Object(i.createElement)(c.Button,{isLink:!0,variant:"link",onClick:t,className:"simpay-setup-wizard-subtle-link"},Object(o.__)("← Previous Step","simple-pay"))),Object(i.createElement)("div",{style:{display:"flex",justifyContent:"center"}},Object(i.createElement)(c.Button,{isLink:!0,variant:"link",onClick:function(){p(),n()},style:{marginRight:"16px"},className:"simpay-setup-wizard-subtle-link"},Object(o.__)("Skip Step","simple-pay")),Object(i.createElement)(vt,{onClick:function(){f(),n()},ref:d},Object(o.__)("Save and Continue →","simple-pay")))))}},{id:"next-steps",title:Object(o.__)("🎉 Setup Complete","simple-pay"),content:function(){return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(dt,null,Object(i.createElement)("div",{className:"simpay-setup-wizard-content-list"},Object(i.createElement)("div",{className:"simpay-setup-wizard-content-list__content"},Object(i.createElement)("p",null,Object(o.__)("Congratulations, you’re ready to start accepting payments!","simple-pay")),Object(i.createElement)("p",null,Object(o.__)("WP Simple Pay is just that: simple. Create your first payment form below to start collecting payments, or fine-tune your setup through some of these suggestions:","simple-pay"))),Object(i.createElement)("div",{className:"simpay-setup-wizard-content-list__list"},Object(i.createElement)("ul",{className:"simpay-setup-wizard-bullet-list"},Object(i.createElement)("li",null,Object(i.createElement)("a",{href:vn,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("Collect tax or GST","simple-pay"))),Object(i.createElement)("li",null,Object(i.createElement)("a",{href:On,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("Add anti-spam protection","simple-pay"))),Object(i.createElement)("li",null,Object(i.createElement)("a",{href:jn,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("Change the default currency","simple-pay"))),Object(i.createElement)("li",null,Object(i.createElement)("a",{href:xn,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("Customize receipts","simple-pay")))))),Object(i.createElement)("hr",null),Object(i.createElement)("div",{className:"simpay-setup-wizard-doc-suggestions"},Object(i.createElement)("div",null,Object(i.createElement)("h3",null,Object(o.__)("Accept Donations","simple-pay")),Object(i.createElement)("p",null,Object(o.__)("Easily fundraise or accept donations online via 135+ supported currencies. Offer one-time or recurring donations of fixed or user-defined amounts.","simple-pay")),Object(i.createElement)(c.Button,{href:wn,variant:"secondary",isSecondary:!0,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("View Walkthrough","simple-pay"))),Object(i.createElement)("div",null,Object(i.createElement)("h3",null,Object(o.__)("Reconcile Invoices","simple-pay")),Object(i.createElement)("p",null,Object(o.__)("Collect additional custom data on your payment forms such as an Invoice ID to reconcile invoices against your own invoicing system.","simple-pay")),Object(i.createElement)(c.Button,{href:En,variant:"secondary",isSecondary:!0,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("View Walkthrough","simple-pay"))))),Object(i.createElement)(ft,{justify:"space-between",align:"center"},Object(i.createElement)("div",{style:{flexBasis:"100%"}},Object(i.createElement)(c.Button,{isLink:!0,variant:"link",href:hn,className:"simpay-setup-wizard-subtle-link",icon:Object(i.createElement)(f.a,{icon:sn})},Object(o.__)("Return to Dashboard","simple-pay"))),Object(i.createElement)(c.Flex,{justify:"flex-end",gap:4},Object(i.createElement)(vt,{href:gn},Object(o.__)("Create a Payment Form →","simple-pay")))))}}],lite:[{id:"stripe",title:Object(o.__)("Connect to Stripe","simple-pay"),content:Cn},{id:"analytics",title:Object(o.__)("Help Improve WP Simple Pay + Smart Recommendations","simple-pay"),content:function(e){var t=e.goPrev,n=e.goNext,r=Ht(),s=r.settings,l=r.rawSettings,p=r.discardChanges,b=r.editSettings,y=r.saveSettings,h=Object(i.useState)(!0),g=a()(h,2),v=g[0],O=g[1],j=Object(i.useState)(Xt),_=a()(j,2),x=_[0],w=_[1],E=Object(i.useState)(!1),S=a()(E,2),k=S[0],C=S[1],P=Object(i.useState)(!1),z=a()(P,2),A=z[0],M=z[1],N=Object(i.useRef)();return Object(i.useLayoutEffect)((function(){N.current&&N.current.focus()}),[l]),Object(u.isEmpty)(s)?Object(i.createElement)(dt,null,Object(i.createElement)(c.Spinner,null)):Object(i.createElement)(i.Fragment,null,Object(i.createElement)(dt,null,Object(i.createElement)("p",null,Object(o.__)("Get helpful suggestions from WP Simple Pay on how to optimize your payment forms and grow your business or increase donations.","simple-pay")),Object(i.createElement)(c.TextControl,{label:Object(o.__)("Your Email Address:","simple-pay"),value:x,className:"simpay-setup-wizard-large-input",onChange:function(e){return w(e)},help:Object(o.__)("Your email is needed so you receive recommendations.","simple-pay"),ref:N,disabled:k}),Object(i.createElement)("hr",null),Object(i.createElement)(et,null,Object(i.createElement)(tt,null,Object(o.__)("Help make WP Simple Pay better for everyone","simple-pay"),Object(i.createElement)("div",null,A&&Object(i.createElement)(nt,{position:"top center"},Object(o.__)("By allowing us to track usage data we can better help you because we know which WordPress configurations, themes, and plugins we should test.","simple-pay")),Object(i.createElement)(f.a,{size:20,icon:d.a,onMouseEnter:function(){return M(!0)},onMouseLeave:function(){return M(!1)}}))),Object(i.createElement)(rt,{label:Object(o.__)("Yes, count me in","simple-pay"),id:"email_payment-confirmation",checked:v,disabled:k,onChange:function(e){O(e)}}))),Object(i.createElement)(ft,{justify:"space-between",align:"center"},Object(i.createElement)("div",null,Object(i.createElement)(c.Button,{isLink:!0,variant:"link",onClick:t,className:"simpay-setup-wizard-subtle-link",disabled:k},Object(o.__)("← Previous Step","simple-pay"))),Object(i.createElement)("div",{style:{display:"flex",justifyContent:"center"}},Object(i.createElement)(c.Button,{isLink:!0,variant:"link",onClick:function(){p(),n()},style:{marginRight:"16px"},className:"simpay-setup-wizard-subtle-link",disabled:k},Object(o.__)("Skip Step","simple-pay")),Object(i.createElement)(vt,{onClick:function(){C(!0),b({usage_tracking_opt_in:v?"yes":"no"}),y();var e=new FormData;e.append("action","simpay_setup_wizard_subscribe_email"),e.append("nonce",Qt),e.append("email",x),m()({url:Kt,method:"POST",body:e}).finally((function(){C(!1),n()}))},isBusy:k,disabled:k},Object(o.__)("Save and Continue →","simple-pay")))))}},{id:"next-steps",title:Object(o.__)("🎉 Setup Complete","simple-pay"),content:function(){return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(dt,null,Object(i.createElement)(c.Flex,{justify:"space-between",align:"center",className:"simpay-setup-wizard-content-list"},Object(i.createElement)("div",{className:"simpay-setup-wizard-content-list__content"},Object(i.createElement)("p",null,Object(o.__)("Congratulations, you’re ready to start easily and securely accepting payments with WP Simple Pay!","simple-pay"))),Object(i.createElement)("div",null,Object(i.createElement)(vt,{href:fn},Object(o.__)("Create a Payment Form →","simple-pay")))),Object(i.createElement)("hr",null),Object(i.createElement)(ln,null,Object(i.createElement)("h4",null,Object(o.__)("Special Upgrade Offer - Save 50%","simple-pay")),Object(i.createElement)("h3",null,Object(o.__)("Upgrade to WP Simple Pay Pro Today and Save","simple-pay")),Object(i.createElement)(un,{className:"simpay-setup-wizard-check-list"},bn.map((function(e){return Object(i.createElement)("li",{key:e},Object(i.createElement)(f.a,{icon:Ct.a}),e)}))),Object(i.createElement)(c.Button,{isLarge:!0,isSecondary:!0,variant:"secondary",href:dn,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("Upgrade to WP Simple Pay Pro","simple-pay")))),Object(i.createElement)(ft,{justify:"center"},Object(i.createElement)(c.Button,{isLink:!0,variant:"link",href:mn,className:"simpay-setup-wizard-subtle-link",icon:Object(i.createElement)(f.a,{icon:sn})},Object(o.__)("Return to Dashboard","simple-pay"))))}}]},Mn=simpaySetupWizard,Nn=Mn.license,$n=Mn.adminUrl,Rn=Nn.is_lite;Object(i.render)(Object(i.createElement)((function(){var e=An[!0===Rn?"lite":"pro"],t=Object(s.getQueryArg)(window.location.href,"step"),n=Object(i.useState)(Nn),r=a()(n,2),u=r[0],p=r[1],m=function(e){var t=e.steps,n=e.currentStepId,r=t.findIndex((function(e){return e.id===n}))||0,c=Object(i.useState)(r),o=a()(c,2),l=o[0],u=o[1];function p(e){u(e),window.history.pushState({},"",Object(s.addQueryArgs)(window.location.href,{step:t[e].id}))}return Object(i.useEffect)((function(){var e=function(){var e=Object(s.getQueryArg)(window.location.search,"step"),n=t.findIndex((function(t){return t.id===e}))||0;u(n)};return window.addEventListener("popstate",e),window.addEventListener("pushstate",e),function(){window.removeEventListener("popstate",e),window.removeEventListener("pushstate",e)}}),[]),{currentStep:l,setCurrentStep:u,hasNext:l0}}({steps:e,currentStepId:t}),f=m.currentStep,d=m.goNext,b=m.goPrev,y=m.hasNext,h=m.hasPrev;if(-1===f)return Object(i.createElement)(zn,{steps:e,goNext:d});var g=e[f],v=g.content;return Object(i.createElement)(c.SlotFillProvider,null,Object(i.createElement)(l.EntityProvider,{kind:"root",type:"site"},Object(i.createElement)(Ft,null,Object(i.createElement)("a",{href:$n},Object(i.createElement)(Ot,{width:"250px"})),Object(i.createElement)($t,{current:f+1,total:e.length}),Object(i.createElement)(pt,{isRounded:!0},Object(i.createElement)(mt,{supTitle:Object(o.sprintf)(/* translators: %1$d current step count. %2$d total step count*/ -Object(o.__)("Step %1$d of %2$d","simple-pay"),f+1,e.length),title:g.title}),Object(i.createElement)(v,{steps:e,currentStep:f,goPrev:b,goNext:d,hasNext:y,hasPrev:h,licenseData:u,setLicenseData:p})),y&&Object(i.createElement)(ht,null)),Object(i.createElement)(_t,{className:"simpay-setup-wizard-toasts"}),Object(i.createElement)(c.Popover.Slot,null)))}),null),document.getElementById("simpay-setup-wizard"))}]); \ No newline at end of file +!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=76)}([function(e,t){e.exports=window.wp.element},,function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.wp.components},,function(e,t){e.exports=window.React},function(e,t,n){var r=n(26),a=n(27),i=n(22),c=n(28);e.exports=function(e,t){return r(e)||a(e,t)||i(e,t)||c()},e.exports.__esModule=!0,e.exports.default=e.exports},,,function(e,t){e.exports=window.wp.primitives},function(e,t){e.exports=window.wp.url},function(e,t,n){var r=n(30);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=window.lodash},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;te.length)&&(t=e.length);for(var n=0,r=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(61)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for,a=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,c=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,p=r?Symbol.for("react.async_mode"):60111,m=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,b=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,h=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,O=r?Symbol.for("react.responder"):60118,j=r?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case p:case m:case c:case s:case o:case d:return e;default:switch(e=e&&e.$$typeof){case u:case f:case h:case y:case l:return e;default:return t}}case i:return t}}}function x(e){return _(e)===m}t.AsyncMode=p,t.ConcurrentMode=m,t.ContextConsumer=u,t.ContextProvider=l,t.Element=a,t.ForwardRef=f,t.Fragment=c,t.Lazy=h,t.Memo=y,t.Portal=i,t.Profiler=s,t.StrictMode=o,t.Suspense=d,t.isAsyncMode=function(e){return x(e)||_(e)===p},t.isConcurrentMode=x,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return _(e)===f},t.isFragment=function(e){return _(e)===c},t.isLazy=function(e){return _(e)===h},t.isMemo=function(e){return _(e)===y},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===o},t.isSuspense=function(e){return _(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===c||e===m||e===s||e===o||e===d||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===y||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===v||e.$$typeof===O||e.$$typeof===j||e.$$typeof===g)},t.typeOf=_},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,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),a=n(9);const i=Object(r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(a.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),a=n(9);const i=Object(r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(a.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"}));t.a=i},,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(6),a=n.n(r),i=n(0),c=(n(59),n(3)),o=n(2),s=n(10),l=n(37),u=n(12),p=n(25),m=n.n(p),f=n(43),d=n(64),b=n(17),y=n.n(b),h=n(19),g=n.n(h),v=n(5);function O(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var j=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,_=O((function(e){return j.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));function x(){return(x=Object.assign?Object.assign.bind():function(e){for(var t=1;t2||te(G)>3?"":" "}function ce(e,t){for(;--t&&Q()&&!(G<48||G>102||G>57&&G<65||G>70&&G<97););return ee(e,J()+(t<6&&32==K()&&32==Q()))}function oe(e,t){for(;Q()&&e+G!==57&&(e+G!==84||47!==K()););return"/*"+ee(t,H-1)+"*"+N(47===e?e:Q())}function se(e){for(;!te(K());)Q();return ee(e,H)}function le(e,t,n,r,a,i,c,o,s,l,u){for(var p=a-1,m=0===a?i:[""],f=U(m),d=0,b=0,y=0;d0?m[h]+" "+g:T(g,/&\f/g,m[h])))&&(s[y++]=v);return Y(e,t,n,0===a?P:o,s,l,u)}function ue(e,t,n){return Y(e,t,n,C,N(G),D(e,2,-2),0)}function pe(e,t,n,r){return Y(e,t,n,z,D(e,0,r),D(e,r+1,-1),r)}function me(e,t){for(var n="",r=U(e),a=0;a-1&&!e.return)switch(e.type){case z:e.return=function e(t,n){switch(function(e,t){return 45^L(e,0)?(((t<<2^L(e,0))<<2^L(e,1))<<2^L(e,2))<<2^L(e,3):0}(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+T(t,/(\w+).+(:[^]+)/,k+"box-$1$2"+E+"flex-$1$2")+t;case 5443:return k+t+E+"flex-item-"+T(t,/flex-|-self/,"")+t;case 4675:return k+t+E+"flex-line-pack"+T(t,/align-content|flex-|-self/,"")+t;case 5548:return k+t+E+T(t,"shrink","negative")+t;case 5292:return k+t+E+T(t,"basis","preferred-size")+t;case 6060:return k+"box-"+T(t,"-grow","")+k+t+E+T(t,"grow","positive")+t;case 4554:return k+T(t,/([^-])(transform)/g,"$1"+k+"$2")+t;case 6187:return T(T(T(t,/(zoom-|grab)/,k+"$1"),/(image-set)/,k+"$1"),t,"")+t;case 5495:case 3959:return T(t,/(image-set\([^]*)/,k+"$1$`$1");case 4968:return T(T(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 T(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(B(t)-1-n>6)switch(L(t,n+1)){case 109:if(45!==L(t,n+4))break;case 102:return T(t,/(.+:)(.+)-([^]+)/,"$1"+k+"$2-$3$1"+S+(108==L(t,n+3)?"$3":"$2-$3"))+t;case 115:return~F(t,"stretch")?e(T(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==L(t,n+1))break;case 6444:switch(L(t,B(t)-3-(~F(t,"!important")&&10))){case 107:return T(t,":",":"+k)+t;case 101:return T(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+T(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return k+t+E+T(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return k+t+E+T(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return k+t+E+t+t}return t}(e.value,e.length);break;case A:return me([X(e,{value:T(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=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return me([X(e,{props:[T(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return me([X(e,{props:[T(t,/:(plac\w+)/,":"+k+"input-$1")]}),X(e,{props:[T(t,/:(plac\w+)/,":-moz-$1")]}),X(e,{props:[T(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&&B(w)-m&&W(d>32?pe(w+";",a,r,m-1):pe(T(w," ","")+";",a,r,m-2),l);break;case 59:w+=";";default:if(W(x=le(w,n,r,u,p,i,s,O,j=[],_=[],m),c),123===v)if(0===p)e(w,n,x,x,j,c,m,s,_);else switch(99===f&&110===L(w,3)?100:f){case 100:case 108:case 109:case 115:e(t,x,x,a&&W(le(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+B(w),d=b;default:if(y<1)if(123==v)--y;else if(125==v&&0==y++&&125==(G=H>0?L(q,--H):0,Z--,10===G&&(Z=1,I--),G))continue;switch(w+=N(v),v*y){case 38:g=p>0?1:(w+="\f",-1);break;case 44:s[u++]=(B(w)-1)*g,g=1;break;case 64:45===K()&&(w+=ae(Q())),f=K(),p=m=B(O=w+=se(J())),v++;break;case 45:45===b&&2==B(w)&&(y=0)}}return c}("",null,null,null,[""],e=ne(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(50);var xe=function(e,t,n){!function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)}(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+r:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}},we={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ee=/[A-Z]|^ms/g,Se=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ke=function(e){return 45===e.charCodeAt(1)},Ce=function(e){return null!=e&&"boolean"!=typeof e},Pe=O((function(e){return ke(e)?e:e.replace(Ee,"-$&").toLowerCase()})),ze=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Se,(function(e,t,n){return Me={name:t,styles:n,next:Me},t}))}return 1===we[e]||ke(e)||"number"!=typeof t||0===t?t:t+"px"};function Ae(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;a=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(a)+s,styles:a,next:Me}},Re=(!!v.useInsertionEffect&&v.useInsertionEffect||v.useLayoutEffect,v.createContext("undefined"!=typeof HTMLElement?je({key:"css"}):null));Re.Provider;var Te=function(e){return Object(v.forwardRef)((function(t,n){var r=Object(v.useContext)(Re);return e(t,r,n)}))},Fe=v.createContext({}),Le=_,De=function(e){return"theme"!==e},Be=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Le:De},Ue=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},We=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=Ue(t,n,i),s=o||Be(c),l=!s("as");return function(){var u=arguments,p=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&p.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)p.push.apply(p,u);else{p.push(u[0][0]);for(var m=u.length,f=1;f div {\n\t\tmargin-left: 8px;\n\t}\n\n\tsvg {\n\t\tdisplay: block;\n\n\t\t&:hover {\n\t\t\tcursor: pointer;\n\t\t}\n\t}\n"]))),tt=Ke(c.Popover)(He||(He=y()(["\n\t.components-popover__content {\n\t\tpadding: 20px;\n\t\twidth: 200px;\n\t}\n"]))),nt=Ke(c.ToggleControl)(Ge||(Ge=y()(["\n\t&& {\n\t\t.components-base-control__field {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\t}\n"]))),rt=n(51),at=n.n(rt),it=Ke(c.Card)(qe||(qe=y()(["\n\tpadding: 30px;\n\n\t&& {\n\t\tbox-shadow: 0 2px 6px 0 rgba( 0, 0, 0, 0.05 );\n\t\tborder: 1px solid #ccc;\n\t\twidth: 100%;\n\t}\n"]))),ct=Ke(c.CardHeader)(Ye||(Ye=y()(["\n\t&&& {\n\t\tpadding: 0 0 30px;\n\t}\n\n\th1 {\n\t\tfont-size: 26px;\n\t\tline-height: 1;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\n\tsmall {\n\t\tcolor: #c0c0c0;\n\t\tfont-size: 13px;\n\t\tfont-weight: normal;\n\t\tdisplay: block;\n\t\tmargin: 0 0 3px;\n\t}\n"]))),ot=Ke(c.CardFooter)(Xe||(Xe=y()(["\n\t&&& {\n\t\tpadding: 30px 0 0;\n\t}\n"]))),st=Ke(c.CardBody)(Qe||(Qe=y()(["\n\t&&& {\n\t\tpadding: 30px 0;\n\t}\n\n\t> * {\n\t\tmargin: 0 0 2rem;\n\n\t\t&:last-child {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\t}\n\n\t> p {\n\t\tcolor: #555555;\n\t\tfont-size: 15px;\n\t}\n"]))),lt=["title","supTitle","children"];function ut(e){return Object(i.createElement)(it,e)}function pt(e){var t=e.title,n=e.supTitle,r=e.children,a=at()(e,lt);return Object(i.createElement)(ct,a,Object(i.createElement)("div",null,n&&Object(i.createElement)("small",null,n),t&&Object(i.createElement)("h1",null,t)),r)}function mt(e){return Object(i.createElement)(ot,e)}function ft(e){return Object(i.createElement)(st,e)}var dt,bt=simpaySetupWizard.adminUrl;function yt(e){var t=e.isFirst,n=Object(i.useState)(!1),r=a()(n,2),s=r[0],l=r[1];return Object(i.createElement)(c.Flex,{justify:"center"},s&&Object(i.createElement)(c.Modal,{title:Object(o.__)("Are you sure you want to exit the wizard?","simple-pay"),onRequestClose:function(){return l(!1)}},Object(i.createElement)("p",{style:{marginBottom:"2rem"}},Object(o.__)("Manual setup is only recommended for experienced users.","simple-pay")),Object(i.createElement)(c.Flex,null,Object(i.createElement)(c.Button,{href:bt,isDestructive:!0,variant:"destructive"},Object(o.__)("Exit Setup Wizard","simple-pay")),Object(i.createElement)(c.Button,{variant:"primary",isPrimary:!0,onClick:function(){return l(!1)}},Object(o.__)("Continue Setup","simple-pay")))),Object(i.createElement)(c.Button,{isLink:!0,variant:"link",className:"simpay-setup-wizard-subtle-link",onClick:function(){return l(!0)}},t?Object(o.__)("Go back to the Dashboard","simple-pay"):Object(o.__)("Close and exit the Setup Wizard","simple-pay")))}var ht=Ke(c.Button)(dt||(dt=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"]))),gt=Object(i.forwardRef)((function(e,t){return Object(i.createElement)(ht,g()({isPrimary:!0,variant:"primary"},e,{ref:t}))}));function vt(e){return e.width,Object(i.createElement)("svg",{width:"311",height:"41",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(i.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.352 0C1.052 0 0 1.02 0 2.277v30.746C0 34.281 1.053 35.3 2.352 35.3h28.806c.975 0 1.764-.764 1.764-1.708 0-.943-.79-1.708-1.763-1.708H5.29c-.974 0-1.764-.765-1.764-1.708v-17.08c0-.944.79-1.709 1.764-1.709h44.092c1.299 0 2.352-1.02 2.352-2.277V2.277C51.735 1.02 50.682 0 49.383 0H2.352Zm55.262 24.198h-1.47v-1.993c0-4.088-3.422-7.402-7.643-7.402-4.22 0-7.642 3.314-7.642 7.402v1.993H38.8c-1.299 0-2.352 1.02-2.352 2.277v11.387c0 1.258 1.053 2.278 2.352 2.278h18.813c1.299 0 2.351-1.02 2.351-2.278V26.475c0-1.258-1.053-2.277-2.351-2.277Zm-4.997-1.993v1.993h-8.23v-1.993c0-2.201 1.842-3.985 4.114-3.985 2.273 0 4.116 1.784 4.116 3.985ZM8.23 20.497c0-.629.526-1.139 1.175-1.139H28.22c.65 0 1.176.51 1.176 1.139s-.527 1.139-1.176 1.139H9.406c-.649 0-1.175-.51-1.175-1.139Zm0 5.124c0-.629.526-1.138 1.175-1.138h7.055c.65 0 1.176.51 1.176 1.138 0 .63-.527 1.139-1.176 1.139H9.406c-.649 0-1.175-.51-1.175-1.139Zm31.158 11.672V27.045h17.637v10.248H39.389Z",fill:"#428BCA"}),Object(i.createElement)("path",{d:"M81.08 30.745h5.288l5.41-17.186 5.596 17.187h5.289l7.84-24.29h-5.288l-5.289 17.956L94.7 6.457h-5.842L83.785 24.38 78.528 6.457h-5.289l7.84 24.288Zm31.511 0h4.796v-8.793h6.456c5.319 0 8.302-3.228 8.302-7.963 0-4.735-2.983-7.532-8.302-7.532h-11.252v24.288Zm4.796-13.405V11.1h5.288c2.952 0 4.52 1.168 4.52 3.104 0 1.968-1.507 3.136-4.366 3.136h-5.442Zm35.473 13.897c6.303 0 10.023-3.197 10.023-7.747 0-10.3-14.789-4.581-14.789-10.085 0-1.906 1.599-3.013 4.52-3.013 2.859 0 4.519 1.322 4.704 3.567h5.288c0-4.92-4.089-7.994-9.9-7.994-5.872 0-9.562 2.89-9.562 7.502 0 10.268 14.758 4.642 14.758 10.084 0 1.998-1.752 3.26-4.919 3.26-3.228 0-5.073-1.6-5.165-4.305h-5.381c0 5.503 4.274 8.731 10.423 8.731Zm15.137-18.447c1.66 0 2.89-1.23 2.89-2.89 0-1.66-1.23-2.829-2.89-2.829-1.691 0-2.921 1.169-2.921 2.83 0 1.66 1.23 2.89 2.921 2.89Zm-2.306 17.956h4.581V14.758h-4.581v15.988Zm7.696-.001h4.55v-8.178c0-2.644 1.384-4.366 3.597-4.366 1.968 0 3.136 1.415 3.136 3.751v8.793h4.612v-8.178c0-2.644 1.384-4.366 3.597-4.366 1.968 0 3.136 1.415 3.136 3.751v8.793h4.643v-9.039c0-4.888-1.968-7.44-5.965-7.44-2.459 0-4.642.86-6.21 3.044-.892-2.03-2.583-3.044-5.135-3.044-2.552 0-4.335 1.076-5.411 2.798v-2.306h-4.55v15.988Zm30.183 6.15h4.551v-8.24c1.106 1.63 2.859 2.582 5.38 2.582 4.028 0 6.887-3.504 6.887-8.424 0-5.011-2.859-8.547-6.887-8.547-2.521 0-4.274.953-5.38 2.583v-2.091h-4.551v22.137Zm8.363-9.593c-2.244 0-3.843-1.875-3.843-4.52 0-2.674 1.599-4.58 3.843-4.58 2.275 0 3.874 1.906 3.874 4.58 0 2.645-1.599 4.52-3.874 4.52Zm10.651 3.443h4.551V6.457h-4.551v24.288Zm15.443.492c3.905 0 6.918-2.213 7.41-5.688h-4.551c-.184 1.107-1.229 1.968-2.828 1.968-2.368 0-3.536-1.353-3.751-3.412h11.222v-1.476c0-5.104-3.259-8.363-7.502-8.363-4.919 0-8.363 3.505-8.363 8.455 0 4.98 3.444 8.516 8.363 8.516Zm-3.689-9.93c.276-1.845 1.352-3.106 3.505-3.106 1.937 0 3.013 1.322 3.105 3.106h-6.61Zm22.358 9.438h4.796v-8.793h6.457c5.319 0 8.301-3.228 8.301-7.963 0-4.735-2.982-7.532-8.301-7.532h-11.253v24.288Zm4.796-13.405V11.1h5.288c2.952 0 4.52 1.168 4.52 3.104 0 1.968-1.507 3.136-4.366 3.136h-5.442Zm20.704 13.897c2.736 0 4.458-1.23 5.257-3.228.4 2.183 2.152 3.413 5.688 2.613v-3.259c-1.261.123-1.507-.338-1.507-1.66v-5.411c0-3.782-2.644-6.026-7.317-6.026-4.612 0-7.317 2.275-7.317 6.118h4.488c0-1.383 1.015-2.183 2.768-2.183 1.906 0 2.859.769 2.828 2.091v.492l-3.659.43c-4.519.523-7.071 2.368-7.071 5.258 0 2.429 1.722 4.765 5.842 4.765Zm.922-3.382c-1.414 0-2.183-.645-2.183-1.63 0-1.167 1.507-1.629 4.397-1.998l1.568-.153c-.277 2.152-1.599 3.781-3.782 3.781Zm11.126 9.04h1.967c3.936 0 6.641-1.077 8.271-4.981L311 14.758h-4.766l-3.996 10.669-4.797-10.67h-4.796l7.225 16.234c-1.014 1.446-2.06 1.907-4.058 1.876h-1.568v4.028Z",fill:"#428BCA"}))}var Ot=n(15);function jt(e){var t=Object(Ot.useSelect)((function(e){return Object(u.filter)(e("core/notices").getNotices(),{type:"snackbar"})}),[]),n=Object(Ot.useDispatch)("core/notices").removeNotice;return 0===t.length?null:Object(i.createElement)(c.SnackbarList,g()({onRemove:n,notices:t},e))}var _t,xt,wt,Et,St,kt=n(63),Ct=Ke.div(_t||(_t=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"]))),Pt={current:"var(--wp-admin-theme-color)",complete:"var(--wp-admin-theme-color)",incomplete:"#c0c0c0"},zt=Ke.div(xt||(xt=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 Pt[e.status]}),(function(e){return e.isComplete?"1":"0"}),(function(e){var t=e.isCurrent,n=e.isComplete;return t&&!n?"1":"0"})),At=Ke.div(wt||(wt=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"]))),Mt=Ke.div(Et||(Et=y()(["\n\twidth: 100%;\n\theight: 2px;\n\tbackground-color: rgba( 192, 192, 192, 0.5 );\n\twidth: 100px;\n"])));function Nt(e){for(var t=e.current,n=e.total,r=[],a=1;a<=n;a++){var c="incomplete";a * {\n\t\tmargin: 25px 0;\n\t}\n"])));function Tt(e){return Object(i.createElement)(Rt,e)}var Ft=Ke(c.Button)($t||($t=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"]))),Lt=Object(i.forwardRef)((function(e,t){return Object(i.createElement)(Ft,g()({isPrimary:!0,variant:"primary"},e,{ref:t}))}));function Dt(){return Object(i.createElement)("svg",{width:56,height:23,fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(i.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M55.742 11.884c0-3.93-1.92-7.032-5.59-7.032-3.684 0-5.914 3.101-5.914 7.001 0 4.622 2.632 6.955 6.41 6.955 1.843 0 3.236-.414 4.29-.998v-3.07c-1.053.522-2.261.844-3.794.844-1.502 0-2.834-.522-3.004-2.334h7.572c0-.2.03-.998.03-1.366Zm-7.649-1.459c0-1.735 1.069-2.456 2.044-2.456.945 0 1.951.721 1.951 2.456h-3.995Zm-9.832-5.573c-1.517 0-2.493.706-3.035 1.197l-.201-.952h-3.407V23l3.871-.814.016-4.345c.557.4 1.378.967 2.74.967 2.772 0 5.296-2.21 5.296-7.078-.015-4.452-2.57-6.878-5.28-6.878Zm-.929 10.579c-.913 0-1.456-.323-1.827-.722l-.016-5.696c.403-.446.96-.753 1.843-.753 1.41 0 2.385 1.566 2.385 3.578 0 2.057-.96 3.593-2.385 3.593ZM26.292 3.946l3.886-.83V0l-3.886.814v3.132Zm0 1.167h3.886v13.434h-3.886V5.113Zm-4.165 1.136-.248-1.136h-3.345v13.434h3.871V9.443c.914-1.183 2.462-.968 2.942-.799V5.113c-.495-.184-2.307-.522-3.22 1.136Zm-7.742-4.468-3.778.798-.016 12.299c0 2.272 1.719 3.946 4.01 3.946 1.27 0 2.2-.23 2.71-.507V15.2c-.495.2-2.942.906-2.942-1.366v-5.45h2.942V5.112H14.37l.016-3.332ZM3.917 9.013c0-.6.496-.83 1.317-.83 1.176 0 2.663.354 3.84.983V5.558c-1.286-.507-2.555-.706-3.84-.706C2.09 4.852 0 6.479 0 9.197c0 4.238 5.884 3.562 5.884 5.39 0 .705-.62.936-1.487.936-1.285 0-2.926-.522-4.227-1.229v3.655c1.44.614 2.896.875 4.227.875 3.221 0 5.435-1.582 5.435-4.33-.015-4.575-5.915-3.762-5.915-5.481Z",fill:"#fff"}))}var Bt=n(11),Ut=n.n(Bt);function Wt(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 It(e){for(var t=1;tWP Simple Pay account or purchase receipt email.","simple-pay"),{strong:Object(i.createElement)("strong",null),a:Object(i.createElement)("a",{href:nn,target:"_blank",rel:"noopener noreferrer"})})),Object(i.createElement)(c.TextControl,{label:Object(o.__)("License Key","simple-pay"),value:l,className:_,onChange:function(e){return u(e)},disabled:d,help:g||Object(o.__)("An active license ensures automatic updates and the latest features.","simple-pay"),ref:j})),Object(i.createElement)(mt,{justify:"flex-end",align:"center"},Object(i.createElement)(gt,{onClick:function(){b(!0);var e=new FormData;e.append("action","simpay_activate_license"),e.append("nonce",rn),e.append("license",l),m()({url:tn,method:"POST",body:e}).then((function(e){var r=e.success,a=e.data,i=a.message,c=a.license;if(!r)throw{message:i};n(c),O(Object(o.__)("License activated","simple-pay"),{type:"snackbar"}),b(!1),t()})).catch((function(e){var t=e.message;v(t),b(!1)}))},disabled:""===l||d,isBusy:d},Object(o.__)("Activate and Continue →","simple-pay"))))}},{id:"stripe",title:Object(o.__)("Connect to Stripe","simple-pay"),content:kn},{id:"emails",title:Object(o.__)("Configure Emails","simple-pay"),content:function(e){var t=e.goPrev,n=e.goNext,r=e.licenseData,a=Vt(),s=a.settings,l=a.rawSettings,p=a.discardChanges,m=a.editSettings,f=a.saveSettings,d=Object(i.useRef)();if(Object(i.useLayoutEffect)((function(){d.current&&d.current.focus()}),[l]),Object(u.isEmpty)(s))return Object(i.createElement)(ft,null,Object(i.createElement)(c.Spinner,null));var b=s["email_payment-confirmation"],y=s["email_payment-notification"],h=s["email_payment-notification_to"],g=s["email_upcoming-invoice"],v=s["email_invoice-confirmation"],O=r.features,j=O.subscriptions,_=O.enhanced_subscriptions;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(ft,null,Object(i.createElement)("ul",{className:"simpay-setup-wizard-toggle-list"},Object(i.createElement)("li",null,Object(i.createElement)("label",{htmlFor:"email_payment-confirmation"},Object(i.createElement)("h3",null,Object(o.__)("Payment Receipt","simple-pay")),Object(i.createElement)("p",null,Object(o.__)("Send a payment receipt email to the customer upon successful payment.","simple-pay"))),Object(i.createElement)(c.FormToggle,{id:"email_payment-confirmation",checked:"no"!==b,onChange:function(e){var t=e.target;return m({"email_payment-confirmation":t.checked?"yes":"no"})}})),Object(i.createElement)("li",null,Object(i.createElement)("label",{htmlFor:"email_payment-notification"},Object(i.createElement)("h3",null,Object(o.__)("Payment Notification","simple-pay")),Object(i.createElement)("p",null,Object(o.__)("Receive an email notification when a new payment is made.","simple-pay"))),Object(i.createElement)(c.FormToggle,{id:"email_payment-notification",checked:"no"!==y,onChange:function(e){var t=e.target;return m({"email_payment-notification":t.checked?"yes":"no"})}})),"no"!==y&&Object(i.createElement)("li",{className:"simpay-setup-wizard-toggle-list__child"},Object(i.createElement)(c.TextControl,{label:Object(o.__)("Send to:","simple-pay"),value:h,onChange:function(e){return m({"email_payment-notification_to":e})}})),_&&Object(i.createElement)("li",null,Object(i.createElement)("label",{htmlFor:"email_invoice-confirmation"},Object(i.createElement)("h3",null,Object(o.__)("Invoice Receipt","simple-pay")),Object(i.createElement)("p",null,Object(o.__)("Send a payment receipt email to the customer upon successful invoice.","simple-pay"))),Object(i.createElement)(c.FormToggle,{id:"email_payment-confirmation",checked:"no"!==v,onChange:function(e){var t=e.target;return m({"email_invoice-confirmation":t.checked?"yes":"no"})}})),j&&Object(i.createElement)("li",null,Object(i.createElement)("label",{htmlFor:"email_upcoming-invoice"},Object(i.createElement)("h3",null,Object(o.__)("Upcoming Invoice","simple-pay")),Object(i.createElement)("p",null,Object(o.__)("Remind customers of upcoming invoices and allow payment method changes.","simple-pay"))),Object(i.createElement)(c.FormToggle,{id:"email_upcoming-invoice",checked:"no"!==g,onChange:function(e){var t=e.target;return m({"email_upcoming-invoice":t.checked?"yes":"no"})}})))),Object(i.createElement)(mt,{justify:"space-between",align:"center"},Object(i.createElement)("div",null,Object(i.createElement)(c.Button,{isLink:!0,variant:"link",onClick:t,className:"simpay-setup-wizard-subtle-link"},Object(o.__)("← Previous Step","simple-pay"))),Object(i.createElement)("div",{style:{display:"flex",justifyContent:"center"}},Object(i.createElement)(c.Button,{isLink:!0,variant:"link",onClick:function(){p(),n()},style:{marginRight:"16px"},className:"simpay-setup-wizard-subtle-link"},Object(o.__)("Skip Step","simple-pay")),Object(i.createElement)(gt,{onClick:function(){f(),n()},ref:d},Object(o.__)("Save and Continue →","simple-pay")))))}},{id:"next-steps",title:Object(o.__)("🎉 Setup Complete","simple-pay"),content:function(){return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(ft,null,Object(i.createElement)("div",{className:"simpay-setup-wizard-content-list"},Object(i.createElement)("div",{className:"simpay-setup-wizard-content-list__content"},Object(i.createElement)("p",null,Object(o.__)("Congratulations, you’re ready to start accepting payments!","simple-pay")),Object(i.createElement)("p",null,Object(o.__)("WP Simple Pay is just that: simple. Create your first payment form below to start collecting payments, or fine-tune your setup through some of these suggestions:","simple-pay"))),Object(i.createElement)("div",{className:"simpay-setup-wizard-content-list__list"},Object(i.createElement)("ul",{className:"simpay-setup-wizard-bullet-list"},Object(i.createElement)("li",null,Object(i.createElement)("a",{href:gn,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("Collect tax or GST","simple-pay"))),Object(i.createElement)("li",null,Object(i.createElement)("a",{href:vn,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("Add anti-spam protection","simple-pay"))),Object(i.createElement)("li",null,Object(i.createElement)("a",{href:On,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("Change the default currency","simple-pay"))),Object(i.createElement)("li",null,Object(i.createElement)("a",{href:jn,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("Customize receipts","simple-pay")))))),Object(i.createElement)("hr",null),Object(i.createElement)("div",{className:"simpay-setup-wizard-doc-suggestions"},Object(i.createElement)("div",null,Object(i.createElement)("h3",null,Object(o.__)("Accept Donations","simple-pay")),Object(i.createElement)("p",null,Object(o.__)("Easily fundraise or accept donations online via 135+ supported currencies. Offer one-time or recurring donations of fixed or user-defined amounts.","simple-pay")),Object(i.createElement)(c.Button,{href:xn,variant:"secondary",isSecondary:!0,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("View Walkthrough","simple-pay"))),Object(i.createElement)("div",null,Object(i.createElement)("h3",null,Object(o.__)("Reconcile Invoices","simple-pay")),Object(i.createElement)("p",null,Object(o.__)("Collect additional custom data on your payment forms such as an Invoice ID to reconcile invoices against your own invoicing system.","simple-pay")),Object(i.createElement)(c.Button,{href:wn,variant:"secondary",isSecondary:!0,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("View Walkthrough","simple-pay"))))),Object(i.createElement)(mt,{justify:"space-between",align:"center"},Object(i.createElement)("div",{style:{flexBasis:"100%"}},Object(i.createElement)(c.Button,{isLink:!0,variant:"link",href:yn,className:"simpay-setup-wizard-subtle-link",icon:Object(i.createElement)(f.a,{icon:on})},Object(o.__)("Return to Dashboard","simple-pay"))),Object(i.createElement)(c.Flex,{justify:"flex-end",gap:4},Object(i.createElement)(gt,{href:hn},Object(o.__)("Create a Payment Form →","simple-pay")))))}}],lite:[{id:"stripe",title:Object(o.__)("Connect to Stripe","simple-pay"),content:kn},{id:"analytics",title:Object(o.__)("Help Improve WP Simple Pay + Smart Recommendations","simple-pay"),content:function(e){var t=e.goPrev,n=e.goNext,r=Vt(),s=r.settings,l=r.rawSettings,p=r.discardChanges,b=r.editSettings,y=r.saveSettings,h=Object(i.useState)(!0),g=a()(h,2),v=g[0],O=g[1],j=Object(i.useState)(Yt),_=a()(j,2),x=_[0],w=_[1],E=Object(i.useState)(!1),S=a()(E,2),k=S[0],C=S[1],P=Object(i.useState)(!1),z=a()(P,2),A=z[0],M=z[1],N=Object(i.useRef)();return Object(i.useLayoutEffect)((function(){N.current&&N.current.focus()}),[l]),Object(u.isEmpty)(s)?Object(i.createElement)(ft,null,Object(i.createElement)(c.Spinner,null)):Object(i.createElement)(i.Fragment,null,Object(i.createElement)(ft,null,Object(i.createElement)("p",null,Object(o.__)("Get helpful suggestions from WP Simple Pay on how to optimize your payment forms and grow your business or increase donations.","simple-pay")),Object(i.createElement)(c.TextControl,{label:Object(o.__)("Your Email Address:","simple-pay"),value:x,className:"simpay-setup-wizard-large-input",onChange:function(e){return w(e)},help:Object(o.__)("Your email is needed so you receive recommendations.","simple-pay"),ref:N,disabled:k}),Object(i.createElement)("hr",null),Object(i.createElement)(Je,null,Object(i.createElement)(et,null,Object(o.__)("Help make WP Simple Pay better for everyone","simple-pay"),Object(i.createElement)("div",null,A&&Object(i.createElement)(tt,{position:"top center"},Object(o.__)("By allowing us to track usage data we can better help you because we know which WordPress configurations, themes, and plugins we should test.","simple-pay")),Object(i.createElement)(f.a,{size:20,icon:d.a,onMouseEnter:function(){return M(!0)},onMouseLeave:function(){return M(!1)}}))),Object(i.createElement)(nt,{label:Object(o.__)("Yes, count me in","simple-pay"),id:"email_payment-confirmation",checked:v,disabled:k,onChange:function(e){O(e)}}))),Object(i.createElement)(mt,{justify:"space-between",align:"center"},Object(i.createElement)("div",null,Object(i.createElement)(c.Button,{isLink:!0,variant:"link",onClick:t,className:"simpay-setup-wizard-subtle-link",disabled:k},Object(o.__)("← Previous Step","simple-pay"))),Object(i.createElement)("div",{style:{display:"flex",justifyContent:"center"}},Object(i.createElement)(c.Button,{isLink:!0,variant:"link",onClick:function(){p(),n()},style:{marginRight:"16px"},className:"simpay-setup-wizard-subtle-link",disabled:k},Object(o.__)("Skip Step","simple-pay")),Object(i.createElement)(gt,{onClick:function(){C(!0),b({usage_tracking_opt_in:v?"yes":"no"}),y();var e=new FormData;e.append("action","simpay_setup_wizard_subscribe_email"),e.append("nonce",Xt),e.append("email",x),m()({url:Qt,method:"POST",body:e}).finally((function(){C(!1),n()}))},isBusy:k,disabled:k},Object(o.__)("Save and Continue →","simple-pay")))))}},{id:"next-steps",title:Object(o.__)("🎉 Setup Complete","simple-pay"),content:function(){return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(ft,null,Object(i.createElement)(c.Flex,{justify:"space-between",align:"center",className:"simpay-setup-wizard-content-list"},Object(i.createElement)("div",{className:"simpay-setup-wizard-content-list__content"},Object(i.createElement)("p",null,Object(o.__)("Congratulations, you’re ready to start easily and securely accepting payments with WP Simple Pay!","simple-pay"))),Object(i.createElement)("div",null,Object(i.createElement)(gt,{href:mn},Object(o.__)("Create a Payment Form →","simple-pay")))),Object(i.createElement)("hr",null),Object(i.createElement)(sn,null,Object(i.createElement)("h4",null,Object(o.__)("Special Upgrade Offer - Save 50%","simple-pay")),Object(i.createElement)("h3",null,Object(o.__)("Upgrade to WP Simple Pay Pro Today and Save","simple-pay")),Object(i.createElement)(ln,{className:"simpay-setup-wizard-check-list"},dn.map((function(e){return Object(i.createElement)("li",{key:e},Object(i.createElement)(f.a,{icon:kt.a}),e)}))),Object(i.createElement)(c.Button,{isLarge:!0,isSecondary:!0,variant:"secondary",href:fn,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("Upgrade to WP Simple Pay Pro","simple-pay")))),Object(i.createElement)(mt,{justify:"center"},Object(i.createElement)(c.Button,{isLink:!0,variant:"link",href:pn,className:"simpay-setup-wizard-subtle-link",icon:Object(i.createElement)(f.a,{icon:on})},Object(o.__)("Return to Dashboard","simple-pay"))))}}]},An=simpaySetupWizard,Mn=An.license,Nn=An.adminUrl,$n=Mn.is_lite;Object(i.render)(Object(i.createElement)((function(){var e=zn[!0===$n?"lite":"pro"],t=Object(s.getQueryArg)(window.location.href,"step"),n=Object(i.useState)(Mn),r=a()(n,2),u=r[0],p=r[1],m=function(e){var t=e.steps,n=e.currentStepId,r=t.findIndex((function(e){return e.id===n}))||0,c=Object(i.useState)(r),o=a()(c,2),l=o[0],u=o[1];function p(e){u(e),window.history.pushState({},"",Object(s.addQueryArgs)(window.location.href,{step:t[e].id}))}return Object(i.useEffect)((function(){var e=function(){var e=Object(s.getQueryArg)(window.location.search,"step"),n=t.findIndex((function(t){return t.id===e}))||0;u(n)};return window.addEventListener("popstate",e),window.addEventListener("pushstate",e),function(){window.removeEventListener("popstate",e),window.removeEventListener("pushstate",e)}}),[]),{currentStep:l,setCurrentStep:u,hasNext:l0}}({steps:e,currentStepId:t}),f=m.currentStep,d=m.goNext,b=m.goPrev,y=m.hasNext,h=m.hasPrev;if(-1===f)return Object(i.createElement)(Pn,{steps:e,goNext:d});var g=e[f],v=g.content;return Object(i.createElement)(c.SlotFillProvider,null,Object(i.createElement)(l.EntityProvider,{kind:"root",type:"site"},Object(i.createElement)(Tt,null,Object(i.createElement)("a",{href:Nn},Object(i.createElement)(vt,{width:"250px"})),Object(i.createElement)(Nt,{current:f+1,total:e.length}),Object(i.createElement)(ut,{isRounded:!0},Object(i.createElement)(pt,{supTitle:Object(o.sprintf)(/* translators: %1$d current step count. %2$d total step count*/ +Object(o.__)("Step %1$d of %2$d","simple-pay"),f+1,e.length),title:g.title}),Object(i.createElement)(v,{steps:e,currentStep:f,goPrev:b,goNext:d,hasNext:y,hasPrev:h,licenseData:u,setLicenseData:p})),y&&Object(i.createElement)(yt,null)),Object(i.createElement)(jt,{className:"simpay-setup-wizard-toasts"}),Object(i.createElement)(c.Popover.Slot,null)))}),null),document.getElementById("simpay-setup-wizard"))}]); \ No newline at end of file diff --git a/includes/core/assets/js/simpay-admin.min.js b/includes/core/assets/js/simpay-admin.min.js index 5f87cfe6..dd5aa289 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(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=32)}([function(e,t,n){"use strict";function r(e){"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e()}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var r=n(9),a=n.n(r),i=n(5),o=n.n(i);function c(_x,e){return s.apply(this,arguments)}function s(){return(s=a()(o.a.mark((function t(n,r){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.ajax({data:r,method:"POST",url:"".concat(wpApiSettings.root,"wpsp/").concat(n),beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",wpApiSettings.nonce)}});case 3:return t.abrupt("return",t.sent);case 6:throw t.prev=6,t.t0=t.catch(0),t.t0.responseJSON;case 10:case"end":return t.stop()}}),t,null,[[0,6]])})))).apply(this,arguments)}}).call(this,n(7))},function(e,t,n){var r=n(18);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(27);n.o(r,"maybeBlockButtonWithUpgradeModal")&&n.d(t,"maybeBlockButtonWithUpgradeModal",(function(){return r.maybeBlockButtonWithUpgradeModal})),n.o(r,"maybeBlockCheckboxWithUpgradeModal")&&n.d(t,"maybeBlockCheckboxWithUpgradeModal",(function(){return r.maybeBlockCheckboxWithUpgradeModal})),n.o(r,"maybeBlockSelectWithUpgradeModal")&&n.d(t,"maybeBlockSelectWithUpgradeModal",(function(){return r.maybeBlockSelectWithUpgradeModal})),n.o(r,"upgradeModal")&&n.d(t,"upgradeModal",(function(){return r.upgradeModal})),n(15);var a=n(28);n.d(t,"maybeBlockButtonWithUpgradeModal",(function(){return a.a})),n.d(t,"maybeBlockCheckboxWithUpgradeModal",(function(){return a.b})),n.d(t,"maybeBlockSelectWithUpgradeModal",(function(){return a.c})),n.d(t,"upgradeModal",(function(){return a.d}))},function(e,t){var n=/^(?:submit|button|image|reset|file)$/i,r=/^(?:input|select|textarea|keygen)/i,a=/(\[[^\[\]]*\])/g;function i(e,t,n){if(t.match(a))!function e(t,n,r){if(0===n.length)return r;var a=n.shift(),i=a.match(/^\[(.+?)\]$/);if("[]"===a)return t=t||[],Array.isArray(t)?t.push(e(null,n,r)):(t._values=t._values||[],t._values.push(e(null,n,r))),t;if(i){var o=i[1],c=+o;isNaN(c)?(t=t||{})[o]=e(t[o],n,r):(t=t||[])[c]=e(t[c],n,r)}else t[a]=e(t[a],n,r);return t}(e,function(e){var t=[],n=new RegExp(a),r=/^([^\[\]]*)/.exec(e);for(r[1]&&t.push(r[1]);null!==(r=n.exec(e));)t.push(r[1]);return t}(t),n);else{var r=e[t];r?(Array.isArray(r)||(e[t]=[r]),e[t].push(n)):e[t]=n}return e}function o(e,t,n){return n=n.replace(/(\r)?\n/g,"\r\n"),n=(n=encodeURIComponent(n)).replace(/%20/g,"+"),e+(e?"&":"")+encodeURIComponent(t)+"="+n}e.exports=function(e,t){"object"!=typeof t?t={hash:!!t}:void 0===t.hash&&(t.hash=!0);for(var a=t.hash?{}:"",c=t.serializer||(t.hash?i:o),s=e&&e.elements?e.elements:[],l=Object.create(null),u=0;u3&&void 0!==arguments[3]?arguments[3]:10;if(a(t)&&r(n))if("function"==typeof i)if("number"==typeof o){var c={callback:i,priority:o,namespace:n};if(e[t]){var s,l=e[t].handlers;for(s=l.length;s>0&&!(o>=l[s-1].priority);s--);s===l.length?l[s]=c:l.splice(s,0,c),(e.__current||[]).forEach((function(e){e.name===t&&e.currentIndex>=s&&e.currentIndex++}))}else e[t]={handlers:[c],runs:0};"hookAdded"!==t&&f("hookAdded",t,n,i,o)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}},o=function(e,t){return function(n,i){if(a(n)&&(t||r(i))){if(!e[n])return 0;var o=0;if(t)o=e[n].handlers.length,e[n]={runs:e[n].runs,handlers:[]};else for(var c=e[n].handlers,s=function(t){c[t].namespace===i&&(c.splice(t,1),o++,(e.__current||[]).forEach((function(e){e.name===n&&e.currentIndex>=t&&e.currentIndex--})))},l=c.length-1;l>=0;l--)s(l);return"hookRemoved"!==n&&f("hookRemoved",n,i),o}}},c=function(e){return function(t,n){return void 0!==n?t in e&&e[t].handlers.some((function(e){return e.namespace===n})):t in e}},s=function(e,t){return function(n){e[n]||(e[n]={handlers:[],runs:0}),e[n].runs++;for(var r=e[n].handlers,a=arguments.length,i=new Array(a>1?a-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.id,r=t.getFormData;return Object(i.a)("v2/customer",d({form_values:l()(t[0],{hash:!0}),form_data:r(),form_id:n},e))}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.id,r=t.getFormData;return Object(i.a)("v2/checkout-session",f({form_values:l()(t[0],{hash:!0}),form_data:r(),form_id:n},e))}n(9),n(5),n(11)},,function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--r){var a=this.tryEntries[r],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),f}},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:j(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(6).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},Number.isSafeInteger=Number.isSafeInteger||function(e){return Number.isInteger(e)&&Math.abs(e)<=Number.MAX_SAFE_INTEGER},Number.MAX_SAFE_INTEGER||(Number.MAX_SAFE_INTEGER=9007199254740991)},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return u}));var r=n(2),a=n.n(r);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};e(".simpay-upgrade-modal").dialog(o({position:{my:"center",at:"center",of:window},modal:!0,width:600,resizable:!1,draggable:!1,open:function(){var t=e(this);t.parent().find(".ui-dialog-titlebar").css({borderBottom:0}),t.find(".simpay-upgrade-modal__title").html(n),t.find(".simpay-upgrade-modal__description").html(r),t.find(".simpay-upgrade-modal__upgrade-url").attr("href",a),t.find(".simpay-upgrade-modal__upgrade-purchased-url").attr("href",i)}},c))}}).call(this,n(7))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(0);function a(e,t){var n=document.getElementById("simpay-test-mode-toggle-notice");if(n)if(e!==t){var r=document.getElementById("simpay-toggle-notice-status"),a=document.getElementById("simpay-toggle-notice-status-link");n.style.display="block",r&&a&&(r.innerHTML=""+r.dataset[e]+"",a.href=a.dataset[e])}else n.style.display="none"}function i(){var t=document.querySelectorAll(".simpay-disconnect-link");if(t){var n=simpayAdmin.i18n,r=n.disconnectConfirm,a=n.disconnectCancel;t.forEach((function(t){t.addEventListener("click",(function(n){n.preventDefault(),e(".simpay-disconnect-confirm").dialog({resizable:!1,height:"auto",width:400,modal:!0,draggable:!1,open:function(){e(".ui-dialog-buttonset .ui-button").removeClass("ui-button").last().css({marginLeft:"10px"}).focus()},buttons:[{text:a,click:function(){e(this).dialog("close")},class:"button button-secondary"},{text:r,click:function(){window.location.href=t.href},class:"button button-primary"}]})}))}))}}Object(r.a)((function(){var e;(e=document.getElementById("simpay-stripe-account-info"))&&wp.ajax.send("simpay_stripe_connect_account_information",{data:{nonce:e.dataset.nonce},success:function(t){e.querySelector("p").innerHTML=t.message,e.style.display="block","simpay-stripe-activated-account-actions"===t.actions?e.classList.add("notice-info"):e.classList.add("notice-warning");var n=document.getElementById(t.actions);n&&(n.style.display="block"),i()},error:function(t){e.querySelector("p").innerHTML=t.message,e.style.display="block",e.classList.add("notice-error");var n=document.getElementById(t.actions);n&&(n.style.display="block",i())}})}))}).call(this,n(7))},,,function(e,t,n){"use strict";n.r(t),function(e){var t=n(10),r=n.n(t),a=n(8),i=(n(33),n(34),n(35),n(29));n(36),n(37),n(59),n(42),n(43),window.wpsp=window.wpsp||{hooks:a.b};var o,c,s,l=simpayAdmin,u=l.licenseLevel,d=l.i18n.trashFormConfirm,p={};p={init:function(){c=o(document.body),s=c.find("#simpay-form-settings"),this.handleMetaboxTabClick(),window.postboxes&&window.postboxes.handle_click&&s.on("click",".postbox .simpay-hndle, .postbox .simpay-handlediv",window.postboxes.handle_click),a.b.addAction("settings.toggleTestMode","wpsp/settings/stripe-connect",i.a),this.handleFormBuilderSettingToggles(),a.b.addAction("customFieldAdded","wpsp/payment-form",this.handleFormBuilderSettingToggles),s.on("click.simpayTabLink",".simpay-tab-link",(function(e){e.preventDefault(),p.handleInternalLinkToTabClicks(o(this))})),o(document).on("click.simpayImagePreview",".simpay-remove-image-preview",(function(e){p.handleRemoveImagePreviewClick(e)})),this.setupChosen(),this.addMediaFields(),this.stripeConnect(),this.initSortableFields(s.find(".simpay-custom-fields")),s.find(".add-field").on("click.simpayAddField",this.addField),s.find(".simpay-custom-fields").on("click",".simpay-remove-field-link",this.removeField);var e=o(".simpay-payment-modes");e.length&&e.find("input").each((function(){var t=o(this);e.hasClass("simpay-payment-mode--"+t.val())||t.attr("disabled",!0)})),this.bindTrashWarning(),c.trigger("simpayAdminInit"),o(".show-settings").detach().prependTo(".simpay-branding-bar__actions").removeClass().addClass("simpay-branding-bar__actions-button").html('').on("click",window.screenMeta.toggleEvent)},handleFormBuilderSettingToggles:function(){["_amount_type","_success_redirect_type","_subscription_type","_subscription_custom_amount","_form_type","_tax_status","_enable_payment_page","_inventory","_inventory_behavior","_schedule_start","_schedule_end",".simpay-total-amount-label-recurring",".simpay-total-amount-label-tax",".simpay-shipping-address",".simpay-text-multiline",".simpay-dropdown-type",".simpay-radio-type",".simpay-price-enable-custom",".simpay-price-type input",".simpay-email-link-enabled",".simpay-phone-smart-enabled"].forEach((function(e){var t=o(e),n=!1;"."!==e.substring(0,1)?t='[name="'.concat(e,'"]'):(t=e,n=!0),o("#simpay-form-settings").on("change",t,(function(){var t=o("#simpay-form-settings");!0===n&&(t=o(this).closest(".simpay-field-data"));var r=o(this).val();o(this).is(":checkbox")&&(r=o(this).is(":checked")?"yes":"no"),t.find(o('.simpay-show-if[data-if="'.concat(e,'"]'))).each((function(){var e=o(this),t=e.data("is");e.hide(),t.includes(r)&&e.show().css("display","block")}))})),o(t).filter(":checkbox").trigger("change"),o(t).filter(":checked").trigger("change"),o(t).is("select")&&o(t).trigger("change")}))},handleRemoveImagePreviewClick:function(e){e.preventDefault(),o(e.target).parents("td").find(".simpay-image-preview-wrap").val("").hide(),o(e.target).parents("td").find(".simpay-field-image-url").val(""),o(e.target).parents("td").find(".simpay-remove-image-preview").hide()},addMediaFields:function(){o(".simpay-media-uploader").on("click",(function(e){e.preventDefault();var t=wp.media.frames.file_frame=wp.media({title:simpayAdmin.i18n.mediaTitle,button:{text:simpayAdmin.i18n.mediaButtonText},multiple:!1}),n=o(this);t.on("select",(function(){var e=t.state().get("selection").first().toJSON(),r=n.parents("td").find(".simpay-field-image-url"),a="id"===r.data("fvalue")?e.id:e.url;n.parents("td").find(".simpay-image-preview-wrap").show(),n.parents("td").find(".simpay-remove-image-preview").show(),n.parents("td").find(".simpay-image-preview").prop("src",a),r.val(a)})),t.open()}))},setupChosen:function(){var e=o(".simpay-chosen-select, .simpay-chosen-search");e.chosen({disable_search_threshold:20}),e.chosen()},handleMetaboxTabClick:function(){var e=o("ul.simpay-tabs a"),t=o("div.simpay-panel"),n=e.parents("li");e.on("click",(function(e){e.preventDefault();var r=o(this).parent(),a=o(o(this).attr("href")),i=o(this).attr("href");history.pushState(null,null,i),setTimeout((function(){window.scrollTo(0,0)}),1),o('[name="simpay_form_settings_tab"]').val(i),o(".simpay-panels > .spinner").hide(),n.removeClass("active"),r.addClass("active"),t.addClass("simpay-panel-hidden"),a.removeClass("simpay-panel-hidden")}));var r="#form-display-options-settings-panel";location.hash.length&&(r=location.hash);var a=o('ul.simpay-tabs a[href="'+r+'"]');o('[name="simpay_form_settings_tab"]').val(r),a.length&&a.click()},stripeConnect:function(){var e="tr:nth-child(2), tr:nth-child(3), tr:nth-child(4), tr:nth-child(5)";o(".simpay-settings.stripe-account .form-table").find(e).hide(),o("#wpsp-api-keys-row-reveal button").on("click",(function(t){t.preventDefault(),o(".simpay-settings.stripe-account .form-table").find(e).show(),o("#wpsp-api-keys-row-hide").show(),o(this).parent().hide(),o(".wpsp-manual-key-warning").show()})),o("#wpsp-api-keys-row-hide button").on("click",(function(t){t.preventDefault(),o(".simpay-settings.stripe-account .form-table").find(e).hide(),o("#wpsp-api-keys-row-reveal").show(),o(this).parent().hide(),o(".wpsp-manual-key-warning").hide()}))},handleInternalLinkToTabClicks:function(e){var t=e.data("show-tab");c.find("."+t+"-tab a").click()},bindTrashWarning:function(){["plus","professional","elite","ultimate"].includes(u)&&(o(".post-type-simple-pay .submitdelete").click((function(e){confirm(d)||e.preventDefault()})),o(".post-type-simple-pay #posts-filter").submit((function(e){"trash"===o(this).find('select[name="action"]').val()&&(confirm(d)||e.preventDefault())})))},initSortableFields:function(e){e.sortable({items:".simpay-field-metabox:not(.simpay-custom-field-payment-button):not(.simpay-custom-field-checkout-button)",containment:"#simpay-form-settings",handle:".simpay-hndle",placeholder:"sortable-placeholder",cursor:"move",delay:o(document.body).hasClass("mobile")?200:0,distance:2,tolerance:"pointer",forcePlaceholderSize:!0,opacity:.65,stop:function(e,t){p.orderFields()},helper:function(e,t){return t.clone().find(":input").attr("name",(function(e,t){return"sort_"+parseInt(1e5*Math.random(),10).toString()+"_"+t})).end()}})},addField:function(e){var t=s.find(".simpay-custom-fields .simpay-field-metabox").length,n=o("#simpay-custom-fields-wrap").find(".simpay-metaboxes"),i=s.find("#custom-field-select"),c=i.val(),l=r()(document.querySelectorAll(".field-uid")).map((function(e){return parseInt(e.value)})),u={action:"simpay_add_field",post_id:o("#post_ID").val(),fieldType:c,counter:parseInt(t)+1,nextUid:parseInt(_.max(l))+1,addFieldNonce:s.find("#simpay_custom_fields_nonce").val()};e.preventDefault(),s.find(".simpay-field-data").each((function(){o(this).is(":visible")&&(o(this).hide(),o(this).addClass("closed"))})),o.ajax({url:ajaxurl,method:"POST",data:u,success:function(e){var t=o("
").append(e);["payment_button","checkout_button"].includes(c)?n.append(t.html()):n.prepend(t.html()),i.prop("selectedIndex",0),p.orderFields(),a.b.doAction("customFieldAdded",e)},error:function(e){window.spShared.debugLog(e)}})},removeField:function(e){if(e.preventDefault(),s.find("#custom-field-select"),window.confirm("Are you sure you want to remove this field?")){var t=o(this).closest(".simpay-field-metabox");t.data("type"),t.remove(),a.b.doAction("customFieldRemoved")}},orderFields:function(){o(".simpay-custom-fields .simpay-field-metabox").each((function(e,t){var n=parseInt(o(t).index(".simpay-custom-fields .simpay-field-metabox"));o(".field-order",t).val(n+1)}))}},(o=e)(document).ready((function(e){p.init()}))}.call(this,n(7))},function(e,t,n){"use strict";var r=n(10),a=n.n(r),i=n(0),o=simpayAdminSettingToggles||[];function c(e){var t=e.id,n=document.querySelector(".simpay-settings-".concat(t));if(!n)return{};var r=n.querySelectorAll('input[name="simpay_settings['.concat(t,']"]'));0===r.length&&(r=n.querySelectorAll('select[name="'.concat(t,'"]')));var i=r[0].value;if(["radio","checkbox"].includes(r[0].type)){var o=a()(r).filter((function(e){return e.checked}));i=0===o.length?"no":o[0].value}return{setting:r,currentValue:i}}function s(e){var t=e.id,n=e.value,r=e.toggles,a=e.compare;if("none"!==document.querySelector(".simpay-settings-".concat(t)).style.display){var i=c(e).currentValue;r.map((function(e){return document.querySelector(".simpay-settings-".concat(e))})).forEach((function(e){e&&(e.style.display="IS NOT"===a?i===n?"none":"table-row":i===n?"table-row":"none")})),r.forEach((function(e){var t=_.find(o,{id:e});t&&s(t)}))}}Object(i.a)((function(){o.forEach((function(e){s(e),c(e).setting.forEach((function(t){t.addEventListener("change",(function(){s(e)}))}))}))}))},function(e,t,n){"use strict";var r=n(0);Object(r.a)((function(){var e=window.wpsp.hooks,t=document.querySelectorAll('[name="simpay_settings[test_mode]"]');if(0!==t.length){var n="enabled"===document.querySelector('[name="simpay_settings[test_mode]"]:checked').value?"test":"live";e.doAction("settings.toggleTestMode",n,n),_.each(t,(function(t){return t.addEventListener("change",(function(t){var r="enabled"===t.target.value?"test":"live";e.doAction("settings.toggleTestMode",r,n)}))}))}}))},function(e,t,n){"use strict";var r=n(0);function a(e){var t=document.getElementById("simpay-connect-license-feedback"),n=document.getElementById("simpay-connect-license-submit");e.message?(t.innerText=e.message,t.classList.remove("simpay-license-message--valid"),t.classList.add("simpay-license-message--invalid"),t.style.display="block"):t.style.display="none",e.reload?setTimeout((function(){window.location.reload()}),2e3):(n.disabled=!1,n.innerText=n.dataset.connect)}function i(e){var t=document.getElementById("simpay-connect-license-feedback");e.message?(t.innerText=e.message,t.classList.remove("simpay-license-message--invalid"),t.classList.add("simpay-license-message--valid"),t.style.display="block"):t.style.display="none",e.reload?setTimeout((function(){window.location.reload()}),2e3):window.location=e.url}function o(){var e=document.getElementById("simpay-connect-license-key"),t=document.getElementById("simpay-connect-license-nonce"),n=document.getElementById("simpay-connect-license-submit");n.disabled=!0,n.innerText=n.dataset.connecting,wp.ajax.send("simpay_get_connect_url",{data:{nonce:t.value,key:e.value},success:i,error:a})}Object(r.a)((function(){var e=document.getElementById("simpay-connect-license-key");if(e){var t=document.getElementById("simpay-connect-license-submit");e.addEventListener("keypress",(function(e){"Enter"===e.key&&(e.preventDefault(),o())})),t.addEventListener("click",(function(e){e.preventDefault(),t.disabled=!0,o()}))}}))},function(e,t,n){"use strict";var r=n(0),a=[".simpay-settings-hcaptcha_setup",".simpay-settings-hcaptcha_site_key",".simpay-settings-hcaptcha_secret_key",".simpay-settings-recaptcha_setup",".simpay-settings-recaptcha_site_key",".simpay-settings-recaptcha_secret_key",".simpay-settings-recaptcha_score_threshold",".simpay-settings-cloudflare_turnstile_setup",".simpay-settings-cloudflare_turnstile_site_key",".simpay-settings-cloudflare_turnstile_secret_key",".simpay-settings-no_captcha_warning"];function i(e){var t,n=e.target.value;switch(n){case"none":t="no_captcha";break;case"recaptcha-v3":t="recaptcha";break;case"cloudflare-turnstile":t="cloudflare_turnstile";break;default:t=n}a.forEach((function(e){var n=document.querySelector(e);n&&(n.style.display=e.includes(t)?"table-row":"none")}))}Object(r.a)((function(){var e=document.querySelectorAll('input[name="simpay_settings[captcha_type]"]');if(0!==e.length){a.forEach((function(e){var t=document.querySelector(e);t&&(t.style.display="none")})),e.forEach((function(e){return e.addEventListener("change",i)}));var t=document.querySelector('input[name="simpay_settings[captcha_type]"]:checked');t&&t.dispatchEvent(new Event("change")),function(){var e=document.querySelector(".simpay-recaptcha-feedback");if(e){var t=simpayGoogleRecaptcha,n=t.siteKey,r=t.i18n;""!==n&&grecaptcha.ready((function(){var e=document.querySelector(".grecaptcha-badge");e&&(e.style.display="none");try{grecaptcha.execute(n,{action:"simple_pay_admin_test"}).then((function(e){wp.ajax.send("simpay_validate_recaptcha_source",{data:{token:e,recaptcha_action:"simple_pay_admin_test"},error:a})})).catch(a)}catch(e){a()}}))}function a(){e.style.display="block",e.classList.add("notice-error"),e.innerHTML="";var t=document.createElement("p");t.innerText=r.invalid,e.appendChild(t)}}()}}))},function(e,t,n){"use strict";var r=n(0),a=n(3);Object(r.a)((function(){var e=document.querySelector(".simpay-settings-emails-configure");e&&(document.querySelector(".simpay-settings-subsection-delivery").after(e),function(e){var t=e.querySelector("select");t&&t.addEventListener("change",(function(e){var n=e.target,r=n.options[n.selectedIndex].dataset,i=r.available,o=r.upgradeTitle,c=r.upgradeDescription,s=r.upgradeUrl,l=r.upgradePurchasedUrl;"no"===i&&(Object(a.upgradeModal)({title:o,description:c,url:s,purchasedUrl:l}),t.value="",t.selectedIndex=0)}))}(e))}))},function(e,t,n){"use strict";(function(e){var t=n(4),r=n.n(t),a=n(0),i=n(3);Object(a.a)((function(){var t,n,a,o,c=document.querySelector(".post-type-simple-pay #post");if(c){var s=r()(c,{hash:!0});delete s.simpay_form_settings_tab,function(t){function n(e){var n=r()(document.querySelector(".post-type-simple-pay form#post"),{hash:!0});if(delete n.simpay_form_settings_tab,delete n.simpay_save_preview,JSON.stringify(n)!==t)return e.preventDefault(),simpayAdmin.i18n.leavePageConfirm}window.addEventListener("beforeunload",n),window.onbeforeunload=n,e(".post-type-simple-pay form#post").off("submit").on("submit",(function(){window.removeEventListener("beforeunload",n),window.onbeforeunload=null}))}(JSON.stringify(s)),a=document.getElementById("form-type-select"),o=document.getElementById("is-overlay"),a.addEventListener("change",(function(e){var t=e.target,n=t.options[t.selectedIndex],r=n.value;"on-site"===r&&Object(i.maybeBlockSelectWithUpgradeModal)(e),"off-site"===r&&(o.querySelector("input").checked=!1),o.style.display="yes"===n.dataset.available&&"on-site"===r?"block":"none"})),(n=document.getElementById("_recaptcha"))&&n.addEventListener("change",(function(e){e.preventDefault(),e.target.checked=!e.target.checked,window.open(e.target.dataset.settingsUrl,"_blank")})),function(){var e=document.getElementById("_email_verification");e&&e.addEventListener("change",(function(e){e.preventDefault(),e.target.checked=!e.target.checked,window.open(e.target.dataset.settingsUrl,"_blank")}))}(),(t=document.querySelector("#_company_name"))&&(t.addEventListener("blur",(function(){0===t.value.length?(t.nextElementSibling.classList.remove("hidden"),t.value=simpayAdmin.siteTitle):t.nextElementSibling.classList.add("hidden")})),t.addEventListener("focus",(function(){0!==t.value.length&&t.nextElementSibling.classList.add("hidden")})))}}))}).call(this,n(7))},function(e,t,n){"use strict";(function(e){var t=n(10),r=n.n(t),a=n(0),i=n(8),o=n(3);function c(){var e=document.getElementById("simpay-prices");if(e){var t=e.querySelectorAll(".simpay-price").length;document.querySelectorAll(".simpay-price-label-default").forEach((function(e){return e.style.display=t>1?"none":"block"})),document.querySelectorAll(".simpay-price-label-display").forEach((function(e){return e.style.display=t>1?"block":"none"})),document.querySelectorAll(".simpay-price-option-label").forEach((function(e){return e.style.display=t>1?"block":"none"})),document.querySelectorAll(".simpay-price-default-check").forEach((function(e){return e.style.display=t>1?"block":"none"}));var n=document.querySelector(".simpay-custom-field-plan-select");n&&(n.style.display=t>1?"block":"none")}}function s(e){var t,n=e.querySelector(".simpay-price-label-display"),r=e.querySelector(".simpay-price-label"),a=simpayAdmin,o=a.currencyPosition,c=a.i18n,s=c.recurringIntervals,l=c.recurringIntervalDisplay,u=c.customAmountLabel;if(""!==r.value)t=r.value;else{var d=e.querySelector(".simpay-price-currency"),p=e.querySelector(".simpay-price-amount"),m=e.querySelector(".simpay-price-amount-type"),f=e.querySelector(".simpay-price-custom-amount input"),y=e.querySelector(".simpay-price-enable-custom-amount"),h=d.options[d.selectedIndex].dataset.symbol;switch(t=!0===y.checked?f.value:p.value,o){case"left":t="".concat(h).concat(t);break;case"left_space":t="".concat(h," ").concat(t);break;case"right":t="".concat(t).concat(h);break;case"right_space":t="".concat(t," ").concat(h)}if(!0===y.checked&&(t=u.replace("%s",t)),"recurring"===m.value){var v=e.querySelector(".simpay-price-recurring-interval"),g=e.querySelector(".simpay-price-recurring-interval-count"),b=s[v.options[v.selectedIndex].value];t=l.replace("%1$s",t).replace("%2$s",g.value).replace("%3$s","1"===g.value?b[0]:b[1])}}n.innerHTML=t,Object(i.c)("simpayFormBuilderPriceOptionLabelUpdated",t,e)}function l(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"),a=parseInt(n.value);switch(t.options[t.selectedIndex].value){case"day":a>365&&(n.value=365);break;case"week":a>52&&(n.value=52);break;case"month":a>12&&(n.value=12);break;case"year":a>1&&(n.value=1)}var i=JSON.parse(t.dataset.intervals);r()(t.options).forEach((function(e,r){var a=e.value;t.options[r].text=1===parseInt(n.value)?i[a][0]:i[a][1]}))}function d(){document.querySelectorAll(".simpay-price").forEach((function(e){var t=e.querySelector(".simpay-price-amount-type").value;e.querySelector(".simpay-price-label").addEventListener("keyup",(function(){return s(e)})),s(e),e.querySelector(".simpay-price-currency").addEventListener("change",(function(){!function(e){var t=e.querySelector(".simpay-price-currency"),n=t.options[t.selectedIndex].dataset.symbol;e.querySelectorAll(".simpay-price-currency-symbol").forEach((function(e){return e.innerText=n}))}(e),s(e)}));var n=e.querySelectorAll(".simpay-price-amount-type .button");n.length>0&&n.forEach((function(t){return t.addEventListener("click",(function(t){t.preventDefault();var n=t.target.dataset,r=n.available,a=n.upgradeTitle,i=n.upgradeDescription,c=n.upgradeUrl,l=n.upgradePurchasedUrl;"no"===r?Object(o.upgradeModal)({title:a,description:i,url:c,purchasedUrl:l}):(function(e,t){e.querySelectorAll(".simpay-price-amount-type .button").forEach((function(e){return e.classList.remove("button-primary")}));var n=t.dataset.amountType,r=e.querySelector(".simpay-price-recurring-settings");t.classList.add("button-primary"),r.style.display="recurring"===n?"table":"none";var a=e.querySelector(".simpay-price-recurring-amount-toggle"),i=e.querySelector(".simpay-price-enable-optional-subscription");a.style.display="recurring"===n?"none":"block",i.checked=!1,e.querySelector(".simpay-price-amount-type").value=n}(e,t.target),s(e))}))})),e.querySelector(".simpay-price-amount").addEventListener("keyup",(function(){return s(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,c=r.upgradeDescription,u=r.upgradeUrl,d=r.upgradePurchasedUrl;"no"===a?(n.checked=!1,t.preventDefault(),Object(o.upgradeModal)({title:i,description:c,url:u,purchasedUrl:d})):(l(e,n),s(e))})),"recurring"!==t&&l(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),s(e)})),e.querySelector(".simpay-price-recurring-interval").addEventListener("change",(function(){s(e),u(e)}));var a=e.querySelector(".simpay-price-recurring-interval-count");u(e),a.addEventListener("keyup",(function(){u(e),s(e)})),a.addEventListener("change",(function(){u(e),s(e)}));var d=e.querySelector(".simpay-price-legacy-setting-toggle");d&&d.addEventListener("click",(function(t){t.preventDefault(),function(e){e.querySelectorAll(".simpay-price-legacy-setting").forEach((function(e){return e.style.display="block"===e.style.display?"none":"block"}))}(e)})),e.querySelector(".simpay-price-default").addEventListener("change",(function(){return function(e){document.querySelectorAll(".simpay-price-default").forEach((function(e){return e.checked=!1})),e.querySelector(".simpay-price-default").checked=!0}(e)})),e.querySelector(".simpay-price-remove").addEventListener("click",(function(t){t.preventDefault(),function(e){e.remove(),p(),c(),Object(i.c)("simpayFormBuilderPriceRemoved",e.id)}(e)}))})),c()}function p(){var e=document.querySelectorAll(".simpay-price");document.querySelector(".simpay-price-default:checked")||(e[0].querySelector(".simpay-price-default").checked=!0)}Object(a.a)((function(){var t,n,r,a,s,l,u;e(".simpay-prices").sortable({items:".simpay-field-metabox",containment:"#simpay-prices",handle:".simpay-hndle",placeholder:"sortable-placeholder",cursor:"move",delay:e(document.body).hasClass("mobile")?200:0,distance:2,tolerance:"pointer",forcePlaceholderSize:!0,opacity:.65,helper:function(e,t){return t.clone().find(":input").attr("name",(function(e,t){return"sort_"+parseInt(1e5*Math.random(),10).toString()+"_"+t})).end()}}),d(),t=document.getElementById("simpay-prices-advanced-toggle"),n=document.getElementById("simpay-prices-advanced"),t&&n&&t.addEventListener("click",(function(e){e.preventDefault(),n.style.display="block"===n.style.display?"none":"block"})),(u=document.getElementById("simpay-prices-advanced-add"))&&u.addEventListener("click",(function(t){var n,r,a,i,o,s;t.preventDefault(),a=(r=(n=u).dataset).nonce,i=r.formId,o=document.getElementById("simpay-prices"),s=document.getElementById("simpay-prices-advanced-plan-id"),n.classList.add("disabled"),wp.ajax.send("simpay_add_plan",{data:{_wpnonce:a,form_id:i,plan_id:s.value},success:function(t){e(o).append(t),d(),document.getElementById("simpay-prices-advanced").style.display="none",s.value="",n.classList.remove("disabled"),c()},error:function(e){var t=e.message;window.alert(t),n.classList.remove("disabled")}})})),function(){var t=document.getElementById("simpay-add-price");t&&t.addEventListener("click",(function(n){var r,a,o,s,l;n.preventDefault(),o=(a=(r=t).dataset).nonce,s=a.formId,l=document.getElementById("simpay-prices"),r.classList.add("disabled"),wp.ajax.send("simpay_add_price",{data:{_wpnonce:o,form_id:s},success:function(t){e(l).append(t),d(),p(),r.classList.remove("disabled"),c(),Object(i.c)("simpayFormBuilderPriceAdded",t)},error:function(e){var t=e.message;window.alert(t),r.classList.remove("disabled")}})}))}(),(r=document.getElementById("simpay-add-price-lite"))&&r.addEventListener("click",o.maybeBlockButtonWithUpgradeModal),(a=document.getElementById("simpay-amount-type-lite"))&&a.addEventListener("click",o.maybeBlockButtonWithUpgradeModal),(s=document.getElementById("simpay-can-recur-lite"))&&s.addEventListener("click",o.maybeBlockButtonWithUpgradeModal),(l=document.getElementById("simpay-custom-lite"))&&l.addEventListener("click",o.maybeBlockButtonWithUpgradeModal)}))}).call(this,n(7))},function(e,t,n){"use strict";(function(e){var t=n(0),r=n(3);Object(t.a)((function(){var t;document.querySelector(".post-type-simple-pay #post")&&(t=e("#simpay-form-settings").find("#lite-add-field"))&&t.on("click.simpayAddField",(function(e){var t=e,n=document.querySelectorAll(".simpay-custom-fields > div").length;t.target.dataset.available=n>=3?"no":"yes",Object(r.maybeBlockButtonWithUpgradeModal)(t)&&e.stopImmediatePropagation()}))}))}).call(this,n(7))},function(e,t,n){"use strict";(function(e){var t=n(0),r=n(3);Object(t.a)((function(){var t,n,a;(t=document.querySelector('[name="_enable_payment_page"]'))&&t.addEventListener("change",r.maybeBlockCheckboxWithUpgradeModal),(n=document.querySelector('[name="_payment_page_powered_by"]'))&&n.addEventListener("change",r.maybeBlockCheckboxWithUpgradeModal),function(){if(document.getElementById("payment-page-background-color-custom")){e("#payment-page-background-color-custom").wpColorPicker();var t=document.querySelector(".simpay-payment-page-background-color .wp-color-result"),n=document.querySelectorAll(".simpay-payment-page-background-color");t.addEventListener("click",(function(t){n.forEach((function(e){e.querySelector("input").checked=!1})),t.target.classList.add("is-selected"),e(t.target).parent().find("input").prop("checked",!0)})),n.forEach((function(e){e.querySelector("input").addEventListener("change",(function(){t.classList.remove("is-selected")}))}))}}(),(a=document.querySelector('[name="_payment_page_slug"]'))&&a.addEventListener("keyup",(function(e){var t=document.querySelector(".simpay-payment-page-url");t&&(t.dataset.clipboardText="".concat(window.location.origin,"/").concat(e.target.value))}))}))}).call(this,n(7))},function(e,t,n){"use strict";(function(e){var t=n(6),r=n.n(t),a=n(0),i='',o='',c=simpayAdmin,s=c.nonce,l=c.ajaxUrl,u=c.i18n,d=u.addonActivated,p=u.addonActivate,m=u.addonActive,f=u.addonDeactivate,y=u.addonInactive,h=u.addonInstall,v=u.addonError,g=u.pluginError;function b(t){t.preventDefault();var n,a,c,u,b,_,k=e(t.target);if(k.hasClass("status-go-to-url"))window.open(k.attr("data-plugin"),"_blank");else{var w=k.attr("data-type");if(k.prop("disabled",!0).addClass("loading"),k.html(''),k.hasClass("status-active"))n="deactivate",a="status-installed","plugin"===w&&(a+=" button button-secondary"),c=y,u=p,b=f,"addon"===w&&(u=i+u,b=o+b);else if(k.hasClass("status-installed"))n="activate",a="status-active","plugin"===w&&(a+=" button button-secondary disabled"),c=m,u=f,"addon"===w?(u=o+u,b=i+p):"plugin"===w&&(u=d,b=p);else{if(!k.hasClass("status-missing"))return;n="install",a="status-active","plugin"===w&&(a+=" button disabled"),c=m,u=d,b='',"addon"===w&&(u=i+f,b+=h)}var x=k.closest(".simpay-addon");!function(t,n,r,a){var i={activate:"simpay_activate_addon",install:"simpay_install_addon",deactivate:"simpay_deactivate_addon"}[n];if(i){var o={action:i,nonce:s,plugin:t,type:r};e.post(l,o,a).fail((function(e){console.log(e.responseText)}))}}(k.attr("data-plugin"),n,w,(function(e){e.success?("install"===n?(k.attr("data-plugin",e.data.basename),_=e.data.msg,e.data.is_activated||(c=y,u="plugin"===w?p:i+p,a="plugin"===w?"status-installed button button-secondary":"status-installed")):_=e.data,x.find(".simpay-addon__actions").append('
'+_+"
"),x.find("span.status-label").removeClass("status-active status-installed status-missing").addClass(a).removeClass("button button-primary button-secondary disabled").text(c),k.removeClass("status-active status-installed status-missing").removeClass("button button-primary button-secondary disabled").addClass(a).html(u)):("object"===r()(e.data)?"addon"===w?x.find(".simpay-addon__actions").append('
'+v+"
"):x.find(".simpay-addon__actions").append('
'+g+"
"):x.find(".simpay-addon__actions").append('
'+e.data+"
"),"install"===n&&"plugin"===w&&k.addClass("status-go-to-url").removeClass("status-missing"),k.html(b)),k.prop("disabled",!1).removeClass("loading"),setTimeout((function(){x.find(".msg").remove()}),3e3)}))}}Object(a.a)((function(){document.querySelector(".simpay-addons")&&document.querySelectorAll(".simpay-addon").forEach((function(e){e.querySelector("button").addEventListener("click",b)}))}))}).call(this,n(7))},function(e,t,n){"use strict";var r=n(0);Object(r.a)((function(){var e=new ClipboardJS(".simpay-copy-button");e.on("success",(function(t){var n=t.trigger,r=n.dataset.copied,a=n.innerHTML;clearTimeout(i),n.innerHTML=r,n.classList.contains("button-secondary")&&(n.style.color="green",n.style.borderColor="green"),t.clearSelection();var i=setTimeout((function(){n.innerHTML=a,n.classList.contains("button-secondary")&&(n.style.color="",n.style.borderColor=""),e.clipboardAction.fakeElem&&e.clipboardAction.removeFake&&e.clipboardAction.removeFake()}),3e3);wp.a11y.speak(r)}))}))},,,,,,,,,,,,,,,,function(e,t,n){"use strict";n(38),n(39);var r=n(10),a=n.n(r),i=n(0),o=n(3);function c(e){var t=e.target,n=t.options[t.selectedIndex].value,r=document.querySelectorAll(".simpay-panel-field-payment-method[data-payment-method]");a()(r).forEach((function(e){var t="popular"===JSON.parse(e.dataset.paymentMethod).scope?"block":"none";e.style.display="all"===n?"block":t}))}Object(i.a)((function(){var e=document.querySelectorAll(".simpay-panel-field-payment-method-filter");0!==e.length&&a()(e).forEach((function(e){e.addEventListener("change",c)}));var t=document.querySelectorAll(".simpay-payment-method-lite");t&&t.forEach((function(e){return e.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal)}));var n=document.querySelectorAll(".simpay-payment-method-fee-recovery-lite");n&&n.forEach((function(e){return e.addEventListener("click",o.maybeBlockButtonWithUpgradeModal)}))})),Object(i.a)((function(){var e=document.getElementById("_tax_status_lite");e&&e.addEventListener("change",o.maybeBlockSelectWithUpgradeModal)})),n(40),Object(i.a)((function(){var e,t;(e=document.getElementById("_enable_tax_id"))&&e.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal),(t=document.getElementById("_enable_promotion_codes"))&&t.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal)})),n(41),Object(i.a)((function(){var e=document.getElementById("_inventory");e&&e.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal);var t=document.getElementById("_inventory_behavior_individual");t&&t.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal);var n=document.getElementById("_schedule_start");n&&n.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal);var r=document.getElementById("_schedule_end");r&&r.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal)}))}]); \ No newline at end of file +!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=32)}([function(e,t,n){"use strict";function r(e){"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e()}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var r=n(9),a=n.n(r),i=n(5),o=n.n(i);function c(_x,e){return s.apply(this,arguments)}function s(){return(s=a()(o.a.mark((function t(n,r){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.ajax({data:r,method:"POST",url:"".concat(wpApiSettings.root,"wpsp/").concat(n),beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",wpApiSettings.nonce)}});case 3:return t.abrupt("return",t.sent);case 6:throw t.prev=6,t.t0=t.catch(0),t.t0.responseJSON;case 10:case"end":return t.stop()}}),t,null,[[0,6]])})))).apply(this,arguments)}}).call(this,n(7))},function(e,t,n){var r=n(18);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(27);n.o(r,"maybeBlockButtonWithUpgradeModal")&&n.d(t,"maybeBlockButtonWithUpgradeModal",(function(){return r.maybeBlockButtonWithUpgradeModal})),n.o(r,"maybeBlockCheckboxWithUpgradeModal")&&n.d(t,"maybeBlockCheckboxWithUpgradeModal",(function(){return r.maybeBlockCheckboxWithUpgradeModal})),n.o(r,"maybeBlockSelectWithUpgradeModal")&&n.d(t,"maybeBlockSelectWithUpgradeModal",(function(){return r.maybeBlockSelectWithUpgradeModal})),n.o(r,"upgradeModal")&&n.d(t,"upgradeModal",(function(){return r.upgradeModal})),n(15);var a=n(28);n.d(t,"maybeBlockButtonWithUpgradeModal",(function(){return a.a})),n.d(t,"maybeBlockCheckboxWithUpgradeModal",(function(){return a.b})),n.d(t,"maybeBlockSelectWithUpgradeModal",(function(){return a.c})),n.d(t,"upgradeModal",(function(){return a.d}))},function(e,t){var n=/^(?:submit|button|image|reset|file)$/i,r=/^(?:input|select|textarea|keygen)/i,a=/(\[[^\[\]]*\])/g;function i(e,t,n){if(t.match(a))!function e(t,n,r){if(0===n.length)return r;var a=n.shift(),i=a.match(/^\[(.+?)\]$/);if("[]"===a)return t=t||[],Array.isArray(t)?t.push(e(null,n,r)):(t._values=t._values||[],t._values.push(e(null,n,r))),t;if(i){var o=i[1],c=+o;isNaN(c)?(t=t||{})[o]=e(t[o],n,r):(t=t||[])[c]=e(t[c],n,r)}else t[a]=e(t[a],n,r);return t}(e,function(e){var t=[],n=new RegExp(a),r=/^([^\[\]]*)/.exec(e);for(r[1]&&t.push(r[1]);null!==(r=n.exec(e));)t.push(r[1]);return t}(t),n);else{var r=e[t];r?(Array.isArray(r)||(e[t]=[r]),e[t].push(n)):e[t]=n}return e}function o(e,t,n){return n=n.replace(/(\r)?\n/g,"\r\n"),n=(n=encodeURIComponent(n)).replace(/%20/g,"+"),e+(e?"&":"")+encodeURIComponent(t)+"="+n}e.exports=function(e,t){"object"!=typeof t?t={hash:!!t}:void 0===t.hash&&(t.hash=!0);for(var a=t.hash?{}:"",c=t.serializer||(t.hash?i:o),s=e&&e.elements?e.elements:[],l=Object.create(null),u=0;u3&&void 0!==arguments[3]?arguments[3]:10;if(a(t)&&r(n))if("function"==typeof i)if("number"==typeof o){var c={callback:i,priority:o,namespace:n};if(e[t]){var s,l=e[t].handlers;for(s=l.length;s>0&&!(o>=l[s-1].priority);s--);s===l.length?l[s]=c:l.splice(s,0,c),(e.__current||[]).forEach((function(e){e.name===t&&e.currentIndex>=s&&e.currentIndex++}))}else e[t]={handlers:[c],runs:0};"hookAdded"!==t&&f("hookAdded",t,n,i,o)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}},o=function(e,t){return function(n,i){if(a(n)&&(t||r(i))){if(!e[n])return 0;var o=0;if(t)o=e[n].handlers.length,e[n]={runs:e[n].runs,handlers:[]};else for(var c=e[n].handlers,s=function(t){c[t].namespace===i&&(c.splice(t,1),o++,(e.__current||[]).forEach((function(e){e.name===n&&e.currentIndex>=t&&e.currentIndex--})))},l=c.length-1;l>=0;l--)s(l);return"hookRemoved"!==n&&f("hookRemoved",n,i),o}}},c=function(e){return function(t,n){return void 0!==n?t in e&&e[t].handlers.some((function(e){return e.namespace===n})):t in e}},s=function(e,t){return function(n){e[n]||(e[n]={handlers:[],runs:0}),e[n].runs++;for(var r=e[n].handlers,a=arguments.length,i=new Array(a>1?a-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.id,r=t.getFormData;return Object(i.a)("v2/customer",d({form_values:l()(t[0],{hash:!0}),form_data:r(),form_id:n},e))}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.id,r=t.getFormData;return Object(i.a)("v2/checkout-session",f({form_values:l()(t[0],{hash:!0}),form_data:r(),form_id:n},e))}n(9),n(5),n(11)},,function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--r){var a=this.tryEntries[r],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),f}},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:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(6).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},Number.isSafeInteger=Number.isSafeInteger||function(e){return Number.isInteger(e)&&Math.abs(e)<=Number.MAX_SAFE_INTEGER},Number.MAX_SAFE_INTEGER||(Number.MAX_SAFE_INTEGER=9007199254740991)},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return u}));var r=n(2),a=n.n(r);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};e(".simpay-upgrade-modal").dialog(o({position:{my:"center",at:"center",of:window},modal:!0,width:600,resizable:!1,draggable:!1,open:function(){var t=e(this);t.parent().find(".ui-dialog-titlebar").css({borderBottom:0}),t.find(".simpay-upgrade-modal__title").html(n),t.find(".simpay-upgrade-modal__description").html(r),t.find(".simpay-upgrade-modal__upgrade-url").attr("href",a),t.find(".simpay-upgrade-modal__upgrade-purchased-url").attr("href",i)}},c))}}).call(this,n(7))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(0);function a(e,t){var n=document.getElementById("simpay-test-mode-toggle-notice");if(n)if(e!==t){var r=document.getElementById("simpay-toggle-notice-status"),a=document.getElementById("simpay-toggle-notice-status-link");n.style.display="block",r&&a&&(r.innerHTML=""+r.dataset[e]+"",a.href=a.dataset[e])}else n.style.display="none"}function i(){var t=document.querySelectorAll(".simpay-disconnect-link");if(t){var n=simpayAdmin.i18n,r=n.disconnectConfirm,a=n.disconnectCancel;t.forEach((function(t){t.addEventListener("click",(function(n){n.preventDefault(),e(".simpay-disconnect-confirm").dialog({resizable:!1,height:"auto",width:400,modal:!0,draggable:!1,open:function(){e(".ui-dialog-buttonset .ui-button").removeClass("ui-button").last().css({marginLeft:"10px"}).focus()},buttons:[{text:a,click:function(){e(this).dialog("close")},class:"button button-secondary"},{text:r,click:function(){window.location.href=t.href},class:"button button-primary"}]})}))}))}}Object(r.a)((function(){var e;(e=document.getElementById("simpay-stripe-account-info"))&&wp.ajax.send("simpay_stripe_connect_account_information",{data:{nonce:e.dataset.nonce},success:function(t){e.querySelector("p").innerHTML=t.message,e.style.display="block","simpay-stripe-activated-account-actions"===t.actions?e.classList.add("notice-info"):e.classList.add("notice-warning");var n=document.getElementById(t.actions);n&&(n.style.display="block"),i()},error:function(t){e.querySelector("p").innerHTML=t.message,e.style.display="block",e.classList.add("notice-error");var n=document.getElementById(t.actions);n&&(n.style.display="block",i())}})}))}).call(this,n(7))},,,function(e,t,n){"use strict";n.r(t),function(e){var t=n(10),r=n.n(t),a=n(8),i=(n(33),n(34),n(35),n(29));n(36),n(37),n(59),n(42),n(43),window.wpsp=window.wpsp||{hooks:a.b};var o,c,s,l=simpayAdmin,u=l.licenseLevel,d=l.i18n.trashFormConfirm,p={};p={init:function(){c=o(document.body),s=c.find("#simpay-form-settings"),this.handleMetaboxTabClick(),window.postboxes&&window.postboxes.handle_click&&s.on("click",".postbox .simpay-hndle, .postbox .simpay-handlediv",window.postboxes.handle_click),a.b.addAction("settings.toggleTestMode","wpsp/settings/stripe-connect",i.a),this.handleFormBuilderSettingToggles(),a.b.addAction("customFieldAdded","wpsp/payment-form",this.handleFormBuilderSettingToggles),s.on("click.simpayTabLink",".simpay-tab-link",(function(e){e.preventDefault(),p.handleInternalLinkToTabClicks(o(this))})),o(document).on("click.simpayImagePreview",".simpay-remove-image-preview",(function(e){p.handleRemoveImagePreviewClick(e)})),this.setupChosen(),this.addMediaFields(),this.stripeConnect(),this.initSortableFields(s.find(".simpay-custom-fields")),s.find(".add-field").on("click.simpayAddField",this.addField),s.find(".simpay-custom-fields").on("click",".simpay-remove-field-link",this.removeField);var e=o(".simpay-payment-modes");e.length&&e.find("input").each((function(){var t=o(this);e.hasClass("simpay-payment-mode--"+t.val())||t.attr("disabled",!0)})),this.bindTrashWarning(),c.trigger("simpayAdminInit"),o(".show-settings").detach().prependTo(".simpay-branding-bar__actions").removeClass().addClass("simpay-branding-bar__actions-button").html('').on("click",window.screenMeta.toggleEvent)},handleFormBuilderSettingToggles:function(){["_amount_type","_success_redirect_type","_subscription_type","_subscription_custom_amount","_form_type","_tax_status","_enable_payment_page","_inventory","_inventory_behavior","_schedule_start","_schedule_end",".simpay-total-amount-label-recurring",".simpay-total-amount-label-tax",".simpay-shipping-address",".simpay-text-multiline",".simpay-dropdown-type",".simpay-radio-type",".simpay-price-enable-custom",".simpay-price-type input",".simpay-email-link-enabled",".simpay-phone-smart-enabled"].forEach((function(e){var t=o(e),n=!1;"."!==e.substring(0,1)?t='[name="'.concat(e,'"]'):(t=e,n=!0),o("#simpay-form-settings").on("change",t,(function(){var t=o("#simpay-form-settings");!0===n&&(t=o(this).closest(".simpay-field-data"));var r=o(this).val();o(this).is(":checkbox")&&(r=o(this).is(":checked")?"yes":"no"),t.find(o('.simpay-show-if[data-if="'.concat(e,'"]'))).each((function(){var e=o(this),t=e.data("is");e.hide(),t.includes(r)&&e.show().css("display","block")}))})),o(t).filter(":checkbox").trigger("change"),o(t).filter(":checked").trigger("change"),o(t).is("select")&&o(t).trigger("change")}))},handleRemoveImagePreviewClick:function(e){e.preventDefault(),o(e.target).parents("td").find(".simpay-image-preview-wrap").val("").hide(),o(e.target).parents("td").find(".simpay-field-image-url").val(""),o(e.target).parents("td").find(".simpay-remove-image-preview").hide()},addMediaFields:function(){o(".simpay-media-uploader").on("click",(function(e){e.preventDefault();var t=wp.media.frames.file_frame=wp.media({title:simpayAdmin.i18n.mediaTitle,button:{text:simpayAdmin.i18n.mediaButtonText},multiple:!1}),n=o(this);t.on("select",(function(){var e=t.state().get("selection").first().toJSON(),r=n.parents("td").find(".simpay-field-image-url"),a="id"===r.data("fvalue")?e.id:e.url;n.parents("td").find(".simpay-image-preview-wrap").show(),n.parents("td").find(".simpay-remove-image-preview").show(),n.parents("td").find(".simpay-image-preview").prop("src",a),r.val(a)})),t.open()}))},setupChosen:function(){var e=o(".simpay-chosen-select, .simpay-chosen-search");e.chosen({disable_search_threshold:20}),e.chosen()},handleMetaboxTabClick:function(){var e=o("ul.simpay-tabs a"),t=o("div.simpay-panel"),n=e.parents("li");e.on("click",(function(e){e.preventDefault();var r=o(this).parent(),a=o(o(this).attr("href")),i=o(this).attr("href");history.pushState(null,null,i),setTimeout((function(){window.scrollTo(0,0)}),1),o('[name="simpay_form_settings_tab"]').val(i),o(".simpay-panels > .spinner").hide(),n.removeClass("active"),r.addClass("active"),t.addClass("simpay-panel-hidden"),a.removeClass("simpay-panel-hidden")}));var r="#form-display-options-settings-panel";location.hash.length&&(r=location.hash);var a=o('ul.simpay-tabs a[href="'+r+'"]');o('[name="simpay_form_settings_tab"]').val(r),a.length&&a.click()},stripeConnect:function(){var e="tr:nth-child(2), tr:nth-child(3), tr:nth-child(4), tr:nth-child(5)";o(".simpay-settings.stripe-account .form-table").find(e).hide(),o("#wpsp-api-keys-row-reveal button").on("click",(function(t){t.preventDefault(),o(".simpay-settings.stripe-account .form-table").find(e).show(),o("#wpsp-api-keys-row-hide").show(),o(this).parent().hide(),o(".wpsp-manual-key-warning").show()})),o("#wpsp-api-keys-row-hide button").on("click",(function(t){t.preventDefault(),o(".simpay-settings.stripe-account .form-table").find(e).hide(),o("#wpsp-api-keys-row-reveal").show(),o(this).parent().hide(),o(".wpsp-manual-key-warning").hide()}))},handleInternalLinkToTabClicks:function(e){var t=e.data("show-tab");c.find("."+t+"-tab a").click()},bindTrashWarning:function(){["plus","professional","elite","ultimate"].includes(u)&&(o(".post-type-simple-pay .submitdelete").click((function(e){confirm(d)||e.preventDefault()})),o(".post-type-simple-pay #posts-filter").submit((function(e){"trash"===o(this).find('select[name="action"]').val()&&(confirm(d)||e.preventDefault())})))},initSortableFields:function(e){e.sortable({items:".simpay-field-metabox:not(.simpay-custom-field-payment-button):not(.simpay-custom-field-checkout-button)",containment:"#simpay-form-settings",handle:".simpay-hndle",placeholder:"sortable-placeholder",cursor:"move",delay:o(document.body).hasClass("mobile")?200:0,distance:2,tolerance:"pointer",forcePlaceholderSize:!0,opacity:.65,stop:function(e,t){p.orderFields()},helper:function(e,t){return t.clone().find(":input").attr("name",(function(e,t){return"sort_"+parseInt(1e5*Math.random(),10).toString()+"_"+t})).end()}})},addField:function(e){var t=s.find(".simpay-custom-fields .simpay-field-metabox").length,n=o("#simpay-custom-fields-wrap").find(".simpay-metaboxes"),i=s.find("#custom-field-select"),c=i.val(),l=r()(document.querySelectorAll(".field-uid")).map((function(e){return parseInt(e.value)})),u={action:"simpay_add_field",post_id:o("#post_ID").val(),fieldType:c,counter:parseInt(t)+1,nextUid:parseInt(_.max(l))+1,addFieldNonce:s.find("#simpay_custom_fields_nonce").val()};e.preventDefault(),s.find(".simpay-field-data").each((function(){o(this).is(":visible")&&(o(this).hide(),o(this).addClass("closed"))})),o.ajax({url:ajaxurl,method:"POST",data:u,success:function(e){var t=o("
").append(e);["payment_button","checkout_button"].includes(c)?n.append(t.html()):n.prepend(t.html()),i.prop("selectedIndex",0),p.orderFields(),a.b.doAction("customFieldAdded",e)},error:function(e){window.spShared.debugLog(e)}})},removeField:function(e){if(e.preventDefault(),s.find("#custom-field-select"),window.confirm("Are you sure you want to remove this field?")){var t=o(this).closest(".simpay-field-metabox");t.data("type"),t.remove(),a.b.doAction("customFieldRemoved")}},orderFields:function(){o(".simpay-custom-fields .simpay-field-metabox").each((function(e,t){var n=parseInt(o(t).index(".simpay-custom-fields .simpay-field-metabox"));o(".field-order",t).val(n+1)}))}},(o=e)(document).ready((function(e){p.init()}))}.call(this,n(7))},function(e,t,n){"use strict";var r=n(10),a=n.n(r),i=n(0),o=simpayAdminSettingToggles||[];function c(e){var t=e.id,n=document.querySelector(".simpay-settings-".concat(t));if(!n)return{};var r=n.querySelectorAll('input[name="simpay_settings['.concat(t,']"]'));0===r.length&&(r=n.querySelectorAll('select[name="'.concat(t,'"]')));var i=r[0].value;if(["radio","checkbox"].includes(r[0].type)){var o=a()(r).filter((function(e){return e.checked}));i=0===o.length?"no":o[0].value}return{setting:r,currentValue:i}}function s(e){var t=e.id,n=e.value,r=e.toggles,a=e.compare;if("none"!==document.querySelector(".simpay-settings-".concat(t)).style.display){var i=c(e).currentValue;r.map((function(e){return document.querySelector(".simpay-settings-".concat(e))})).forEach((function(e){e&&(e.style.display="IS NOT"===a?i===n?"none":"table-row":i===n?"table-row":"none")})),r.forEach((function(e){var t=_.find(o,{id:e});t&&s(t)}))}}Object(i.a)((function(){o.forEach((function(e){s(e),c(e).setting.forEach((function(t){t.addEventListener("change",(function(){s(e)}))}))}))}))},function(e,t,n){"use strict";var r=n(0);Object(r.a)((function(){var e=window.wpsp.hooks,t=document.querySelectorAll('[name="simpay_settings[test_mode]"]');if(0!==t.length){var n="enabled"===document.querySelector('[name="simpay_settings[test_mode]"]:checked').value?"test":"live";e.doAction("settings.toggleTestMode",n,n),_.each(t,(function(t){return t.addEventListener("change",(function(t){var r="enabled"===t.target.value?"test":"live";e.doAction("settings.toggleTestMode",r,n)}))}))}}))},function(e,t,n){"use strict";var r=n(0);function a(e){var t=document.getElementById("simpay-connect-license-feedback"),n=document.getElementById("simpay-connect-license-submit");e.message?(t.innerText=e.message,t.classList.remove("simpay-license-message--valid"),t.classList.add("simpay-license-message--invalid"),t.style.display="block"):t.style.display="none",e.reload?setTimeout((function(){window.location.reload()}),2e3):(n.disabled=!1,n.innerText=n.dataset.connect)}function i(e){var t=document.getElementById("simpay-connect-license-feedback");e.message?(t.innerText=e.message,t.classList.remove("simpay-license-message--invalid"),t.classList.add("simpay-license-message--valid"),t.style.display="block"):t.style.display="none",e.reload?setTimeout((function(){window.location.reload()}),2e3):window.location=e.url}function o(){var e=document.getElementById("simpay-connect-license-key"),t=document.getElementById("simpay-connect-license-nonce"),n=document.getElementById("simpay-connect-license-submit");n.disabled=!0,n.innerText=n.dataset.connecting,wp.ajax.send("simpay_get_connect_url",{data:{nonce:t.value,key:e.value},success:i,error:a})}Object(r.a)((function(){var e=document.getElementById("simpay-connect-license-key");if(e){var t=document.getElementById("simpay-connect-license-submit");e.addEventListener("keypress",(function(e){"Enter"===e.key&&(e.preventDefault(),o())})),t.addEventListener("click",(function(e){e.preventDefault(),t.disabled=!0,o()}))}}))},function(e,t,n){"use strict";var r=n(0),a=[".simpay-settings-hcaptcha_setup",".simpay-settings-hcaptcha_site_key",".simpay-settings-hcaptcha_secret_key",".simpay-settings-recaptcha_setup",".simpay-settings-recaptcha_site_key",".simpay-settings-recaptcha_secret_key",".simpay-settings-recaptcha_score_threshold",".simpay-settings-cloudflare_turnstile_setup",".simpay-settings-cloudflare_turnstile_site_key",".simpay-settings-cloudflare_turnstile_secret_key",".simpay-settings-no_captcha_warning"];function i(e){var t,n=e.target.value;switch(n){case"none":t="no_captcha";break;case"recaptcha-v3":t="recaptcha";break;case"cloudflare-turnstile":t="cloudflare_turnstile";break;default:t=n}a.forEach((function(e){var n=document.querySelector(e);n&&(n.style.display=e.includes(t)?"table-row":"none")}))}Object(r.a)((function(){var e=document.querySelectorAll('input[name="simpay_settings[captcha_type]"]');if(0!==e.length){a.forEach((function(e){var t=document.querySelector(e);t&&(t.style.display="none")})),e.forEach((function(e){return e.addEventListener("change",i)}));var t=document.querySelector('input[name="simpay_settings[captcha_type]"]:checked');t&&t.dispatchEvent(new Event("change")),function(){var e=document.querySelector(".simpay-recaptcha-feedback");if(e){var t=simpayGoogleRecaptcha,n=t.siteKey,r=t.i18n;""!==n&&grecaptcha.ready((function(){var e=document.querySelector(".grecaptcha-badge");e&&(e.style.display="none");try{grecaptcha.execute(n,{action:"simple_pay_admin_test"}).then((function(e){wp.ajax.send("simpay_validate_recaptcha_source",{data:{token:e,recaptcha_action:"simple_pay_admin_test"},error:a})})).catch(a)}catch(e){a()}}))}function a(){e.style.display="block",e.classList.add("notice-error"),e.innerHTML="";var t=document.createElement("p");t.innerText=r.invalid,e.appendChild(t)}}()}}))},function(e,t,n){"use strict";var r=n(0),a=n(3);Object(r.a)((function(){var e=document.querySelector(".simpay-settings-emails-configure");e&&(document.querySelector(".simpay-settings-subsection-delivery").after(e),function(e){var t=e.querySelector("select");t&&t.addEventListener("change",(function(e){var n=e.target,r=n.options[n.selectedIndex].dataset,i=r.available,o=r.upgradeTitle,c=r.upgradeDescription,s=r.upgradeUrl,l=r.upgradePurchasedUrl;"no"===i&&(Object(a.upgradeModal)({title:o,description:c,url:s,purchasedUrl:l}),t.value="",t.selectedIndex=0)}))}(e))}))},function(e,t,n){"use strict";(function(e){var t=n(4),r=n.n(t),a=n(0),i=n(3);Object(a.a)((function(){var t,n,a,o,c=document.querySelector(".post-type-simple-pay #post");if(c){var s=r()(c,{hash:!0});delete s.simpay_form_settings_tab,function(t){function n(e){var n=r()(document.querySelector(".post-type-simple-pay form#post"),{hash:!0});if(delete n.simpay_form_settings_tab,delete n.simpay_save_preview,JSON.stringify(n)!==t)return e.preventDefault(),simpayAdmin.i18n.leavePageConfirm}window.addEventListener("beforeunload",n),window.onbeforeunload=n,e(".post-type-simple-pay form#post").off("submit").on("submit",(function(){window.removeEventListener("beforeunload",n),window.onbeforeunload=null}))}(JSON.stringify(s)),a=document.getElementById("form-type-select"),o=document.getElementById("is-overlay"),a.addEventListener("change",(function(e){var t=e.target,n=t.options[t.selectedIndex],r=n.value;"on-site"===r&&Object(i.maybeBlockSelectWithUpgradeModal)(e),"off-site"===r&&(o.querySelector("input").checked=!1),o.style.display="yes"===n.dataset.available&&"on-site"===r?"block":"none"})),(n=document.getElementById("_recaptcha"))&&n.addEventListener("change",(function(e){e.preventDefault(),e.target.checked=!e.target.checked,window.open(e.target.dataset.settingsUrl,"_blank")})),function(){var e=document.getElementById("_email_verification");e&&e.addEventListener("change",(function(e){e.preventDefault(),e.target.checked=!e.target.checked,window.open(e.target.dataset.settingsUrl,"_blank")}))}(),(t=document.querySelector("#_company_name"))&&(t.addEventListener("blur",(function(){0===t.value.length?(t.nextElementSibling.classList.remove("hidden"),t.value=simpayAdmin.siteTitle):t.nextElementSibling.classList.add("hidden")})),t.addEventListener("focus",(function(){0!==t.value.length&&t.nextElementSibling.classList.add("hidden")})))}}))}).call(this,n(7))},function(e,t,n){"use strict";(function(e){var t=n(10),r=n.n(t),a=n(0),i=n(8),o=n(3);function c(){var e=document.getElementById("simpay-prices");if(e){var t=e.querySelectorAll(".simpay-price").length;document.querySelectorAll(".simpay-price-label-default").forEach((function(e){return e.style.display=t>1?"none":"block"})),document.querySelectorAll(".simpay-price-label-display").forEach((function(e){return e.style.display=t>1?"block":"none"})),document.querySelectorAll(".simpay-price-option-label").forEach((function(e){return e.style.display=t>1?"block":"none"})),document.querySelectorAll(".simpay-price-default-check").forEach((function(e){return e.style.display=t>1?"block":"none"}));var n=document.querySelector(".simpay-custom-field-plan-select");n&&(n.style.display=t>1?"block":"none")}}function s(e){var t,n=e.querySelector(".simpay-price-label-display"),r=e.querySelector(".simpay-price-label"),a=simpayAdmin,o=a.currencyPosition,c=a.i18n,s=c.recurringIntervals,l=c.recurringIntervalDisplay,u=c.customAmountLabel;if(""!==r.value)t=r.value;else{var d=e.querySelector(".simpay-price-currency"),p=e.querySelector(".simpay-price-amount"),m=e.querySelector(".simpay-price-amount-type"),f=e.querySelector(".simpay-price-custom-amount input"),y=e.querySelector(".simpay-price-enable-custom-amount"),h=d.options[d.selectedIndex].dataset.symbol;switch(t=!0===y.checked?f.value:p.value,o){case"left":t="".concat(h).concat(t);break;case"left_space":t="".concat(h," ").concat(t);break;case"right":t="".concat(t).concat(h);break;case"right_space":t="".concat(t," ").concat(h)}if(!0===y.checked&&(t=u.replace("%s",t)),"recurring"===m.value){var v=e.querySelector(".simpay-price-recurring-interval"),g=e.querySelector(".simpay-price-recurring-interval-count"),b=s[v.options[v.selectedIndex].value];t=l.replace("%1$s",t).replace("%2$s",g.value).replace("%3$s","1"===g.value?b[0]:b[1])}}n.innerHTML=t,Object(i.c)("simpayFormBuilderPriceOptionLabelUpdated",t,e)}function l(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"),a=parseInt(n.value);switch(t.options[t.selectedIndex].value){case"day":a>365&&(n.value=365);break;case"week":a>52&&(n.value=52);break;case"month":a>12&&(n.value=12);break;case"year":a>1&&(n.value=1)}var i=JSON.parse(t.dataset.intervals);r()(t.options).forEach((function(e,r){var a=e.value;t.options[r].text=1===parseInt(n.value)?i[a][0]:i[a][1]}))}function d(){document.querySelectorAll(".simpay-price").forEach((function(e){var t=e.querySelector(".simpay-price-amount-type").value;e.querySelector(".simpay-price-label").addEventListener("keyup",(function(){return s(e)})),s(e),e.querySelector(".simpay-price-currency").addEventListener("change",(function(){!function(e){var t=e.querySelector(".simpay-price-currency"),n=t.options[t.selectedIndex].dataset.symbol;e.querySelectorAll(".simpay-price-currency-symbol").forEach((function(e){return e.innerText=n}))}(e),s(e)}));var n=e.querySelectorAll(".simpay-price-amount-type .button");n.length>0&&n.forEach((function(t){return t.addEventListener("click",(function(t){t.preventDefault();var n=t.target.dataset,r=n.available,a=n.upgradeTitle,i=n.upgradeDescription,c=n.upgradeUrl,l=n.upgradePurchasedUrl;"no"===r?Object(o.upgradeModal)({title:a,description:i,url:c,purchasedUrl:l}):(function(e,t){e.querySelectorAll(".simpay-price-amount-type .button").forEach((function(e){return e.classList.remove("button-primary")}));var n=t.dataset.amountType,r=e.querySelector(".simpay-price-recurring-settings");t.classList.add("button-primary"),r.style.display="recurring"===n?"table":"none";var a=e.querySelector(".simpay-price-recurring-amount-toggle"),i=e.querySelector(".simpay-price-enable-optional-subscription");a.style.display="recurring"===n?"none":"block",i.checked=!1,e.querySelector(".simpay-price-amount-type").value=n}(e,t.target),s(e))}))})),e.querySelector(".simpay-price-amount").addEventListener("keyup",(function(){return s(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,c=r.upgradeDescription,u=r.upgradeUrl,d=r.upgradePurchasedUrl;"no"===a?(n.checked=!1,t.preventDefault(),Object(o.upgradeModal)({title:i,description:c,url:u,purchasedUrl:d})):(l(e,n),s(e))})),"recurring"!==t&&l(e,r));var a=e.querySelector(".simpay-price-enable-custom-amount");a.addEventListener("change",(function(){!function(e,t){e.querySelector(".simpay-price-custom-amount").style.display=t.checked?"table":"none"}(e,a),s(e)})),e.querySelector(".simpay-price-recurring-interval").addEventListener("change",(function(){s(e),u(e)}));var d=e.querySelector(".simpay-price-recurring-interval-count");u(e),d.addEventListener("keyup",(function(){u(e),s(e)})),d.addEventListener("change",(function(){u(e),s(e)}));var m=e.querySelector(".simpay-price-legacy-setting-toggle");m&&m.addEventListener("click",(function(t){t.preventDefault(),function(e){e.querySelectorAll(".simpay-price-legacy-setting").forEach((function(e){return e.style.display="block"===e.style.display?"none":"block"}))}(e)})),e.querySelector(".simpay-price-default").addEventListener("change",(function(){return function(e){document.querySelectorAll(".simpay-price-default").forEach((function(e){return e.checked=!1})),e.querySelector(".simpay-price-default").checked=!0}(e)})),e.querySelector(".simpay-price-remove").addEventListener("click",(function(t){t.preventDefault(),function(e){e.remove(),p(),c(),Object(i.c)("simpayFormBuilderPriceRemoved",e.id)}(e)}))})),c()}function p(){var e=document.querySelectorAll(".simpay-price");document.querySelector(".simpay-price-default:checked")||(e[0].querySelector(".simpay-price-default").checked=!0)}Object(a.a)((function(){var t,n,r,a,s,l,u;e(".simpay-prices").sortable({items:".simpay-field-metabox",containment:"#simpay-prices",handle:".simpay-hndle",placeholder:"sortable-placeholder",cursor:"move",delay:e(document.body).hasClass("mobile")?200:0,distance:2,tolerance:"pointer",forcePlaceholderSize:!0,opacity:.65,helper:function(e,t){return t.clone().find(":input").attr("name",(function(e,t){return"sort_"+parseInt(1e5*Math.random(),10).toString()+"_"+t})).end()}}),d(),t=document.getElementById("simpay-prices-advanced-toggle"),n=document.getElementById("simpay-prices-advanced"),t&&n&&t.addEventListener("click",(function(e){e.preventDefault(),n.style.display="block"===n.style.display?"none":"block"})),(u=document.getElementById("simpay-prices-advanced-add"))&&u.addEventListener("click",(function(t){var n,r,a,i,o,s;t.preventDefault(),a=(r=(n=u).dataset).nonce,i=r.formId,o=document.getElementById("simpay-prices"),s=document.getElementById("simpay-prices-advanced-plan-id"),n.classList.add("disabled"),wp.ajax.send("simpay_add_plan",{data:{_wpnonce:a,form_id:i,plan_id:s.value},success:function(t){e(o).append(t),d(),document.getElementById("simpay-prices-advanced").style.display="none",s.value="",n.classList.remove("disabled"),c()},error:function(e){var t=e.message;window.alert(t),n.classList.remove("disabled")}})})),function(){var t=document.getElementById("simpay-add-price");t&&t.addEventListener("click",(function(n){var r,a,o,s,l;n.preventDefault(),o=(a=(r=t).dataset).nonce,s=a.formId,l=document.getElementById("simpay-prices"),r.classList.add("disabled"),wp.ajax.send("simpay_add_price",{data:{_wpnonce:o,form_id:s},success:function(t){e(l).append(t),d(),p(),r.classList.remove("disabled"),c(),Object(i.c)("simpayFormBuilderPriceAdded",t)},error:function(e){var t=e.message;window.alert(t),r.classList.remove("disabled")}})}))}(),(r=document.getElementById("simpay-add-price-lite"))&&r.addEventListener("click",o.maybeBlockButtonWithUpgradeModal),(a=document.getElementById("simpay-amount-type-lite"))&&a.addEventListener("click",o.maybeBlockButtonWithUpgradeModal),(s=document.getElementById("simpay-can-recur-lite"))&&s.addEventListener("click",o.maybeBlockButtonWithUpgradeModal),(l=document.getElementById("simpay-custom-lite"))&&l.addEventListener("click",o.maybeBlockButtonWithUpgradeModal)}))}).call(this,n(7))},function(e,t,n){"use strict";(function(e){var t=n(0),r=n(3);Object(t.a)((function(){var t;document.querySelector(".post-type-simple-pay #post")&&(t=e("#simpay-form-settings").find("#lite-add-field"))&&t.on("click.simpayAddField",(function(e){var t=e,n=document.querySelectorAll(".simpay-custom-fields > div").length;t.target.dataset.available=n>=3?"no":"yes",Object(r.maybeBlockButtonWithUpgradeModal)(t)&&e.stopImmediatePropagation()}))}))}).call(this,n(7))},function(e,t,n){"use strict";(function(e){var t=n(0),r=n(3);Object(t.a)((function(){var t,n,a;(t=document.querySelector('[name="_enable_payment_page"]'))&&t.addEventListener("change",r.maybeBlockCheckboxWithUpgradeModal),(n=document.querySelector('[name="_payment_page_powered_by"]'))&&n.addEventListener("change",r.maybeBlockCheckboxWithUpgradeModal),function(){if(document.getElementById("payment-page-background-color-custom")){e("#payment-page-background-color-custom").wpColorPicker();var t=document.querySelector(".simpay-payment-page-background-color .wp-color-result"),n=document.querySelectorAll(".simpay-payment-page-background-color");t.addEventListener("click",(function(t){n.forEach((function(e){e.querySelector("input").checked=!1})),t.target.classList.add("is-selected"),e(t.target).parent().find("input").prop("checked",!0)})),n.forEach((function(e){e.querySelector("input").addEventListener("change",(function(){t.classList.remove("is-selected")}))}))}}(),(a=document.querySelector('[name="_payment_page_slug"]'))&&a.addEventListener("keyup",(function(e){var t=document.querySelector(".simpay-payment-page-url");t&&(t.dataset.clipboardText="".concat(window.location.origin,"/").concat(e.target.value))}))}))}).call(this,n(7))},function(e,t,n){"use strict";(function(e){var t=n(6),r=n.n(t),a=n(0),i='',o='',c=simpayAdmin,s=c.nonce,l=c.ajaxUrl,u=c.i18n,d=u.addonActivated,p=u.addonActivate,m=u.addonActive,f=u.addonDeactivate,y=u.addonInactive,h=u.addonInstall,v=u.addonError,g=u.pluginError;function b(t){t.preventDefault();var n,a,c,u,b,_,k=e(t.target);if(k.hasClass("status-go-to-url"))window.open(k.attr("data-plugin"),"_blank");else{var w=k.attr("data-type");if(k.prop("disabled",!0).addClass("loading"),k.html(''),k.hasClass("status-active"))n="deactivate",a="status-installed","plugin"===w&&(a+=" button button-secondary"),c=y,u=p,b=f,"addon"===w&&(u=i+u,b=o+b);else if(k.hasClass("status-installed"))n="activate",a="status-active","plugin"===w&&(a+=" button button-secondary disabled"),c=m,u=f,"addon"===w?(u=o+u,b=i+p):"plugin"===w&&(u=d,b=p);else{if(!k.hasClass("status-missing"))return;n="install",a="status-active","plugin"===w&&(a+=" button disabled"),c=m,u=d,b='',"addon"===w&&(u=i+f,b+=h)}var x=k.closest(".simpay-addon");!function(t,n,r,a){var i={activate:"simpay_activate_addon",install:"simpay_install_addon",deactivate:"simpay_deactivate_addon"}[n];if(i){var o={action:i,nonce:s,plugin:t,type:r};e.post(l,o,a).fail((function(e){console.log(e.responseText)}))}}(k.attr("data-plugin"),n,w,(function(e){e.success?("install"===n?(k.attr("data-plugin",e.data.basename),_=e.data.msg,e.data.is_activated||(c=y,u="plugin"===w?p:i+p,a="plugin"===w?"status-installed button button-secondary":"status-installed")):_=e.data,x.find(".simpay-addon__actions").append('
'+_+"
"),x.find("span.status-label").removeClass("status-active status-installed status-missing").addClass(a).removeClass("button button-primary button-secondary disabled").text(c),k.removeClass("status-active status-installed status-missing").removeClass("button button-primary button-secondary disabled").addClass(a).html(u)):("object"===r()(e.data)?"addon"===w?x.find(".simpay-addon__actions").append('
'+v+"
"):x.find(".simpay-addon__actions").append('
'+g+"
"):x.find(".simpay-addon__actions").append('
'+e.data+"
"),"install"===n&&"plugin"===w&&k.addClass("status-go-to-url").removeClass("status-missing"),k.html(b)),k.prop("disabled",!1).removeClass("loading"),setTimeout((function(){x.find(".msg").remove()}),3e3)}))}}Object(a.a)((function(){document.querySelector(".simpay-addons")&&document.querySelectorAll(".simpay-addon").forEach((function(e){e.querySelector("button").addEventListener("click",b)}))}))}).call(this,n(7))},function(e,t,n){"use strict";var r=n(0);Object(r.a)((function(){var e=new ClipboardJS(".simpay-copy-button");e.on("success",(function(t){var n=t.trigger,r=n.dataset.copied,a=n.innerHTML;clearTimeout(i),n.innerHTML=r,n.classList.contains("button-secondary")&&(n.style.color="green",n.style.borderColor="green"),t.clearSelection();var i=setTimeout((function(){n.innerHTML=a,n.classList.contains("button-secondary")&&(n.style.color="",n.style.borderColor=""),e.clipboardAction.fakeElem&&e.clipboardAction.removeFake&&e.clipboardAction.removeFake()}),3e3);wp.a11y.speak(r)}))}))},,,,,,,,,,,,,,,,function(e,t,n){"use strict";n(38),n(39);var r=n(10),a=n.n(r),i=n(0),o=n(3);function c(e){var t=e.target,n=t.options[t.selectedIndex].value,r=document.querySelectorAll(".simpay-panel-field-payment-method[data-payment-method]");a()(r).forEach((function(e){var t="popular"===JSON.parse(e.dataset.paymentMethod).scope?"block":"none";e.style.display="all"===n?"block":t}))}Object(i.a)((function(){var e=document.querySelectorAll(".simpay-panel-field-payment-method-filter");0!==e.length&&a()(e).forEach((function(e){e.addEventListener("change",c)}));var t=document.querySelectorAll(".simpay-payment-method-lite");t&&t.forEach((function(e){return e.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal)}));var n=document.querySelectorAll(".simpay-payment-method-fee-recovery-lite");n&&n.forEach((function(e){return e.addEventListener("click",o.maybeBlockButtonWithUpgradeModal)}))})),Object(i.a)((function(){var e=document.getElementById("_tax_status_lite");e&&e.addEventListener("change",o.maybeBlockSelectWithUpgradeModal)})),n(40),Object(i.a)((function(){var e,t;(e=document.getElementById("_enable_tax_id"))&&e.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal),(t=document.getElementById("_enable_promotion_codes"))&&t.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal)})),n(41),Object(i.a)((function(){var e=document.getElementById("_inventory");e&&e.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal);var t=document.getElementById("_inventory_behavior_individual");t&&t.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal);var n=document.getElementById("_schedule_start");n&&n.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal);var r=document.getElementById("_schedule_end");r&&r.addEventListener("change",o.maybeBlockCheckboxWithUpgradeModal)})),Object(i.a)((function(){var e=document.getElementById("automations-search");if(e){var t=document.querySelectorAll(".simpay-form-builder-automator__integrations-integration");e.addEventListener("input",(function(){var n=e.value.toLowerCase();t.forEach((function(e){for(var t=Object.values(e.dataset),r=0;r $template_files List of template file paths. + */ + $template_files = apply_filters( + '__unstable__simpay_payment_form_templates', + $template_files + ); + if ( false === $template_files ) { return array(); } diff --git a/includes/core/post-types/simple-pay/edit-form-automations.php b/includes/core/post-types/simple-pay/edit-form-automations.php new file mode 100644 index 00000000..e724e6ab --- /dev/null +++ b/includes/core/post-types/simple-pay/edit-form-automations.php @@ -0,0 +1,165 @@ +> + */ +function get_automator_integrations() { + $upload_dir = wp_upload_dir(); + $cache_dir = trailingslashit( $upload_dir['basedir'] ); + $cache_file = $cache_dir . 'wpsp-uncanny-automator-integrations.json'; + + if ( ! file_exists( $cache_file ) ) { + return array(); + } + + $cache_file_contents = file_get_contents( $cache_file ); + + if ( false === $cache_file_contents ) { + return array(); + } + + $integrations = json_decode( $cache_file_contents, true ); + + if ( ! is_array( $integrations ) ) { + return array(); + } + + // Remove WP Simple Pay. We will create our own direct recipe link. + unset( $integrations['WPSIMPLEPAY'] ); + + shuffle( $integrations ); + + return $integrations; +} + +/** + * Adds content for the "Automations" tab. + * + * @since 4.7.8 + * + * @return void + */ +function add_automations() { + $integrations = get_automator_integrations(); + $has_plugin = defined( 'AUTOMATOR_BASE_FILE' ); + + // If Uncanny Automator is active, link to the new automation screen. + // Otherwise link to the plugin installation page to auto install. + $url = $has_plugin + ? add_query_arg( 'post_type', 'uo-recipe', admin_url( 'post-new.php' ) ) + : wp_nonce_url( + add_query_arg( + array( + 'action' => 'install-plugin', + 'plugin' => 'uncanny-automator', + ), + admin_url( 'update.php' ) + ), + 'install-plugin_uncanny-automator' + ); + + // If the free version is installed, link to the pro upgrade page. + $cta_url = $url; + + $cta_text = $has_plugin + ? __( 'Automate this Payment Form', 'stripe' ) + : wp_kses( + sprintf( + /* translators: %1$s Opening HTML, do not translate. %2$s Closing HTML, do not translate. */ + __( 'Start Automating for %1$sFree!%2$s', 'stripe' ), + '', + '' + ), + array( + 'strong' => array(), + 'u' => array(), + ) + ); + ?> + + + + + + + + +
+
+
+ + + +

+ +

+
+ Uncanny Automator +
+
+ + + + +
+ $integration ) : ?> + + + + + + + +
+ +
+ + + +
+
+ +
ID ); + do_action( + 'simpay_form_settings_automations_panel', + $post->ID + ); ?>
@@ -418,48 +404,56 @@ class="simpay-panel-hidden array( - 'label' => esc_html__( 'General', 'stripe' ), - 'target' => 'form-display-options-settings-panel', - 'icon' => '', - ), - 'payment_options' => array( - 'label' => esc_html__( 'Payment', 'stripe' ), - 'target' => 'payment-options-settings-panel', - 'icon' => '', - ), + $tabs = array(); + + // Icons: https://heroicons.com/ + // Mini. + + $tabs['form_display_options'] = array( + 'label' => esc_html__( 'General', 'stripe' ), + 'target' => 'form-display-options-settings-panel', + 'icon' => '', + ); + + $tabs['payment_options'] = array( + 'label' => esc_html__( 'Payment', 'stripe' ), + 'target' => 'payment-options-settings-panel', + 'icon' => '', ); $tabs['form_display'] = array( 'label' => esc_html__( 'Form Fields', 'stripe' ), 'target' => 'custom-form-fields-settings-panel', - 'icon' => '', + 'icon' => '', ); $tabs['purchase_restrictions'] = array( 'label' => esc_html__( 'Purchase Restrictions', 'stripe' ), 'target' => 'purchase-restrictions-settings-panel', - 'icon' => '', + 'icon' => '', ); - if ( has_action( 'simpay_form_settings_meta_subscription_display_panel' ) ) { - $tabs['subscription_options'] = array( - 'label' => esc_html__( 'Subscription Options', 'stripe' ), - 'target' => 'subscription-options-settings-panel', - ); - } - $tabs['stripe_checkout'] = array( 'label' => esc_html__( 'Stripe Checkout', 'stripe' ), 'target' => 'stripe-checkout-settings-panel', - 'icon' => '', + 'icon' => '', ); $tabs['payment_page'] = array( 'label' => esc_html__( 'Payment Page', 'stripe' ), 'target' => 'payment-page-settings-panel', - 'icon' => '', + 'icon' => '', + ); + + $tabs['automations'] = array( + 'label' => wp_kses( + __( 'Automations New!', 'stripe' ), + array( + 'span' => array(), + ) + ), + 'target' => 'automations-settings-panel', + 'icon' => '', ); /** @@ -501,7 +495,7 @@ function settings_tabs( $post ) { $html = ( '' . $icon . - '' . esc_html( $tab['label'] ) . '' . + '' . $tab['label'] . '' . // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped '' ); @@ -544,6 +538,7 @@ function settings_tabs( $post ) { 'path' => array( 'fill' => true, 'fill-rule' => true, + 'fill-opacity' => true, 'd' => true, 'transform' => true, 'stroke' => true, @@ -551,6 +546,9 @@ function settings_tabs( $post ) { 'stroke-linecap' => true, 'stroke-linejoin' => true, ), + 'g' => array( + 'fill' => true, + ), 'polygon' => array( 'fill' => true, 'fill-rule' => true, diff --git a/package.json b/package.json index 414763f9..12d64a78 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "wp-simple-pay-lite", "title": "WP Simple Pay Lite for Stripe", "description": "Add high conversion Stripe Checkout forms to your WordPress site and start accepting payments in minutes. **Lite Version**", - "version": "4.7.7.3", + "version": "4.7.8", "license": "GPL-2.0-or-later", "homepage": "https://wpsimplepay.com/", "repository": { diff --git a/readme.txt b/readme.txt index 788b8f8f..66390de8 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: wpsimplepay, pderksen, spencerfinnell, adamjlea, mordauk, cklosows Tags: stripe, stripe checkout, stripe payments, credit card payments, stripe gateway Requires at least: 5.2 Tested up to: 6.2 -Stable tag: 4.7.7.3 +Stable tag: 4.7.8 Requires PHP: 5.6 License: GPLv2 or later @@ -283,10 +283,15 @@ No. WP Simple Pay is a standalone Stripe payments plugin and does not integrate == Changelog == += Stripe Payment Forms v4.7.8 - August 2, 2023 = + +* New: Add "Automations" tab to the form builder. +* Fix: Ensure at least one payment method is active when updating a payment form. + = Stripe Payment Forms v4.7.7.3 - July 25, 2023 = -* Stripe Tax - update for general availability. -* Lite Connect - improve connection process. +* New: Stripe Tax - update for general availability. +* Fix: Lite Connect - improve connection process. = Stripe Payment Forms v4.7.7 - June 28, 2023 = @@ -296,7 +301,3 @@ No. WP Simple Pay is a standalone Stripe payments plugin and does not integrate * New: Add support for Alipay, FPX, Giropay, iDEAL, and Przelewy24 Stripe payments. * Fix: Do not set additional fees when Stripe account country is based in Mexico. - -= Stripe Payment Forms v4.7.3.1 - March 31, 2023 = - -* Fix: Check that `jddayofweek()` is available before use. diff --git a/src/Admin/FormBuilder/AutomatorIntegrationsImporter.php b/src/Admin/FormBuilder/AutomatorIntegrationsImporter.php new file mode 100644 index 00000000..955053de --- /dev/null +++ b/src/Admin/FormBuilder/AutomatorIntegrationsImporter.php @@ -0,0 +1,140 @@ +api_endpoint_url = $api_endpoint_url; + $this->scheduler = $scheduler; + } + + /** + * {@inheritdoc} + */ + public function get_subscribed_events() { + return array( + 'init' => 'schedule_import', + '__unstable_simpay_import_uncanny_automator_integrations' => 'import', + ); + } + + /** + * Schedules importing help docs every two days. + * + * @since 4.7.8 + * + * @return void + */ + public function schedule_import() { + // Run an initial import. + /** @var bool $imported */ + $imported = get_option( 'simpay_automator_integrations_imported', false ); + + if ( ! $imported ) { + update_option( 'simpay_automator_integrations_imported', true ); + + $this->import(); + } + + // Schedule recurring imports. + $this->scheduler->schedule_recurring( + time(), + ( WEEK_IN_SECONDS * 2 ), // every two weeks. + '__unstable_simpay_import_uncanny_automator_integrations' + ); + } + + /** + * Imports documentation articles to local JSON file. + * + * @return void + */ + public function import() { + $request = wp_remote_get( + $this->api_endpoint_url, + array( + 'timeout' => 15, + 'sslverify' => false, + ) + ); + + if ( is_wp_error( $request ) ) { + return; + } + + $response = wp_remote_retrieve_body( $request ); + $docs = ! empty( $response ) + ? json_decode( $response, true ) + : array(); + + // JSON could not be decoded. + if ( ! is_array( $docs ) ) { + return; + } + + $cache_dir = $this->get_cache_dir(); + $cache_file = $cache_dir . 'wpsp-uncanny-automator-integrations.json'; + + // phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_read_file_put_contents + file_put_contents( $cache_file, $response ); + } + + /** + * Returns the path to the cache directory. + * + * @since 4.7.8 + * + * @return string + */ + private function get_cache_dir() { + $upload_dir = wp_upload_dir(); + + return trailingslashit( $upload_dir['basedir'] ); + } + +} diff --git a/src/Admin/FormBuilder/FormBuilderServiceProvider.php b/src/Admin/FormBuilder/FormBuilderServiceProvider.php index ad1267d1..e0283a0e 100644 --- a/src/Admin/FormBuilder/FormBuilderServiceProvider.php +++ b/src/Admin/FormBuilder/FormBuilderServiceProvider.php @@ -35,6 +35,7 @@ public function get_subscribers() { 'form-builder-license-check', 'form-builder-template-explorer', 'form-builder-custom-field-subscriber', + 'form-builder-automator-integrations-importer' ); } @@ -61,6 +62,14 @@ public function register() { 'form-builder-custom-field-subscriber', CustomFieldSubscriber::class ); + + // Uncanny Automator integrations importer for the "Automations" tab. + $container->share( + 'form-builder-automator-integrations-importer', + AutomatorIntegrationsImporter::class + ) + ->withArgument( 'https://integrations.automatorplugin.com/list.json' ) + ->withArgument( $container->get( 'scheduler' ) ); } } diff --git a/stripe-checkout.php b/stripe-checkout.php index b6cf3918..54698ffa 100644 --- a/stripe-checkout.php +++ b/stripe-checkout.php @@ -5,7 +5,7 @@ * Description: Add high conversion Stripe payment forms to your WordPress site in minutes. * Author: WP Simple Pay * Author URI: https://wpsimplepay.com - * Version: 4.7.7.3 + * Version: 4.7.8 * Text Domain: stripe * Domain Path: /languages */ @@ -54,7 +54,7 @@ // // Lite/Pro-specific. // - define( 'SIMPLE_PAY_VERSION', '4.7.7.3' ); + define( 'SIMPLE_PAY_VERSION', '4.7.8' ); if ( ! defined( 'SIMPLE_PAY_PLUGIN_NAME' ) ) { define( 'SIMPLE_PAY_PLUGIN_NAME', 'WP Simple Pay Lite' ); diff --git a/vendor/autoload.php b/vendor/autoload.php index 883f540f..0b4c8ea0 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -22,4 +22,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInitd49183aca8f216b2a80e0a17210caccb::getLoader(); +return ComposerAutoloaderIniteb29d04b90459890ff9fba984c3fa047::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 74475530..8a89c62d 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInitd49183aca8f216b2a80e0a17210caccb +class ComposerAutoloaderIniteb29d04b90459890ff9fba984c3fa047 { private static $loader; @@ -22,12 +22,12 @@ public static function getLoader() return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInitd49183aca8f216b2a80e0a17210caccb', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderIniteb29d04b90459890ff9fba984c3fa047', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); - spl_autoload_unregister(array('ComposerAutoloaderInitd49183aca8f216b2a80e0a17210caccb', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderIniteb29d04b90459890ff9fba984c3fa047', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInitd49183aca8f216b2a80e0a17210caccb::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticIniteb29d04b90459890ff9fba984c3fa047::getInitializer($loader)); $loader->register(true); diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index f0e08fe2..277074d0 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInitd49183aca8f216b2a80e0a17210caccb +class ComposerStaticIniteb29d04b90459890ff9fba984c3fa047 { public static $prefixLengthsPsr4 = array ( 'S' => @@ -37,9 +37,9 @@ class ComposerStaticInitd49183aca8f216b2a80e0a17210caccb public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInitd49183aca8f216b2a80e0a17210caccb::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInitd49183aca8f216b2a80e0a17210caccb::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInitd49183aca8f216b2a80e0a17210caccb::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticIniteb29d04b90459890ff9fba984c3fa047::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticIniteb29d04b90459890ff9fba984c3fa047::$prefixDirsPsr4; + $loader->classMap = ComposerStaticIniteb29d04b90459890ff9fba984c3fa047::$classMap; }, null, ClassLoader::class); } diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index fbd41f74..666349fa 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -3,7 +3,7 @@ 'name' => 'wpsimplepay/wp-simple-pay-pro-3', 'pretty_version' => 'dev-master', 'version' => 'dev-master', - 'reference' => 'cb346d7ca8c65774f696cdfc1d9a67b5006ea855', + 'reference' => 'b4e82a90605ba3c4cf7319c72d8df6663b6f29b9', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -103,7 +103,7 @@ 'wpsimplepay/wp-simple-pay-pro-3' => array( 'pretty_version' => 'dev-master', 'version' => 'dev-master', - 'reference' => 'cb346d7ca8c65774f696cdfc1d9a67b5006ea855', + 'reference' => 'b4e82a90605ba3c4cf7319c72d8df6663b6f29b9', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(),