diff --git a/data/templates/recurring-services-form.json b/data/templates/recurring-services-form.json index fc9c2d8e..b9bdedfa 100644 --- a/data/templates/recurring-services-form.json +++ b/data/templates/recurring-services-form.json @@ -1,5 +1,5 @@ { - "id": "46c15e72-102c-4dfa-8855-f19919eab18f", + "id": "02ff50b2-f55d-4dbe-b274-e265338f9bcc", "license": [ "plus", "professional", diff --git a/includes/core/assets/css/admin/admin.scss b/includes/core/assets/css/admin/admin.scss index fbf4ce25..3ac3d09c 100644 --- a/includes/core/assets/css/admin/admin.scss +++ b/includes/core/assets/css/admin/admin.scss @@ -1729,8 +1729,8 @@ select.simpay-currency-symbol { } } -.simpay-instant-payouts-notice { - color: #000; +.simpay-form-settings-notice { + color: #1d2327; position: relative; margin: 18px 18px 0; padding: 14px; @@ -1807,3 +1807,10 @@ select.simpay-currency-symbol { #wpsp-api-keys-row-hide { display: none; } + +/** + * Preview button + */ +.post-type-simple-pay #post-preview:not(.simpay-preview-button) { + display: none; +} diff --git a/includes/core/assets/css/frontend/public.scss b/includes/core/assets/css/frontend/public.scss index 291fd1da..259d7274 100644 --- a/includes/core/assets/css/frontend/public.scss +++ b/includes/core/assets/css/frontend/public.scss @@ -80,6 +80,7 @@ $error-text-color: #eb1c26; } } +html body.simpay-payment-page, html body.simpay-form-preview { font-family: $base-font; margin: 50px; @@ -114,7 +115,7 @@ html body.simpay-form-preview { &-actions { display: flex; - justify-content: space-around; + justify-content: center; flex-wrap: wrap; } @@ -178,3 +179,98 @@ html body.simpay-form-preview { max-width: 400px; } } + +html body.simpay-payment-page { + display: flex; + justify-content: center; + align-items: center; + + .simpay-payment-page-wrap { + margin: 0 auto; + width: calc(400px + 4rem); + padding: 2rem; + background: white; + border-radius: 4px; + box-shadow: 0 25px 50px -12px rgb(0, 0, 0, 0.25); + } + + .simpay-payment-page-wrap img { + max-width: 100%; + max-height: 125px; + margin: 0 auto 2rem; + display: block; + } + + .simpay-embedded-heading:not(.simpay-heading) { + display: none; + } + + .simpay-payment-page-footer { + text-align: center; + font-family: $base-font; + font-size: 15px; + color: rgba(255, 255, 255, 0.85); + line-height: 1.45; + margin: 2rem auto 1rem; + max-width: 440px; + border-radius: 4px; + } + + .simpay-payment-page-powered-by { + color: #fff; + text-align: center; + font-family: $base-font; + font-size: 14px; + text-decoration: none; + margin-top: 1rem; + display: block; + align-items: center; + opacity: 0.65; + + &:hover { + opacity: 1; + } + + img { + vertical-align: middle; + width: 200px; + margin-left: 10px; + } + } + + .simpay-payment-receipt-wrap { + max-width: 400px; + + p { + color: $base-text-color; + font-size: 15px; + font-family: $base-font; + line-height: 1.5; + } + + p:only-child { + margin: 0; + } + + p:first-of-type { + margin-top: 0; + } + + p:last-of-type { + margin-bottom: 0; + } + } + + // Set width to 90vw when less than 500px. + @media (max-width: 500px) { + margin: 20px; + + .simpay-payment-page-wrap { + min-width: 0; + width: 90vw; + padding: 1.5rem; + min-width: 0; + } + } + +} \ No newline at end of file diff --git a/includes/core/assets/css/simpay-admin.min.css b/includes/core/assets/css/simpay-admin.min.css index 582d5022..b1c9f2ed 100644 --- a/includes/core/assets/css/simpay-admin.min.css +++ b/includes/core/assets/css/simpay-admin.min.css @@ -1,3 +1,3 @@ -.simpay-settings-subsections{display:flex;align-items:center;box-shadow:inset 0 -1px 0 0 #ccc}.simpay-settings-subsections__subsection{font-weight:500;text-decoration:none;padding:15px;display:flex;align-items:center}.simpay-settings-subsections__subsection .dashicons{width:18px;height:18px;font-size:18px;margin-right:4px}.simpay-settings-subsections__subsection.is-active{box-shadow:inset 0 -4px 0 0 currentColor;position:relative;z-index:1}.simpay-settings-subsections__subsection:not(.is-active){color:#23282d}.simpay-settings form>h2:not(.nav-tab-wrapper){clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px}.simpay-settings .form-table td fieldset+p,.simpay-settings .form-table td label+p,.simpay-settings .form-table td select+p,.simpay-settings .form-table td input+p{color:#666;font-style:italic}.simpay-settings .simpay-settings-subsections__subsection{display:flex;align-items:center}.simpay-settings .simpay-settings-subsections__subsection .simpay-settings-bubble{margin-left:5px}.button.button-large.simpay-button-large{font-size:14px;line-height:30px;padding:4px 12px}.simpay-copy-hidden-input{clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.fixed .column-livemode{width:15%;text-align:right}@media screen and (max-width: 782px){.fixed .column-livemode{text-align:left}}.fixed .column-livemode .simpay-badge{margin-top:3px}.fixed .column-shortcode{width:25%}.fixed .column-shortcode .simpay-shortcode{clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.post-type-simple-pay .misc-pub-curtime,.post-type-simple-pay .misc-pub-visibility{display:none}.simpay-metabox-title{border:1px solid #eee}.simpay-shortcode-section{border-top:1px solid #ddd;border-width:1px 0;padding-top:15px;padding-bottom:15px;position:relative}.simpay-shortcode-section label{display:block;margin-bottom:6px}.simpay-shortcode-section label .dashicons{color:#8c8f94;margin-right:3px}.simpay-shortcode-section .simpay-copy-button{line-height:normal;position:absolute;right:20px;bottom:20px;border:0;background:none;box-shadow:none;padding:0}.simpay-shortcode-section .simpay-copy-button:hover{border:0;background:none;box-shadow:none}.simpay-shortcode-section .simpay-copy-button .dashicons{color:#3c434a}.simpay-shortcode{width:100%;padding:8px;line-height:1;margin:0;height:32px;resize:none}.simpay-badge{color:#3f3f46;text-align:center;line-height:1;padding:5px 7px;border-radius:3px;background:#e4e4e7;border:0;box-shadow:none;display:inline-flex;align-items:center}button.simpay-badge{cursor:pointer}button.simpay-badge:hover{background:#d4d4d8}.simpay-badge__icon{opacity:.8;margin:2px 5px 0 0}.simpay-badge--green{color:#0e6245;background:#cbf4c9}.simpay-badge--yellow{color:#983705;background:#f8e5b9}.simpay-stripe-account-info{display:flex;align-items:center;margin-bottom:8px}.simpay-stripe-account-info .spinner{float:none;margin-top:0;margin-left:0}.simple-pay_page_simpay_settings .simpay-settings-upgrade,.post-type-simple-pay .simpay-settings-upgrade{padding:25px 20px 30px;position:relative}.simple-pay_page_simpay_settings .simpay-settings-upgrade__inner,.post-type-simple-pay .simpay-settings-upgrade__inner{text-align:center;max-width:700px;margin:0 auto}.simple-pay_page_simpay_settings .simpay-settings-upgrade h3,.simple-pay_page_simpay_settings .simpay-settings-upgrade h4,.post-type-simple-pay .simpay-settings-upgrade h3,.post-type-simple-pay .simpay-settings-upgrade h4{line-height:1;margin:1rem 0}.simple-pay_page_simpay_settings .simpay-settings-upgrade h4,.post-type-simple-pay .simpay-settings-upgrade h4{color:#428bca;font-size:18px}.simple-pay_page_simpay_settings .simpay-settings-upgrade h3,.post-type-simple-pay .simpay-settings-upgrade h3{font-size:26px}.simple-pay_page_simpay_settings .simpay-settings-upgrade ul,.post-type-simple-pay .simpay-settings-upgrade ul{max-width:550px;margin:25px auto 13px;display:flex;flex-wrap:wrap;justify-content:center}.simple-pay_page_simpay_settings .simpay-settings-upgrade li,.post-type-simple-pay .simpay-settings-upgrade li{font-size:15px;text-align:center;margin-bottom:12px;width:100%}@media screen and (min-width: 782px){.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,.post-type-simple-pay .simpay-settings-upgrade .dashicons{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-upgrade-btn-subtext,.post-type-simple-pay .simpay-upgrade-btn-subtext{margin:40px 0 0;padding:30px 35px 20px;background-color:#fcf9e8;border:3px solid #ebe29a;border-radius:4px;position:relative}.simple-pay_page_simpay_settings .simpay-upgrade-btn-subtext svg,.post-type-simple-pay .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}.simple-pay_page_simpay_settings .simpay-upgrade-btn-subtext u,.post-type-simple-pay .simpay-upgrade-btn-subtext u{text-decoration:none;font-weight:bold;color:#00a32a}.simple-pay_page_simpay_settings .simpay-upgrade-btn-subtext a,.post-type-simple-pay .simpay-upgrade-btn-subtext a{text-decoration:none}#simpay-payment-form-settings table{width:100%;border-collapse:collapse}#simpay-payment-form-settings ::-webkit-input-placeholder{color:#9ba1a9}#simpay-payment-form-settings ::-moz-placeholder{color:#9ba1a9;opacity:1}#simpay-payment-form-settings :-ms-input-placeholder{color:#9ba1a9}#simpay-payment-form-settings .inside{margin:0;padding:0}#simpay-payment-form-settings .simpay-panel-field .toolbar{margin-bottom:-4px}#simpay-payment-form-settings .simpay-panel-field .toolbar .simpay-field-select{margin:0 0 4px;width:auto;max-width:70%}#simpay-payment-form-settings .simpay-tabs{margin:0;padding:0;list-style:none;background:#fafafa;border-right:1px solid #ccd0d4;line-height:1em;position:relative;flex:0 0 25%}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-tabs{flex-basis:100%;flex-grow:1;border-right:0}}#simpay-payment-form-settings .simpay-tabs li{margin:0;padding:0}#simpay-payment-form-settings .simpay-tabs li: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: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 input[type=checkbox]{margin-top:0;margin-right:8px}#simpay-payment-form-settings .simpay-panel-field-payment-method__help{color:#666;text-decoration:none;margin-right:5px}#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{margin-left:65px}#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-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}.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}.post-new-php.post-type-simple-pay #screen-meta-links,.post-php.post-type-simple-pay #screen-meta-links,.edit-php.post-type-simple-pay #screen-meta-links{display:none}.simpay-branding-bar{margin-left:-20px;padding:14px 20px 14px 22px;background:#fff;border-bottom:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04)}.simpay-branding-bar__title{display:flex;align-items:center;float:left}.simpay-branding-bar__logo{width:180px;margin-bottom:12px}.simpay-branding-bar__divider{color:#dadbdf;font-size:23px;font-weight:400;margin:0 15px}.simpay-branding-bar__actions{float:right;margin-top:4px;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{padding:0 !important}.simpay-upgrade-modal *{box-sizing:border-box}.simpay-upgrade-modal__content{text-align:center;display:flex;flex-direction:column;align-items:center;padding:16px 32px 32px}.simpay-upgrade-modal__content>.dashicons{color:#333;font-size:48px;width:48px;height:48px}.simpay-upgrade-modal__title{font-size:22px;line-height:1.5;display:block;margin:12px 0 0}.simpay-upgrade-modal__description{color:#777;font-size:16px;margin:16px 0 24px}.simpay-upgrade-modal__description strong{color:#333}.simpay-upgrade-modal__discount{font-size:15px;text-align:center;margin:32px -32px -32px;padding:24px 40px;background-color:#fcf9e8;position:relative}.simpay-upgrade-modal__discount svg{background:#00a32a;fill:#fff;border-radius:50%;border:4px solid #fff;width:32px;height:32px;position:absolute;top:-16px;left:50%;margin-left:-16px}.simpay-upgrade-modal__discount u{text-decoration:none;font-weight:bold;color:#00a32a}.simpay-upgrade-modal .button-large{font-size:16px;font-weight:bold;margin:0 0 15px;padding:8px 30px !important;height:auto}.simpay-teaser-float{margin:50px;position:relative}.simpay-teaser-float__card{text-align:center;padding:30px;background:#fff;border-radius:4px;box-shadow:0 0 30px 15px rgba(0,0,0,.18);position:relative;z-index:2}#poststuff .simpay-teaser-float h2,.simpay-teaser-float h2{font-size:24px;font-weight:600;margin:0;padding:0}.simpay-teaser-float p{font-size:15px;line-height:1.35;color:#666}.simpay-teaser-float p strong{color:#444}.simpay-teaser-float ul{text-align:left;display:inline-block;margin:-10px 0 20px;list-style-type:none}.simpay-teaser-float li{margin:16px 0;padding:0 0 0 24px;font-size:15px;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjc3NjIgNi40NTYwNUw4LjcyMDMyIDEuNDAwMDVDOC41NzU5OSAxLjI1NTcyIDguMzgzNjQgMS4xNzY1IDguMTc4NTMgMS4xNzY1QzcuOTczMiAxLjE3NjUgNy43ODA5NiAxLjI1NTg0IDcuNjM2NjQgMS40MDAwNUw3LjE3NzYgMS44NTkyQzcuMDMzMzkgMi4wMDMyOSA2Ljk1Mzk1IDIuMTk1NzYgNi45NTM5NSAyLjQwMDk4QzYuOTUzOTUgMi42MDYwOCA3LjAzMzM5IDIuODA1MDQgNy4xNzc2IDIuOTQ5MTRMMTAuMTI3MSA1LjkwNTE2SDAuNzU2MzM0QzAuMzMzODM0IDUuOTA1MTYgMCA2LjIzNTkyIDAgNi42NTg1NFY3LjMwNzY1QzAgNy43MzAyNyAwLjMzMzgzNCA4LjA5NDM4IDAuNzU2MzM0IDguMDk0MzhIMTAuMTYwNkw3LjE3NzcyIDExLjA2NjlDNy4wMzM1MSAxMS4yMTEyIDYuOTU0MDYgMTEuMzk4NSA2Ljk1NDA2IDExLjYwMzdDNi45NTQwNiAxMS44MDg3IDcuMDMzNTEgMTEuOTk4NiA3LjE3NzcyIDEyLjE0MjhMNy42MzY3NSAxMi42MDA1QzcuNzgxMDcgMTIuNzQ0OCA3Ljk3MzMyIDEyLjgyMzUgOC4xNzg2NSAxMi44MjM1QzguMzgzNzUgMTIuODIzNSA4LjU3NjExIDEyLjc0MzggOC43MjA0MyAxMi41OTk1TDEzLjc3NjMgNy41NDM2QzEzLjkyMSA3LjM5ODgyIDE0LjAwMDUgNy4yMDU1NiAxNCA3LjAwMDExQzE0LjAwMDQgNi43OTM5OCAxMy45MjEgNi42MDA2IDEzLjc3NjIgNi40NTYwNVY2LjQ1NjA1WiIgZmlsbD0iIzQyOEJDQSIvPgo8L3N2Zz4K);background-position:left 3px;background-repeat:no-repeat;background-size:14px;color:#777}.simpay-teaser-float .button.button-large{font-size:17px;line-height:30px;padding:10px 20px}.simpay-teaser-float .simpay-notice-dismiss{position:absolute;top:0;right:0;font-size:20px;color:#666;font-weight:bold;text-decoration:none;margin-left:5px;padding:6px 10px;z-index:2}.simpay-teaser-float .simpay-notice-dismiss:hover,.simpay-teaser-float .simpay-notice-dismiss:active,.simpay-teaser-float .simpay-notice-dismiss:focus{color:#666;text-decoration:none}.simpay-teaser-float:after,.simpay-teaser-float:before{opacity:.75;z-index:0;content:"";position:absolute;left:-30px;right:-30px;top:-35px;width:calc(100% + 60px);height:170px;background-image:linear-gradient(#ddd, #ddd),linear-gradient(#eee, #eee),linear-gradient(#ddd, #ddd),linear-gradient(#eee, #eee);background-repeat:no-repeat;background-size:100% 20px,100% 40px,100% 20px,100% 40px;background-position:0 0,0 30px,0 100px,0 130px}.simpay-teaser-float:before{top:170px}.simpay-teaser-float .simpay-upgrade-btn-subtext{margin:24px -30px -30px;padding:32px 40px 24px;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-instant-payouts-notice{color:#000;position:relative;margin:18px 18px 0;padding:14px;border-radius:4px;background:#f5f5ff}.simpay-instant-payouts-notice a{color:#635aff}.simpay-instant-payouts-notice .simpay-external-link .dashicons-external{margin:1px 0 0 2px}.simpay-instant-payouts-notice strong{font-size:14px}.simpay-instant-payouts-notice p{margin:5px 0 0 23px}.simpay-instant-payouts-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-instant-payouts-notice .simpay-notice-dismiss:hover,.simpay-instant-payouts-notice .simpay-notice-dismiss:active,.simpay-instant-payouts-notice .simpay-notice-dismiss:focus{color:#9191ef;text-decoration:none;background:none}.post-type-simple-pay .lity{z-index:999999999;padding:20px}.post-type-simple-pay .lity-close{margin:10px}.post-type-simple-pay .lity-content{max-width:80vw;max-height:80vh}.post-type-simple-pay .lity-content img{max-height:80vh !important;max-width:80vw !important}#wpsp-api-keys-row-hide{display:none} +.simpay-settings-subsections{display:flex;align-items:center;box-shadow:inset 0 -1px 0 0 #ccc}.simpay-settings-subsections__subsection{font-weight:500;text-decoration:none;padding:15px;display:flex;align-items:center}.simpay-settings-subsections__subsection .dashicons{width:18px;height:18px;font-size:18px;margin-right:4px}.simpay-settings-subsections__subsection.is-active{box-shadow:inset 0 -4px 0 0 currentColor;position:relative;z-index:1}.simpay-settings-subsections__subsection:not(.is-active){color:#23282d}.simpay-settings form>h2:not(.nav-tab-wrapper){clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px}.simpay-settings .form-table td fieldset+p,.simpay-settings .form-table td label+p,.simpay-settings .form-table td select+p,.simpay-settings .form-table td input+p{color:#666;font-style:italic}.simpay-settings .simpay-settings-subsections__subsection{display:flex;align-items:center}.simpay-settings .simpay-settings-subsections__subsection .simpay-settings-bubble{margin-left:5px}.button.button-large.simpay-button-large{font-size:14px;line-height:30px;padding:4px 12px}.simpay-copy-hidden-input{clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.fixed .column-livemode{width:15%;text-align:right}@media screen and (max-width: 782px){.fixed .column-livemode{text-align:left}}.fixed .column-livemode .simpay-badge{margin-top:3px}.fixed .column-shortcode{width:25%}.fixed .column-shortcode .simpay-shortcode{clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.post-type-simple-pay .misc-pub-curtime,.post-type-simple-pay .misc-pub-visibility{display:none}.simpay-metabox-title{border:1px solid #eee}.simpay-shortcode-section{border-top:1px solid #ddd;border-width:1px 0;padding-top:15px;padding-bottom:15px;position:relative}.simpay-shortcode-section label{display:block;margin-bottom:6px}.simpay-shortcode-section label .dashicons{color:#8c8f94;margin-right:3px}.simpay-shortcode-section .simpay-copy-button{line-height:normal;position:absolute;right:20px;bottom:20px;border:0;background:none;box-shadow:none;padding:0}.simpay-shortcode-section .simpay-copy-button:hover{border:0;background:none;box-shadow:none}.simpay-shortcode-section .simpay-copy-button .dashicons{color:#3c434a}.simpay-shortcode{width:100%;padding:8px;line-height:1;margin:0;height:32px;resize:none}.simpay-badge{color:#3f3f46;text-align:center;line-height:1;padding:5px 7px;border-radius:3px;background:#e4e4e7;border:0;box-shadow:none;display:inline-flex;align-items:center}button.simpay-badge{cursor:pointer}button.simpay-badge:hover{background:#d4d4d8}.simpay-badge__icon{opacity:.8;margin:2px 5px 0 0}.simpay-badge--green{color:#0e6245;background:#cbf4c9}.simpay-badge--yellow{color:#983705;background:#f8e5b9}.simpay-stripe-account-info{display:flex;align-items:center;margin-bottom:8px}.simpay-stripe-account-info .spinner{float:none;margin-top:0;margin-left:0}.simple-pay_page_simpay_settings .simpay-settings-upgrade,.post-type-simple-pay .simpay-settings-upgrade{padding:25px 20px 30px;position:relative}.simple-pay_page_simpay_settings .simpay-settings-upgrade__inner,.post-type-simple-pay .simpay-settings-upgrade__inner{text-align:center;max-width:700px;margin:0 auto}.simple-pay_page_simpay_settings .simpay-settings-upgrade h3,.simple-pay_page_simpay_settings .simpay-settings-upgrade h4,.post-type-simple-pay .simpay-settings-upgrade h3,.post-type-simple-pay .simpay-settings-upgrade h4{line-height:1;margin:1rem 0}.simple-pay_page_simpay_settings .simpay-settings-upgrade h4,.post-type-simple-pay .simpay-settings-upgrade h4{color:#428bca;font-size:18px}.simple-pay_page_simpay_settings .simpay-settings-upgrade h3,.post-type-simple-pay .simpay-settings-upgrade h3{font-size:26px}.simple-pay_page_simpay_settings .simpay-settings-upgrade ul,.post-type-simple-pay .simpay-settings-upgrade ul{max-width:550px;margin:25px auto 13px;display:flex;flex-wrap:wrap;justify-content:center}.simple-pay_page_simpay_settings .simpay-settings-upgrade li,.post-type-simple-pay .simpay-settings-upgrade li{font-size:15px;text-align:center;margin-bottom:12px;width:100%}@media screen and (min-width: 782px){.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,.post-type-simple-pay .simpay-settings-upgrade .dashicons{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-upgrade-btn-subtext,.post-type-simple-pay .simpay-upgrade-btn-subtext{margin:40px 0 0;padding:30px 35px 20px;background-color:#fcf9e8;border:3px solid #ebe29a;border-radius:4px;position:relative}.simple-pay_page_simpay_settings .simpay-upgrade-btn-subtext svg,.post-type-simple-pay .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}.simple-pay_page_simpay_settings .simpay-upgrade-btn-subtext u,.post-type-simple-pay .simpay-upgrade-btn-subtext u{text-decoration:none;font-weight:bold;color:#00a32a}.simple-pay_page_simpay_settings .simpay-upgrade-btn-subtext a,.post-type-simple-pay .simpay-upgrade-btn-subtext a{text-decoration:none}#simpay-payment-form-settings table{width:100%;border-collapse:collapse}#simpay-payment-form-settings ::-webkit-input-placeholder{color:#9ba1a9}#simpay-payment-form-settings ::-moz-placeholder{color:#9ba1a9;opacity:1}#simpay-payment-form-settings :-ms-input-placeholder{color:#9ba1a9}#simpay-payment-form-settings .inside{margin:0;padding:0}#simpay-payment-form-settings .simpay-panel-field .toolbar{margin-bottom:-4px}#simpay-payment-form-settings .simpay-panel-field .toolbar .simpay-field-select{margin:0 0 4px;width:auto;max-width:70%}#simpay-payment-form-settings .simpay-tabs{margin:0;padding:0;list-style:none;background:#fafafa;border-right:1px solid #ccd0d4;line-height:1em;position:relative;flex:0 0 25%}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-tabs{flex-basis:100%;flex-grow:1;border-right:0}}#simpay-payment-form-settings .simpay-tabs li{margin:0;padding:0}#simpay-payment-form-settings .simpay-tabs li: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: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 input[type=checkbox]{margin-top:0;margin-right:8px}#simpay-payment-form-settings .simpay-panel-field-payment-method__help{color:#666;text-decoration:none;margin-right:5px}#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{margin-left:65px}#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-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}.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}.post-new-php.post-type-simple-pay #screen-meta-links,.post-php.post-type-simple-pay #screen-meta-links,.edit-php.post-type-simple-pay #screen-meta-links{display:none}.simpay-branding-bar{margin-left:-20px;padding:14px 20px 14px 22px;background:#fff;border-bottom:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04)}.simpay-branding-bar__title{display:flex;align-items:center;float:left}.simpay-branding-bar__logo{width:180px;margin-bottom:12px}.simpay-branding-bar__divider{color:#dadbdf;font-size:23px;font-weight:400;margin:0 15px}.simpay-branding-bar__actions{float:right;margin-top:4px;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{padding:0 !important}.simpay-upgrade-modal *{box-sizing:border-box}.simpay-upgrade-modal__content{text-align:center;display:flex;flex-direction:column;align-items:center;padding:16px 32px 32px}.simpay-upgrade-modal__content>.dashicons{color:#333;font-size:48px;width:48px;height:48px}.simpay-upgrade-modal__title{font-size:22px;line-height:1.5;display:block;margin:12px 0 0}.simpay-upgrade-modal__description{color:#777;font-size:16px;margin:16px 0 24px}.simpay-upgrade-modal__description strong{color:#333}.simpay-upgrade-modal__discount{font-size:15px;text-align:center;margin:32px -32px -32px;padding:24px 40px;background-color:#fcf9e8;position:relative}.simpay-upgrade-modal__discount svg{background:#00a32a;fill:#fff;border-radius:50%;border:4px solid #fff;width:32px;height:32px;position:absolute;top:-16px;left:50%;margin-left:-16px}.simpay-upgrade-modal__discount u{text-decoration:none;font-weight:bold;color:#00a32a}.simpay-upgrade-modal .button-large{font-size:16px;font-weight:bold;margin:0 0 15px;padding:8px 30px !important;height:auto}.simpay-teaser-float{margin:50px;position:relative}.simpay-teaser-float__card{text-align:center;padding:30px;background:#fff;border-radius:4px;box-shadow:0 0 30px 15px rgba(0,0,0,.18);position:relative;z-index:2}#poststuff .simpay-teaser-float h2,.simpay-teaser-float h2{font-size:24px;font-weight:600;margin:0;padding:0}.simpay-teaser-float p{font-size:15px;line-height:1.35;color:#666}.simpay-teaser-float p strong{color:#444}.simpay-teaser-float ul{text-align:left;display:inline-block;margin:-10px 0 20px;list-style-type:none}.simpay-teaser-float li{margin:16px 0;padding:0 0 0 24px;font-size:15px;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjc3NjIgNi40NTYwNUw4LjcyMDMyIDEuNDAwMDVDOC41NzU5OSAxLjI1NTcyIDguMzgzNjQgMS4xNzY1IDguMTc4NTMgMS4xNzY1QzcuOTczMiAxLjE3NjUgNy43ODA5NiAxLjI1NTg0IDcuNjM2NjQgMS40MDAwNUw3LjE3NzYgMS44NTkyQzcuMDMzMzkgMi4wMDMyOSA2Ljk1Mzk1IDIuMTk1NzYgNi45NTM5NSAyLjQwMDk4QzYuOTUzOTUgMi42MDYwOCA3LjAzMzM5IDIuODA1MDQgNy4xNzc2IDIuOTQ5MTRMMTAuMTI3MSA1LjkwNTE2SDAuNzU2MzM0QzAuMzMzODM0IDUuOTA1MTYgMCA2LjIzNTkyIDAgNi42NTg1NFY3LjMwNzY1QzAgNy43MzAyNyAwLjMzMzgzNCA4LjA5NDM4IDAuNzU2MzM0IDguMDk0MzhIMTAuMTYwNkw3LjE3NzcyIDExLjA2NjlDNy4wMzM1MSAxMS4yMTEyIDYuOTU0MDYgMTEuMzk4NSA2Ljk1NDA2IDExLjYwMzdDNi45NTQwNiAxMS44MDg3IDcuMDMzNTEgMTEuOTk4NiA3LjE3NzcyIDEyLjE0MjhMNy42MzY3NSAxMi42MDA1QzcuNzgxMDcgMTIuNzQ0OCA3Ljk3MzMyIDEyLjgyMzUgOC4xNzg2NSAxMi44MjM1QzguMzgzNzUgMTIuODIzNSA4LjU3NjExIDEyLjc0MzggOC43MjA0MyAxMi41OTk1TDEzLjc3NjMgNy41NDM2QzEzLjkyMSA3LjM5ODgyIDE0LjAwMDUgNy4yMDU1NiAxNCA3LjAwMDExQzE0LjAwMDQgNi43OTM5OCAxMy45MjEgNi42MDA2IDEzLjc3NjIgNi40NTYwNVY2LjQ1NjA1WiIgZmlsbD0iIzQyOEJDQSIvPgo8L3N2Zz4K);background-position:left 3px;background-repeat:no-repeat;background-size:14px;color:#777}.simpay-teaser-float .button.button-large{font-size:17px;line-height:30px;padding:10px 20px}.simpay-teaser-float .simpay-notice-dismiss{position:absolute;top:0;right:0;font-size:20px;color:#666;font-weight:bold;text-decoration:none;margin-left:5px;padding:6px 10px;z-index:2}.simpay-teaser-float .simpay-notice-dismiss:hover,.simpay-teaser-float .simpay-notice-dismiss:active,.simpay-teaser-float .simpay-notice-dismiss:focus{color:#666;text-decoration:none}.simpay-teaser-float:after,.simpay-teaser-float:before{opacity:.75;z-index:0;content:"";position:absolute;left:-30px;right:-30px;top:-35px;width:calc(100% + 60px);height:170px;background-image:linear-gradient(#ddd, #ddd),linear-gradient(#eee, #eee),linear-gradient(#ddd, #ddd),linear-gradient(#eee, #eee);background-repeat:no-repeat;background-size:100% 20px,100% 40px,100% 20px,100% 40px;background-position:0 0,0 30px,0 100px,0 130px}.simpay-teaser-float:before{top:170px}.simpay-teaser-float .simpay-upgrade-btn-subtext{margin:24px -30px -30px;padding:32px 40px 24px;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{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}.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} /*# sourceMappingURL=simpay-admin.min.css.map*/ \ No newline at end of file diff --git a/includes/core/assets/css/simpay-admin.min.css.map b/includes/core/assets/css/simpay-admin.min.css.map index 23ca6cba..3f755976 100644 --- a/includes/core/assets/css/simpay-admin.min.css.map +++ b/includes/core/assets/css/simpay-admin.min.css.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///./css/admin/admin.scss"],"names":[],"mappings":"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","file":"./../css/simpay-admin.min.css","sourcesContent":[".simpay-settings-subsections{display:flex;align-items:center;box-shadow:inset 0 -1px 0 0 #ccc}.simpay-settings-subsections__subsection{font-weight:500;text-decoration:none;padding:15px;display:flex;align-items:center}.simpay-settings-subsections__subsection .dashicons{width:18px;height:18px;font-size:18px;margin-right:4px}.simpay-settings-subsections__subsection.is-active{box-shadow:inset 0 -4px 0 0 currentColor;position:relative;z-index:1}.simpay-settings-subsections__subsection:not(.is-active){color:#23282d}.simpay-settings form>h2:not(.nav-tab-wrapper){clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px}.simpay-settings .form-table td fieldset+p,.simpay-settings .form-table td label+p,.simpay-settings .form-table td select+p,.simpay-settings .form-table td input+p{color:#666;font-style:italic}.simpay-settings .simpay-settings-subsections__subsection{display:flex;align-items:center}.simpay-settings .simpay-settings-subsections__subsection .simpay-settings-bubble{margin-left:5px}.button.button-large.simpay-button-large{font-size:14px;line-height:30px;padding:4px 12px}.simpay-copy-hidden-input{clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.fixed .column-livemode{width:15%;text-align:right}@media screen and (max-width: 782px){.fixed .column-livemode{text-align:left}}.fixed .column-livemode .simpay-badge{margin-top:3px}.fixed .column-shortcode{width:25%}.fixed .column-shortcode .simpay-shortcode{clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.post-type-simple-pay .misc-pub-curtime,.post-type-simple-pay .misc-pub-visibility{display:none}.simpay-metabox-title{border:1px solid #eee}.simpay-shortcode-section{border-top:1px solid #ddd;border-width:1px 0;padding-top:15px;padding-bottom:15px;position:relative}.simpay-shortcode-section label{display:block;margin-bottom:6px}.simpay-shortcode-section label .dashicons{color:#8c8f94;margin-right:3px}.simpay-shortcode-section .simpay-copy-button{line-height:normal;position:absolute;right:20px;bottom:20px;border:0;background:none;box-shadow:none;padding:0}.simpay-shortcode-section .simpay-copy-button:hover{border:0;background:none;box-shadow:none}.simpay-shortcode-section .simpay-copy-button .dashicons{color:#3c434a}.simpay-shortcode{width:100%;padding:8px;line-height:1;margin:0;height:32px;resize:none}.simpay-badge{color:#3f3f46;text-align:center;line-height:1;padding:5px 7px;border-radius:3px;background:#e4e4e7;border:0;box-shadow:none;display:inline-flex;align-items:center}button.simpay-badge{cursor:pointer}button.simpay-badge:hover{background:#d4d4d8}.simpay-badge__icon{opacity:.8;margin:2px 5px 0 0}.simpay-badge--green{color:#0e6245;background:#cbf4c9}.simpay-badge--yellow{color:#983705;background:#f8e5b9}.simpay-stripe-account-info{display:flex;align-items:center;margin-bottom:8px}.simpay-stripe-account-info .spinner{float:none;margin-top:0;margin-left:0}.simple-pay_page_simpay_settings .simpay-settings-upgrade,.post-type-simple-pay .simpay-settings-upgrade{padding:25px 20px 30px;position:relative}.simple-pay_page_simpay_settings .simpay-settings-upgrade__inner,.post-type-simple-pay .simpay-settings-upgrade__inner{text-align:center;max-width:700px;margin:0 auto}.simple-pay_page_simpay_settings .simpay-settings-upgrade h3,.simple-pay_page_simpay_settings .simpay-settings-upgrade h4,.post-type-simple-pay .simpay-settings-upgrade h3,.post-type-simple-pay .simpay-settings-upgrade h4{line-height:1;margin:1rem 0}.simple-pay_page_simpay_settings .simpay-settings-upgrade h4,.post-type-simple-pay .simpay-settings-upgrade h4{color:#428bca;font-size:18px}.simple-pay_page_simpay_settings .simpay-settings-upgrade h3,.post-type-simple-pay .simpay-settings-upgrade h3{font-size:26px}.simple-pay_page_simpay_settings .simpay-settings-upgrade ul,.post-type-simple-pay .simpay-settings-upgrade ul{max-width:550px;margin:25px auto 13px;display:flex;flex-wrap:wrap;justify-content:center}.simple-pay_page_simpay_settings .simpay-settings-upgrade li,.post-type-simple-pay .simpay-settings-upgrade li{font-size:15px;text-align:center;margin-bottom:12px;width:100%}@media screen and (min-width: 782px){.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,.post-type-simple-pay .simpay-settings-upgrade .dashicons{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-upgrade-btn-subtext,.post-type-simple-pay .simpay-upgrade-btn-subtext{margin:40px 0 0;padding:30px 35px 20px;background-color:#fcf9e8;border:3px solid #ebe29a;border-radius:4px;position:relative}.simple-pay_page_simpay_settings .simpay-upgrade-btn-subtext svg,.post-type-simple-pay .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}.simple-pay_page_simpay_settings .simpay-upgrade-btn-subtext u,.post-type-simple-pay .simpay-upgrade-btn-subtext u{text-decoration:none;font-weight:bold;color:#00a32a}.simple-pay_page_simpay_settings .simpay-upgrade-btn-subtext a,.post-type-simple-pay .simpay-upgrade-btn-subtext a{text-decoration:none}#simpay-payment-form-settings table{width:100%;border-collapse:collapse}#simpay-payment-form-settings ::-webkit-input-placeholder{color:#9ba1a9}#simpay-payment-form-settings ::-moz-placeholder{color:#9ba1a9;opacity:1}#simpay-payment-form-settings :-ms-input-placeholder{color:#9ba1a9}#simpay-payment-form-settings .inside{margin:0;padding:0}#simpay-payment-form-settings .simpay-panel-field .toolbar{margin-bottom:-4px}#simpay-payment-form-settings .simpay-panel-field .toolbar .simpay-field-select{margin:0 0 4px;width:auto;max-width:70%}#simpay-payment-form-settings .simpay-tabs{margin:0;padding:0;list-style:none;background:#fafafa;border-right:1px solid #ccd0d4;line-height:1em;position:relative;flex:0 0 25%}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-tabs{flex-basis:100%;flex-grow:1;border-right:0}}#simpay-payment-form-settings .simpay-tabs li{margin:0;padding:0}#simpay-payment-form-settings .simpay-tabs li: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: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 input[type=checkbox]{margin-top:0;margin-right:8px}#simpay-payment-form-settings .simpay-panel-field-payment-method__help{color:#666;text-decoration:none;margin-right:5px}#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{margin-left:65px}#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-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}.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}.post-new-php.post-type-simple-pay #screen-meta-links,.post-php.post-type-simple-pay #screen-meta-links,.edit-php.post-type-simple-pay #screen-meta-links{display:none}.simpay-branding-bar{margin-left:-20px;padding:14px 20px 14px 22px;background:#fff;border-bottom:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04)}.simpay-branding-bar__title{display:flex;align-items:center;float:left}.simpay-branding-bar__logo{width:180px;margin-bottom:12px}.simpay-branding-bar__divider{color:#dadbdf;font-size:23px;font-weight:400;margin:0 15px}.simpay-branding-bar__actions{float:right;margin-top:4px;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{padding:0 !important}.simpay-upgrade-modal *{box-sizing:border-box}.simpay-upgrade-modal__content{text-align:center;display:flex;flex-direction:column;align-items:center;padding:16px 32px 32px}.simpay-upgrade-modal__content>.dashicons{color:#333;font-size:48px;width:48px;height:48px}.simpay-upgrade-modal__title{font-size:22px;line-height:1.5;display:block;margin:12px 0 0}.simpay-upgrade-modal__description{color:#777;font-size:16px;margin:16px 0 24px}.simpay-upgrade-modal__description strong{color:#333}.simpay-upgrade-modal__discount{font-size:15px;text-align:center;margin:32px -32px -32px;padding:24px 40px;background-color:#fcf9e8;position:relative}.simpay-upgrade-modal__discount svg{background:#00a32a;fill:#fff;border-radius:50%;border:4px solid #fff;width:32px;height:32px;position:absolute;top:-16px;left:50%;margin-left:-16px}.simpay-upgrade-modal__discount u{text-decoration:none;font-weight:bold;color:#00a32a}.simpay-upgrade-modal .button-large{font-size:16px;font-weight:bold;margin:0 0 15px;padding:8px 30px !important;height:auto}.simpay-teaser-float{margin:50px;position:relative}.simpay-teaser-float__card{text-align:center;padding:30px;background:#fff;border-radius:4px;box-shadow:0 0 30px 15px rgba(0,0,0,.18);position:relative;z-index:2}#poststuff .simpay-teaser-float h2,.simpay-teaser-float h2{font-size:24px;font-weight:600;margin:0;padding:0}.simpay-teaser-float p{font-size:15px;line-height:1.35;color:#666}.simpay-teaser-float p strong{color:#444}.simpay-teaser-float ul{text-align:left;display:inline-block;margin:-10px 0 20px;list-style-type:none}.simpay-teaser-float li{margin:16px 0;padding:0 0 0 24px;font-size:15px;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjc3NjIgNi40NTYwNUw4LjcyMDMyIDEuNDAwMDVDOC41NzU5OSAxLjI1NTcyIDguMzgzNjQgMS4xNzY1IDguMTc4NTMgMS4xNzY1QzcuOTczMiAxLjE3NjUgNy43ODA5NiAxLjI1NTg0IDcuNjM2NjQgMS40MDAwNUw3LjE3NzYgMS44NTkyQzcuMDMzMzkgMi4wMDMyOSA2Ljk1Mzk1IDIuMTk1NzYgNi45NTM5NSAyLjQwMDk4QzYuOTUzOTUgMi42MDYwOCA3LjAzMzM5IDIuODA1MDQgNy4xNzc2IDIuOTQ5MTRMMTAuMTI3MSA1LjkwNTE2SDAuNzU2MzM0QzAuMzMzODM0IDUuOTA1MTYgMCA2LjIzNTkyIDAgNi42NTg1NFY3LjMwNzY1QzAgNy43MzAyNyAwLjMzMzgzNCA4LjA5NDM4IDAuNzU2MzM0IDguMDk0MzhIMTAuMTYwNkw3LjE3NzcyIDExLjA2NjlDNy4wMzM1MSAxMS4yMTEyIDYuOTU0MDYgMTEuMzk4NSA2Ljk1NDA2IDExLjYwMzdDNi45NTQwNiAxMS44MDg3IDcuMDMzNTEgMTEuOTk4NiA3LjE3NzcyIDEyLjE0MjhMNy42MzY3NSAxMi42MDA1QzcuNzgxMDcgMTIuNzQ0OCA3Ljk3MzMyIDEyLjgyMzUgOC4xNzg2NSAxMi44MjM1QzguMzgzNzUgMTIuODIzNSA4LjU3NjExIDEyLjc0MzggOC43MjA0MyAxMi41OTk1TDEzLjc3NjMgNy41NDM2QzEzLjkyMSA3LjM5ODgyIDE0LjAwMDUgNy4yMDU1NiAxNCA3LjAwMDExQzE0LjAwMDQgNi43OTM5OCAxMy45MjEgNi42MDA2IDEzLjc3NjIgNi40NTYwNVY2LjQ1NjA1WiIgZmlsbD0iIzQyOEJDQSIvPgo8L3N2Zz4K);background-position:left 3px;background-repeat:no-repeat;background-size:14px;color:#777}.simpay-teaser-float .button.button-large{font-size:17px;line-height:30px;padding:10px 20px}.simpay-teaser-float .simpay-notice-dismiss{position:absolute;top:0;right:0;font-size:20px;color:#666;font-weight:bold;text-decoration:none;margin-left:5px;padding:6px 10px;z-index:2}.simpay-teaser-float .simpay-notice-dismiss:hover,.simpay-teaser-float .simpay-notice-dismiss:active,.simpay-teaser-float .simpay-notice-dismiss:focus{color:#666;text-decoration:none}.simpay-teaser-float:after,.simpay-teaser-float:before{opacity:.75;z-index:0;content:\"\";position:absolute;left:-30px;right:-30px;top:-35px;width:calc(100% + 60px);height:170px;background-image:linear-gradient(#ddd, #ddd),linear-gradient(#eee, #eee),linear-gradient(#ddd, #ddd),linear-gradient(#eee, #eee);background-repeat:no-repeat;background-size:100% 20px,100% 40px,100% 20px,100% 40px;background-position:0 0,0 30px,0 100px,0 130px}.simpay-teaser-float:before{top:170px}.simpay-teaser-float .simpay-upgrade-btn-subtext{margin:24px -30px -30px;padding:32px 40px 24px;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-instant-payouts-notice{color:#000;position:relative;margin:18px 18px 0;padding:14px;border-radius:4px;background:#f5f5ff}.simpay-instant-payouts-notice a{color:#635aff}.simpay-instant-payouts-notice .simpay-external-link .dashicons-external{margin:1px 0 0 2px}.simpay-instant-payouts-notice strong{font-size:14px}.simpay-instant-payouts-notice p{margin:5px 0 0 23px}.simpay-instant-payouts-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-instant-payouts-notice .simpay-notice-dismiss:hover,.simpay-instant-payouts-notice .simpay-notice-dismiss:active,.simpay-instant-payouts-notice .simpay-notice-dismiss:focus{color:#9191ef;text-decoration:none;background:none}.post-type-simple-pay .lity{z-index:999999999;padding:20px}.post-type-simple-pay .lity-close{margin:10px}.post-type-simple-pay .lity-content{max-width:80vw;max-height:80vh}.post-type-simple-pay .lity-content img{max-height:80vh !important;max-width:80vw !important}#wpsp-api-keys-row-hide{display:none}"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///./css/admin/admin.scss"],"names":[],"mappings":"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","file":"./../css/simpay-admin.min.css","sourcesContent":[".simpay-settings-subsections{display:flex;align-items:center;box-shadow:inset 0 -1px 0 0 #ccc}.simpay-settings-subsections__subsection{font-weight:500;text-decoration:none;padding:15px;display:flex;align-items:center}.simpay-settings-subsections__subsection .dashicons{width:18px;height:18px;font-size:18px;margin-right:4px}.simpay-settings-subsections__subsection.is-active{box-shadow:inset 0 -4px 0 0 currentColor;position:relative;z-index:1}.simpay-settings-subsections__subsection:not(.is-active){color:#23282d}.simpay-settings form>h2:not(.nav-tab-wrapper){clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px}.simpay-settings .form-table td fieldset+p,.simpay-settings .form-table td label+p,.simpay-settings .form-table td select+p,.simpay-settings .form-table td input+p{color:#666;font-style:italic}.simpay-settings .simpay-settings-subsections__subsection{display:flex;align-items:center}.simpay-settings .simpay-settings-subsections__subsection .simpay-settings-bubble{margin-left:5px}.button.button-large.simpay-button-large{font-size:14px;line-height:30px;padding:4px 12px}.simpay-copy-hidden-input{clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.fixed .column-livemode{width:15%;text-align:right}@media screen and (max-width: 782px){.fixed .column-livemode{text-align:left}}.fixed .column-livemode .simpay-badge{margin-top:3px}.fixed .column-shortcode{width:25%}.fixed .column-shortcode .simpay-shortcode{clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.post-type-simple-pay .misc-pub-curtime,.post-type-simple-pay .misc-pub-visibility{display:none}.simpay-metabox-title{border:1px solid #eee}.simpay-shortcode-section{border-top:1px solid #ddd;border-width:1px 0;padding-top:15px;padding-bottom:15px;position:relative}.simpay-shortcode-section label{display:block;margin-bottom:6px}.simpay-shortcode-section label .dashicons{color:#8c8f94;margin-right:3px}.simpay-shortcode-section .simpay-copy-button{line-height:normal;position:absolute;right:20px;bottom:20px;border:0;background:none;box-shadow:none;padding:0}.simpay-shortcode-section .simpay-copy-button:hover{border:0;background:none;box-shadow:none}.simpay-shortcode-section .simpay-copy-button .dashicons{color:#3c434a}.simpay-shortcode{width:100%;padding:8px;line-height:1;margin:0;height:32px;resize:none}.simpay-badge{color:#3f3f46;text-align:center;line-height:1;padding:5px 7px;border-radius:3px;background:#e4e4e7;border:0;box-shadow:none;display:inline-flex;align-items:center}button.simpay-badge{cursor:pointer}button.simpay-badge:hover{background:#d4d4d8}.simpay-badge__icon{opacity:.8;margin:2px 5px 0 0}.simpay-badge--green{color:#0e6245;background:#cbf4c9}.simpay-badge--yellow{color:#983705;background:#f8e5b9}.simpay-stripe-account-info{display:flex;align-items:center;margin-bottom:8px}.simpay-stripe-account-info .spinner{float:none;margin-top:0;margin-left:0}.simple-pay_page_simpay_settings .simpay-settings-upgrade,.post-type-simple-pay .simpay-settings-upgrade{padding:25px 20px 30px;position:relative}.simple-pay_page_simpay_settings .simpay-settings-upgrade__inner,.post-type-simple-pay .simpay-settings-upgrade__inner{text-align:center;max-width:700px;margin:0 auto}.simple-pay_page_simpay_settings .simpay-settings-upgrade h3,.simple-pay_page_simpay_settings .simpay-settings-upgrade h4,.post-type-simple-pay .simpay-settings-upgrade h3,.post-type-simple-pay .simpay-settings-upgrade h4{line-height:1;margin:1rem 0}.simple-pay_page_simpay_settings .simpay-settings-upgrade h4,.post-type-simple-pay .simpay-settings-upgrade h4{color:#428bca;font-size:18px}.simple-pay_page_simpay_settings .simpay-settings-upgrade h3,.post-type-simple-pay .simpay-settings-upgrade h3{font-size:26px}.simple-pay_page_simpay_settings .simpay-settings-upgrade ul,.post-type-simple-pay .simpay-settings-upgrade ul{max-width:550px;margin:25px auto 13px;display:flex;flex-wrap:wrap;justify-content:center}.simple-pay_page_simpay_settings .simpay-settings-upgrade li,.post-type-simple-pay .simpay-settings-upgrade li{font-size:15px;text-align:center;margin-bottom:12px;width:100%}@media screen and (min-width: 782px){.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,.post-type-simple-pay .simpay-settings-upgrade .dashicons{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-upgrade-btn-subtext,.post-type-simple-pay .simpay-upgrade-btn-subtext{margin:40px 0 0;padding:30px 35px 20px;background-color:#fcf9e8;border:3px solid #ebe29a;border-radius:4px;position:relative}.simple-pay_page_simpay_settings .simpay-upgrade-btn-subtext svg,.post-type-simple-pay .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}.simple-pay_page_simpay_settings .simpay-upgrade-btn-subtext u,.post-type-simple-pay .simpay-upgrade-btn-subtext u{text-decoration:none;font-weight:bold;color:#00a32a}.simple-pay_page_simpay_settings .simpay-upgrade-btn-subtext a,.post-type-simple-pay .simpay-upgrade-btn-subtext a{text-decoration:none}#simpay-payment-form-settings table{width:100%;border-collapse:collapse}#simpay-payment-form-settings ::-webkit-input-placeholder{color:#9ba1a9}#simpay-payment-form-settings ::-moz-placeholder{color:#9ba1a9;opacity:1}#simpay-payment-form-settings :-ms-input-placeholder{color:#9ba1a9}#simpay-payment-form-settings .inside{margin:0;padding:0}#simpay-payment-form-settings .simpay-panel-field .toolbar{margin-bottom:-4px}#simpay-payment-form-settings .simpay-panel-field .toolbar .simpay-field-select{margin:0 0 4px;width:auto;max-width:70%}#simpay-payment-form-settings .simpay-tabs{margin:0;padding:0;list-style:none;background:#fafafa;border-right:1px solid #ccd0d4;line-height:1em;position:relative;flex:0 0 25%}@media screen and (max-width: 782px){#simpay-payment-form-settings .simpay-tabs{flex-basis:100%;flex-grow:1;border-right:0}}#simpay-payment-form-settings .simpay-tabs li{margin:0;padding:0}#simpay-payment-form-settings .simpay-tabs li: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: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 input[type=checkbox]{margin-top:0;margin-right:8px}#simpay-payment-form-settings .simpay-panel-field-payment-method__help{color:#666;text-decoration:none;margin-right:5px}#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{margin-left:65px}#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-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}.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}.post-new-php.post-type-simple-pay #screen-meta-links,.post-php.post-type-simple-pay #screen-meta-links,.edit-php.post-type-simple-pay #screen-meta-links{display:none}.simpay-branding-bar{margin-left:-20px;padding:14px 20px 14px 22px;background:#fff;border-bottom:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04)}.simpay-branding-bar__title{display:flex;align-items:center;float:left}.simpay-branding-bar__logo{width:180px;margin-bottom:12px}.simpay-branding-bar__divider{color:#dadbdf;font-size:23px;font-weight:400;margin:0 15px}.simpay-branding-bar__actions{float:right;margin-top:4px;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{padding:0 !important}.simpay-upgrade-modal *{box-sizing:border-box}.simpay-upgrade-modal__content{text-align:center;display:flex;flex-direction:column;align-items:center;padding:16px 32px 32px}.simpay-upgrade-modal__content>.dashicons{color:#333;font-size:48px;width:48px;height:48px}.simpay-upgrade-modal__title{font-size:22px;line-height:1.5;display:block;margin:12px 0 0}.simpay-upgrade-modal__description{color:#777;font-size:16px;margin:16px 0 24px}.simpay-upgrade-modal__description strong{color:#333}.simpay-upgrade-modal__discount{font-size:15px;text-align:center;margin:32px -32px -32px;padding:24px 40px;background-color:#fcf9e8;position:relative}.simpay-upgrade-modal__discount svg{background:#00a32a;fill:#fff;border-radius:50%;border:4px solid #fff;width:32px;height:32px;position:absolute;top:-16px;left:50%;margin-left:-16px}.simpay-upgrade-modal__discount u{text-decoration:none;font-weight:bold;color:#00a32a}.simpay-upgrade-modal .button-large{font-size:16px;font-weight:bold;margin:0 0 15px;padding:8px 30px !important;height:auto}.simpay-teaser-float{margin:50px;position:relative}.simpay-teaser-float__card{text-align:center;padding:30px;background:#fff;border-radius:4px;box-shadow:0 0 30px 15px rgba(0,0,0,.18);position:relative;z-index:2}#poststuff .simpay-teaser-float h2,.simpay-teaser-float h2{font-size:24px;font-weight:600;margin:0;padding:0}.simpay-teaser-float p{font-size:15px;line-height:1.35;color:#666}.simpay-teaser-float p strong{color:#444}.simpay-teaser-float ul{text-align:left;display:inline-block;margin:-10px 0 20px;list-style-type:none}.simpay-teaser-float li{margin:16px 0;padding:0 0 0 24px;font-size:15px;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjc3NjIgNi40NTYwNUw4LjcyMDMyIDEuNDAwMDVDOC41NzU5OSAxLjI1NTcyIDguMzgzNjQgMS4xNzY1IDguMTc4NTMgMS4xNzY1QzcuOTczMiAxLjE3NjUgNy43ODA5NiAxLjI1NTg0IDcuNjM2NjQgMS40MDAwNUw3LjE3NzYgMS44NTkyQzcuMDMzMzkgMi4wMDMyOSA2Ljk1Mzk1IDIuMTk1NzYgNi45NTM5NSAyLjQwMDk4QzYuOTUzOTUgMi42MDYwOCA3LjAzMzM5IDIuODA1MDQgNy4xNzc2IDIuOTQ5MTRMMTAuMTI3MSA1LjkwNTE2SDAuNzU2MzM0QzAuMzMzODM0IDUuOTA1MTYgMCA2LjIzNTkyIDAgNi42NTg1NFY3LjMwNzY1QzAgNy43MzAyNyAwLjMzMzgzNCA4LjA5NDM4IDAuNzU2MzM0IDguMDk0MzhIMTAuMTYwNkw3LjE3NzcyIDExLjA2NjlDNy4wMzM1MSAxMS4yMTEyIDYuOTU0MDYgMTEuMzk4NSA2Ljk1NDA2IDExLjYwMzdDNi45NTQwNiAxMS44MDg3IDcuMDMzNTEgMTEuOTk4NiA3LjE3NzcyIDEyLjE0MjhMNy42MzY3NSAxMi42MDA1QzcuNzgxMDcgMTIuNzQ0OCA3Ljk3MzMyIDEyLjgyMzUgOC4xNzg2NSAxMi44MjM1QzguMzgzNzUgMTIuODIzNSA4LjU3NjExIDEyLjc0MzggOC43MjA0MyAxMi41OTk1TDEzLjc3NjMgNy41NDM2QzEzLjkyMSA3LjM5ODgyIDE0LjAwMDUgNy4yMDU1NiAxNCA3LjAwMDExQzE0LjAwMDQgNi43OTM5OCAxMy45MjEgNi42MDA2IDEzLjc3NjIgNi40NTYwNVY2LjQ1NjA1WiIgZmlsbD0iIzQyOEJDQSIvPgo8L3N2Zz4K);background-position:left 3px;background-repeat:no-repeat;background-size:14px;color:#777}.simpay-teaser-float .button.button-large{font-size:17px;line-height:30px;padding:10px 20px}.simpay-teaser-float .simpay-notice-dismiss{position:absolute;top:0;right:0;font-size:20px;color:#666;font-weight:bold;text-decoration:none;margin-left:5px;padding:6px 10px;z-index:2}.simpay-teaser-float .simpay-notice-dismiss:hover,.simpay-teaser-float .simpay-notice-dismiss:active,.simpay-teaser-float .simpay-notice-dismiss:focus{color:#666;text-decoration:none}.simpay-teaser-float:after,.simpay-teaser-float:before{opacity:.75;z-index:0;content:\"\";position:absolute;left:-30px;right:-30px;top:-35px;width:calc(100% + 60px);height:170px;background-image:linear-gradient(#ddd, #ddd),linear-gradient(#eee, #eee),linear-gradient(#ddd, #ddd),linear-gradient(#eee, #eee);background-repeat:no-repeat;background-size:100% 20px,100% 40px,100% 20px,100% 40px;background-position:0 0,0 30px,0 100px,0 130px}.simpay-teaser-float:before{top:170px}.simpay-teaser-float .simpay-upgrade-btn-subtext{margin:24px -30px -30px;padding:32px 40px 24px;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{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}.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}"],"sourceRoot":""} \ No newline at end of file diff --git a/includes/core/assets/css/simpay-public.min.css b/includes/core/assets/css/simpay-public.min.css index 67652809..97a0076f 100644 --- a/includes/core/assets/css/simpay-public.min.css +++ b/includes/core/assets/css/simpay-public.min.css @@ -1,3 +1,3 @@ -.screen-reader-text{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px}.grecaptcha-badge{z-index:100}.simpay-styled .stripe-button-el{text-decoration:none}.simpay-styled .stripe-button-el:hover{box-shadow:none}.simpay-checkout-form--loading::after{content:"";position:absolute;left:0;width:100%;height:100%;top:0}.simpay-checkout-form--loading .simpay-form-control{opacity:.65}.simpay-errors{margin-bottom:15px}.simpay-styled .simpay-errors{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;color:#eb1c26;line-height:1.5}.simpay-checkout-form--embedded .simpay-test-mode-badge-container,.simpay-modal__content .simpay-test-mode-badge-container{text-align:center}.simpay-test-mode-badge-container .simpay-test-mode-badge{color:#a04903;text-align:center;text-transform:uppercase;font-size:10px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;line-height:10px;font-weight:700;padding:5px 7px;border-radius:3px;background:#ffde92;display:inline-flex;align-items:center}html body.simpay-form-preview{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;margin:50px;background:#428bca;box-sizing:border-box}html body.simpay-form-preview *,html body.simpay-form-preview:before,html body.simpay-form-preview:after{box-sizing:border-box}html body.simpay-form-preview:before,html body.simpay-form-preview:after{display:none}html body.simpay-form-preview .simpay-form-preview-wrap{margin:0 auto;max-width:460px;padding:30px;background:#fff;border-radius:4px;box-shadow:0 25px 50px -12px rgba(0,0,0,.25)}html body.simpay-form-preview .simpay-form-preview-notice{text-align:center;margin:0 auto 25px;max-width:440px;border-radius:4px}html body.simpay-form-preview .simpay-form-preview-notice-actions{display:flex;justify-content:space-around;flex-wrap:wrap}html body.simpay-form-preview .simpay-form-preview-notice-button,html body.simpay-form-preview .simpay-form-preview-notice-button-link{color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;font-weight:bold;font-size:15px;line-height:1;text-shadow:none;text-transform:none;margin:5px}html body.simpay-form-preview .simpay-form-preview-notice-button{background-color:#2d6ca2;padding:8px 12px;box-shadow:none;border:0;border-radius:4px;cursor:pointer}html body.simpay-form-preview .simpay-form-preview-notice-button-link{color:#fff;font-size:15px;font-weight:bold;text-decoration:none;display:flex;align-items:center}html body.simpay-form-preview .simpay-form-preview-notice-button-link span:first-child{margin-right:4px}html body.simpay-form-preview .simpay-form-preview-notice-section{margin:10px 0}html body.simpay-form-preview .simpay-form-preview-notice p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;font-size:15px;color:rgba(255,255,255,.85);line-height:1.45;margin:15px 0}html body.simpay-form-preview .simpay-form-preview-notice p:first-child{margin-top:0}html body.simpay-form-preview .simpay-form-preview-notice p:last-child{margin-bottom:0}html body.simpay-form-preview form:not(.simpay-checkout-form--overlay){margin-bottom:0;max-width:400px} +.screen-reader-text{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px}.grecaptcha-badge{z-index:100}.simpay-styled .stripe-button-el{text-decoration:none}.simpay-styled .stripe-button-el:hover{box-shadow:none}.simpay-checkout-form--loading::after{content:"";position:absolute;left:0;width:100%;height:100%;top:0}.simpay-checkout-form--loading .simpay-form-control{opacity:.65}.simpay-errors{margin-bottom:15px}.simpay-styled .simpay-errors{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;color:#eb1c26;line-height:1.5}.simpay-checkout-form--embedded .simpay-test-mode-badge-container,.simpay-modal__content .simpay-test-mode-badge-container{text-align:center}.simpay-test-mode-badge-container .simpay-test-mode-badge{color:#a04903;text-align:center;text-transform:uppercase;font-size:10px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;line-height:10px;font-weight:700;padding:5px 7px;border-radius:3px;background:#ffde92;display:inline-flex;align-items:center}html body.simpay-payment-page,html body.simpay-form-preview{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;margin:50px;background:#428bca;box-sizing:border-box}html body.simpay-payment-page *,html body.simpay-payment-page:before,html body.simpay-payment-page:after,html body.simpay-form-preview *,html body.simpay-form-preview:before,html body.simpay-form-preview:after{box-sizing:border-box}html body.simpay-payment-page:before,html body.simpay-payment-page:after,html body.simpay-form-preview:before,html body.simpay-form-preview:after{display:none}html body.simpay-payment-page .simpay-form-preview-wrap,html body.simpay-form-preview .simpay-form-preview-wrap{margin:0 auto;max-width:460px;padding:30px;background:#fff;border-radius:4px;box-shadow:0 25px 50px -12px rgba(0,0,0,.25)}html body.simpay-payment-page .simpay-form-preview-notice,html body.simpay-form-preview .simpay-form-preview-notice{text-align:center;margin:0 auto 25px;max-width:440px;border-radius:4px}html body.simpay-payment-page .simpay-form-preview-notice-actions,html body.simpay-form-preview .simpay-form-preview-notice-actions{display:flex;justify-content:center;flex-wrap:wrap}html body.simpay-payment-page .simpay-form-preview-notice-button,html body.simpay-payment-page .simpay-form-preview-notice-button-link,html body.simpay-form-preview .simpay-form-preview-notice-button,html body.simpay-form-preview .simpay-form-preview-notice-button-link{color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;font-weight:bold;font-size:15px;line-height:1;text-shadow:none;text-transform:none;margin:5px}html body.simpay-payment-page .simpay-form-preview-notice-button,html body.simpay-form-preview .simpay-form-preview-notice-button{background-color:#2d6ca2;padding:8px 12px;box-shadow:none;border:0;border-radius:4px;cursor:pointer}html body.simpay-payment-page .simpay-form-preview-notice-button-link,html body.simpay-form-preview .simpay-form-preview-notice-button-link{color:#fff;font-size:15px;font-weight:bold;text-decoration:none;display:flex;align-items:center}html body.simpay-payment-page .simpay-form-preview-notice-button-link span:first-child,html body.simpay-form-preview .simpay-form-preview-notice-button-link span:first-child{margin-right:4px}html body.simpay-payment-page .simpay-form-preview-notice-section,html body.simpay-form-preview .simpay-form-preview-notice-section{margin:10px 0}html body.simpay-payment-page .simpay-form-preview-notice p,html body.simpay-form-preview .simpay-form-preview-notice p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;font-size:15px;color:rgba(255,255,255,.85);line-height:1.45;margin:15px 0}html body.simpay-payment-page .simpay-form-preview-notice p:first-child,html body.simpay-form-preview .simpay-form-preview-notice p:first-child{margin-top:0}html body.simpay-payment-page .simpay-form-preview-notice p:last-child,html body.simpay-form-preview .simpay-form-preview-notice p:last-child{margin-bottom:0}html body.simpay-payment-page form:not(.simpay-checkout-form--overlay),html body.simpay-form-preview form:not(.simpay-checkout-form--overlay){margin-bottom:0;max-width:400px}html body.simpay-payment-page{display:flex;justify-content:center;align-items:center}html body.simpay-payment-page .simpay-payment-page-wrap{margin:0 auto;width:calc(400px + 4rem);padding:2rem;background:#fff;border-radius:4px;box-shadow:0 25px 50px -12px rgba(0,0,0,.25)}html body.simpay-payment-page .simpay-payment-page-wrap img{max-width:100%;max-height:125px;margin:0 auto 2rem;display:block}html body.simpay-payment-page .simpay-embedded-heading:not(.simpay-heading){display:none}html body.simpay-payment-page .simpay-payment-page-footer{text-align:center;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;font-size:15px;color:rgba(255,255,255,.85);line-height:1.45;margin:2rem auto 1rem;max-width:440px;border-radius:4px}html body.simpay-payment-page .simpay-payment-page-powered-by{color:#fff;text-align:center;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;font-size:14px;text-decoration:none;margin-top:1rem;display:block;align-items:center;opacity:.65}html body.simpay-payment-page .simpay-payment-page-powered-by:hover{opacity:1}html body.simpay-payment-page .simpay-payment-page-powered-by img{vertical-align:middle;width:200px;margin-left:10px}html body.simpay-payment-page .simpay-payment-receipt-wrap{max-width:400px}html body.simpay-payment-page .simpay-payment-receipt-wrap p{color:#333;font-size:15px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;line-height:1.5}html body.simpay-payment-page .simpay-payment-receipt-wrap p:only-child{margin:0}html body.simpay-payment-page .simpay-payment-receipt-wrap p:first-of-type{margin-top:0}html body.simpay-payment-page .simpay-payment-receipt-wrap p:last-of-type{margin-bottom:0}@media(max-width: 500px){html body.simpay-payment-page{margin:20px}html body.simpay-payment-page .simpay-payment-page-wrap{min-width:0;width:90vw;padding:1.5rem;min-width:0}} /*# sourceMappingURL=simpay-public.min.css.map*/ \ No newline at end of file diff --git a/includes/core/assets/css/simpay-public.min.css.map b/includes/core/assets/css/simpay-public.min.css.map index 431068c1..245b8e85 100644 --- a/includes/core/assets/css/simpay-public.min.css.map +++ b/includes/core/assets/css/simpay-public.min.css.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///./css/frontend/public.scss"],"names":[],"mappings":"AAAA,oBAAoB,8BAA8B,WAAW,gBAAgB,6BAA6B,UAAU,kBAAkB,YAAY,iCAAiC,qBAAqB,uCAAuC,gBAAgB,sCAAsC,WAAW,kBAAkB,OAAO,WAAW,YAAY,MAAM,oDAAoD,YAAY,eAAe,mBAAmB,8BAA8B,kHAAkH,cAAc,gBAAgB,2HAA2H,kBAAkB,0DAA0D,cAAc,kBAAkB,yBAAyB,eAAe,kHAAkH,iBAAiB,gBAAgB,gBAAgB,kBAAkB,mBAAmB,oBAAoB,mBAAmB,8BAA8B,kHAAkH,YAAY,mBAAmB,sBAAsB,yGAAyG,sBAAsB,yEAAyE,aAAa,wDAAwD,cAAc,gBAAgB,aAAa,gBAAgB,kBAAkB,6CAA6C,0DAA0D,kBAAkB,mBAAmB,gBAAgB,kBAAkB,kEAAkE,aAAa,6BAA6B,eAAe,uIAAuI,WAAW,kHAAkH,iBAAiB,eAAe,cAAc,iBAAiB,oBAAoB,WAAW,iEAAiE,yBAAyB,iBAAiB,gBAAgB,SAAS,kBAAkB,eAAe,sEAAsE,WAAW,eAAe,iBAAiB,qBAAqB,aAAa,mBAAmB,uFAAuF,iBAAiB,kEAAkE,cAAc,4DAA4D,kHAAkH,eAAe,4BAA4B,iBAAiB,cAAc,wEAAwE,aAAa,uEAAuE,gBAAgB,uEAAuE,gBAAgB,gB","file":"./../css/simpay-public.min.css","sourcesContent":[".screen-reader-text{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px}.grecaptcha-badge{z-index:100}.simpay-styled .stripe-button-el{text-decoration:none}.simpay-styled .stripe-button-el:hover{box-shadow:none}.simpay-checkout-form--loading::after{content:\"\";position:absolute;left:0;width:100%;height:100%;top:0}.simpay-checkout-form--loading .simpay-form-control{opacity:.65}.simpay-errors{margin-bottom:15px}.simpay-styled .simpay-errors{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;color:#eb1c26;line-height:1.5}.simpay-checkout-form--embedded .simpay-test-mode-badge-container,.simpay-modal__content .simpay-test-mode-badge-container{text-align:center}.simpay-test-mode-badge-container .simpay-test-mode-badge{color:#a04903;text-align:center;text-transform:uppercase;font-size:10px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;line-height:10px;font-weight:700;padding:5px 7px;border-radius:3px;background:#ffde92;display:inline-flex;align-items:center}html body.simpay-form-preview{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;margin:50px;background:#428bca;box-sizing:border-box}html body.simpay-form-preview *,html body.simpay-form-preview:before,html body.simpay-form-preview:after{box-sizing:border-box}html body.simpay-form-preview:before,html body.simpay-form-preview:after{display:none}html body.simpay-form-preview .simpay-form-preview-wrap{margin:0 auto;max-width:460px;padding:30px;background:#fff;border-radius:4px;box-shadow:0 25px 50px -12px rgba(0,0,0,.25)}html body.simpay-form-preview .simpay-form-preview-notice{text-align:center;margin:0 auto 25px;max-width:440px;border-radius:4px}html body.simpay-form-preview .simpay-form-preview-notice-actions{display:flex;justify-content:space-around;flex-wrap:wrap}html body.simpay-form-preview .simpay-form-preview-notice-button,html body.simpay-form-preview .simpay-form-preview-notice-button-link{color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;font-weight:bold;font-size:15px;line-height:1;text-shadow:none;text-transform:none;margin:5px}html body.simpay-form-preview .simpay-form-preview-notice-button{background-color:#2d6ca2;padding:8px 12px;box-shadow:none;border:0;border-radius:4px;cursor:pointer}html body.simpay-form-preview .simpay-form-preview-notice-button-link{color:#fff;font-size:15px;font-weight:bold;text-decoration:none;display:flex;align-items:center}html body.simpay-form-preview .simpay-form-preview-notice-button-link span:first-child{margin-right:4px}html body.simpay-form-preview .simpay-form-preview-notice-section{margin:10px 0}html body.simpay-form-preview .simpay-form-preview-notice p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;font-size:15px;color:rgba(255,255,255,.85);line-height:1.45;margin:15px 0}html body.simpay-form-preview .simpay-form-preview-notice p:first-child{margin-top:0}html body.simpay-form-preview .simpay-form-preview-notice p:last-child{margin-bottom:0}html body.simpay-form-preview form:not(.simpay-checkout-form--overlay){margin-bottom:0;max-width:400px}"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///./css/frontend/public.scss"],"names":[],"mappings":"AAAA,oBAAoB,8BAA8B,WAAW,gBAAgB,6BAA6B,UAAU,kBAAkB,YAAY,iCAAiC,qBAAqB,uCAAuC,gBAAgB,sCAAsC,WAAW,kBAAkB,OAAO,WAAW,YAAY,MAAM,oDAAoD,YAAY,eAAe,mBAAmB,8BAA8B,kHAAkH,cAAc,gBAAgB,2HAA2H,kBAAkB,0DAA0D,cAAc,kBAAkB,yBAAyB,eAAe,kHAAkH,iBAAiB,gBAAgB,gBAAgB,kBAAkB,mBAAmB,oBAAoB,mBAAmB,4DAA4D,kHAAkH,YAAY,mBAAmB,sBAAsB,kNAAkN,sBAAsB,kJAAkJ,aAAa,gHAAgH,cAAc,gBAAgB,aAAa,gBAAgB,kBAAkB,6CAA6C,oHAAoH,kBAAkB,mBAAmB,gBAAgB,kBAAkB,oIAAoI,aAAa,uBAAuB,eAAe,8QAA8Q,WAAW,kHAAkH,iBAAiB,eAAe,cAAc,iBAAiB,oBAAoB,WAAW,kIAAkI,yBAAyB,iBAAiB,gBAAgB,SAAS,kBAAkB,eAAe,4IAA4I,WAAW,eAAe,iBAAiB,qBAAqB,aAAa,mBAAmB,8KAA8K,iBAAiB,oIAAoI,cAAc,wHAAwH,kHAAkH,eAAe,4BAA4B,iBAAiB,cAAc,gJAAgJ,aAAa,8IAA8I,gBAAgB,8IAA8I,gBAAgB,gBAAgB,8BAA8B,aAAa,uBAAuB,mBAAmB,wDAAwD,cAAc,yBAAyB,aAAa,gBAAgB,kBAAkB,6CAA6C,4DAA4D,eAAe,iBAAiB,mBAAmB,cAAc,4EAA4E,aAAa,0DAA0D,kBAAkB,kHAAkH,eAAe,4BAA4B,iBAAiB,sBAAsB,gBAAgB,kBAAkB,8DAA8D,WAAW,kBAAkB,kHAAkH,eAAe,qBAAqB,gBAAgB,cAAc,mBAAmB,YAAY,oEAAoE,UAAU,kEAAkE,sBAAsB,YAAY,iBAAiB,2DAA2D,gBAAgB,6DAA6D,WAAW,eAAe,kHAAkH,gBAAgB,wEAAwE,SAAS,2EAA2E,aAAa,0EAA0E,gBAAgB,yBAAyB,8BAA8B,YAAY,wDAAwD,YAAY,WAAW,eAAe,a","file":"./../css/simpay-public.min.css","sourcesContent":[".screen-reader-text{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px}.grecaptcha-badge{z-index:100}.simpay-styled .stripe-button-el{text-decoration:none}.simpay-styled .stripe-button-el:hover{box-shadow:none}.simpay-checkout-form--loading::after{content:\"\";position:absolute;left:0;width:100%;height:100%;top:0}.simpay-checkout-form--loading .simpay-form-control{opacity:.65}.simpay-errors{margin-bottom:15px}.simpay-styled .simpay-errors{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;color:#eb1c26;line-height:1.5}.simpay-checkout-form--embedded .simpay-test-mode-badge-container,.simpay-modal__content .simpay-test-mode-badge-container{text-align:center}.simpay-test-mode-badge-container .simpay-test-mode-badge{color:#a04903;text-align:center;text-transform:uppercase;font-size:10px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;line-height:10px;font-weight:700;padding:5px 7px;border-radius:3px;background:#ffde92;display:inline-flex;align-items:center}html body.simpay-payment-page,html body.simpay-form-preview{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;margin:50px;background:#428bca;box-sizing:border-box}html body.simpay-payment-page *,html body.simpay-payment-page:before,html body.simpay-payment-page:after,html body.simpay-form-preview *,html body.simpay-form-preview:before,html body.simpay-form-preview:after{box-sizing:border-box}html body.simpay-payment-page:before,html body.simpay-payment-page:after,html body.simpay-form-preview:before,html body.simpay-form-preview:after{display:none}html body.simpay-payment-page .simpay-form-preview-wrap,html body.simpay-form-preview .simpay-form-preview-wrap{margin:0 auto;max-width:460px;padding:30px;background:#fff;border-radius:4px;box-shadow:0 25px 50px -12px rgba(0,0,0,.25)}html body.simpay-payment-page .simpay-form-preview-notice,html body.simpay-form-preview .simpay-form-preview-notice{text-align:center;margin:0 auto 25px;max-width:440px;border-radius:4px}html body.simpay-payment-page .simpay-form-preview-notice-actions,html body.simpay-form-preview .simpay-form-preview-notice-actions{display:flex;justify-content:center;flex-wrap:wrap}html body.simpay-payment-page .simpay-form-preview-notice-button,html body.simpay-payment-page .simpay-form-preview-notice-button-link,html body.simpay-form-preview .simpay-form-preview-notice-button,html body.simpay-form-preview .simpay-form-preview-notice-button-link{color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;font-weight:bold;font-size:15px;line-height:1;text-shadow:none;text-transform:none;margin:5px}html body.simpay-payment-page .simpay-form-preview-notice-button,html body.simpay-form-preview .simpay-form-preview-notice-button{background-color:#2d6ca2;padding:8px 12px;box-shadow:none;border:0;border-radius:4px;cursor:pointer}html body.simpay-payment-page .simpay-form-preview-notice-button-link,html body.simpay-form-preview .simpay-form-preview-notice-button-link{color:#fff;font-size:15px;font-weight:bold;text-decoration:none;display:flex;align-items:center}html body.simpay-payment-page .simpay-form-preview-notice-button-link span:first-child,html body.simpay-form-preview .simpay-form-preview-notice-button-link span:first-child{margin-right:4px}html body.simpay-payment-page .simpay-form-preview-notice-section,html body.simpay-form-preview .simpay-form-preview-notice-section{margin:10px 0}html body.simpay-payment-page .simpay-form-preview-notice p,html body.simpay-form-preview .simpay-form-preview-notice p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;font-size:15px;color:rgba(255,255,255,.85);line-height:1.45;margin:15px 0}html body.simpay-payment-page .simpay-form-preview-notice p:first-child,html body.simpay-form-preview .simpay-form-preview-notice p:first-child{margin-top:0}html body.simpay-payment-page .simpay-form-preview-notice p:last-child,html body.simpay-form-preview .simpay-form-preview-notice p:last-child{margin-bottom:0}html body.simpay-payment-page form:not(.simpay-checkout-form--overlay),html body.simpay-form-preview form:not(.simpay-checkout-form--overlay){margin-bottom:0;max-width:400px}html body.simpay-payment-page{display:flex;justify-content:center;align-items:center}html body.simpay-payment-page .simpay-payment-page-wrap{margin:0 auto;width:calc(400px + 4rem);padding:2rem;background:#fff;border-radius:4px;box-shadow:0 25px 50px -12px rgba(0,0,0,.25)}html body.simpay-payment-page .simpay-payment-page-wrap img{max-width:100%;max-height:125px;margin:0 auto 2rem;display:block}html body.simpay-payment-page .simpay-embedded-heading:not(.simpay-heading){display:none}html body.simpay-payment-page .simpay-payment-page-footer{text-align:center;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;font-size:15px;color:rgba(255,255,255,.85);line-height:1.45;margin:2rem auto 1rem;max-width:440px;border-radius:4px}html body.simpay-payment-page .simpay-payment-page-powered-by{color:#fff;text-align:center;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;font-size:14px;text-decoration:none;margin-top:1rem;display:block;align-items:center;opacity:.65}html body.simpay-payment-page .simpay-payment-page-powered-by:hover{opacity:1}html body.simpay-payment-page .simpay-payment-page-powered-by img{vertical-align:middle;width:200px;margin-left:10px}html body.simpay-payment-page .simpay-payment-receipt-wrap{max-width:400px}html body.simpay-payment-page .simpay-payment-receipt-wrap p{color:#333;font-size:15px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;line-height:1.5}html body.simpay-payment-page .simpay-payment-receipt-wrap p:only-child{margin:0}html body.simpay-payment-page .simpay-payment-receipt-wrap p:first-of-type{margin-top:0}html body.simpay-payment-page .simpay-payment-receipt-wrap p:last-of-type{margin-bottom:0}@media(max-width: 500px){html body.simpay-payment-page{margin:20px}html body.simpay-payment-page .simpay-payment-page-wrap{min-width:0;width:90vw;padding:1.5rem;min-width:0}}"],"sourceRoot":""} \ No newline at end of file diff --git a/includes/core/assets/images/wp-simple-pay-icon.svg b/includes/core/assets/images/wp-simple-pay-icon.svg deleted file mode 100644 index c7e3c33a..00000000 --- a/includes/core/assets/images/wp-simple-pay-icon.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/includes/core/assets/images/wp-simple-pay-logo-white.svg b/includes/core/assets/images/wp-simple-pay-logo-white.svg new file mode 100644 index 00000000..9ab3036f --- /dev/null +++ b/includes/core/assets/images/wp-simple-pay-logo-white.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/includes/core/assets/js/admin/index.js b/includes/core/assets/js/admin/index.js index e3fccb3b..c061e628 100644 --- a/includes/core/assets/js/admin/index.js +++ b/includes/core/assets/js/admin/index.js @@ -56,6 +56,7 @@ let spAdmin = {}; '_subscription_type', '_subscription_custom_amount', '_form_type', + '_enable_payment_page', '.simpay-total-amount-label-recurring', '.simpay-total-amount-label-tax', '.simpay-shipping-address', @@ -188,34 +189,39 @@ let spAdmin = {}; handleRemoveImagePreviewClick( e ) { e.preventDefault(); - spFormSettings.find( '.simpay-image-preview-wrap' ).hide(); + $( e.target ) + .parents( 'td' ) + .find( '.simpay-image-preview-wrap' ) + .val( '' ) + .hide(); + + $( e.target ) + .parents( 'td' ) + .find( '.simpay-field-image-url' ) + .val( '' ); - spFormSettings.find( '#_image_url' ).val( '' ); + $( e.target ) + .parents( 'td' ) + .find( '.simpay-remove-image-preview' ) + .hide(); }, addMediaFields() { - let simpayMediaUploader; - $( '.simpay-media-uploader' ).on( 'click', function ( e ) { e.preventDefault(); - // This is our button - window.simpayMediaUploaderInputField = $( this ); - - // If the uploader object has already been created, reopen the dialog - if ( simpayMediaUploader ) { - simpayMediaUploader.open(); - return; - } - // Extend the wp.media object - simpayMediaUploader = wp.media.frames.file_frame = wp.media( { - title: spGeneral.i18n.mediaTitle, - button: { - text: spGeneral.i18n.mediaButtonText, - }, - multiple: false, - } ); + const simpayMediaUploader = ( wp.media.frames.file_frame = wp.media( + { + title: spGeneral.i18n.mediaTitle, + button: { + text: spGeneral.i18n.mediaButtonText, + }, + multiple: false, + } + ) ); + + const $that = $( this ); // When a file is selected, grab the URL and set it as the text field's value simpayMediaUploader.on( 'select', function () { @@ -224,15 +230,29 @@ let spAdmin = {}; .get( 'selection' ) .first() .toJSON(), - inputField = $( '#_image_url' ), // Get the field previous to our button, aka our input field. + inputField = $that + .parents( 'td' ) + .find( '.simpay-field-image-url' ), // Get the field previous to our button, aka our input field. image = 'id' === inputField.data( 'fvalue' ) ? attachment.id : attachment.url; // Update our image preview - $( '.simpay-image-preview-wrap' ).show(); - $( '.simpay-image-preview' ).prop( 'src', image ); + $that + .parents( 'td' ) + .find( '.simpay-image-preview-wrap' ) + .show(); + + $that + .parents( 'td' ) + .find( '.simpay-remove-image-preview' ) + .show(); + + $that + .parents( 'td' ) + .find( '.simpay-image-preview' ) + .prop( 'src', image ); inputField.val( image ); } ); diff --git a/includes/core/assets/js/admin/payment-form/index.js b/includes/core/assets/js/admin/payment-form/index.js index e50a59ab..5bdb38ac 100644 --- a/includes/core/assets/js/admin/payment-form/index.js +++ b/includes/core/assets/js/admin/payment-form/index.js @@ -3,3 +3,4 @@ import './prices.js'; import './payment-methods.js'; import './custom-fields.js'; import './stripe-checkout.js'; +import './payment-page.js'; diff --git a/includes/core/assets/js/admin/payment-form/payment-page.js b/includes/core/assets/js/admin/payment-form/payment-page.js new file mode 100644 index 00000000..ffa1d198 --- /dev/null +++ b/includes/core/assets/js/admin/payment-form/payment-page.js @@ -0,0 +1,109 @@ +/* global $ */ + +/** + * WordPress dependencies + */ +import domReady from '@wordpress/dom-ready'; +import { maybeBlockCheckboxWithUpgradeModal } from '@wpsimplepay/utils'; + +/** + * Promopts for upgrade if enabling Payment Pages with an incorrect license. + * + * @since 4.5.0 + */ +function bindEnable() { + const enableEl = document.querySelector( '[name="_enable_payment_page"]' ); + + if ( ! enableEl ) { + return; + } + + enableEl.addEventListener( 'change', maybeBlockCheckboxWithUpgradeModal ); +} + +/** + * Promopts for upgrade if disabling with an incorrect license. + * + * @since 4.5.0 + */ +function bindHideBranding() { + const hideEl = document.querySelector( + '[name="_payment_page_powered_by"]' + ); + + if ( ! hideEl ) { + return; + } + + hideEl.addEventListener( 'change', maybeBlockCheckboxWithUpgradeModal ); +} + +/** + * Bind color picker. + * + * @since 4.5.0 + */ +function bindColorPicker() { + const customColorEl = document.getElementById( + 'payment-page-background-color-custom' + ); + + if ( ! customColorEl ) { + return; + } + + $( '#payment-page-background-color-custom' ).wpColorPicker(); + + const customButtonEl = document.querySelector( + '.simpay-payment-page-background-color .wp-color-result' + ); + + const colorButtonEls = document.querySelectorAll( + '.simpay-payment-page-background-color' + ); + + customButtonEl.addEventListener( 'click', ( e ) => { + colorButtonEls.forEach( ( el ) => { + el.querySelector( 'input' ).checked = false; + } ); + + e.target.classList.add( 'is-selected' ); + $( e.target ).parent().find( 'input' ).prop( 'checked', true ); + } ); + + colorButtonEls.forEach( ( el ) => { + el.querySelector( 'input' ).addEventListener( 'change', () => { + customButtonEl.classList.remove( 'is-selected' ); + } ); + } ); +} + +/** + * Updates the .simpay-payment-page-url clipboard text with the new value of the slug. + * + * @since 4.5.0 + */ +function bindSlug() { + const slugEl = document.querySelector( '[name="_payment_page_slug"]' ); + + if ( ! slugEl ) { + return; + } + + slugEl.addEventListener( 'keyup', ( e ) => { + const urlEl = document.querySelector( '.simpay-payment-page-url' ); + + if ( ! urlEl ) { + return; + } + + urlEl.dataset.clipboardText = `${ window.location.origin }/${ e.target.value }`; + } ); +} + +domReady( () => { + bindEnable(); + bindHideBranding(); + bindColorPicker(); + bindSlug(); +} ); diff --git a/includes/core/assets/js/frontend/payment-forms/stripe-checkout/submit.js b/includes/core/assets/js/frontend/payment-forms/stripe-checkout/submit.js index e5781d69..d543a945 100644 --- a/includes/core/assets/js/frontend/payment-forms/stripe-checkout/submit.js +++ b/includes/core/assets/js/frontend/payment-forms/stripe-checkout/submit.js @@ -13,11 +13,18 @@ import { customers, sessions } from '@wpsimplepay/api'; * @param {PaymentForm} paymentForm */ async function submit( paymentForm ) { - const { error: onError, __unstableLegacyFormData } = paymentForm; + const { + error: onError, + disable: disableForm, + __unstableLegacyFormData, + } = paymentForm; let customerId = null; const { hasCustomerFields } = __unstableLegacyFormData; + onError( '' ); + disableForm(); + // Only generate a custom Customer if we need to map on-page form fields. if ( hasCustomerFields ) { const { @@ -28,7 +35,11 @@ async function submit( paymentForm ) { } // Generate a Checkout Session. - const { sessionId } = await sessions.create( + const { + sessionId, + session: { url }, + redirect_type: redirectType, + } = await sessions.create( { customer_id: customerId, }, @@ -36,17 +47,21 @@ async function submit( paymentForm ) { ); // Redirect to Stripe. - return paymentForm.stripeInstance - .redirectToCheckout( { - sessionId, - } ) - .then( ( result ) => { - if ( result.error ) { - onError( result.error ); - } - - return result; - } ); + if ( 'stripe' === redirectType ) { + return paymentForm.stripeInstance + .redirectToCheckout( { + sessionId, + } ) + .then( ( result ) => { + if ( result.error ) { + onError( result.error ); + } + + return result; + } ); + } + + window.location.href = url; } export default submit; diff --git a/includes/core/assets/js/simpay-admin-notices.min.js b/includes/core/assets/js/simpay-admin-notices.min.js index 8c09de8f..9012de5e 100644 --- a/includes/core/assets/js/simpay-admin-notices.min.js +++ b/includes/core/assets/js/simpay-admin-notices.min.js @@ -1 +1 @@ -!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=342)}({14:function(t,e){t.exports=jQuery},342:function(t,e,n){"use strict";n.r(e),function(t){var e=n(7);Object(e.a)((function(){var e;document.querySelectorAll(".simpay-admin-notice-five-star-rating").forEach((function(t){var e=t.querySelectorAll("[data-navigate]");e&&e.forEach((function(t){t.addEventListener("click",(function(t){var e=t.target.dataset.navigate,n=document.querySelector('.simpay-admin-notice-five-star-rating[data-step="'.concat(e,'"]')),o=document.querySelectorAll('.simpay-admin-notice-five-star-rating:not([data-step="'.concat(e,'"])'));n&&(n.style.display="block"),o.length>0&&o.forEach((function(t){t.style.display="none"}))}))}))})),(e=document.querySelector('#adminmenu a[href^="https://wpsimplepay.com/lite-vs-pro"]'))&&e.setAttribute("target","_blank"),t(".simpay-notice").each((function(){var e=t(this),n=e.data("id"),o=e.data("nonce"),i=e.data("lifespan");e.on("click",".notice-dismiss, .simpay-notice-dismiss",(function(){wp.ajax.send("simpay_dismiss_admin_notice",{data:{notice_id:n,nonce:o,lifespan:i},success:function(){e.slideUp("fast");var t=userSettings.uid,o=void 0===t?0:t,i="simpay-notice-".concat(n,"-seen-").concat(o);window.localStorage.removeItem(i)}})}))}));var n=t(".simpay-admin-notice-top-of-page");if(n.length>0){var o=n.detach();t("#wpbody-content").prepend(o);var i=userSettings.uid,a=void 0===i?0:i,r=o.data("id"),c="simpay-notice-".concat(r,"-seen-").concat(a);window.localStorage.getItem(c)?o.show():setTimeout((function(){window.localStorage.setItem(c,!0),n.slideDown()}),1500)}}))}.call(this,n(14))},7:function(t,e,n){"use strict";function o(t){"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",t):t()}n.d(e,"a",(function(){return o}))}}); \ No newline at end of file +!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=343)}({14:function(t,e){t.exports=jQuery},343:function(t,e,n){"use strict";n.r(e),function(t){var e=n(7);Object(e.a)((function(){var e;document.querySelectorAll(".simpay-admin-notice-five-star-rating").forEach((function(t){var e=t.querySelectorAll("[data-navigate]");e&&e.forEach((function(t){t.addEventListener("click",(function(t){var e=t.target.dataset.navigate,n=document.querySelector('.simpay-admin-notice-five-star-rating[data-step="'.concat(e,'"]')),o=document.querySelectorAll('.simpay-admin-notice-five-star-rating:not([data-step="'.concat(e,'"])'));n&&(n.style.display="block"),o.length>0&&o.forEach((function(t){t.style.display="none"}))}))}))})),(e=document.querySelector('#adminmenu a[href^="https://wpsimplepay.com/lite-vs-pro"]'))&&e.setAttribute("target","_blank"),t(".simpay-notice").each((function(){var e=t(this),n=e.data("id"),o=e.data("nonce"),i=e.data("lifespan");e.on("click",".notice-dismiss, .simpay-notice-dismiss",(function(){wp.ajax.send("simpay_dismiss_admin_notice",{data:{notice_id:n,nonce:o,lifespan:i},success:function(){e.slideUp("fast");var t=userSettings.uid,o=void 0===t?0:t,i="simpay-notice-".concat(n,"-seen-").concat(o);window.localStorage.removeItem(i)}})}))}));var n=t(".simpay-admin-notice-top-of-page");if(n.length>0){var o=n.detach();t("#wpbody-content").prepend(o);var i=userSettings.uid,a=void 0===i?0:i,r=o.data("id"),c="simpay-notice-".concat(r,"-seen-").concat(a);window.localStorage.getItem(c)?o.show():setTimeout((function(){window.localStorage.setItem(c,!0),n.slideDown()}),1500)}}))}.call(this,n(14))},7:function(t,e,n){"use strict";function o(t){"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",t):t()}n.d(e,"a",(function(){return o}))}}); \ No newline at end of file diff --git a/includes/core/assets/js/simpay-admin-page-smtp.min.js b/includes/core/assets/js/simpay-admin-page-smtp.min.js index 8254eda4..6834d873 100644 --- a/includes/core/assets/js/simpay-admin-page-smtp.min.js +++ b/includes/core/assets/js/simpay-admin-page-smtp.min.js @@ -1 +1 @@ -!function(t){var e={};function s(a){if(e[a])return e[a].exports;var n=e[a]={i:a,l:!1,exports:{}};return t[a].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.m=t,s.c=e,s.d=function(t,e,a){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(s.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)s.d(a,n,function(e){return t[e]}.bind(null,n));return a},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="",s(s.s=343)}({14:function(t,e){t.exports=jQuery},343:function(t,e,s){"use strict";(function(t){(window.SimPaySMTP||function(t,e,s){var a={},n={init:function(){s(n.ready)},ready:function(){n.initVars(),n.events()},initVars:function(){a={$stepInstall:s("section.step-install"),$stepInstallNum:s("section.step-install .num img"),$stepSetup:s("section.step-setup"),$stepSetupNum:s("section.step-setup .num img")}},events:function(){a.$stepInstall.on("click","button",n.stepInstallClick),a.$stepSetup.on("click","button",n.gotoURL)},stepInstallClick:function(t){t.preventDefault();var i=s(this),r=i.attr("data-action"),l=i.attr("data-plugin"),p=i.text(),u="";if(!i.hasClass("disabled")){switch(r){case"activate":u="simpay_activate_plugin",i.text(simpay_smtp.activating);break;case"install":u="simpay_install_plugin",i.text(simpay_smtp.installing);break;case"goto-url":return void(e.location.href=i.attr("data-url"));default:return}i.addClass("disabled"),n.showSpinner(a.$stepInstallNum);var o={action:u,nonce:simpay_smtp.nonce,plugin:l};s.post(simpay_smtp.ajax_url,o).done((function(t){n.stepInstallDone(t,i,r)})).fail((function(){i.removeClass("disabled"),i.text(p)})).always((function(){n.hideSpinner(a.$stepInstallNum)}))}},stepInstallDone:function(t,e,s){if("install"===s?t.success&&t.data.is_activated:t.success)return a.$stepInstallNum.attr("src",a.$stepInstallNum.attr("src").replace("step-1.","step-complete.")),e.addClass("grey").removeClass("button-primary").text(simpay_smtp.activated),void n.stepInstallPluginStatus();var i="install"===s&&t.success&&!t.data.is_activated||"activate"===s,r=i?simpay_smtp.manual_activate_url:simpay_smtp.manual_install_url,l=i?simpay_smtp.error_could_not_activate:simpay_smtp.error_could_not_install,p=i?simpay_smtp.plugins_page:simpay_smtp.download_now;e.removeClass("grey disabled").text(p).attr("data-action","goto-url").attr("data-url",r),e.after('

'+l+"

")},stepInstallPluginStatus:function(){var t={action:"simpay_smtp_page_check_plugin_status",nonce:simpay_smtp.nonce};s.post(simpay_smtp.ajax_url,t).done(n.stepInstallPluginStatusDone)},stepInstallPluginStatusDone:function(t){if(t.success){if(a.$stepSetup.removeClass("grey"),a.$stepSetupBtn=a.$stepSetup.find("button"),a.$stepSetupBtn.removeClass("grey disabled").addClass("button-primary"),t.data.setup_status>0)return a.$stepSetupNum.attr("src",a.$stepSetupNum.attr("src").replace("step-2.svg","step-complete.svg")),void a.$stepSetupBtn.attr("data-url",simpay_smtp.smtp_settings_url).text(simpay_smtp.smtp_settings);a.$stepSetupBtn.attr("data-url",simpay_smtp.smtp_wizard_url).text(simpay_smtp.smtp_wizard)}},gotoURL:function(){var t=s(this);t.hasClass("disabled")||(e.location.href=t.attr("data-url"))},showSpinner:function(t){t.siblings(".loader").removeClass("hidden")},hideSpinner:function(t){t.siblings(".loader").addClass("hidden")}};return n}(document,window,t)).init()}).call(this,s(14))}}); \ No newline at end of file +!function(t){var e={};function s(a){if(e[a])return e[a].exports;var n=e[a]={i:a,l:!1,exports:{}};return t[a].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.m=t,s.c=e,s.d=function(t,e,a){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(s.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)s.d(a,n,function(e){return t[e]}.bind(null,n));return a},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="",s(s.s=344)}({14:function(t,e){t.exports=jQuery},344:function(t,e,s){"use strict";(function(t){(window.SimPaySMTP||function(t,e,s){var a={},n={init:function(){s(n.ready)},ready:function(){n.initVars(),n.events()},initVars:function(){a={$stepInstall:s("section.step-install"),$stepInstallNum:s("section.step-install .num img"),$stepSetup:s("section.step-setup"),$stepSetupNum:s("section.step-setup .num img")}},events:function(){a.$stepInstall.on("click","button",n.stepInstallClick),a.$stepSetup.on("click","button",n.gotoURL)},stepInstallClick:function(t){t.preventDefault();var i=s(this),r=i.attr("data-action"),l=i.attr("data-plugin"),p=i.text(),u="";if(!i.hasClass("disabled")){switch(r){case"activate":u="simpay_activate_plugin",i.text(simpay_smtp.activating);break;case"install":u="simpay_install_plugin",i.text(simpay_smtp.installing);break;case"goto-url":return void(e.location.href=i.attr("data-url"));default:return}i.addClass("disabled"),n.showSpinner(a.$stepInstallNum);var o={action:u,nonce:simpay_smtp.nonce,plugin:l};s.post(simpay_smtp.ajax_url,o).done((function(t){n.stepInstallDone(t,i,r)})).fail((function(){i.removeClass("disabled"),i.text(p)})).always((function(){n.hideSpinner(a.$stepInstallNum)}))}},stepInstallDone:function(t,e,s){if("install"===s?t.success&&t.data.is_activated:t.success)return a.$stepInstallNum.attr("src",a.$stepInstallNum.attr("src").replace("step-1.","step-complete.")),e.addClass("grey").removeClass("button-primary").text(simpay_smtp.activated),void n.stepInstallPluginStatus();var i="install"===s&&t.success&&!t.data.is_activated||"activate"===s,r=i?simpay_smtp.manual_activate_url:simpay_smtp.manual_install_url,l=i?simpay_smtp.error_could_not_activate:simpay_smtp.error_could_not_install,p=i?simpay_smtp.plugins_page:simpay_smtp.download_now;e.removeClass("grey disabled").text(p).attr("data-action","goto-url").attr("data-url",r),e.after('

'+l+"

")},stepInstallPluginStatus:function(){var t={action:"simpay_smtp_page_check_plugin_status",nonce:simpay_smtp.nonce};s.post(simpay_smtp.ajax_url,t).done(n.stepInstallPluginStatusDone)},stepInstallPluginStatusDone:function(t){if(t.success){if(a.$stepSetup.removeClass("grey"),a.$stepSetupBtn=a.$stepSetup.find("button"),a.$stepSetupBtn.removeClass("grey disabled").addClass("button-primary"),t.data.setup_status>0)return a.$stepSetupNum.attr("src",a.$stepSetupNum.attr("src").replace("step-2.svg","step-complete.svg")),void a.$stepSetupBtn.attr("data-url",simpay_smtp.smtp_settings_url).text(simpay_smtp.smtp_settings);a.$stepSetupBtn.attr("data-url",simpay_smtp.smtp_wizard_url).text(simpay_smtp.smtp_wizard)}},gotoURL:function(){var t=s(this);t.hasClass("disabled")||(e.location.href=t.attr("data-url"))},showSpinner:function(t){t.siblings(".loader").removeClass("hidden")},hideSpinner:function(t){t.siblings(".loader").addClass("hidden")}};return n}(document,window,t)).init()}).call(this,s(14))}}); \ No newline at end of file diff --git a/includes/core/assets/js/simpay-admin.min.js b/includes/core/assets/js/simpay-admin.min.js index 5fed70af..df320192 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=334)}({108:function(e,t,n){var r=n(65);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},109:function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},110:function(e,t,n){var r=n(65);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},111:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},14:function(e,t){e.exports=jQuery},145: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)},146: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(5),a=n.n(r);function o(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 i(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};e(".simpay-upgrade-modal").dialog(i({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",o)}},c))}}).call(this,n(14))},147:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(7);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 o(){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"),o()},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",o())}})}))}).call(this,n(14))},15:function(e,t,n){"use strict";var r=n(145);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(25);var a=n(146);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}))},17:function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},20:function(e,t,n){e.exports=n(64)},24:function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return v}));var r=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)},a=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)},o=function(e){return function(t,n,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;if(a(t)&&r(n))if("function"==typeof o)if("number"==typeof i){var c={callback:o,priority:i,namespace:n};if(e[t]){var s,l=e[t].handlers;for(s=l.length;s>0&&!(i>=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&&y("hookAdded",t,n,o,i)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}},i=function(e,t){return function(n,o){if(a(n)&&(t||r(o))){if(!e[n])return 0;var i=0;if(t)i=e[n].handlers.length,e[n]={runs:e[n].runs,handlers:[]};else for(var c=e[n].handlers,s=function(t){c[t].namespace===o&&(c.splice(t,1),i++,(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&&y("hookRemoved",n,o),i}}},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,o=new Array(a>1?a-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.id,r=t.state,a=t.__unstableLegacyFormData;return Object(s.a)("v2/customer",y({form_values:p()(t[0],{hash:!0}),form_data:JSON.stringify(y(y({},a),r)),form_id:n},e))}function h(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 v(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.id,r=t.state,a=t.__unstableLegacyFormData;return Object(s.a)("v2/paymentintent/create",v({form_values:p()(t[0],{hash:!0}),form_data:JSON.stringify(v(v({},a),r)),form_id:n},e))}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.id,r=t.state,a=t.__unstableLegacyFormData;return Object(s.a)("v2/checkout-session",_({form_values:p()(t[0],{hash:!0}),form_data:JSON.stringify(_(_({},a),r)),form_id:n},e))}function k(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;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.id,r=t.state;return Object(s.a)("v2/setupintent/create",O({form_values:p()(t[0],{hash:!0}),form_data:JSON.stringify(r),form_id:n},e))}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.id,r=t.state,a=t.__unstableLegacyFormData;return Object(s.a)("v2/subscription",E({form_values:p()(t[0],{hash:!0}),form_data:JSON.stringify(E(E({},a),r)),form_id:n},e))}function L(e,t,n,r,a){return Object(s.a)("v2/subscription/payment_method/".concat(n,"/").concat(e),{customer_nonce:t,form_values:a,form_id:r})}},334:function(e,t,n){"use strict";n.r(t),function(e){var t=n(24),r=(n(335),n(336),n(147));n(337),n(354),n(340),n(341),window.wpsp=window.wpsp||{hooks:t.b};var a,o,i,c={};c={init:function(){o=a(document.body),i=o.find("#simpay-form-settings"),this.handleMetaboxTabClick(),window.postboxes&&window.postboxes.handle_click&&i.on("click",".postbox .simpay-hndle, .postbox .simpay-handlediv",window.postboxes.handle_click),["_amount_type","_success_redirect_type","_subscription_type","_subscription_custom_amount","_form_type",".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"].forEach((function(e){var t=a(e),n=!1;"."!==e.substring(0,1)?t='[name="'.concat(e,'"]'):(t=e,n=!0),a("#simpay-form-settings").on("change",t,(function(){var t=a("#simpay-form-settings");!0===n&&(t=a(this).closest(".simpay-field-data"));var r=a(this).val();a(this).is(":checkbox")&&(r=a(this).is(":checked")?"yes":"no"),t.find(a('.simpay-show-if[data-if="'.concat(e,'"]'))).each((function(){var e=a(this),t=e.data("is");e.hide(),t.includes(r)&&e.show().css("display","block")}))})),a(t).filter(":checked").trigger("change"),a(t).is("select")&&a(t).trigger("change")})),t.b.addAction("settings.toggleTestMode","wpsp/settings/stripe-connect",r.a),i.on("click.simpayTabLink",".simpay-tab-link",(function(e){e.preventDefault(),c.handleInternalLinkToTabClicks(a(this))})),i.on("click.simpayImagePreview",".simpay-remove-image-preview",(function(e){c.handleRemoveImagePreviewClick(e)})),this.setupChosen(),this.addMediaFields(),this.stripeConnect();var e=a(".simpay-payment-modes");e.length&&e.find("input").each((function(){var t=a(this);e.hasClass("simpay-payment-mode--"+t.val())||t.attr("disabled",!0)})),o.trigger("simpayAdminInit")},handleRemoveImagePreviewClick:function(e){e.preventDefault(),i.find(".simpay-image-preview-wrap").hide(),i.find("#_image_url").val("")},addMediaFields:function(){var e;a(".simpay-media-uploader").on("click",(function(t){t.preventDefault(),window.simpayMediaUploaderInputField=a(this),e||(e=wp.media.frames.file_frame=wp.media({title:spGeneral.i18n.mediaTitle,button:{text:spGeneral.i18n.mediaButtonText},multiple:!1})).on("select",(function(){var t=e.state().get("selection").first().toJSON(),n=a("#_image_url"),r="id"===n.data("fvalue")?t.id:t.url;a(".simpay-image-preview-wrap").show(),a(".simpay-image-preview").prop("src",r),n.val(r)})),e.open()}))},setupChosen:function(){var e=a(".simpay-chosen-select, .simpay-chosen-search");e.chosen({disable_search_threshold:20}),e.chosen()},handleMetaboxTabClick:function(){var e=a("ul.simpay-tabs a"),t=a("div.simpay-panel"),n=e.parents("li");e.on("click",(function(e){e.preventDefault();var r=a(this).parent(),o=a(a(this).attr("href")),i=a(this).attr("href");history.pushState(null,null,i),setTimeout((function(){window.scrollTo(0,0)}),1),a('[name="simpay_form_settings_tab"]').val(i),a(".simpay-panels > .spinner").hide(),n.removeClass("active"),r.addClass("active"),t.addClass("simpay-panel-hidden"),o.removeClass("simpay-panel-hidden")}));var r="#form-display-options-settings-panel";location.hash.length&&(r=location.hash);var o=a('ul.simpay-tabs a[href="'+r+'"]');a('[name="simpay_form_settings_tab"]').val(r),o.length&&o.click()},stripeConnect:function(){var e="tr:nth-child(2), tr:nth-child(3), tr:nth-child(4), tr:nth-child(5)";a(".simpay-settings.stripe-account .form-table").find(e).hide(),a("#wpsp-api-keys-row-reveal button").on("click",(function(t){t.preventDefault(),a(".simpay-settings.stripe-account .form-table").find(e).show(),a("#wpsp-api-keys-row-hide").show(),a(this).parent().hide(),a(".wpsp-manual-key-warning").show()})),a("#wpsp-api-keys-row-hide button").on("click",(function(t){t.preventDefault(),a(".simpay-settings.stripe-account .form-table").find(e).hide(),a("#wpsp-api-keys-row-reveal").show(),a(this).parent().hide(),a(".wpsp-manual-key-warning").hide()}))},handleInternalLinkToTabClicks:function(e){var t=e.data("show-tab");o.find("."+t+"-tab a").click()}},(a=e)(document).ready((function(e){c.init()}))}.call(this,n(14))},335:function(e,t,n){"use strict";var r=n(7),a=simpayAdminSettingToggles||[];function o(e){var t=e.id,n=(e.value,e.toggles,document.querySelector(".simpay-settings-".concat(t)));if(!n)return{};var r=n.querySelector("input");r||(r=n.querySelector("select"));var a=r.value;return"checkbox"===r.type&&(a=!0===r.checked?"yes":"no"),{setting:r,currentValue:a}}function i(e){var t=e.id,n=e.value,r=e.toggles,c=o(e),s=(c.setting,c.currentValue);"none"!==document.querySelector(".simpay-settings-".concat(t)).style.display&&(r.map((function(e){return document.querySelector(".simpay-settings-".concat(e))})).forEach((function(e){e&&(e.style.display=s===n?"table-row":"none")})),r.forEach((function(e){var t=_.find(a,{id:e});t&&i(t)})))}Object(r.a)((function(){a.forEach((function(e){i(e),o(e).setting.addEventListener("change",(function(){return i(e)}))}))}))},336:function(e,t,n){"use strict";var r=n(7);Object(r.a)((function(){var e=window.wpsp.hooks,t=document.querySelectorAll('[name="simpay_settings[test_mode]"]');if(0!==t.length){var n="enabled"===document.querySelector('[name="simpay_settings[test_mode]"]:checked').value?"test":"live";e.doAction("settings.toggleTestMode",n,n),_.each(t,(function(t){return t.addEventListener("change",(function(t){var r="enabled"===t.target.value?"test":"live";e.doAction("settings.toggleTestMode",r,n)}))}))}}))},337:function(e,t,n){"use strict";var r=n(7);Object(r.a)((function(){var e=document.querySelector(".simpay-recaptcha-feedback");if(e){var t=simpayGoogleRecaptcha,n=t.siteKey,r=t.i18n;""!==n&&grecaptcha.ready((function(){var e=document.querySelector(".grecaptcha-badge");e&&(e.style.display="none");try{grecaptcha.execute(n,{action:"simple_pay_admin_test"}).then((function(e){wp.ajax.send("simpay_validate_recaptcha_source",{data:{token:e,recaptcha_action:"simple_pay_admin_test"},error:a})})).catch(a)}catch(e){a()}}))}function a(){e.style.display="block",e.classList.add("notice-error"),e.querySelector("p").innerText=r.invalid}}))},338:function(e,t,n){"use strict";(function(e){var t=n(9),r=n.n(t),a=n(7),o=n(15);Object(a.a)((function(){var t,n,a,i=document.querySelector(".post-type-simple-pay #post");if(i){var c=r()(i,{hash:!0});delete c.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(c)),n=document.getElementById("form-type-select"),a=document.getElementById("is-overlay"),n.addEventListener("change",(function(e){var t=e.target,n=t.options[t.selectedIndex],r=n.value;"on-site"===r&&Object(o.maybeBlockSelectWithUpgradeModal)(e),"off-site"===r&&(a.querySelector("input").checked=!1),a.style.display="yes"===n.dataset.available&&"on-site"===r?"block":"none"})),function(){var e=document.querySelector(".simpay-recaptcha-payment-form-feedback");if(e){var t=document.querySelector(".simpay-recaptcha-payment-form-description"),n=simpayGoogleRecaptcha,r=n.siteKey,a=n.i18n;if(t.style.display="none",""===r)return o();grecaptcha.ready((function(){var e=document.querySelector(".grecaptcha-badge");e&&(e.style.display="none");try{grecaptcha.execute(r,{action:"simple_pay_admin_test"}).then((function(e){wp.ajax.send("simpay_validate_recaptcha_source",{data:{token:e,recaptcha_action:"simple_pay_admin_test"},success:i,error:o})})).catch(o)}catch(e){o()}}))}function o(){e.style.color="#b32d2e",e.style.display="inline",e.innerHTML=a.disabled,t.style.display="inline-block"}function i(){e.style.color="green",e.style.display="inline",e.innerHTML=a.enabled,t.style.display="inline-block"}}(),(t=document.querySelector("#_company_name"))&&(t.addEventListener("blur",(function(){0===t.value.length?(t.nextElementSibling.classList.remove("hidden"),t.value=simpayAdmin.siteTitle):t.nextElementSibling.classList.add("hidden")})),t.addEventListener("focus",(function(){0!==t.value.length&&t.nextElementSibling.classList.add("hidden")})))}}))}).call(this,n(14))},339:function(e,t,n){"use strict";(function(e,t){var r=n(37),a=n.n(r),o=n(7),i=n(15);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.querySelectorAll(".simpay-panel-field-price-select");if(n.length>0){n.forEach((function(e){return e.style.display=t>1?"table-row":"none"}));var r=document.querySelector(".simpay-panel-field-price-select-notice");r&&(r.style.display=1===t?"table-row":"none")}}}function s(e){var t=e.querySelector(".simpay-price-label-display"),n=e.querySelector(".simpay-price-label"),r=spGeneral.strings,a=r.recurringIntervalDisplay,o=r.customAmountLabel;if(""!==n.value)t.innerHTML=n.value;else{var i,c=e.querySelector(".simpay-price-currency"),s=e.querySelector(".simpay-price-amount"),l=e.querySelector(".simpay-price-amount-type"),u=e.querySelector(".simpay-price-custom-amount input"),d=e.querySelector(".simpay-price-enable-custom-amount"),p=spGeneral.strings,f=p.currencyPosition,y=p.recurringIntervals,m=c.options[c.selectedIndex].dataset.symbol;switch(i=!0===d.checked?u.value:s.value,f){case"left":i="".concat(m).concat(i);break;case"left_space":i="".concat(m," ").concat(i);break;case"right":i="".concat(i).concat(m);break;case"right_space":i="".concat(i," ").concat(m)}if(!0===d.checked&&(i=o.replace("%s",i)),"recurring"===l.value){var h=e.querySelector(".simpay-price-recurring-interval"),v=e.querySelector(".simpay-price-recurring-interval-count"),g=y[h.options[h.selectedIndex].value];i=a.replace("%1$s",i).replace("%2$s",v.value).replace("%3$s","1"===v.value?g[0]:g[1])}t.innerHTML=i}}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"),r=parseInt(n.value);switch(t.options[t.selectedIndex].value){case"day":r>365&&(n.value=365);break;case"week":r>52&&(n.value=52);break;case"month":r>12&&(n.value=12);break;case"year":r>1&&(n.value=1)}var o=JSON.parse(t.dataset.intervals);a()(t.options).forEach((function(e,r){var a=e.value;t.options[r].text=1===parseInt(n.value)?o[a][0]:o[a][1]}))}function d(){var e=document.querySelectorAll(".simpay-price");_.each(e,(function(e){var t=e.querySelector(".simpay-price-amount-type").value;e.querySelector(".simpay-price-label").addEventListener("keyup",(function(){return 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,r=e.querySelectorAll(".simpay-price-currency-symbol");_.each(r,(function(e){return e.innerText=n}))}(e),s(e)}));var n=e.querySelectorAll(".simpay-price-amount-type .button");n.length>0&&_.each(n,(function(t){return t.addEventListener("click",(function(t){t.preventDefault();var n=t.target.dataset,r=n.available,a=n.upgradeTitle,o=n.upgradeDescription,c=n.upgradeUrl,l=n.upgradePurchasedUrl;"no"===r?Object(i.upgradeModal)({title:a,description:o,url:c,purchasedUrl:l}):(function(e,t){var n=e.querySelectorAll(".simpay-price-amount-type .button");_.each(n,(function(e){return e.classList.remove("button-primary")}));var r=t.dataset.amountType,a=e.querySelector(".simpay-price-recurring-settings");t.classList.add("button-primary"),a.style.display="recurring"===r?"table":"none";var o=e.querySelector(".simpay-price-recurring-amount-toggle"),i=e.querySelector(".simpay-price-enable-optional-subscription");o.style.display="recurring"===r?"none":"block",i.checked=!1,e.querySelector(".simpay-price-amount-type").value=r}(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,o=r.upgradeTitle,c=r.upgradeDescription,u=r.upgradeUrl,d=r.upgradePurchasedUrl;"no"===a?(n.checked=!1,t.preventDefault(),Object(i.upgradeModal)({title:o,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 o=e.querySelector(".simpay-price-legacy-setting-toggle");o&&o.addEventListener("click",(function(t){t.preventDefault(),function(e){var t=e.querySelectorAll(".simpay-price-legacy-setting");_.each(t,(function(e){return e.style.display="block"===e.style.display?"none":"block"}))}(e)})),e.querySelector(".simpay-price-default").addEventListener("change",(function(){return function(e){var t=document.querySelectorAll(".simpay-price-default");_.each(t,(function(e){return e.checked=!1})),e.querySelector(".simpay-price-default").checked=!0}(e)})),e.querySelector(".simpay-price-remove").addEventListener("click",(function(t){t.preventDefault(),function(e){e.remove(),p(),c()}(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(o.a)((function(){var n,r,a,o,s,l,u;t(".simpay-prices").sortable({items:".simpay-field-metabox",containment:"#simpay-prices",handle:".simpay-hndle",placeholder:"sortable-placeholder",cursor:"move",delay:t(document.body).hasClass("mobile")?200:0,distance:2,tolerance:"pointer",forcePlaceholderSize:!0,opacity:.65,helper:function(e,t){return t.clone().find(":input").attr("name",(function(e,t){return"sort_"+parseInt(1e5*Math.random(),10).toString()+"_"+t})).end()}}),d(),n=document.getElementById("simpay-prices-advanced-toggle"),r=document.getElementById("simpay-prices-advanced"),n&&r&&n.addEventListener("click",(function(e){e.preventDefault(),r.style.display="block"==r.style.display?"none":"block"})),(u=document.getElementById("simpay-prices-advanced-add"))&&u.addEventListener("click",(function(t){var n,r,a,o,i,s;t.preventDefault(),a=(r=(n=u).dataset).nonce,o=r.formId,i=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:o,plan_id:s.value},success:function(t){e(i).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;alert(t),n.classList.remove("disabled")}})})),function(){var t=document.getElementById("simpay-add-price");t&&t.addEventListener("click",(function(n){var r,a,o,i,s;n.preventDefault(),o=(a=(r=t).dataset).nonce,i=a.formId,s=document.getElementById("simpay-prices"),r.classList.add("disabled"),wp.ajax.send("simpay_add_price",{data:{_wpnonce:o,form_id:i},success:function(t){e(s).append(t),d(),p(),r.classList.remove("disabled"),c()},error:function(e){var t=e.message;alert(t),r.classList.remove("disabled")}})}))}(),(a=document.getElementById("simpay-add-price-lite"))&&a.addEventListener("click",i.maybeBlockButtonWithUpgradeModal),(o=document.getElementById("simpay-amount-type-lite"))&&o.addEventListener("click",i.maybeBlockButtonWithUpgradeModal),(s=document.getElementById("simpay-can-recur-lite"))&&s.addEventListener("click",i.maybeBlockButtonWithUpgradeModal),(l=document.getElementById("simpay-custom-lite"))&&l.addEventListener("click",i.maybeBlockButtonWithUpgradeModal)}))}).call(this,n(14),n(14))},340:function(e,t,n){"use strict";(function(e){var t=n(17),r=n.n(t),a=n(7),o='',i='',c=simpayAdmin,s=c.nonce,l=c.ajaxUrl,u=c.i18n,d=u.addonActivated,p=u.addonActivate,f=u.addonActive,y=u.addonDeactivate,m=u.addonInactive,h=u.addonInstall,v=u.addonError,g=u.pluginError;function b(t){t.preventDefault();var n,a,c,u,b,_,w=e(t.target);if(w.hasClass("status-go-to-url"))window.open(w.attr("data-plugin"),"_blank");else{var k=w.attr("data-type");if(w.prop("disabled",!0).addClass("loading"),w.html(''),w.hasClass("status-active"))n="deactivate",a="status-installed","plugin"===k&&(a+=" button button-secondary"),c=m,u=p,b=y,"addon"===k&&(u=o+u,b=i+b);else if(w.hasClass("status-installed"))n="activate",a="status-active","plugin"===k&&(a+=" button button-secondary disabled"),c=f,u=y,"addon"===k?(u=i+u,b=o+p):"plugin"===k&&(u=d,b=p);else{if(!w.hasClass("status-missing"))return;n="install",a="status-active","plugin"===k&&(a+=" button disabled"),c=f,u=d,b='',"addon"===k&&(u=o+y,b+=h)}var O=w.closest(".simpay-addon");!function(t,n,r,a){var o={activate:"simpay_activate_addon",install:"simpay_install_addon",deactivate:"simpay_deactivate_addon"}[n];if(o){var i={action:o,nonce:s,plugin:t,type:r};e.post(l,i,a).fail((function(e){console.log(e.responseText)}))}}(w.attr("data-plugin"),n,k,(function(e){e.success?("install"===n?(w.attr("data-plugin",e.data.basename),_=e.data.msg,e.data.is_activated||(c=m,u="plugin"===k?p:o+p,a="plugin"===k?"status-installed button button-secondary":"status-installed")):_=e.data,O.find(".simpay-addon__actions").append('
'+_+"
"),O.find("span.status-label").removeClass("status-active status-installed status-missing").addClass(a).removeClass("button button-primary button-secondary disabled").text(c),w.removeClass("status-active status-installed status-missing").removeClass("button button-primary button-secondary disabled").addClass(a).html(u)):("object"===r()(e.data)?"addon"===k?O.find(".simpay-addon__actions").append('
'+v+"
"):O.find(".simpay-addon__actions").append('
'+g+"
"):O.find(".simpay-addon__actions").append('
'+e.data+"
"),"install"===n&&"plugin"===k&&w.addClass("status-go-to-url").removeClass("status-missing"),w.html(b)),w.prop("disabled",!1).removeClass("loading"),setTimeout((function(){O.find(".msg").remove()}),3e3)}))}}Object(a.a)((function(){document.querySelector(".simpay-addons")&&document.querySelectorAll(".simpay-addon").forEach((function(e){e.querySelector("button").addEventListener("click",b)}))}))}).call(this,n(14))},341:function(e,t,n){"use strict";var r=n(7);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(o),n.innerHTML=r,n.classList.contains("button-secondary")&&(n.style.color="green",n.style.borderColor="green"),t.clearSelection();var o=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)}))}))},354:function(e,t,n){"use strict";n(338),n(339);var r=n(37),a=n.n(r),o=n(7),i=n(15);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(o.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",i.maybeBlockCheckboxWithUpgradeModal)}))})),Object(o.a)((function(){var e;document.querySelector(".post-type-simple-pay #post")&&(e=document.getElementById("simpay-add-field-lite"))&&e.addEventListener("click",i.maybeBlockButtonWithUpgradeModal)})),Object(o.a)((function(){var e,t;(e=document.getElementById("_enable_tax_id"))&&e.addEventListener("change",i.maybeBlockCheckboxWithUpgradeModal),(t=document.getElementById("_enable_promotion_codes"))&&t.addEventListener("change",i.maybeBlockCheckboxWithUpgradeModal)}))},36:function(e,t){function n(e,t,n,r,a,o,i){try{var c=e[o](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,a)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(a,o){var i=e.apply(t,r);function c(e){n(i,a,o,c,s,"next",e)}function s(e){n(i,a,o,c,s,"throw",e)}c(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},37:function(e,t,n){var r=n(108),a=n(109),o=n(110),i=n(111);e.exports=function(e){return r(e)||a(e)||o(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},5:function(e,t){e.exports=function(e,t,n){return 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},6:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var r=n(36),a=n.n(r),o=n(20),i=n.n(o);function c(_x,e){return s.apply(this,arguments)}function s(){return(s=a()(i.a.mark((function t(n,r){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.ajax({data:r,method:"POST",url:"".concat(wpApiSettings.root,"wpsp/").concat(n),beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",wpApiSettings.nonce)}});case 3:return t.abrupt("return",t.sent);case 6:throw t.prev=6,t.t0=t.catch(0),t.t0.responseJSON;case 10:case"end":return t.stop()}}),t,null,[[0,6]])})))).apply(this,arguments)}}).call(this,n(14))},64:function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var a=t&&t.prototype instanceof d?t:d,o=Object.create(a.prototype),i=new O(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return{value:void 0,done:!0}}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=_(i,n);if(c){if(c===u)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=l(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===u)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}(e,n,i),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var u={};function d(){}function p(){}function f(){}var y={};c(y,a,(function(){return this}));var m=Object.getPrototypeOf,h=m&&m(m(S([])));h&&h!==t&&n.call(h,a)&&(y=h);var v=f.prototype=d.prototype=Object.create(y);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(a,o){function i(){return new t((function(r,i){!function r(a,o,i,c){var s=l(e[a],e,o);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,i,c)}),(function(e){r("throw",e,i,c)})):t.resolve(d).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,c)}))}c(s.arg)}(a,o,r,i)}))}return r=r?r.then(i,i):i()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(c&&s){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),u}},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;k(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},65:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};e(".simpay-upgrade-modal").dialog(i({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",o)}},c))}}).call(this,n(14))},147:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(7);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 o(){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"),o()},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",o())}})}))}).call(this,n(14))},15:function(e,t,n){"use strict";var r=n(145);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(25);var a=n(146);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}))},17:function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},20:function(e,t,n){e.exports=n(64)},24:function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return v}));var r=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)},a=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)},o=function(e){return function(t,n,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;if(a(t)&&r(n))if("function"==typeof o)if("number"==typeof i){var c={callback:o,priority:i,namespace:n};if(e[t]){var s,l=e[t].handlers;for(s=l.length;s>0&&!(i>=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&&y("hookAdded",t,n,o,i)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}},i=function(e,t){return function(n,o){if(a(n)&&(t||r(o))){if(!e[n])return 0;var i=0;if(t)i=e[n].handlers.length,e[n]={runs:e[n].runs,handlers:[]};else for(var c=e[n].handlers,s=function(t){c[t].namespace===o&&(c.splice(t,1),i++,(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&&y("hookRemoved",n,o),i}}},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,o=new Array(a>1?a-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.id,r=t.state,a=t.__unstableLegacyFormData;return Object(s.a)("v2/customer",y({form_values:p()(t[0],{hash:!0}),form_data:JSON.stringify(y(y({},a),r)),form_id:n},e))}function h(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 v(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.id,r=t.state,a=t.__unstableLegacyFormData;return Object(s.a)("v2/paymentintent/create",v({form_values:p()(t[0],{hash:!0}),form_data:JSON.stringify(v(v({},a),r)),form_id:n},e))}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.id,r=t.state,a=t.__unstableLegacyFormData;return Object(s.a)("v2/checkout-session",_({form_values:p()(t[0],{hash:!0}),form_data:JSON.stringify(_(_({},a),r)),form_id:n},e))}function k(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;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.id,r=t.state;return Object(s.a)("v2/setupintent/create",O({form_values:p()(t[0],{hash:!0}),form_data:JSON.stringify(r),form_id:n},e))}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.id,r=t.state,a=t.__unstableLegacyFormData;return Object(s.a)("v2/subscription",E({form_values:p()(t[0],{hash:!0}),form_data:JSON.stringify(E(E({},a),r)),form_id:n},e))}function L(e,t,n,r,a){return Object(s.a)("v2/subscription/payment_method/".concat(n,"/").concat(e),{customer_nonce:t,form_values:a,form_id:r})}},334:function(e,t,n){"use strict";n.r(t),function(e){var t=n(24),r=(n(335),n(336),n(147));n(337),n(355),n(341),n(342),window.wpsp=window.wpsp||{hooks:t.b};var a,o,i,c={};c={init:function(){o=a(document.body),i=o.find("#simpay-form-settings"),this.handleMetaboxTabClick(),window.postboxes&&window.postboxes.handle_click&&i.on("click",".postbox .simpay-hndle, .postbox .simpay-handlediv",window.postboxes.handle_click),["_amount_type","_success_redirect_type","_subscription_type","_subscription_custom_amount","_form_type","_enable_payment_page",".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"].forEach((function(e){var t=a(e),n=!1;"."!==e.substring(0,1)?t='[name="'.concat(e,'"]'):(t=e,n=!0),a("#simpay-form-settings").on("change",t,(function(){var t=a("#simpay-form-settings");!0===n&&(t=a(this).closest(".simpay-field-data"));var r=a(this).val();a(this).is(":checkbox")&&(r=a(this).is(":checked")?"yes":"no"),t.find(a('.simpay-show-if[data-if="'.concat(e,'"]'))).each((function(){var e=a(this),t=e.data("is");e.hide(),t.includes(r)&&e.show().css("display","block")}))})),a(t).filter(":checked").trigger("change"),a(t).is("select")&&a(t).trigger("change")})),t.b.addAction("settings.toggleTestMode","wpsp/settings/stripe-connect",r.a),i.on("click.simpayTabLink",".simpay-tab-link",(function(e){e.preventDefault(),c.handleInternalLinkToTabClicks(a(this))})),i.on("click.simpayImagePreview",".simpay-remove-image-preview",(function(e){c.handleRemoveImagePreviewClick(e)})),this.setupChosen(),this.addMediaFields(),this.stripeConnect();var e=a(".simpay-payment-modes");e.length&&e.find("input").each((function(){var t=a(this);e.hasClass("simpay-payment-mode--"+t.val())||t.attr("disabled",!0)})),o.trigger("simpayAdminInit")},handleRemoveImagePreviewClick:function(e){e.preventDefault(),a(e.target).parents("td").find(".simpay-image-preview-wrap").val("").hide(),a(e.target).parents("td").find(".simpay-field-image-url").val(""),a(e.target).parents("td").find(".simpay-remove-image-preview").hide()},addMediaFields:function(){a(".simpay-media-uploader").on("click",(function(e){e.preventDefault();var t=wp.media.frames.file_frame=wp.media({title:spGeneral.i18n.mediaTitle,button:{text:spGeneral.i18n.mediaButtonText},multiple:!1}),n=a(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=a(".simpay-chosen-select, .simpay-chosen-search");e.chosen({disable_search_threshold:20}),e.chosen()},handleMetaboxTabClick:function(){var e=a("ul.simpay-tabs a"),t=a("div.simpay-panel"),n=e.parents("li");e.on("click",(function(e){e.preventDefault();var r=a(this).parent(),o=a(a(this).attr("href")),i=a(this).attr("href");history.pushState(null,null,i),setTimeout((function(){window.scrollTo(0,0)}),1),a('[name="simpay_form_settings_tab"]').val(i),a(".simpay-panels > .spinner").hide(),n.removeClass("active"),r.addClass("active"),t.addClass("simpay-panel-hidden"),o.removeClass("simpay-panel-hidden")}));var r="#form-display-options-settings-panel";location.hash.length&&(r=location.hash);var o=a('ul.simpay-tabs a[href="'+r+'"]');a('[name="simpay_form_settings_tab"]').val(r),o.length&&o.click()},stripeConnect:function(){var e="tr:nth-child(2), tr:nth-child(3), tr:nth-child(4), tr:nth-child(5)";a(".simpay-settings.stripe-account .form-table").find(e).hide(),a("#wpsp-api-keys-row-reveal button").on("click",(function(t){t.preventDefault(),a(".simpay-settings.stripe-account .form-table").find(e).show(),a("#wpsp-api-keys-row-hide").show(),a(this).parent().hide(),a(".wpsp-manual-key-warning").show()})),a("#wpsp-api-keys-row-hide button").on("click",(function(t){t.preventDefault(),a(".simpay-settings.stripe-account .form-table").find(e).hide(),a("#wpsp-api-keys-row-reveal").show(),a(this).parent().hide(),a(".wpsp-manual-key-warning").hide()}))},handleInternalLinkToTabClicks:function(e){var t=e.data("show-tab");o.find("."+t+"-tab a").click()}},(a=e)(document).ready((function(e){c.init()}))}.call(this,n(14))},335:function(e,t,n){"use strict";var r=n(7),a=simpayAdminSettingToggles||[];function o(e){var t=e.id,n=(e.value,e.toggles,document.querySelector(".simpay-settings-".concat(t)));if(!n)return{};var r=n.querySelector("input");r||(r=n.querySelector("select"));var a=r.value;return"checkbox"===r.type&&(a=!0===r.checked?"yes":"no"),{setting:r,currentValue:a}}function i(e){var t=e.id,n=e.value,r=e.toggles,c=o(e),s=(c.setting,c.currentValue);"none"!==document.querySelector(".simpay-settings-".concat(t)).style.display&&(r.map((function(e){return document.querySelector(".simpay-settings-".concat(e))})).forEach((function(e){e&&(e.style.display=s===n?"table-row":"none")})),r.forEach((function(e){var t=_.find(a,{id:e});t&&i(t)})))}Object(r.a)((function(){a.forEach((function(e){i(e),o(e).setting.addEventListener("change",(function(){return i(e)}))}))}))},336:function(e,t,n){"use strict";var r=n(7);Object(r.a)((function(){var e=window.wpsp.hooks,t=document.querySelectorAll('[name="simpay_settings[test_mode]"]');if(0!==t.length){var n="enabled"===document.querySelector('[name="simpay_settings[test_mode]"]:checked').value?"test":"live";e.doAction("settings.toggleTestMode",n,n),_.each(t,(function(t){return t.addEventListener("change",(function(t){var r="enabled"===t.target.value?"test":"live";e.doAction("settings.toggleTestMode",r,n)}))}))}}))},337:function(e,t,n){"use strict";var r=n(7);Object(r.a)((function(){var e=document.querySelector(".simpay-recaptcha-feedback");if(e){var t=simpayGoogleRecaptcha,n=t.siteKey,r=t.i18n;""!==n&&grecaptcha.ready((function(){var e=document.querySelector(".grecaptcha-badge");e&&(e.style.display="none");try{grecaptcha.execute(n,{action:"simple_pay_admin_test"}).then((function(e){wp.ajax.send("simpay_validate_recaptcha_source",{data:{token:e,recaptcha_action:"simple_pay_admin_test"},error:a})})).catch(a)}catch(e){a()}}))}function a(){e.style.display="block",e.classList.add("notice-error"),e.querySelector("p").innerText=r.invalid}}))},338:function(e,t,n){"use strict";(function(e){var t=n(9),r=n.n(t),a=n(7),o=n(15);Object(a.a)((function(){var t,n,a,i=document.querySelector(".post-type-simple-pay #post");if(i){var c=r()(i,{hash:!0});delete c.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(c)),n=document.getElementById("form-type-select"),a=document.getElementById("is-overlay"),n.addEventListener("change",(function(e){var t=e.target,n=t.options[t.selectedIndex],r=n.value;"on-site"===r&&Object(o.maybeBlockSelectWithUpgradeModal)(e),"off-site"===r&&(a.querySelector("input").checked=!1),a.style.display="yes"===n.dataset.available&&"on-site"===r?"block":"none"})),function(){var e=document.querySelector(".simpay-recaptcha-payment-form-feedback");if(e){var t=document.querySelector(".simpay-recaptcha-payment-form-description"),n=simpayGoogleRecaptcha,r=n.siteKey,a=n.i18n;if(t.style.display="none",""===r)return o();grecaptcha.ready((function(){var e=document.querySelector(".grecaptcha-badge");e&&(e.style.display="none");try{grecaptcha.execute(r,{action:"simple_pay_admin_test"}).then((function(e){wp.ajax.send("simpay_validate_recaptcha_source",{data:{token:e,recaptcha_action:"simple_pay_admin_test"},success:i,error:o})})).catch(o)}catch(e){o()}}))}function o(){e.style.color="#b32d2e",e.style.display="inline",e.innerHTML=a.disabled,t.style.display="inline-block"}function i(){e.style.color="green",e.style.display="inline",e.innerHTML=a.enabled,t.style.display="inline-block"}}(),(t=document.querySelector("#_company_name"))&&(t.addEventListener("blur",(function(){0===t.value.length?(t.nextElementSibling.classList.remove("hidden"),t.value=simpayAdmin.siteTitle):t.nextElementSibling.classList.add("hidden")})),t.addEventListener("focus",(function(){0!==t.value.length&&t.nextElementSibling.classList.add("hidden")})))}}))}).call(this,n(14))},339:function(e,t,n){"use strict";(function(e,t){var r=n(37),a=n.n(r),o=n(7),i=n(15);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.querySelectorAll(".simpay-panel-field-price-select");if(n.length>0){n.forEach((function(e){return e.style.display=t>1?"table-row":"none"}));var r=document.querySelector(".simpay-panel-field-price-select-notice");r&&(r.style.display=1===t?"table-row":"none")}}}function s(e){var t=e.querySelector(".simpay-price-label-display"),n=e.querySelector(".simpay-price-label"),r=spGeneral.strings,a=r.recurringIntervalDisplay,o=r.customAmountLabel;if(""!==n.value)t.innerHTML=n.value;else{var i,c=e.querySelector(".simpay-price-currency"),s=e.querySelector(".simpay-price-amount"),l=e.querySelector(".simpay-price-amount-type"),u=e.querySelector(".simpay-price-custom-amount input"),d=e.querySelector(".simpay-price-enable-custom-amount"),p=spGeneral.strings,f=p.currencyPosition,y=p.recurringIntervals,m=c.options[c.selectedIndex].dataset.symbol;switch(i=!0===d.checked?u.value:s.value,f){case"left":i="".concat(m).concat(i);break;case"left_space":i="".concat(m," ").concat(i);break;case"right":i="".concat(i).concat(m);break;case"right_space":i="".concat(i," ").concat(m)}if(!0===d.checked&&(i=o.replace("%s",i)),"recurring"===l.value){var h=e.querySelector(".simpay-price-recurring-interval"),v=e.querySelector(".simpay-price-recurring-interval-count"),g=y[h.options[h.selectedIndex].value];i=a.replace("%1$s",i).replace("%2$s",v.value).replace("%3$s","1"===v.value?g[0]:g[1])}t.innerHTML=i}}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"),r=parseInt(n.value);switch(t.options[t.selectedIndex].value){case"day":r>365&&(n.value=365);break;case"week":r>52&&(n.value=52);break;case"month":r>12&&(n.value=12);break;case"year":r>1&&(n.value=1)}var o=JSON.parse(t.dataset.intervals);a()(t.options).forEach((function(e,r){var a=e.value;t.options[r].text=1===parseInt(n.value)?o[a][0]:o[a][1]}))}function d(){var e=document.querySelectorAll(".simpay-price");_.each(e,(function(e){var t=e.querySelector(".simpay-price-amount-type").value;e.querySelector(".simpay-price-label").addEventListener("keyup",(function(){return 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,r=e.querySelectorAll(".simpay-price-currency-symbol");_.each(r,(function(e){return e.innerText=n}))}(e),s(e)}));var n=e.querySelectorAll(".simpay-price-amount-type .button");n.length>0&&_.each(n,(function(t){return t.addEventListener("click",(function(t){t.preventDefault();var n=t.target.dataset,r=n.available,a=n.upgradeTitle,o=n.upgradeDescription,c=n.upgradeUrl,l=n.upgradePurchasedUrl;"no"===r?Object(i.upgradeModal)({title:a,description:o,url:c,purchasedUrl:l}):(function(e,t){var n=e.querySelectorAll(".simpay-price-amount-type .button");_.each(n,(function(e){return e.classList.remove("button-primary")}));var r=t.dataset.amountType,a=e.querySelector(".simpay-price-recurring-settings");t.classList.add("button-primary"),a.style.display="recurring"===r?"table":"none";var o=e.querySelector(".simpay-price-recurring-amount-toggle"),i=e.querySelector(".simpay-price-enable-optional-subscription");o.style.display="recurring"===r?"none":"block",i.checked=!1,e.querySelector(".simpay-price-amount-type").value=r}(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,o=r.upgradeTitle,c=r.upgradeDescription,u=r.upgradeUrl,d=r.upgradePurchasedUrl;"no"===a?(n.checked=!1,t.preventDefault(),Object(i.upgradeModal)({title:o,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 o=e.querySelector(".simpay-price-legacy-setting-toggle");o&&o.addEventListener("click",(function(t){t.preventDefault(),function(e){var t=e.querySelectorAll(".simpay-price-legacy-setting");_.each(t,(function(e){return e.style.display="block"===e.style.display?"none":"block"}))}(e)})),e.querySelector(".simpay-price-default").addEventListener("change",(function(){return function(e){var t=document.querySelectorAll(".simpay-price-default");_.each(t,(function(e){return e.checked=!1})),e.querySelector(".simpay-price-default").checked=!0}(e)})),e.querySelector(".simpay-price-remove").addEventListener("click",(function(t){t.preventDefault(),function(e){e.remove(),p(),c()}(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(o.a)((function(){var n,r,a,o,s,l,u;t(".simpay-prices").sortable({items:".simpay-field-metabox",containment:"#simpay-prices",handle:".simpay-hndle",placeholder:"sortable-placeholder",cursor:"move",delay:t(document.body).hasClass("mobile")?200:0,distance:2,tolerance:"pointer",forcePlaceholderSize:!0,opacity:.65,helper:function(e,t){return t.clone().find(":input").attr("name",(function(e,t){return"sort_"+parseInt(1e5*Math.random(),10).toString()+"_"+t})).end()}}),d(),n=document.getElementById("simpay-prices-advanced-toggle"),r=document.getElementById("simpay-prices-advanced"),n&&r&&n.addEventListener("click",(function(e){e.preventDefault(),r.style.display="block"==r.style.display?"none":"block"})),(u=document.getElementById("simpay-prices-advanced-add"))&&u.addEventListener("click",(function(t){var n,r,a,o,i,s;t.preventDefault(),a=(r=(n=u).dataset).nonce,o=r.formId,i=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:o,plan_id:s.value},success:function(t){e(i).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;alert(t),n.classList.remove("disabled")}})})),function(){var t=document.getElementById("simpay-add-price");t&&t.addEventListener("click",(function(n){var r,a,o,i,s;n.preventDefault(),o=(a=(r=t).dataset).nonce,i=a.formId,s=document.getElementById("simpay-prices"),r.classList.add("disabled"),wp.ajax.send("simpay_add_price",{data:{_wpnonce:o,form_id:i},success:function(t){e(s).append(t),d(),p(),r.classList.remove("disabled"),c()},error:function(e){var t=e.message;alert(t),r.classList.remove("disabled")}})}))}(),(a=document.getElementById("simpay-add-price-lite"))&&a.addEventListener("click",i.maybeBlockButtonWithUpgradeModal),(o=document.getElementById("simpay-amount-type-lite"))&&o.addEventListener("click",i.maybeBlockButtonWithUpgradeModal),(s=document.getElementById("simpay-can-recur-lite"))&&s.addEventListener("click",i.maybeBlockButtonWithUpgradeModal),(l=document.getElementById("simpay-custom-lite"))&&l.addEventListener("click",i.maybeBlockButtonWithUpgradeModal)}))}).call(this,n(14),n(14))},340:function(e,t,n){"use strict";(function(e){var t=n(7),r=n(15);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(14))},341:function(e,t,n){"use strict";(function(e){var t=n(17),r=n.n(t),a=n(7),o='',i='',c=simpayAdmin,s=c.nonce,l=c.ajaxUrl,u=c.i18n,d=u.addonActivated,p=u.addonActivate,f=u.addonActive,y=u.addonDeactivate,m=u.addonInactive,h=u.addonInstall,v=u.addonError,g=u.pluginError;function b(t){t.preventDefault();var n,a,c,u,b,_,w=e(t.target);if(w.hasClass("status-go-to-url"))window.open(w.attr("data-plugin"),"_blank");else{var k=w.attr("data-type");if(w.prop("disabled",!0).addClass("loading"),w.html(''),w.hasClass("status-active"))n="deactivate",a="status-installed","plugin"===k&&(a+=" button button-secondary"),c=m,u=p,b=y,"addon"===k&&(u=o+u,b=i+b);else if(w.hasClass("status-installed"))n="activate",a="status-active","plugin"===k&&(a+=" button button-secondary disabled"),c=f,u=y,"addon"===k?(u=i+u,b=o+p):"plugin"===k&&(u=d,b=p);else{if(!w.hasClass("status-missing"))return;n="install",a="status-active","plugin"===k&&(a+=" button disabled"),c=f,u=d,b='',"addon"===k&&(u=o+y,b+=h)}var O=w.closest(".simpay-addon");!function(t,n,r,a){var o={activate:"simpay_activate_addon",install:"simpay_install_addon",deactivate:"simpay_deactivate_addon"}[n];if(o){var i={action:o,nonce:s,plugin:t,type:r};e.post(l,i,a).fail((function(e){console.log(e.responseText)}))}}(w.attr("data-plugin"),n,k,(function(e){e.success?("install"===n?(w.attr("data-plugin",e.data.basename),_=e.data.msg,e.data.is_activated||(c=m,u="plugin"===k?p:o+p,a="plugin"===k?"status-installed button button-secondary":"status-installed")):_=e.data,O.find(".simpay-addon__actions").append('
'+_+"
"),O.find("span.status-label").removeClass("status-active status-installed status-missing").addClass(a).removeClass("button button-primary button-secondary disabled").text(c),w.removeClass("status-active status-installed status-missing").removeClass("button button-primary button-secondary disabled").addClass(a).html(u)):("object"===r()(e.data)?"addon"===k?O.find(".simpay-addon__actions").append('
'+v+"
"):O.find(".simpay-addon__actions").append('
'+g+"
"):O.find(".simpay-addon__actions").append('
'+e.data+"
"),"install"===n&&"plugin"===k&&w.addClass("status-go-to-url").removeClass("status-missing"),w.html(b)),w.prop("disabled",!1).removeClass("loading"),setTimeout((function(){O.find(".msg").remove()}),3e3)}))}}Object(a.a)((function(){document.querySelector(".simpay-addons")&&document.querySelectorAll(".simpay-addon").forEach((function(e){e.querySelector("button").addEventListener("click",b)}))}))}).call(this,n(14))},342:function(e,t,n){"use strict";var r=n(7);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(o),n.innerHTML=r,n.classList.contains("button-secondary")&&(n.style.color="green",n.style.borderColor="green"),t.clearSelection();var o=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)}))}))},355:function(e,t,n){"use strict";n(338),n(339);var r=n(37),a=n.n(r),o=n(7),i=n(15);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(o.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",i.maybeBlockCheckboxWithUpgradeModal)}))})),Object(o.a)((function(){var e;document.querySelector(".post-type-simple-pay #post")&&(e=document.getElementById("simpay-add-field-lite"))&&e.addEventListener("click",i.maybeBlockButtonWithUpgradeModal)})),Object(o.a)((function(){var e,t;(e=document.getElementById("_enable_tax_id"))&&e.addEventListener("change",i.maybeBlockCheckboxWithUpgradeModal),(t=document.getElementById("_enable_promotion_codes"))&&t.addEventListener("change",i.maybeBlockCheckboxWithUpgradeModal)})),n(340)},36:function(e,t){function n(e,t,n,r,a,o,i){try{var c=e[o](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,a)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(a,o){var i=e.apply(t,r);function c(e){n(i,a,o,c,s,"next",e)}function s(e){n(i,a,o,c,s,"throw",e)}c(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},37:function(e,t,n){var r=n(108),a=n(109),o=n(110),i=n(111);e.exports=function(e){return r(e)||a(e)||o(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},5:function(e,t){e.exports=function(e,t,n){return 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},6:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var r=n(36),a=n.n(r),o=n(20),i=n.n(o);function c(_x,e){return s.apply(this,arguments)}function s(){return(s=a()(i.a.mark((function t(n,r){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.ajax({data:r,method:"POST",url:"".concat(wpApiSettings.root,"wpsp/").concat(n),beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",wpApiSettings.nonce)}});case 3:return t.abrupt("return",t.sent);case 6:throw t.prev=6,t.t0=t.catch(0),t.t0.responseJSON;case 10:case"end":return t.stop()}}),t,null,[[0,6]])})))).apply(this,arguments)}}).call(this,n(14))},64:function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var a=t&&t.prototype instanceof d?t:d,o=Object.create(a.prototype),i=new O(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return{value:void 0,done:!0}}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=_(i,n);if(c){if(c===u)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=l(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===u)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}(e,n,i),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var u={};function d(){}function p(){}function f(){}var y={};c(y,a,(function(){return this}));var m=Object.getPrototypeOf,h=m&&m(m(S([])));h&&h!==t&&n.call(h,a)&&(y=h);var v=f.prototype=d.prototype=Object.create(y);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(a,o){function i(){return new t((function(r,i){!function r(a,o,i,c){var s=l(e[a],e,o);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,i,c)}),(function(e){r("throw",e,i,c)})):t.resolve(d).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,c)}))}c(s.arg)}(a,o,r,i)}))}return r=r?r.then(i,i):i()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(c&&s){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),u}},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;k(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},65: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'.concat(f,"");c=c.replace("{{amount}}",p),a.find("span").html(c)}}},showError:function(t,e,r){return t.find(".simpay-errors").html(r)},triggerBrowserValidation:function(e,r){return t("").attr({type:"submit",style:{display:"none"}}).appendTo(e).click().remove()}}}).call(this,r(14))},17:function(t,e){function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},20:function(t,e,r){t.exports=r(64)},24:function(t,e,r){"use strict";r.d(e,"a",(function(){return m})),r.d(e,"c",(function(){return v}));var n=function(t){return"string"!=typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)},o=function(t){return"string"!=typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)},i=function(t){return function(e,r,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;if(o(e)&&n(r))if("function"==typeof i)if("number"==typeof a){var u={callback:i,priority:a,namespace:r};if(t[e]){var c,s=t[e].handlers;for(c=s.length;c>0&&!(a>=s[c-1].priority);c--);c===s.length?s[c]=u:s.splice(c,0,u),(t.__current||[]).forEach((function(t){t.name===e&&t.currentIndex>=c&&t.currentIndex++}))}else t[e]={handlers:[u],runs:0};"hookAdded"!==e&&h("hookAdded",e,r,i,a)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}},a=function(t,e){return function(r,i){if(o(r)&&(e||n(i))){if(!t[r])return 0;var a=0;if(e)a=t[r].handlers.length,t[r]={runs:t[r].runs,handlers:[]};else for(var u=t[r].handlers,c=function(e){u[e].namespace===i&&(u.splice(e,1),a++,(t.__current||[]).forEach((function(t){t.name===r&&t.currentIndex>=e&&t.currentIndex--})))},s=u.length-1;s>=0;s--)c(s);return"hookRemoved"!==r&&h("hookRemoved",r,i),a}}},u=function(t){return function(e,r){return void 0!==r?e in t&&t[e].handlers.some((function(t){return t.namespace===r})):e in t}},c=function(t,e){return function(r){t[r]||(t[r]={handlers:[],runs:0}),t[r].runs++;for(var n=t[r].handlers,o=arguments.length,i=new Array(o>1?o-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r=e.id,n=e.state,o=e.__unstableLegacyFormData;return Object(c.a)("v2/customer",h({form_values:p()(e[0],{hash:!0}),form_data:JSON.stringify(h(h({},o),n)),form_id:r},t))}function m(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r=e.id,n=e.state,o=e.__unstableLegacyFormData;return Object(c.a)("v2/paymentintent/create",v({form_values:p()(e[0],{hash:!0}),form_data:JSON.stringify(v(v({},o),n)),form_id:r},t))}function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function x(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r=e.id,n=e.state,o=e.__unstableLegacyFormData;return Object(c.a)("v2/checkout-session",x({form_values:p()(e[0],{hash:!0}),form_data:JSON.stringify(x(x({},o),n)),form_id:r},t))}function _(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function w(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r=e.id,n=e.state;return Object(c.a)("v2/setupintent/create",w({form_values:p()(e[0],{hash:!0}),form_data:JSON.stringify(n),form_id:r},t))}function P(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function T(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r=e.id,n=e.state,o=e.__unstableLegacyFormData;return Object(c.a)("v2/subscription",T({form_values:p()(e[0],{hash:!0}),form_data:JSON.stringify(T(T({},o),n)),form_id:r},t))}function F(t,e,r,n,o){return Object(c.a)("v2/subscription/payment_method/".concat(r,"/").concat(t),{customer_nonce:e,form_values:o,form_id:n})}},344:function(t,e,r){"use strict";r.r(e),function(t){var e=r(5),n=r.n(e),o=r(24),i=r(52),a=r(25),u=r(148);function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;e1&&void 0!==arguments[1]&&arguments[1],u=window.simpayApp.formCount;if(e.attr("data-simpay-form-instance",u),!1===a){var c=window.simplePayForms;r=c[n=e.data("simpay-form-id")]}else r=a,n=a.id;var l=r,f=l.type,p=l.form,d=p.prices,h=p.livemode,y=p.config,m=void 0===y?{}:y,v=m.taxRates,g=void 0===v?[]:v,b=m.paymentMethods,x=void 0===b?[]:b,O=s(s(s(s(s({formId:n,formInstance:u,quantity:1,isValid:!0,stripeParams:s(s({},r.stripe.strings),r.stripe.bools),prices:d},r.form.bools),r.form.integers),r.form.i18n),r.form.strings),r.form.config);e.__unstableLegacyFormData=O;var w=i.getPaymentFormType(f);_.each(w,(function(t,r){e[r]=_.isFunction(t)?_.bind(t,e,e):t})),e.id=n,e.state={isValid:!0,customAmount:!1,coupon:!1,price:_.find(d,(function(t){return!0===t.default})),paymentMethod:_.first(x),taxRates:g,paymentMethods:x,livemode:h,displayType:O.formDisplayType},e.setState=function(t){e.state=s(s({},e.state),t)};var j=r.stripe.strings,P=j.key,T=j.stripe_api_version,k=j.elementsLocale;e.stripeInstance=Stripe(P,{apiVersion:T,locale:k||"auto"}),Object(o.c)("simpaySetupPaymentForm",e),window.simpayApp.spFormData[n]=O,window.simpayApp.spFormElems[n]=e,t(document.body).trigger("simpayCoreFormVarsInitialized",[e,O]).trigger("simpayBindCoreFormEventsAndTriggers",[e,O]).trigger("simpaySetupCoreForm",[e])}window.wpsp={hooks:o.b,paymentForms:i,initPaymentForm:y,api:{customers:l,paymentintents:f,sessions:p,setupintents:d,subscriptions:h}},window.simpayApp=s({formCount:0,spFormElList:{},spFormData:{},spFormElems:{}},u.a),t((function(){return e=t(document.body).find(".simpay-checkout-form:not(.simpay-update-payment-method)"),window.simpayApp.spFormElList=e,void e.each((function(){window.simpayApp.formCount++,y(t(this))}));var e}))}.call(this,r(14))},345:function(t,e){function r(e,n){return t.exports=r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e,n)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},346:function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},353:function(t,e,r){"use strict";var n=r(36),o=r.n(n),i=r(20),a=r.n(i),u=r(52),c=r(24),s=r(40),l=r.n(s),f=r(41),p=r.n(f),d=r(78),h=r.n(d),y=r(79),m=r.n(y),v=r(59),g=r.n(v),b=r(37),x=r.n(b),O=r(17),_=r.n(O),w=r(5),j=r.n(w);function P(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function T(t){for(var e=1;e0}}]),t}();var A=function(t){h()(o,t);var e,r,n=(e=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=g()(e);if(r){var o=g()(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return m()(this,t)});function o(){return p()(this,o),n.apply(this,arguments)}return l()(o)}(k);var I=function(t){h()(o,t);var e,r,n=(e=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=g()(e);if(r){var o=g()(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return m()(this,t)});function o(t){var e;return p()(this,o),(e=n.call(this,t)).LineItem=A,e}return l()(o)}(L),M=r(25);function E(){return(E=o()(a.a.mark((function t(e){var r,n,o,i,u,c,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.error,n=e.__unstableLegacyFormData,o=null,!n.hasCustomerFields){t.next=9;break}return t.next=6,M.a.create({},e);case 6:i=t.sent,u=i.customer.id,o=u;case 9:return t.next=11,M.c.create({customer_id:o},e);case 11:return c=t.sent,s=c.sessionId,t.abrupt("return",e.stripeInstance.redirectToCheckout({sessionId:s}).then((function(t){return t.error&&r(t.error),t})));case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var C=window.spShared,R=C.convertToDollars,N=C.formatCurrency,B="stripe-checkout";function U(t){if(!window.simpayGoogleRecaptcha)return Promise.resolve("");var e=window.simpayGoogleRecaptcha,r=e.siteKey,n=e.i18n;return new Promise((function(e,o){try{grecaptcha.execute(r,{action:t}).then((function(t){return e(t)}))}catch(t){o(n.invalid)}}))}function G(){return(G=o()(a.a.mark((function t(e){var r,n,o,i,u,c,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.id,n=e.setState,o=e.submit,i=e.disable,u=e.enable,c=e.error,s=e.__unstableLegacyFormData,i(),e.trigger("simpayBeforeStripePayment",[e,s]),s.isValid){t.next=6;break}return u(),t.abrupt("return");case 6:return t.prev=6,t.next=9,U("simple_pay_form_".concat(r,"_customer")).then((function(t){n({customerCaptchaToken:t})}));case 9:return t.next=11,U("simple_pay_form_".concat(r,"_payment")).then((function(t){n({paymentCaptchaToken:t})}));case 11:o().catch(c),t.next=17;break;case 14:t.prev=14,t.t0=t.catch(6),c(t.t0);case 17:case"end":return t.stop()}}),t,null,[[6,14]])})))).apply(this,arguments)}Object(u.registerPaymentFormType)(B,{type:B,setup:function(t){var e=t.enable;(0,t.disable)(),t.cart=Object(u.__unstableUpdatePaymentFormCart)(t,new I);var r=t.find(".simpay-payment-btn")[0];r&&(r.addEventListener("click",(function(e){e.preventDefault();var r=window.simpayApp.triggerBrowserValidation;t[0].checkValidity()?Object(c.c)("simpaySubmitPaymentForm",t):r(t)})),e())},submit:function(_x){return E.apply(this,arguments)},enable:function(t){var e=t.cart,r=t.__unstableLegacyFormData,n=r.paymentButtonText,o=r.paymentButtonTrialText;t.removeClass("simpay-checkout-form--loading");var i=t.find(".simpay-payment-btn");if(i.prop("disabled",!1).removeClass("simpay-disabled"),0===e.getTotalDueToday())i.find("span").text(o);else{var a=N(e.isZeroDecimal()?e.getTotalDueToday():R(e.getTotalDueToday()),!0,e.getCurrencySymbol(),e.isZeroDecimal()),u=''.concat(a,"");i.find("span").html(n.replace("{{amount}}",u))}},disable:function(t){var e=t.__unstableLegacyFormData.paymentButtonLoadingText;t.addClass("simpay-checkout-form--loading"),t.find(".simpay-payment-btn").prop("disabled",!0).addClass("simpay-disabled").find("span").html(e)},error:function(t,e){var r,n=t.enable,o=t.__unstableLegacyFormData,i=o.stripeErrorMessages,a=o.unknownError;if(e&&""===e)r="";else if(void 0!==e){var u=e.message,c=e.code;r=u||e,c&&i[c]&&(r=i[c])}else r=a;t.find(".simpay-errors").html(r),n()}}),Object(c.a)("simpaySetupPaymentForm","wpsp/paymentForm",(function(t){return(0,t.setup)()})),Object(c.a)("simpaySubmitPaymentForm","wpsp/paymentForm",(function(_x){return G.apply(this,arguments)}))},36:function(t,e){function r(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,c,"next",t)}function c(t){r(a,o,i,u,c,"throw",t)}u(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},37:function(t,e,r){var n=r(108),o=r(109),i=r(110),a=r(111);t.exports=function(t){return n(t)||o(t)||i(t)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},40:function(t,e){function r(t,e){for(var r=0;r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},65:function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r'.concat(f,"");c=c.replace("{{amount}}",p),a.find("span").html(c)}}},showError:function(t,e,r){return t.find(".simpay-errors").html(r)},triggerBrowserValidation:function(e,r){return t("").attr({type:"submit",style:{display:"none"}}).appendTo(e).click().remove()}}}).call(this,r(14))},17:function(t,e){function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},20:function(t,e,r){t.exports=r(64)},24:function(t,e,r){"use strict";r.d(e,"a",(function(){return m})),r.d(e,"c",(function(){return v}));var n=function(t){return"string"!=typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)},o=function(t){return"string"!=typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)},i=function(t){return function(e,r,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;if(o(e)&&n(r))if("function"==typeof i)if("number"==typeof a){var u={callback:i,priority:a,namespace:r};if(t[e]){var c,s=t[e].handlers;for(c=s.length;c>0&&!(a>=s[c-1].priority);c--);c===s.length?s[c]=u:s.splice(c,0,u),(t.__current||[]).forEach((function(t){t.name===e&&t.currentIndex>=c&&t.currentIndex++}))}else t[e]={handlers:[u],runs:0};"hookAdded"!==e&&h("hookAdded",e,r,i,a)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}},a=function(t,e){return function(r,i){if(o(r)&&(e||n(i))){if(!t[r])return 0;var a=0;if(e)a=t[r].handlers.length,t[r]={runs:t[r].runs,handlers:[]};else for(var u=t[r].handlers,c=function(e){u[e].namespace===i&&(u.splice(e,1),a++,(t.__current||[]).forEach((function(t){t.name===r&&t.currentIndex>=e&&t.currentIndex--})))},s=u.length-1;s>=0;s--)c(s);return"hookRemoved"!==r&&h("hookRemoved",r,i),a}}},u=function(t){return function(e,r){return void 0!==r?e in t&&t[e].handlers.some((function(t){return t.namespace===r})):e in t}},c=function(t,e){return function(r){t[r]||(t[r]={handlers:[],runs:0}),t[r].runs++;for(var n=t[r].handlers,o=arguments.length,i=new Array(o>1?o-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r=e.id,n=e.state,o=e.__unstableLegacyFormData;return Object(c.a)("v2/customer",h({form_values:p()(e[0],{hash:!0}),form_data:JSON.stringify(h(h({},o),n)),form_id:r},t))}function m(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r=e.id,n=e.state,o=e.__unstableLegacyFormData;return Object(c.a)("v2/paymentintent/create",v({form_values:p()(e[0],{hash:!0}),form_data:JSON.stringify(v(v({},o),n)),form_id:r},t))}function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function x(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r=e.id,n=e.state,o=e.__unstableLegacyFormData;return Object(c.a)("v2/checkout-session",x({form_values:p()(e[0],{hash:!0}),form_data:JSON.stringify(x(x({},o),n)),form_id:r},t))}function _(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function w(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r=e.id,n=e.state;return Object(c.a)("v2/setupintent/create",w({form_values:p()(e[0],{hash:!0}),form_data:JSON.stringify(n),form_id:r},t))}function P(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function T(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r=e.id,n=e.state,o=e.__unstableLegacyFormData;return Object(c.a)("v2/subscription",T({form_values:p()(e[0],{hash:!0}),form_data:JSON.stringify(T(T({},o),n)),form_id:r},t))}function F(t,e,r,n,o){return Object(c.a)("v2/subscription/payment_method/".concat(r,"/").concat(t),{customer_nonce:e,form_values:o,form_id:n})}},345:function(t,e,r){"use strict";r.r(e),function(t){var e=r(5),n=r.n(e),o=r(24),i=r(52),a=r(25),u=r(148);function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;e1&&void 0!==arguments[1]&&arguments[1],u=window.simpayApp.formCount;if(e.attr("data-simpay-form-instance",u),!1===a){var c=window.simplePayForms;r=c[n=e.data("simpay-form-id")]}else r=a,n=a.id;var l=r,f=l.type,p=l.form,d=p.prices,h=p.livemode,y=p.config,m=void 0===y?{}:y,v=m.taxRates,g=void 0===v?[]:v,b=m.paymentMethods,x=void 0===b?[]:b,O=s(s(s(s(s({formId:n,formInstance:u,quantity:1,isValid:!0,stripeParams:s(s({},r.stripe.strings),r.stripe.bools),prices:d},r.form.bools),r.form.integers),r.form.i18n),r.form.strings),r.form.config);e.__unstableLegacyFormData=O;var w=i.getPaymentFormType(f);_.each(w,(function(t,r){e[r]=_.isFunction(t)?_.bind(t,e,e):t})),e.id=n,e.state={isValid:!0,customAmount:!1,coupon:!1,price:_.find(d,(function(t){return!0===t.default})),paymentMethod:_.first(x),taxRates:g,paymentMethods:x,livemode:h,displayType:O.formDisplayType},e.setState=function(t){e.state=s(s({},e.state),t)};var j=r.stripe.strings,P=j.key,T=j.stripe_api_version,k=j.elementsLocale;e.stripeInstance=Stripe(P,{apiVersion:T,locale:k||"auto"}),Object(o.c)("simpaySetupPaymentForm",e),window.simpayApp.spFormData[n]=O,window.simpayApp.spFormElems[n]=e,t(document.body).trigger("simpayCoreFormVarsInitialized",[e,O]).trigger("simpayBindCoreFormEventsAndTriggers",[e,O]).trigger("simpaySetupCoreForm",[e])}window.wpsp={hooks:o.b,paymentForms:i,initPaymentForm:y,api:{customers:l,paymentintents:f,sessions:p,setupintents:d,subscriptions:h}},window.simpayApp=s({formCount:0,spFormElList:{},spFormData:{},spFormElems:{}},u.a),t((function(){return e=t(document.body).find(".simpay-checkout-form:not(.simpay-update-payment-method)"),window.simpayApp.spFormElList=e,void e.each((function(){window.simpayApp.formCount++,y(t(this))}));var e}))}.call(this,r(14))},346:function(t,e){function r(e,n){return t.exports=r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e,n)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},347:function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},354:function(t,e,r){"use strict";var n=r(36),o=r.n(n),i=r(20),a=r.n(i),u=r(52),c=r(24),s=r(40),l=r.n(s),f=r(41),p=r.n(f),d=r(78),h=r.n(d),y=r(79),m=r.n(y),v=r(59),g=r.n(v),b=r(37),x=r.n(b),O=r(17),_=r.n(O),w=r(5),j=r.n(w);function P(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function T(t){for(var e=1;e0}}]),t}();var A=function(t){h()(o,t);var e,r,n=(e=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=g()(e);if(r){var o=g()(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return m()(this,t)});function o(){return p()(this,o),n.apply(this,arguments)}return l()(o)}(k);var I=function(t){h()(o,t);var e,r,n=(e=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=g()(e);if(r){var o=g()(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return m()(this,t)});function o(t){var e;return p()(this,o),(e=n.call(this,t)).LineItem=A,e}return l()(o)}(L),M=r(25);function E(){return(E=o()(a.a.mark((function t(e){var r,n,o,i,u,c,s,l,f,p;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.error,n=e.disable,o=e.__unstableLegacyFormData,i=null,u=o.hasCustomerFields,r(""),n(),!u){t.next=11;break}return t.next=8,M.a.create({},e);case 8:c=t.sent,s=c.customer.id,i=s;case 11:return t.next=13,M.c.create({customer_id:i},e);case 13:if(l=t.sent,f=l.sessionId,p=l.session.url,"stripe"!==l.redirect_type){t.next=19;break}return t.abrupt("return",e.stripeInstance.redirectToCheckout({sessionId:f}).then((function(t){return t.error&&r(t.error),t})));case 19:window.location.href=p;case 20:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var C=window.spShared,R=C.convertToDollars,N=C.formatCurrency,B="stripe-checkout";function U(t){if(!window.simpayGoogleRecaptcha)return Promise.resolve("");var e=window.simpayGoogleRecaptcha,r=e.siteKey,n=e.i18n;return new Promise((function(e,o){try{grecaptcha.execute(r,{action:t}).then((function(t){return e(t)}))}catch(t){o(n.invalid)}}))}function G(){return(G=o()(a.a.mark((function t(e){var r,n,o,i,u,c,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.id,n=e.setState,o=e.submit,i=e.disable,u=e.enable,c=e.error,s=e.__unstableLegacyFormData,i(),e.trigger("simpayBeforeStripePayment",[e,s]),s.isValid){t.next=6;break}return u(),t.abrupt("return");case 6:return t.prev=6,t.next=9,U("simple_pay_form_".concat(r,"_customer")).then((function(t){n({customerCaptchaToken:t})}));case 9:return t.next=11,U("simple_pay_form_".concat(r,"_payment")).then((function(t){n({paymentCaptchaToken:t})}));case 11:o().catch(c),t.next=17;break;case 14:t.prev=14,t.t0=t.catch(6),c(t.t0);case 17:case"end":return t.stop()}}),t,null,[[6,14]])})))).apply(this,arguments)}Object(u.registerPaymentFormType)(B,{type:B,setup:function(t){var e=t.enable;(0,t.disable)(),t.cart=Object(u.__unstableUpdatePaymentFormCart)(t,new I);var r=t.find(".simpay-payment-btn")[0];r&&(r.addEventListener("click",(function(e){e.preventDefault();var r=window.simpayApp.triggerBrowserValidation;t[0].checkValidity()?Object(c.c)("simpaySubmitPaymentForm",t):r(t)})),e())},submit:function(_x){return E.apply(this,arguments)},enable:function(t){var e=t.cart,r=t.__unstableLegacyFormData,n=r.paymentButtonText,o=r.paymentButtonTrialText;t.removeClass("simpay-checkout-form--loading");var i=t.find(".simpay-payment-btn");if(i.prop("disabled",!1).removeClass("simpay-disabled"),0===e.getTotalDueToday())i.find("span").text(o);else{var a=N(e.isZeroDecimal()?e.getTotalDueToday():R(e.getTotalDueToday()),!0,e.getCurrencySymbol(),e.isZeroDecimal()),u=''.concat(a,"");i.find("span").html(n.replace("{{amount}}",u))}},disable:function(t){var e=t.__unstableLegacyFormData.paymentButtonLoadingText;t.addClass("simpay-checkout-form--loading"),t.find(".simpay-payment-btn").prop("disabled",!0).addClass("simpay-disabled").find("span").html(e)},error:function(t,e){var r,n=t.enable,o=t.__unstableLegacyFormData,i=o.stripeErrorMessages,a=o.unknownError;if(e&&""===e)r="";else if(void 0!==e){var u=e.message,c=e.code;r=u||e,c&&i[c]&&(r=i[c])}else r=a;t.find(".simpay-errors").html(r),n()}}),Object(c.a)("simpaySetupPaymentForm","wpsp/paymentForm",(function(t){return(0,t.setup)()})),Object(c.a)("simpaySubmitPaymentForm","wpsp/paymentForm",(function(_x){return G.apply(this,arguments)}))},36:function(t,e){function r(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,c,"next",t)}function c(t){r(a,o,i,u,c,"throw",t)}u(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},37:function(t,e,r){var n=r(108),o=r(109),i=r(110),a=r(111);t.exports=function(t){return n(t)||o(t)||i(t)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},40:function(t,e){function r(t,e){for(var r=0;r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},65:function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r', + '' + ) + ) + ); + } else { + return''; + } + } + $has_keys = simpay_check_keys_exist(); // Show a notice to admins if they have not setup Stripe. @@ -217,7 +234,7 @@ public function print_payment_receipt( $atts = array(), $content = '' ) { /** * Filters the content of the confirmation shortcode. * - * This allows different form types to parse the confirmation template tags differently. + * This allows different form types to parse the confirmation smart tags differently. * * @since 3.6.0 * @@ -283,7 +300,7 @@ public function print_payment_receipt( $atts = array(), $content = '' ) { * @since 3.7.0 Pass payment confirmation data. * * @param string - * @param array $payment_confirmation_data Array of data to send to the Payment Confirmation template tags. + * @param array $payment_confirmation_data Array of data to send to the Payment Confirmation smart tags. */ $before_html = apply_filters( 'simpay_before_payment_details', @@ -298,7 +315,7 @@ public function print_payment_receipt( $atts = array(), $content = '' ) { * @since 3.7.0 Pass payment confirmation data. * * @param string - * @param array $payment_confirmation_data Array of data to send to the Payment Confirmation template tags. + * @param array $payment_confirmation_data Array of data to send to the Payment Confirmation smart tags. */ $after_html = apply_filters( 'simpay_after_payment_details', diff --git a/includes/core/class-simplepay.php b/includes/core/class-simplepay.php index 4a872749..1ddc6dc0 100644 --- a/includes/core/class-simplepay.php +++ b/includes/core/class-simplepay.php @@ -207,6 +207,7 @@ public function load_admin() { require_once( SIMPLE_PAY_INC . 'core/post-types/simple-pay/edit-form-payment-options.php' ); require_once( SIMPLE_PAY_INC . 'core/post-types/simple-pay/edit-form-stripe-checkout.php' ); require_once( SIMPLE_PAY_INC . 'core/post-types/simple-pay/edit-form-custom-fields.php' ); + require_once( SIMPLE_PAY_INC . 'core/post-types/simple-pay/edit-form-payment-page.php' ); require_once( SIMPLE_PAY_INC . 'core/post-types/simple-pay/actions.php' ); // Load core back-end only functions. diff --git a/includes/core/functions/shared.php b/includes/core/functions/shared.php index 5a0de450..3d70c7ba 100644 --- a/includes/core/functions/shared.php +++ b/includes/core/functions/shared.php @@ -257,7 +257,18 @@ function simpay_get_form( $form_id ) { $form = new Default_Form( $form_id ); } - if ( 0 === $form->id ) { + // Associated WP_Post cannot be found, invalid. + if ( 0 === $form->id || null === $form->post ) { + return false; + } + + // Associated WP_Post is trashed, invalid. + if ( 'trash' === $form->post->post_status ) { + return false; + } + + // Associated WP_Post is not published, and the current user cannot manage options, invalid. + if ( 'publish' !== $form->post->post_status && ! current_user_can( 'manage_options' ) ) { return false; } @@ -516,21 +527,22 @@ function simpay_shared_script_variables() { ); $strings['strings'] = array( - 'currency' => simpay_get_setting( 'currency', 'USD' ), - 'currencySymbol' => html_entity_decode( + 'currency' => simpay_get_setting( 'currency', 'USD' ), + 'currencySymbol' => html_entity_decode( simpay_get_saved_currency_symbol() ), - 'currencyPosition' => simpay_get_currency_position(), - 'decimalSeparator' => simpay_get_decimal_separator(), - 'thousandSeparator' => simpay_get_thousand_separator(), - 'ajaxurl' => admin_url( 'admin-ajax.php' ), - 'customAmountLabel' => esc_html__( + 'currencyPosition' => simpay_get_currency_position(), + 'decimalSeparator' => simpay_get_decimal_separator(), + 'thousandSeparator' => simpay_get_thousand_separator(), + 'ajaxurl' => admin_url( 'admin-ajax.php' ), + /* translators: %s Minimum price amount. */ + 'customAmountLabel' => esc_html__( 'starting at %s', 'stripe' ), - 'recurringIntervals' => simpay_get_recurring_intervals(), + 'recurringIntervals' => simpay_get_recurring_intervals(), /* translators: %1$s Recurring amount. %2$s Recurring interval count. %3$s Recurring interval. */ - 'recurringIntervalDisplay' => esc_html_x( + 'recurringIntervalDisplay' => esc_html_x( '%1$s every %2$s %3$s', 'recurring interval', 'stripe' @@ -1024,7 +1036,7 @@ function simpay_add_to_array_after( $new_key, $value, $needle, $haystack ) { $new = array(); // The new array will consist of the opposite of the split + the new element we want to add. if ( array_key_exists( $needle, $haystack ) ) { - $offset = array_search( $needle, array_keys( $haystack ) ); + $offset = array_search( $needle, array_keys( $haystack ), true ); $split = array_slice( $haystack, $offset + 1 ); $new = array_slice( $haystack, 0, $offset + 1 ); @@ -1247,7 +1259,7 @@ function simpay_get_payment_form_setting( $template = null ) { // Use a template. - if ( $template !== null ) { + if ( null !== $template ) { switch ( $setting ) { // Top level attributes. case 'title': @@ -1341,6 +1353,14 @@ function simpay_get_payment_form_setting( return $setting; } +/** + * Returns the nicename of a payment form template category. + * + * @since 4.4.4 + * + * @param string $category_slug Category slug. + * @return string + */ function __unstable_simpay_get_form_template_category_name( $category_slug ) { $categories = array( 'business' => __( 'Business', 'stripe' ), @@ -1405,7 +1425,7 @@ function __unstable_simpay_get_payment_form_templates() { // Pull category names. if ( isset( $data['categories'] ) ) { - $categories = $data['categories']; + $categories = $data['categories']; $data['categories'] = array(); foreach ( $categories as $category_slug ) { @@ -1523,7 +1543,7 @@ function simpay_ga_url( $base_url, $utm_medium, $utm_content = false ) { */ $utm_campaign = apply_filters( 'simpay_utm_campaign', 'lite-plugin' ); - $args = array( + $args = array( 'utm_source' => 'WordPress', 'utm_campaign' => $utm_campaign, 'utm_medium' => $utm_medium, diff --git a/includes/core/legacy/hooks.php b/includes/core/legacy/hooks.php index 2079c604..3301c07b 100644 --- a/includes/core/legacy/hooks.php +++ b/includes/core/legacy/hooks.php @@ -172,7 +172,7 @@ function simpay_charge_created( $paymentintent, $form, $form_values ) { * * @since 3.6.0 * - * @param array $payment_confirmation_data Array of data to send to the Payment Confirmation template tags. + * @param array $payment_confirmation_data Array of data to send to the Payment Confirmation smart tags. */ function _transform_payment_confirmation_for_legacy_charge( $payment_confirmation_data, $form, $form_values ) { if ( ! has_action( 'simpay_charge_created' ) ) { diff --git a/includes/core/payments/payment-confirmation-template-tags.php b/includes/core/payments/payment-confirmation-template-tags.php index a164316f..9dd9eee1 100644 --- a/includes/core/payments/payment-confirmation-template-tags.php +++ b/includes/core/payments/payment-confirmation-template-tags.php @@ -1,6 +1,6 @@ name ); +} +add_filter( 'simpay_payment_confirmation_template_tag_customer-name', __NAMESPACE__ . '\\customer_name', 10, 3 ); + +/** + * Replaces the {card-brand} template tag with the name on the Customer's credit card. + * + * @since 4.5.0 + * + * @param string $value Template tag value. + * @param array $payment_confirmation_data { + * Contextual information about this payment confirmation. + * + * @type \SimplePay\Vendor\Stripe\Customer $customer Stripe Customer + * @type \SimplePay\Core\Abstracts\Form $form Payment form. + * @type \SimplePay\Core\Payments\Stripe_API $payment_methods or something + * @type object $subscriptions Subscriptions associated with the Customer. + * @type object $paymentintents PaymentIntents associated with the Customer. + * } + * @return string + */ +function card_brand( $value, $payment_confirmation_data ) { + // Get all cards. + $payment_methods = \SimplePay\Core\Payments\Stripe_API::request( + 'PaymentMethod', + 'all', + array( + 'customer' => $payment_confirmation_data['customer']->id, + 'type' => 'card', + ), + $payment_confirmation_data['form']->get_api_request_args() + ); + + if ( empty( $payment_methods->data ) ) { + return $value; + } + + // Find the most recent card. + $card = current( $payment_methods->data ); + + if ( empty( $card->card ) ) { + return $value; + } + + return ucwords( $card->card->brand ); +} +add_filter( 'simpay_payment_confirmation_template_tag_card-brand', __NAMESPACE__ . '\\card_brand', 10, 3 ); + +/** + * Replaces the {card-last4} template tag with the name on the Customer's credit card. + * + * @since 4.5.0 + * + * @param string $value Template tag value. + * @param array $payment_confirmation_data { + * Contextual information about this payment confirmation. + * + * @type \SimplePay\Vendor\Stripe\Customer $customer Stripe Customer + * @type \SimplePay\Core\Abstracts\Form $form Payment form. + * @type \SimplePay\Core\Payments\Stripe_API $payment_methods or something + * @type object $subscriptions Subscriptions associated with the Customer. + * @type object $paymentintents PaymentIntents associated with the Customer. + * } + * @return string + */ +function card_last4( $value, $payment_confirmation_data ) { + // Get all cards. + $payment_methods = \SimplePay\Core\Payments\Stripe_API::request( + 'PaymentMethod', + 'all', + array( + 'customer' => $payment_confirmation_data['customer']->id, + 'type' => 'card', + ), + $payment_confirmation_data['form']->get_api_request_args() + ); + + if ( empty( $payment_methods->data ) ) { + return $value; + } + + // Find the most recent card. + $card = current( $payment_methods->data ); + + if ( empty( $card->card ) ) { + return $value; + } + + return ( $card->card->last4 ); +} +add_filter( 'simpay_payment_confirmation_template_tag_card-last4', __NAMESPACE__ . '\\card_last4', 10, 3 ); + /** * Replaces {charge-id} with the Customer's first PaymentIntent's first Charge ID. * @@ -319,14 +438,14 @@ function charge_date( $value, $payment_confirmation_data ) { // Localize to current timezone and formatting. $value = get_date_from_gmt( - date( 'Y-m-d H:i:s', $first_charge->created ), + date( 'Y-m-d H:i:s', $first_charge->created ), // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date 'U' ); $value = date_i18n( get_option( 'date_format' ), $value ); /** - * Filters the {charge-date} template tag value. + * Filters the {charge-date} smart tag value. * * @since 3.0.0 * @deprecated 3.6.0 @@ -475,7 +594,7 @@ function payment_type( $value, $payment_confirmation_data ) { ); /** - * Returns a list of available template tags and their descriptions. + * Returns a list of available smart tags and their descriptions. * * @todo Temporary until this can be more easily generated through a tag registry. * @@ -485,7 +604,7 @@ function payment_type( $value, $payment_confirmation_data ) { */ function __unstable_get_tags_and_descriptions() { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore $tags = array( - 'form-title' => esc_html__( + 'form-title' => esc_html__( 'The form\'s title.', 'stripe' ), @@ -493,25 +612,40 @@ function __unstable_get_tags_and_descriptions() { // phpcs:ignore PHPCompatibili 'The form\'s description.', 'stripe' ), - 'total-amount' => esc_html__( + 'total-amount' => esc_html__( 'The total price of the payment.', 'stripe' ), - 'charge-date' => esc_html__( - 'The charge date returned from Stripe.', + 'customer-name' => esc_html__( + 'The value of the Name form field.', 'stripe' ), - 'charge-id' => esc_html__( - 'The unique charge ID returned from Stripe.', + 'charge-date' => esc_html__( + 'The charge date returned from Stripe.', 'stripe' ), - 'payment-type' => esc_html__( - 'The type of payment (one-time or recurring).', + 'charge-id' => esc_html__( + 'The unique charge ID returned from Stripe.', 'stripe' ), ); if ( class_exists( 'SimplePay\Pro\SimplePayPro' ) ) { + $tags['payment-type'] = esc_html__( + 'The type of payment (one-time or recurring).', + 'stripe' + ); + + $tags['card-brand'] = esc_html__( + 'The brand of the card used. Visa, Amex, etc.', + 'stripe' + ); + + $tags['card-last4'] = esc_html__( + 'The last four digits of the card used.', + 'stripe' + ); + $tags['tax-amount'] = esc_html__( 'The calculated tax amount based on the total and the tax percent setting.', 'stripe' @@ -522,14 +656,14 @@ function __unstable_get_tags_and_descriptions() { // phpcs:ignore PHPCompatibili } /** - * Prints a list of available template tags and their descriptions. + * Prints a list of available smart tags and their descriptions. * * @todo Temporary until this can be more easily generated through a tag registry. * * @since 4.0.0 * - * @param string $description Template tag description. - * @param array $tags List of template tags and descriptions. + * @param string $description smart tag description. + * @param array $tags List of smart tags and descriptions. */ function __unstable_print_tag_list( $description, $tags ) { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore printf( @@ -539,7 +673,7 @@ function __unstable_print_tag_list( $description, $tags ) { // phpcs:ignore PHPC printf( '

%s

', - esc_html__( 'Available template tags:', 'stripe' ) + esc_html__( 'Available smart tags:', 'stripe' ) ); foreach ( $tags as $tag_id => $description ) { diff --git a/includes/core/payments/payment-confirmation.php b/includes/core/payments/payment-confirmation.php index a4a33387..790c54ac 100644 --- a/includes/core/payments/payment-confirmation.php +++ b/includes/core/payments/payment-confirmation.php @@ -59,7 +59,7 @@ function get_confirmation_data( $customer_id = false, $session_id = false, $form * @since 3.6.2 * * @param int $form_id ID of the form the payment was created from. - * @param array $payment_confirmation_data Array of data to send to the Payment Confirmation template tags. + * @param array $payment_confirmation_data Array of data to send to the Payment Confirmation smart tags. */ $form_id = apply_filters( 'simpay_payment_confirmation_form_id', @@ -147,7 +147,7 @@ function get_confirmation_data( $customer_id = false, $session_id = false, $form * * @since 3.6.0 * - * @param array $payment_confirmation_data Array of data to send to the Payment Confirmation template tags. + * @param array $payment_confirmation_data Array of data to send to the Payment Confirmation smart tags. */ $payment_confirmation_data = apply_filters( 'simpay_payment_confirmation_data', $payment_confirmation_data ); diff --git a/includes/core/post-types/simple-pay/edit-form-payment-page.php b/includes/core/post-types/simple-pay/edit-form-payment-page.php new file mode 100644 index 00000000..6441b76d --- /dev/null +++ b/includes/core/post-types/simple-pay/edit-form-payment-page.php @@ -0,0 +1,173 @@ + 'simpay-form-settings-payment-page-education', + ) + ); + + if ( true === $dismissed_notice ) { + return; + } + + $features_url = simpay_docs_link( + 'Payment Pages', + 'how-to-use-payment-pages', + 'form-payment-page-settings', + true + ); + + include_once SIMPLE_PAY_DIR . '/views/admin-education-payment-form-payment-page-settings.php'; // @phpstan-ignore-line +} +add_action( + 'simpay_form_settings_payment_page_panel', + __NAMESPACE__ . '\\payment_page_education' +); + +/** + * Adds the "Payment Page Mode" setting. + * + * @since 4.5.0 + * + * @param int $post_id Payment Form ID. + * @return void + */ +function payment_page_enable( $post_id ) { + $structure = get_option( 'permalink_structure' ); + + ?> + + + + + + + + +
+ + + + + is_pro( 'professional', '>=' ) && + 'yes' === $enable_payment_page ? 'yes' : 'no' + ); + + $upgrade_title = __( + 'Unlock Payment Pages', + 'stripe' + ); + + $upgrade_description = __( + 'We\'re sorry, creating dedicated payment pages is not available on your plan. Please upgrade to the Professional plan or higher to unlock this and other awesome features.', + 'stripe' + ); + + $upgrade_url = simpay_pro_upgrade_url( + 'form-payment-page-settings', + 'Payment Page Mode' + ); + + $upgrade_purchased_url = simpay_docs_link( + 'Payment Page Mode (already purchased)', + 'upgrading-wp-simple-pay-lite-to-pro', + $license->is_lite() + ? 'upgrading-wp-simple-pay-lite-to-pro' + : 'activate-wp-simple-pay-pro-license', + true + ); + ?> + + + + +

+ tag, do not translate. %2$s Closing tag, do not translate. */ + __( + 'Heads up! To use Payment Pages, please configure your site\'s permalinks on the WordPress %1$sPermalink Settings%2$s page.', + 'stripe' + ), + '', + Utils\get_external_link_markup() . '' + ), + array( + 'a' => array( + 'href' => true, + 'rel' => true, + 'target' => true, + 'class' => true, + ), + 'span' => array( + 'class' => true, + ), + ) + ); + ?> +

+ +
+ + $image_url, 'class' => array( 'simpay-field-text', + 'simpay-field-image-url', ), ) ); diff --git a/includes/core/post-types/simple-pay/edit-form.php b/includes/core/post-types/simple-pay/edit-form.php index 784f431c..a8114164 100644 --- a/includes/core/post-types/simple-pay/edit-form.php +++ b/includes/core/post-types/simple-pay/edit-form.php @@ -46,7 +46,7 @@ function add_preview_action( $post ) { ?> +
'', ); + $tabs['payment_page'] = array( + 'label' => esc_html__( 'Payment Page', 'stripe' ), + 'target' => 'payment-page-settings-panel', + 'icon' => '', + ); + /** * Filters the tabs for the Payment Form settings. * diff --git a/includes/core/post-types/simple-pay/list-table.php b/includes/core/post-types/simple-pay/list-table.php index 3d8e7a74..bd44d194 100644 --- a/includes/core/post-types/simple-pay/list-table.php +++ b/includes/core/post-types/simple-pay/list-table.php @@ -14,6 +14,24 @@ exit; } +/** + * Removes the Edit option from the bulk options dropdown. + * + * @since 4.5.0 + * + * @param array $actions payment form actions. + * @return array + */ +function remove_edit_from_bulk_actions( $actions ) { + + if ( isset( $actions['edit'] ) ) { + unset( $actions['edit'] ); + } + + return $actions; +} +add_filter( 'bulk_actions-edit-simple-pay', __NAMESPACE__ . '\\remove_edit_from_bulk_actions', 10, 1 ); + /** * Appends a previously set `post_title` to the "Company Name" field. * @@ -68,6 +86,26 @@ function row_actions( $actions, $post ) { // Remove "Quick Edit". unset( $actions['inline hide-if-no-js'] ); + // Update "View" to "View Payment Page", or remove if not enabled. + if ( isset( $actions['view'] ) ) { + /** @var string $payment_page_enabled */ + $payment_page_enabled = get_post_meta( + $post->ID, + '_enable_payment_page', + true + ); + + if ( 'yes' !== $payment_page_enabled ) { + unset( $actions['view'] ); + } else { + $actions['view'] = sprintf( + '%s', + get_permalink( $post->ID ), + esc_html__( 'View Payment Page', 'stripe' ) + ); + } + } + // Preview. $actions = simpay_add_to_array_after( 'simpay-preview', diff --git a/includes/core/post-types/simple-pay/register.php b/includes/core/post-types/simple-pay/register.php index 84a0ef5b..cb199ae8 100644 --- a/includes/core/post-types/simple-pay/register.php +++ b/includes/core/post-types/simple-pay/register.php @@ -90,7 +90,7 @@ function register() { 'labels' => $labels, 'menu_icon' => \simpay_get_svg_icon_url(), 'public' => false, - 'publicly_queryable' => false, + 'publicly_queryable' => true, 'exclude_from_search' => true, 'show_ui' => true, 'show_in_menu' => true, @@ -98,12 +98,12 @@ function register() { 'show_in_rest' => true, 'show_in_admin_bar' => true, 'archive_in_nav_menus' => false, - 'query_var' => 'simpay-preview', 'rewrite' => false, 'capability_type' => 'post', 'map_meta_cap' => true, 'has_archive' => false, 'hierarchical' => false, + 'exclude_from_search' => true, 'supports' => array( 'title', ), @@ -150,32 +150,36 @@ function add_rest_fields() { add_action( 'rest_api_init', __NAMESPACE__ . '\\add_rest_fields' ); /** - * Filters the Post's (Payment Form) preview link. + * Filters the Post's (Payment Form) link. * * @since 3.8.0 + * @since 4.5.0 Adds compatibility with Payment Pages. * * @param string $link Permalink. * @param \WP_Post $post Current Payment Form (post) object. * @return string */ -function previewlink( $link, $post ) { - if ( 'simple-pay' !== $post->post_type ) { +function permalink( $link, $post ) { + if ( 'simple-pay' !== get_post_type( $post ) ) { return $link; } - $link = add_query_arg( - array( - 'simpay-preview' => $post->ID, - ), - home_url() + $payment_page_enabled = get_post_meta( + $post->ID, + '_enable_payment_page', + true ); - return $link; + if ( 'yes' !== $payment_page_enabled ) { + return $link; + } + + return home_url( $post->post_name ); } -add_filter( 'preview_post_link', __NAMESPACE__ . '\\previewlink', 10, 2 ); +add_filter( 'post_type_link', __NAMESPACE__ . '\\permalink', 10, 2 ); /** - * Filters the Post's (Payment Form) link. + * Filters the Post's (Payment Form) preview link. * * @since 3.8.0 * @@ -183,10 +187,21 @@ function previewlink( $link, $post ) { * @param \WP_Post $post Current Payment Form (post) object. * @return string */ -function permalink( $link, $post ) { - return previewlink( $link, $post ); +function previewlink( $link, $post ) { + if ( 'simple-pay' !== $post->post_type ) { + return $link; + } + + $link = add_query_arg( + array( + 'simpay-preview' => $post->ID, + ), + home_url() + ); + + return $link; } -add_filter( 'post_type_link', __NAMESPACE__ . '\\permalink', 10, 2 ); +add_filter( 'preview_post_link', __NAMESPACE__ . '\\previewlink', 10, 2 ); /** * Adds messages for general actions. @@ -199,7 +214,7 @@ function permalink( $link, $post ) { function updated_messages( $messages ) { global $post; - $open = ''; + $open = ''; $close = ''; $messages['simple-pay'] = array( diff --git a/includes/core/rest-api/class-controller.php b/includes/core/rest-api/class-controller.php index 9484337d..2fed1f46 100644 --- a/includes/core/rest-api/class-controller.php +++ b/includes/core/rest-api/class-controller.php @@ -45,7 +45,7 @@ abstract class Controller extends WP_REST_Controller { * * @since 4.2.0 * - * @param array $checks List of permission checks to call. + * @param array $checks List of permission checks to call. * @param \WP_REST_Request $request Incoming REST API request data. * @return \WP_Error|true Error if a permission check fails. */ @@ -150,6 +150,100 @@ protected function check_form_nonce( $request ) { return true; } + /** + * Determines if the REST API request contains all required fields. + * + * @since 4.5.0 + * + * @param \WP_REST_Request $request Incoming REST API request data. + * @return \WP_Error|true Error if the required fields are missing. + */ + protected function check_required_fields( $request ) { + $invalid_request = new \WP_Error( + 'rest_forbidden', + __( 'Invalid request. Please try again.', 'stripe' ), + array( + 'status' => rest_authorization_required_code(), + ) + ); + + if ( ! isset( $request['form_id'] ) ) { + return $invalid_request; + } + + $form_id = intval( $request['form_id'] ); + $form = simpay_get_form( $form_id ); + + if ( false === $form ) { + return $invalid_request; + } + + $form_values = $request['form_values']; + $custom_fields = simpay_get_saved_meta( $form->id, '_custom_fields' ); + + foreach ( $custom_fields as $custom_field_type => $custom_field_types ) { + foreach ( $custom_field_types as $field ) { + if ( ! isset( $field['required'] ) ) { + continue; + } + + // Check custom fields. + if ( isset( $field['metadata'] ) ) { + if ( empty( $field['metadata'] ) ) { + $id = isset( $field['uid'] ) + ? $field['uid'] + : ''; + + $meta_key = 'simpay-form-' . $form->id . '-field-' . $id; + } else { + $meta_key = $field['metadata']; + } + + if ( empty( $form_values['simpay_field'][ $meta_key ] ) ) { + return $invalid_request; + } + } + + // Check Customer fields. + switch ( $custom_field_type ) { + case 'address': + $address_parts = array( + 'line1', + 'city', + 'state', + 'postal_code', + 'country', + ); + + foreach ( $address_parts as $address_part ) { + if ( empty( $form_values[ 'simpay_billing_address_' . $address_part ] ) ) { + return $invalid_request; + } + } + + break; + case 'tax_id': + if ( + empty( $form_values['simpay_tax_id'] ) || + empty( $form_values['simpay_tax_id_type'] ) + ) { + return $invalid_request; + } + + break; + case 'customer_name': + case 'telephone': + case 'email': + if ( empty( $form_values[ 'simpay_' . $custom_field_type ] ) ) { + return $invalid_request; + } + } + } + } + + return true; + } + /** * Determines if the REST API request contains a valid Customer nonce. * @@ -220,4 +314,5 @@ protected function check_customer_nonce( $request ) { return true; } + } diff --git a/includes/core/rest-api/v2/class-checkout-session-controller.php b/includes/core/rest-api/v2/class-checkout-session-controller.php index a723eafb..5cae23ef 100644 --- a/includes/core/rest-api/v2/class-checkout-session-controller.php +++ b/includes/core/rest-api/v2/class-checkout-session-controller.php @@ -73,6 +73,7 @@ public function create_item_permissions_check( $request ) { $checks = array( 'rate_limit', 'form_nonce', + 'required_fields', ); return $this->permission_checks( $checks, $request ); @@ -167,10 +168,15 @@ public function create_item( $request ) { $customer_id ); + $license = simpay_get_license(); + return new \WP_REST_Response( array( - 'sessionId' => $session->id, - 'session' => $session, + 'sessionId' => $session->id, + 'session' => $session, + 'redirect_type' => $license->is_pro( 'professional' ) + ? 'manual' + : 'stripe', ) ); } catch ( \Exception $e ) { @@ -191,6 +197,7 @@ public function create_item( $request ) { * @param array $form_values Values of named fields in the payment form. * @param int $customer_id Stripe Customer ID. * @return array + * @throws \Exception If payment form data is invalid. */ function get_args_from_payment_form_request( $form, diff --git a/includes/core/rest-api/v2/class-customer-controller.php b/includes/core/rest-api/v2/class-customer-controller.php index c153deff..38a65294 100644 --- a/includes/core/rest-api/v2/class-customer-controller.php +++ b/includes/core/rest-api/v2/class-customer-controller.php @@ -78,6 +78,7 @@ public function create_item_permissions_check( $request ) { $checks = array( 'rate_limit', 'form_nonce', + 'required_fields', ); return $this->permission_checks( $checks, $request ); @@ -101,7 +102,7 @@ public function create_item_permissions_check( $request ) { public function create_item( $request ) { try { // Do not proceed if attempting to set the PaymentMethod or Source (legacy flow). - if ( isset( $request['payment_method_id'], $request['source_id' ] ) ) { + if ( isset( $request['payment_method_id'], $request['source_id'] ) ) { throw new \Exception( __( 'Unable to complete payment.', 'stripe' ) ); diff --git a/includes/core/rest-api/v2/class-paymentintent-controller.php b/includes/core/rest-api/v2/class-paymentintent-controller.php index 592e2b39..8cc5d771 100644 --- a/includes/core/rest-api/v2/class-paymentintent-controller.php +++ b/includes/core/rest-api/v2/class-paymentintent-controller.php @@ -72,6 +72,7 @@ public function create_item_permissions_check( $request ) { $checks = array( 'rate_limit', 'form_nonce', + 'required_fields', 'customer_nonce', ); @@ -128,6 +129,12 @@ public function create_item( $request ) { ); } + if ( 'stripe_checkout' === $form->get_display_type() ) { + throw new \Exception( + esc_html__( 'Invalid request. Please try again.', 'stripe' ) + ); + } + // Handle legacy form processing. Legacy\Hooks\simpay_process_form( $form, $form_data, $form_values, $customer_id ); diff --git a/package.json b/package.json index bf5b48f1..3ca60f9b 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.4.71", + "version": "4.5.0", "license": "GPL-2.0-or-later", "homepage": "https://wpsimplepay.com/", "repository": { diff --git a/readme.txt b/readme.txt index 66bd893b..7f17d43d 100644 --- a/readme.txt +++ b/readme.txt @@ -69,7 +69,7 @@ By upgrading to WP Simple Pay Pro, you also get access to one-on-one help from o > Brian Casel, Founder of Audience Ops -There is a small 2% credit card fee per-transaction plus Stripe fees while using WP Simple Pay Lite. [Upgrade to Pro](https://wpsimplepay.com/?utm_source=wporg&utm_campaign=lite-plugin&utm_medium=link) for no added credit card form fees and priority support. +There is a small 3% credit card fee per-transaction plus Stripe fees while using WP Simple Pay Lite. [Upgrade to Pro](https://wpsimplepay.com/?utm_source=wporg&utm_campaign=lite-plugin&utm_medium=link) for no added credit card form fees and priority support. = Who is WP Simple Pay For? = @@ -270,9 +270,9 @@ Payment forms are embedded via shortcodes and can be placed anywhere a shortcode Stripe has a per-transaction charge which varies by country. [See Stripe’s pricing](https://stripe.com/pricing) for details. -Besides Stripe's pricing, WP Simple Pay charges an additional 2% fee for transactions processed through WP Simple Pay Lite (the free version of the plugin). +Besides Stripe's pricing, WP Simple Pay charges an additional 3% fee for transactions processed through WP Simple Pay Lite (the free version of the plugin). -The 2% additional fee is removed by [upgrading to WP Simple Pay Pro](https://wpsimplepay.com/?utm_source=wporg&utm_campaign=lite-plugin&utm_medium=link). +The 3% additional fee is removed by [upgrading to WP Simple Pay Pro](https://wpsimplepay.com/?utm_source=wporg&utm_campaign=lite-plugin&utm_medium=link). = Can I offer coupon codes to my site visitors? = @@ -297,6 +297,14 @@ The 2% additional fee is removed by [upgrading to WP Simple Pay Pro](https://wps == Changelog == += Stripe Payment Forms v4.5.0 - August 16, 2022 = + +* New: Use `{customer-name}` smart tag to display the customer's name in payment confirmations. +* Fix: Hide output of payment forms that are not fully published. +* Fix: Remove "Edit" from bulk options. +* Fix: Update composer autoload to avoid namespace conflicts. +* Fix: Update non-licensed additional fee to 3%. + = Stripe Payment Forms v4.4.7.1 - July 12, 2022 = * Fix: Only enqueue button block scripts in the block editor. diff --git a/src/FormPreview/FormPreviewOutput.php b/src/FormPreview/FormPreviewOutput.php index f470ed11..b8a62956 100644 --- a/src/FormPreview/FormPreviewOutput.php +++ b/src/FormPreview/FormPreviewOutput.php @@ -50,7 +50,20 @@ public function maybe_output_preview() { ); } - $id = absint( $_GET['simpay-preview'] ); + $id = absint( $_GET['simpay-preview'] ); + $form = simpay_get_form( $id ); + + if ( false === $form ) { + wp_safe_redirect( + add_query_arg( + array( + 'post_type' => 'simple-pay', + ), + admin_url( 'edit.php' ) + ) + ); + exit; + } $edit_form_url = add_query_arg( array( @@ -60,6 +73,11 @@ public function maybe_output_preview() { admin_url( 'post.php' ) ); + $payment_page_enabled = get_post_meta( $id, '_enable_payment_page', true ); + $payment_page_url = 'yes' === $payment_page_enabled + ? get_permalink( $id ) + : ''; + wp_enqueue_script( 'clipboard' ); wp_enqueue_script( 'wp-a11y' ); wp_enqueue_style( 'dashicons' ); diff --git a/src/PaymentPage/PaymentPageOutput.php b/src/PaymentPage/PaymentPageOutput.php new file mode 100644 index 00000000..91318630 --- /dev/null +++ b/src/PaymentPage/PaymentPageOutput.php @@ -0,0 +1,498 @@ +events = $events; + } + + /** + * {@inheritdoc} + */ + public function get_subscribed_events() { + if ( true === $this->license->is_lite() ) { + return array(); + } + + return array( + 'parse_request' => 'parse_pretty_request', + ); + } + + /** + * Parses "pretty" permalink requests and shows a payment form if needed. + * + * @since 4.5.0 + * + * @param \WP $wp WordPress request. + * @return void + */ + public function parse_pretty_request( $wp ) { + if ( ! empty( $wp->query_vars['name'] ) ) { + $request = $wp->query_vars['name']; + } + + if ( empty( $request ) && ! empty( $wp->query_vars['pagename'] ) ) { + $request = $wp->query_vars['pagename']; + } + + if ( empty( $request ) ) { + $request = ! empty( $_SERVER['REQUEST_URI'] ) + ? esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) ) + : ''; + + $path = (string) wp_parse_url( $request, PHP_URL_PATH ); + $request = ! empty( $request ) ? sanitize_key( $path ) : ''; + } + + $payment_form_obj = get_page_by_path( $request, OBJECT, 'simple-pay' ); + + if ( null === $payment_form_obj ) { + return; + } + + // Set the "Success Page" redirect _before_ we call the form, but when + // we are pretty sure we are on a Payment Page. + $this->events->add_callback( + 'simpay_payment_success_page', + array( $this, 'set_self_redirect' ), + 10, + 2 + ); + + $this->form = simpay_get_form( $payment_form_obj->ID ); + + if ( + false === $this->form || + false === $this->is_payment_page_enabled( $payment_form_obj->ID ) + ) { + return; + } + + // Override page URLs with the same slug. + if ( ! empty( $wp->query_vars['pagename'] ) ) { + $wp->query_vars['name'] = $wp->query_vars['pagename']; + unset( $wp->query_vars['pagename'] ); + } + + if ( empty( $wp->query_vars['name'] ) ) { + $wp->query_vars['name'] = $request; + } + + $wp->query_vars['post_type'] = 'simple-pay'; + + // Unset 'error' query var that may appear if custom permalink structures used. + unset( $wp->query_vars['error'] ); + + $this->compat_hooks(); + $this->output( $payment_form_obj->ID ); + } + + /** + * Additional compatibility. + * + * @since 4.5.0 + * + * @return void + */ + private function compat_hooks() { + // Remove data. + $this->events->remove_callback( + 'wp_head', + 'adjacent_posts_rel_link_wp_head' + ); + $this->events->remove_callback( + 'wp_head', + 'wp_oembed_add_discovery_links' + ); + $this->events->remove_callback( + 'wp_head', + 'wp_oembed_add_host_js' + ); + + // Update tag. + // Remove conditional title tag rendering... + $this->events->remove_callback( + 'wp_head', + '_wp_render_title_tag', + 1 + ); + + // ...and make it unconditional. + $this->events->add_callback( + 'wp_head', + '_block_template_render_title_tag', + 1 + ); + + // Override parts. + $this->events->add_callback( + 'document_title_parts', + array( $this, 'change_payment_page_title' ) + ); + + // Asset Compatibility. + $this->events->add_callback( + 'wp_print_styles', + array( $this, 'css_compatibility_mode' ), + 99 + ); + + $this->events->add_callback( + 'wp_print_scripts', + array( $this, 'js_compatibility_mode' ), + 99 + ); + + /** + * Allows Payment Page compatibility to be added/modified. + * + * @since 4.5.0 + * + * @param \SimplePay\Core\EventManagement\EventManager $events + */ + do_action( 'simpay_before_payment_page_output', $this->events ); + } + + /** + * Update the payment confirmation URL if receipt should show on the same page. + * + * @since 4.5.0 + * + * @param string $url Success page URL. + * @param int $form_id Payment form ID. + * @return string + */ + public function set_self_redirect( $url, $form_id ) { + // Return standard success URL if Payment Page is not enabled. + if ( false === $this->is_payment_page_enabled( $form_id ) ) { + return $url; + } + + $self_confirmation = get_post_meta( + $form_id, + '_payment_page_self_confirmation', + true + ); + + // Return standard success URL if self confirmation is not enabled. + if ( 'no' === $self_confirmation ) { + return $url; + } + + $redirect_url = get_permalink( $form_id ); + + if ( ! is_string( $redirect_url ) ) { + return $url; + } + + return $redirect_url; + } + + /** + * Use the payment form's title as the page title. + * + * @since 4.5.0 + * + * @param array<string, string> $title Title parts. + * @return array<string, string> + */ + public function change_payment_page_title( $title ) { + if ( false === $this->form ) { + return $title; + } + + /** @var string $form_title */ + $form_title = get_post_meta( + $this->form->id, + '_company_name', + true + ); + + $title['title'] = $form_title; + + return $title; + } + + /** + * Outputs the payment page. + * + * @since 4.5.0 + * + * @param int $form_id Payment forM ID. + * @return void + */ + private function output( $form_id ) { + /** @var string $background_color */ + $background_color = get_post_meta( + $form_id, + '_payment_page_background_color', + true + ); + + $darker_background_color = $this->adjust_color_brightness( + $background_color, + -20 + ); + + $title_desc = get_post_meta( + $form_id, + '_payment_page_title_description', + true + ); + + $footer_text = get_post_meta( + $form_id, + '_payment_page_footer_text', + true + ); + + $powered_by = get_post_meta( + $form_id, + '_payment_page_powered_by', + true + ); + + $image = get_post_meta( + $form_id, + '_payment_page_image_url', + true + ); + + $title = get_post_meta( + $form_id, + '_company_name', + true + ); + + $desc = get_post_meta( + $form_id, + '_item_description', + true + ); + + $is_confirmation = ! empty( + Payment_Confirmation\get_confirmation_data() + ); + + include_once SIMPLE_PAY_DIR . '/views/payment-page-output.php'; // @phpstan-ignore-line + exit; + } + + /** + * Unload CSS potentially interfering with Payment Pages. + * + * @since 4.5.0 + * + * @return void + */ + public function css_compatibility_mode() { + $enable_css_compatibility_mode = true; + + /** + * Filters if "CSS Compatibility" mode should be active for Payment Pages. + * + * This removes all non-WP Simple Pay styles from the page. + * + * @since 4.5.0 + * + * @param bool $enable_css_compatibility_mode Enable "CSS Compatibility" mode for payment pages. + */ + $enable_css_compatibility_mode = apply_filters( + 'simpay_payment_page_css_compatibility_mode', + $enable_css_compatibility_mode + ); + + if ( false === $enable_css_compatibility_mode ) { + return; + } + + $this->asset_compatibility_mode( 'css' ); + } + + /** + * Unload JS potentially interfering with Payment Pages. + * + * @since 4.5.0 + * + * @return void + */ + public function js_compatibility_mode() { + $enable_js_compatibility_mode = true; + + /** + * Filters if "JS Compatibility" mode should be active for Payment Pages. + * + * This removes all non-WP Simple Pay styles from the page. + * + * @since 4.5.0 + * + * @param bool $enable_js_compatibility_mode Enable "JS Compatibility" mode for payment pages. + */ + $enable_js_compatibility_mode = apply_filters( + 'simpay_payment_page_js_compatibility_mode', + $enable_js_compatibility_mode + ); + + if ( false === $enable_js_compatibility_mode ) { + return; + } + + $this->asset_compatibility_mode( 'js' ); + } + + /** + * Dequeues assets (CSS or JS) that are not a part of the plugin. + * + * @since 4.5.0 + * + * @param string $asset_type Asset type. `css` or `js`. + * @return void + */ + private function asset_compatibility_mode( $asset_type ) { + $assets = 'css' === $asset_type ? wp_styles() : wp_scripts(); + + if ( empty( $assets->queue ) ) { + return; + } + + $simpay_payment_page_asset_handle_allowlist = array( + 'wp-', + 'simpay-', + 'sandhills', + ); + + /** + * Filters the list of asset handles that should be allowed on Payment Pages. + * + * @since 4.5.0 + * + * @param array<string> $simpay_payment_page_asset_handle_allowlist List of asset handles that should be allowed. + */ + $simpay_payment_page_asset_handle_allowlist = apply_filters( + 'simpay_payment_page_asset_handle_allowlist', + $simpay_payment_page_asset_handle_allowlist + ); + + $non_simpay_assets = array_filter( + $assets->queue, + function( $handle ) use ( $simpay_payment_page_asset_handle_allowlist ) { + $allowed = true; + + foreach ( $simpay_payment_page_asset_handle_allowlist as $allowed_handle ) { + if ( false !== strpos( $handle, $allowed_handle ) ) { + $allowed = false; + } + } + + return $allowed; + } + ); + + foreach ( $non_simpay_assets as $handle ) { + if ( 'css' === $asset_type ) { + wp_dequeue_style( $handle ); + } else { + wp_dequeue_script( $handle ); + } + } + } + + /** + * Determines if Payment Page mode is enabled for a payment form ID. + * + * @since 4.5.0 + * + * @param int $form_id Payment form ID. + * @return bool + */ + private function is_payment_page_enabled( $form_id ) { + $enabled = get_post_meta( + $form_id, + '_enable_payment_page', + true + ); + + return 'yes' === $enabled; + } + + /** + * Returns a darkened version of a hexidecimal code. + * + * @since 4.5.0 + * + * @param string $color Hexidecimal code to darken. + * @param int $steps Number of steps to adjust. + * @return string + */ + private function adjust_color_brightness( $color, $steps ) { + $steps = max( -255, min( 255, $steps ) ); + $hex = str_replace( '#', '', $color ); + + if ( strlen( $hex ) === 3 ) { + $hex = + str_repeat( substr( $hex, 0, 1 ), 2 ) . + str_repeat( substr( $hex, 1, 1 ), 2 ) . + str_repeat( substr( $hex, 2, 1 ), 2 ); + } + + // Split into three parts: R, G and B. + $color_parts = str_split( $hex, 2 ); + $return = '#'; + + foreach ( $color_parts as $color ) { + $color = hexdec( $color ); + $color = (int) max( 0, min( 255, $color + $steps ) ); + $return .= str_pad( dechex( $color ), 2, '0', STR_PAD_LEFT ); + } + + return $return; + } + +} diff --git a/src/PaymentPage/PaymentPageServiceProvider.php b/src/PaymentPage/PaymentPageServiceProvider.php new file mode 100644 index 00000000..78d2d625 --- /dev/null +++ b/src/PaymentPage/PaymentPageServiceProvider.php @@ -0,0 +1,52 @@ +<?php +/** + * Payment Page: Service provider + * + * @package SimplePay + * @subpackage Core + * @copyright Copyright (c) 2022, Sandhills Development, LLC + * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License + * @since 4.5.0 + */ + +namespace SimplePay\Core\PaymentPage; + +use SimplePay\Core\AbstractPluginServiceProvider; + +/** + * PaymentPageServiceProvider class. + * + * @since 4.5.0 + */ +class PaymentPageServiceProvider extends AbstractPluginServiceProvider { + + /** + * {@inheritdoc} + */ + public function get_services() { + return array(); + } + + /** + * {@inheritdoc} + */ + public function get_subscribers() { + return array( + 'payment-page-output', + ); + } + + /** + * {@inheritdoc} + */ + public function register() { + $container = $this->getContainer(); + + $container->share( + 'payment-page-output', + PaymentPageOutput::class + ) + ->withArgument( $container->get( 'event-manager' ) ); + } + +} diff --git a/src/Plugin.php b/src/Plugin.php index 7ac01cf3..72abf23a 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -205,6 +205,7 @@ private function get_service_providers() { new FormPreview\FormPreviewServiceProvider, new Integration\IntegrationServiceProvider, new License\LicenseServiceProvider, + new PaymentPage\PaymentPageServiceProvider, new RestApi\RestApiServiceProvider, new StripeConnect\StripeConnectServiceProvider, new Transaction\TransactionServiceProvider, diff --git a/src/StripeConnect/ApplicationFee.php b/src/StripeConnect/ApplicationFee.php index 92bdb90d..17d1d9bc 100644 --- a/src/StripeConnect/ApplicationFee.php +++ b/src/StripeConnect/ApplicationFee.php @@ -109,7 +109,7 @@ public function maybe_show_application_fee( $message ) { $message .= sprintf( /* translators: %1$s Opening strong tag, do not translate. %2$s Closing strong tag, do not translate. %3$s Opening anchor tag, do not translate. %4$s Closing anchor tag, do not translate. */ __( - '%1$sPay as you go pricing%2$s: 2%% fee per-transaction + Stripe fees. %3$sUpgrade to Pro%4$s for no added fees and priority support.', + '%1$sPay as you go pricing%2$s: 3%% fee per-transaction + Stripe fees. %3$sUpgrade to Pro%4$s for no added fees and priority support.', 'stripe' ), '<strong>', @@ -130,7 +130,7 @@ public function maybe_show_application_fee( $message ) { $message .= sprintf( /* translators: %1$s Opening strong tag, do not translate. %2$s Closing strong tag, do not translate. %3$s Opening anchor tag, do not translate. %4$s Closing anchor tag, do not translate. */ __( - '%1$sPay as you go pricing%2$s: 2%% fee per-transaction + Stripe fees. %3$sActivate your license%4$s to remove additional fees and unlock powerful features.', + '%1$sPay as you go pricing%2$s: 3%% fee per-transaction + Stripe fees. %3$sActivate your license%4$s to remove additional fees and unlock powerful features.', 'stripe' ), '<strong>', @@ -148,7 +148,7 @@ public function maybe_show_application_fee( $message ) { $message .= sprintf( /* translators: %1$s Opening strong tag, do not translate. %2$s Closing strong tag, do not translate. %3$s Opening anchor tag, do not translate. %4$s Closing anchor tag, do not translate. */ __( - '%1$sPay as you go pricing%2$s: 2%% fee per-transaction + Stripe fees. %3$sRenew your license%4$s to remove additional fees and unlock powerful features.', + '%1$sPay as you go pricing%2$s: 3%% fee per-transaction + Stripe fees. %3$sRenew your license%4$s to remove additional fees and unlock powerful features.', 'stripe' ), '<strong>', @@ -177,7 +177,7 @@ public function maybe_add_one_time_application_fee( $payment_intent_args ) { } $payment_intent_args['application_fee_amount'] = round( - $payment_intent_args['amount'] * 0.02, + $payment_intent_args['amount'] * 0.03, 0 ); @@ -197,7 +197,7 @@ public function maybe_add_subscription_application_fee( $subscription_args ) { return $subscription_args; } - $subscription_args['application_fee_percent'] = 2; + $subscription_args['application_fee_percent'] = 3; return $subscription_args; } diff --git a/stripe-checkout.php b/stripe-checkout.php index 00bb8dbc..125967cb 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.4.7.1 + * Version: 4.5.0 * Text Domain: stripe * Domain Path: /languages */ @@ -50,7 +50,7 @@ // // Lite/Pro-specific. // - define( 'SIMPLE_PAY_VERSION', '4.4.7.1' ); + define( 'SIMPLE_PAY_VERSION', '4.5.0' ); 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 0e2717ac..888b754c 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -4,4 +4,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit08c6010c3476ae9184e966bd98da33cc::getLoader(); +return ComposerAutoloaderInit274b67ee9371824c320bb5f21b2feecb::getLoader(); diff --git a/vendor/composer/autoload_psr4.php b/vendor/composer/autoload_psr4.php index 673094b6..9d82e6d7 100644 --- a/vendor/composer/autoload_psr4.php +++ b/vendor/composer/autoload_psr4.php @@ -6,12 +6,7 @@ $baseDir = dirname($vendorDir); return array( - 'Stripe\\' => array($vendorDir . '/stripe/stripe-php/lib'), 'SimplePay\\Vendor\\Stripe\\' => array($baseDir . '/lib/Stripe/lib'), 'SimplePay\\Vendor\\' => array($baseDir . '/lib'), 'SimplePay\\Core\\' => array($baseDir . '/src'), - 'Psr\\Container\\' => array($vendorDir . '/psr/container/src'), - 'League\\Container\\' => array($vendorDir . '/league/container/src'), - 'Interop\\Container\\' => array($vendorDir . '/container-interop/container-interop/src/Interop/Container'), - 'BerlinDB\\' => array($vendorDir . '/berlindb/core/src'), ); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 47614912..e6c0542e 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit08c6010c3476ae9184e966bd98da33cc +class ComposerAutoloaderInit274b67ee9371824c320bb5f21b2feecb { private static $loader; @@ -22,15 +22,15 @@ public static function getLoader() return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInit08c6010c3476ae9184e966bd98da33cc', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit274b67ee9371824c320bb5f21b2feecb', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); - spl_autoload_unregister(array('ComposerAutoloaderInit08c6010c3476ae9184e966bd98da33cc', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit274b67ee9371824c320bb5f21b2feecb', 'loadClassLoader')); $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); if ($useStaticLoader) { require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit08c6010c3476ae9184e966bd98da33cc::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit274b67ee9371824c320bb5f21b2feecb::getInitializer($loader)); } else { $map = require __DIR__ . '/autoload_namespaces.php'; foreach ($map as $namespace => $path) { diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index a866d393..4f117add 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,39 +4,18 @@ namespace Composer\Autoload; -class ComposerStaticInit08c6010c3476ae9184e966bd98da33cc +class ComposerStaticInit274b67ee9371824c320bb5f21b2feecb { public static $prefixLengthsPsr4 = array ( 'S' => array ( - 'Stripe\\' => 7, 'SimplePay\\Vendor\\Stripe\\' => 24, 'SimplePay\\Vendor\\' => 17, 'SimplePay\\Core\\' => 15, ), - 'P' => - array ( - 'Psr\\Container\\' => 14, - ), - 'L' => - array ( - 'League\\Container\\' => 17, - ), - 'I' => - array ( - 'Interop\\Container\\' => 18, - ), - 'B' => - array ( - 'BerlinDB\\' => 9, - ), ); public static $prefixDirsPsr4 = array ( - 'Stripe\\' => - array ( - 0 => __DIR__ . '/..' . '/stripe/stripe-php/lib', - ), 'SimplePay\\Vendor\\Stripe\\' => array ( 0 => __DIR__ . '/../..' . '/lib/Stripe/lib', @@ -49,22 +28,6 @@ class ComposerStaticInit08c6010c3476ae9184e966bd98da33cc array ( 0 => __DIR__ . '/../..' . '/src', ), - 'Psr\\Container\\' => - array ( - 0 => __DIR__ . '/..' . '/psr/container/src', - ), - 'League\\Container\\' => - array ( - 0 => __DIR__ . '/..' . '/league/container/src', - ), - 'Interop\\Container\\' => - array ( - 0 => __DIR__ . '/..' . '/container-interop/container-interop/src/Interop/Container', - ), - 'BerlinDB\\' => - array ( - 0 => __DIR__ . '/..' . '/berlindb/core/src', - ), ); public static $classMap = array ( @@ -74,9 +37,9 @@ class ComposerStaticInit08c6010c3476ae9184e966bd98da33cc public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit08c6010c3476ae9184e966bd98da33cc::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit08c6010c3476ae9184e966bd98da33cc::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInit08c6010c3476ae9184e966bd98da33cc::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit274b67ee9371824c320bb5f21b2feecb::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit274b67ee9371824c320bb5f21b2feecb::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit274b67ee9371824c320bb5f21b2feecb::$classMap; }, null, ClassLoader::class); } diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index e838ef27..d8859d29 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -5,7 +5,7 @@ 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => '15ac55518e1e37aac2ff055debfa2851d3f58246', + 'reference' => 'f2de5005e75221eda2f7417c0ad7e67cc8722e16', 'name' => 'wpsimplepay/wp-simple-pay-pro-3', 'dev' => false, ), @@ -88,7 +88,7 @@ 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => '15ac55518e1e37aac2ff055debfa2851d3f58246', + 'reference' => 'f2de5005e75221eda2f7417c0ad7e67cc8722e16', 'dev_requirement' => false, ), ), diff --git a/views/admin-education-payment-form-instant-payouts-settings.php b/views/admin-education-payment-form-instant-payouts-settings.php index 0c2ee479..55a60b36 100644 --- a/views/admin-education-payment-form-instant-payouts-settings.php +++ b/views/admin-education-payment-form-instant-payouts-settings.php @@ -16,7 +16,7 @@ ?> <div - class="simpay-notice simpay-instant-payouts-notice" + class="simpay-notice simpay-form-settings-notice" data-nonce="<?php echo esc_attr( wp_create_nonce( 'simpay-dismiss-notice-simpay-form-settings-instant-payouts-education' ) ); ?>" data-id="simpay-form-settings-instant-payouts-education" data-lifespan="<?php echo esc_attr( DAY_IN_SECONDS * 180 ); // @phpstan-ignore-line ?>" diff --git a/views/admin-education-payment-form-payment-page-settings.php b/views/admin-education-payment-form-payment-page-settings.php new file mode 100644 index 00000000..00320713 --- /dev/null +++ b/views/admin-education-payment-form-payment-page-settings.php @@ -0,0 +1,63 @@ +<?php +/** + * Admin: Payment form payment page education + * + * @package SimplePay + * @subpackage Core + * @copyright Copyright (c) 2022, Sandhills Development, LLC + * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License + * @since 4.5.0 + * + * @var string $features_url URL to features page on website. + */ + +use SimplePay\Core\Utils; +?> + +<div + class="simpay-notice simpay-form-settings-notice" + data-nonce="<?php echo esc_attr( wp_create_nonce( 'simpay-dismiss-notice-simpay-form-settings-payment-page-education' ) ); ?>" + data-id="simpay-form-settings-payment-page-education" + data-lifespan="<?php echo esc_attr( YEAR_IN_SECONDS ); // @phpstan-ignore-line ?>" +> + <strong style="display: flex; align-items: center;"> + <svg style="width: 18px; height: 18px; margin-right: 5px;" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"> + <path stroke-linecap="round" stroke-linejoin="round" stroke="#635aff" d="M13 7h8m0 0v8m0-8l-8 8-4-4-6 6" /> + </svg> + <span><?php esc_html_e( 'Want to improve your form conversions?', 'stripe' ); ?></span> + </strong> + + <p> + <?php + echo wp_kses( + sprintf( + /* translators: %1$s Opening <a> tag, do not translate. %2$s Closing </a> tag, do not translate. */ + __( + '%1$sPayment Pages%2$s allow you to create completely custom “distraction-free” payment form landing pages to boost conversions (without writing any code).', + 'stripe' + ), + '<a href="' . esc_url( $features_url ) . '" target="_blank" rel="noopener noreferrer" class="simpay-external-link">', + Utils\get_external_link_markup() . '</a>' + ), + array( + 'a' => array( + 'href' => true, + 'rel' => true, + 'target' => true, + 'class' => true, + ), + 'span' => array( + 'class' => true, + ), + ) + ); + ?> + </p> + + <button type="button" class="button button-link simpay-notice-dismiss"> + × + <span class="screen-reader-text"> + <?php esc_html_e( 'Dismiss', 'stripe' ); ?> + </span> + </button> +</div> diff --git a/views/admin-form-preview-output.php b/views/admin-form-preview-output.php index 2f374033..ff35e04c 100644 --- a/views/admin-form-preview-output.php +++ b/views/admin-form-preview-output.php @@ -25,6 +25,13 @@ ); ?> + @@ -52,6 +59,7 @@