@automattic/newspack-blocks 1.63.0 → 1.64.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cache/babel/284040ebee104b9acefa5396c3e0e813.json.gz +0 -0
- package/.cache/babel/8dd4cbfb3acfc669fa6088658f2d11da.json.gz +0 -0
- package/.cache/babel/fa5e94ee19268ccad7790a312d6fca4e.json.gz +0 -0
- package/CHANGELOG.md +24 -0
- package/dist/donate/view.asset.php +1 -1
- package/dist/donate/view.css +1 -1
- package/dist/donate/view.rtl.css +1 -1
- package/dist/donateCheckoutBlock.asset.php +1 -0
- package/dist/donateCheckoutBlock.js +1 -0
- package/dist/donateCheckoutModal.asset.php +1 -0
- package/dist/donateCheckoutModal.css +1 -0
- package/dist/donateCheckoutModal.js +1 -0
- package/dist/donateCheckoutModal.rtl.css +1 -0
- package/dist/donateStreamlined.asset.php +1 -1
- package/dist/donateStreamlined.css +1 -1
- package/dist/donateStreamlined.js +1 -1
- package/dist/donateStreamlined.rtl.css +1 -1
- package/dist/editor.asset.php +1 -1
- package/dist/editor.css +1 -1
- package/dist/editor.js +1 -1
- package/dist/editor.rtl.css +1 -1
- package/dist/homepage-articles/view.asset.php +1 -1
- package/dist/homepage-articles/view.css +1 -1
- package/dist/homepage-articles/view.rtl.css +1 -1
- package/dist/tiersBased.asset.php +1 -1
- package/includes/class-newspack-blocks.php +33 -21
- package/newspack-blocks.php +2 -2
- package/package.json +3 -3
- package/src/block-patterns/homepage-posts-1.php +1 -1
- package/src/block-patterns/homepage-posts-10.php +1 -1
- package/src/block-patterns/homepage-posts-11.php +1 -1
- package/src/block-patterns/homepage-posts-12.php +1 -1
- package/src/block-patterns/homepage-posts-13.php +1 -1
- package/src/block-patterns/homepage-posts-14.php +1 -1
- package/src/block-patterns/homepage-posts-15.php +1 -1
- package/src/block-patterns/homepage-posts-16.php +1 -1
- package/src/block-patterns/homepage-posts-17.php +1 -1
- package/src/block-patterns/homepage-posts-18.php +1 -1
- package/src/block-patterns/homepage-posts-19.php +1 -1
- package/src/block-patterns/homepage-posts-2.php +1 -1
- package/src/block-patterns/homepage-posts-20.php +1 -1
- package/src/block-patterns/homepage-posts-21.php +1 -1
- package/src/block-patterns/homepage-posts-22.php +1 -1
- package/src/block-patterns/homepage-posts-23.php +1 -1
- package/src/block-patterns/homepage-posts-24.php +1 -1
- package/src/block-patterns/homepage-posts-25.php +1 -1
- package/src/block-patterns/homepage-posts-26.php +1 -1
- package/src/block-patterns/homepage-posts-27.php +1 -1
- package/src/block-patterns/homepage-posts-28.php +1 -1
- package/src/block-patterns/homepage-posts-29.php +1 -1
- package/src/block-patterns/homepage-posts-3.php +1 -1
- package/src/block-patterns/homepage-posts-30.php +1 -1
- package/src/block-patterns/homepage-posts-31.php +1 -1
- package/src/block-patterns/homepage-posts-4.php +1 -1
- package/src/block-patterns/homepage-posts-5.php +1 -1
- package/src/block-patterns/homepage-posts-6.php +1 -1
- package/src/block-patterns/homepage-posts-7.php +1 -1
- package/src/block-patterns/homepage-posts-8.php +1 -1
- package/src/block-patterns/homepage-posts-9.php +1 -1
- package/src/blocks/author-profile/editor.scss +1 -1
- package/src/blocks/donate/block.json +4 -0
- package/src/blocks/donate/checkout-modal/block.js +105 -0
- package/src/blocks/donate/checkout-modal/index.js +4 -0
- package/src/blocks/donate/checkout-modal/view.scss +172 -0
- package/src/blocks/donate/class-wp-rest-newspack-donate-controller.php +11 -1
- package/src/blocks/donate/frequency-based/style.scss +1 -0
- package/src/blocks/donate/frontend/class-newspack-blocks-donate-renderer-base.php +5 -0
- package/src/blocks/donate/frontend/class-newspack-blocks-donate-renderer.php +300 -5
- package/src/blocks/donate/streamlined/index.ts +2 -0
- package/src/blocks/donate/streamlined/style.scss +3 -2
- package/src/blocks/donate/styles/editor.scss +4 -4
- package/src/blocks/donate/styles/view.scss +96 -1
- package/src/blocks/donate/templates/checkout-form.php +115 -0
- package/src/blocks/donate/tiers-based/style.scss +2 -2
- package/src/blocks/donate/types.ts +2 -0
- package/src/blocks/homepage-articles/view.scss +3 -4
- package/src/setup/editor.scss +2 -2
- package/src/shared/sass/_colors.scss +3 -2
- package/vendor/autoload.php +1 -1
- package/vendor/composer/autoload_real.php +4 -4
- package/vendor/composer/autoload_static.php +2 -2
- package/vendor/composer/installed.php +2 -2
- package/webpack.config.js +2 -0
- package/.cache/babel/81d61663497adb3168841f4a2209d3f7.json.gz +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# [1.64.0-alpha.2](https://github.com/Automattic/newspack-blocks/compare/v1.64.0-alpha.1...v1.64.0-alpha.2) (2023-03-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **modal-checkout:** z-index when used w/ Campaigns ([d47c1e8](https://github.com/Automattic/newspack-blocks/commit/d47c1e84269a0e20fbbc8df204ab189cd3fc1144))
|
|
7
|
+
|
|
8
|
+
# [1.64.0-alpha.1](https://github.com/Automattic/newspack-blocks/compare/v1.63.0...v1.64.0-alpha.1) (2023-03-03)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* don't strip HTML from Homepage Posts Block excerpts ([#1364](https://github.com/Automattic/newspack-blocks/issues/1364)) ([46ee78c](https://github.com/Automattic/newspack-blocks/commit/46ee78c9acd10397ac602e3d972d4c10386accea))
|
|
14
|
+
* remove unneeded group & columns blocks from patterns ([#1377](https://github.com/Automattic/newspack-blocks/issues/1377)) ([7b9483a](https://github.com/Automattic/newspack-blocks/commit/7b9483a0179136a6bb401998ddd514bfad983fde))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* add popup info to donation block ([9493990](https://github.com/Automattic/newspack-blocks/commit/94939908765dcd06c77fd456ed597d9b8fbe61b3))
|
|
20
|
+
* add popup info to donation block ([949c2bc](https://github.com/Automattic/newspack-blocks/commit/949c2bce9077b744cf5f78bca008b2489a344787))
|
|
21
|
+
* **donate:** checkout modal for woocommerce ([#1355](https://github.com/Automattic/newspack-blocks/issues/1355)) ([0413ace](https://github.com/Automattic/newspack-blocks/commit/0413ace0d37a5175043c7843e450bb637a800ef8))
|
|
22
|
+
* **donate:** enquque modal checkout JS only if necessary ([f877408](https://github.com/Automattic/newspack-blocks/commit/f877408ab6d168276474bdf6ca87b8dc7cfa403f))
|
|
23
|
+
* process donation - make sure referer is relative path ([777685a](https://github.com/Automattic/newspack-blocks/commit/777685a82a261f21f2a09a5743fb86ee67b3c715))
|
|
24
|
+
|
|
1
25
|
# [1.63.0](https://github.com/Automattic/newspack-blocks/compare/v1.62.0...v1.63.0) (2023-02-28)
|
|
2
26
|
|
|
3
27
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'b604963c7e6c9d079e981bcf9912ef6c');
|
package/dist/donate/view.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.wpbnbd.is-style-default .wpbnbd__button{padding:.38rem .76rem}.wpbnbd.is-style-default .wpbnbd__button:focus,.wpbnbd.is-style-default .wpbnbd__button:hover{background:#f1f1f1}.wpbnbd.is-style-default .wpbnbd__tiers__selection>button{flex:1}.wpbnbd.is-style-alternate{border-color:#f1f1f1;border-radius:5px}.wpbnbd.is-style-alternate .thanks{margin:1.12rem}.wpbnbd.is-style-alternate .money-input{max-width:100%}.wpbnbd.is-style-alternate .money-input input[type=number]{max-width:100%;width:100%}.wpbnbd.is-style-alternate.untiered .input-container{margin:1.12rem}.wpbnbd.is-style-alternate.tiered .tiers .tier-label{background:#f1f1f1;border-color:#f1f1f1;margin:0;text-align:center}.wpbnbd.is-style-alternate.tiered .money-input{bottom:0;left:0;right:0}@media only screen and (min-width:782px){.wpbnbd.is-style-alternate .frequencies{padding-top:calc(1.14rem + 1.6em + 4px)}}.wpbnbd.is-style-alternate .freq-label,.wpbnbd.is-style-alternate .wpbnbd__tiers__selection{background:#f1f1f1;border-color:#f1f1f1}.wpbnbd.is-style-alternate .wpbnbd__tiers__selection{width:-webkit-min-content;width:-moz-min-content;width:min-content;margin-left:auto;margin-right:auto;padding:5px;border-radius:5px}.wpbnbd.is-style-alternate .wpbnbd__tiers__selection .wpbnbd__button{color:#111;padding:0 15px}.wpbnbd.is-style-alternate .freq-label{border-width:1px;padding:calc(.57rem + 1px) .5rem}@media only screen and (min-width:600px){.wpbnbd.is-style-alternate .freq-label{padding:calc(.57rem + 1px) .76rem}}.wpbnbd.is-style-alternate .wpbnbd__button{border:.19rem solid transparent}.wpbnbd.is-style-alternate .frequency input[type=radio]:checked+.freq-label:after,.wpbnbd.is-style-alternate .wpbnbd__button--active{background:#fff;border-radius:5px;border:.19rem solid #fff;box-shadow:0 0 0 1px #ccc}.wpbnbd.is-style-alternate .frequency input[type=radio]:checked+.freq-label:after{box-sizing:content-box;bottom:.19rem;content:"";display:block;left:.19rem;position:absolute;right:.19rem;top:.19rem;z-index:-1}.wpbnbd.is-style-alternate .frequency input[type=radio]:checked+.freq-label:hover{background:#f1f1f1}.wpbnbd.is-style-alternate .frequency input[type=radio]:checked~.tiers{display:grid;grid-gap:.28rem;grid-template-columns:repeat(2,1fr);margin:1.12rem}@media only screen and (min-width:600px){.wpbnbd.is-style-alternate .frequency input[type=radio]:checked~.tiers{grid-template-columns:repeat(4,1fr);grid-gap:.56rem}}.wpbnbd.is-style-alternate.is-style-default button{border-top-left-radius:0;border-top-right-radius:0;margin:0 -1px -1px;width:calc(100% + 2px)}.wpbnbd.is-style-minimal{border:none}.wpbnbd.is-style-minimal form:not([data-is-streamlined-form]){text-align:center}.wpbnbd.is-style-minimal .thanks{margin:1.12rem 0}.wpbnbd.is-style-minimal .money-input{max-width:100%}.wpbnbd.is-style-minimal .money-input input[type=number]{max-width:100%;width:100%}.wpbnbd.is-style-minimal.untiered .input-container{margin:.56rem 0 1.12rem;text-align:left}.wpbnbd.is-style-minimal .wpbnbd__tiers__selection .wpbnbd__button{position:relative;border:none;padding:8px;min-width:50%}.wpbnbd.is-style-minimal .wpbnbd__tiers__selection .wpbnbd__button:after{position:absolute;content:"";display:block;height:1px;background:#ccc;width:100%;left:0;bottom:0}.wpbnbd.is-style-minimal .wpbnbd__tiers__selection .wpbnbd__button--active:after{height:3px;background:#111}.wpbnbd.is-style-minimal .wpbnbd__tiers__back-button{margin-bottom:10px}.wpbnbd.is-style-minimal.tiered .tiers .tier-label{align-items:center;display:grid;background:transparent;border:none;color:#767676;font-family:inherit;font-weight:inherit;grid-gap:.25rem;grid-template-columns:auto 1fr;margin:0;padding:0;text-align:left}.wpbnbd.is-style-minimal.tiered .tiers .tier-label:before{background:#fff;border:1px solid #ccc;border-radius:100%;box-shadow:inset 0 0 0 3px #fff;content:"";display:block;height:20px;padding:3px;width:20px}.wpbnbd.is-style-minimal.tiered .tiers .tier-label:hover{color:inherit}.wpbnbd.is-style-minimal.tiered .tiers input[type=radio]:checked+.tier-select-label{background:none;color:inherit}.wpbnbd.is-style-minimal.tiered .tiers input[type=radio]:checked+.tier-select-label:before{background:currentcolor}.wpbnbd.is-style-minimal.tiered .money-input{bottom:0;left:0;right:0}.wpbnbd.is-style-minimal .frequencies{padding-top:calc(.76rem + 1.6em + 4px)}.wpbnbd.is-style-minimal .freq-label{background:transparent;border:none;box-shadow:0 3px 0 #fff,0 4px 0 0 #ccc;padding:.38rem 0;transition:none}@media only screen and (min-width:782px){.wpbnbd.is-style-minimal .freq-label{padding-left:.76rem;padding-right:.76rem}}.wpbnbd.is-style-minimal .freq-label:before{border-width:1px;border-color:#ccc}.wpbnbd.is-style-minimal .frequency input[type=radio]:checked+.freq-label{box-shadow:0 4px 0 currentcolor}.wpbnbd.is-style-minimal .frequency input[type=radio]:checked~.tiers{display:flex;flex-wrap:wrap;grid-gap:1.12rem;justify-content:center;margin:1.12rem 0}@media only screen and (min-width:600px){.wpbnbd.is-style-minimal .frequency input[type=radio]:checked~.tiers{display:grid;grid-gap:.56rem;grid-template-columns:repeat(4,1fr)}}.wpbnbd.is-style-minimal:not(.wpbnbd--platform-stripe) button[type=submit]{margin:0 auto;min-width:50%}.wpbnbd__button{border:0 solid #ccc;background:#fff;color:#767676;line-height:1.6;text-overflow:ellipsis;text-align:center}.wpbnbd__button--active,.wpbnbd__button:focus,.wpbnbd__button:hover{color:#111}.wpbnbd mark{background-color:transparent}
|
|
1
|
+
.wpbnbd.is-style-default .wpbnbd__button{padding:.38rem .76rem}.wpbnbd.is-style-default .wpbnbd__button:focus,.wpbnbd.is-style-default .wpbnbd__button:hover{background:#f1f1f1}.wpbnbd.is-style-default .wpbnbd__tiers__selection>button{flex:1}.wpbnbd.is-style-alternate{border-color:#f1f1f1;border-radius:5px}.wpbnbd.is-style-alternate .thanks{margin:1.12rem}.wpbnbd.is-style-alternate .money-input{max-width:100%}.wpbnbd.is-style-alternate .money-input input[type=number]{max-width:100%;width:100%}.wpbnbd.is-style-alternate.untiered .input-container{margin:1.12rem}.wpbnbd.is-style-alternate.tiered .tiers .tier-label{background:#f1f1f1;border-color:#f1f1f1;margin:0;text-align:center}.wpbnbd.is-style-alternate.tiered .money-input{bottom:0;left:0;right:0}@media only screen and (min-width:782px){.wpbnbd.is-style-alternate .frequencies{padding-top:calc(1.14rem + 1.6em + 4px)}}.wpbnbd.is-style-alternate .freq-label,.wpbnbd.is-style-alternate .wpbnbd__tiers__selection{background:#f1f1f1;border-color:#f1f1f1}.wpbnbd.is-style-alternate .wpbnbd__tiers__selection{width:-webkit-min-content;width:-moz-min-content;width:min-content;margin-left:auto;margin-right:auto;padding:5px;border-radius:5px}.wpbnbd.is-style-alternate .wpbnbd__tiers__selection .wpbnbd__button{color:#111;padding:0 15px}.wpbnbd.is-style-alternate .freq-label{border-width:1px;padding:calc(.57rem + 1px) .5rem}@media only screen and (min-width:600px){.wpbnbd.is-style-alternate .freq-label{padding:calc(.57rem + 1px) .76rem}}.wpbnbd.is-style-alternate .wpbnbd__button{border:.19rem solid transparent}.wpbnbd.is-style-alternate .frequency input[type=radio]:checked+.freq-label:after,.wpbnbd.is-style-alternate .wpbnbd__button--active{background:#fff;border-radius:5px;border:.19rem solid #fff;box-shadow:0 0 0 1px #ccc}.wpbnbd.is-style-alternate .frequency input[type=radio]:checked+.freq-label:after{box-sizing:content-box;bottom:.19rem;content:"";display:block;left:.19rem;position:absolute;right:.19rem;top:.19rem;z-index:-1}.wpbnbd.is-style-alternate .frequency input[type=radio]:checked+.freq-label:hover{background:#f1f1f1}.wpbnbd.is-style-alternate .frequency input[type=radio]:checked~.tiers{display:grid;grid-gap:.28rem;grid-template-columns:repeat(2,1fr);margin:1.12rem}@media only screen and (min-width:600px){.wpbnbd.is-style-alternate .frequency input[type=radio]:checked~.tiers{grid-template-columns:repeat(4,1fr);grid-gap:.56rem}}.wpbnbd.is-style-alternate.is-style-default button{border-top-left-radius:0;border-top-right-radius:0;margin:0 -1px -1px;width:calc(100% + 2px)}.wpbnbd.is-style-minimal{border:none}.wpbnbd.is-style-minimal form:not([data-is-streamlined-form]){text-align:center}.wpbnbd.is-style-minimal .thanks{margin:1.12rem 0}.wpbnbd.is-style-minimal .money-input{max-width:100%}.wpbnbd.is-style-minimal .money-input input[type=number]{max-width:100%;width:100%}.wpbnbd.is-style-minimal.untiered .input-container{margin:.56rem 0 1.12rem;text-align:left}.wpbnbd.is-style-minimal .wpbnbd__tiers__selection .wpbnbd__button{position:relative;border:none;padding:8px;min-width:50%}.wpbnbd.is-style-minimal .wpbnbd__tiers__selection .wpbnbd__button:after{position:absolute;content:"";display:block;height:1px;background:#ccc;width:100%;left:0;bottom:0}.wpbnbd.is-style-minimal .wpbnbd__tiers__selection .wpbnbd__button--active:after{height:3px;background:#111}.wpbnbd.is-style-minimal .wpbnbd__tiers__back-button{margin-bottom:10px}.wpbnbd.is-style-minimal.tiered .tiers .tier-label{align-items:center;display:grid;background:transparent;border:none;color:#767676;font-family:inherit;font-weight:inherit;grid-gap:.25rem;grid-template-columns:auto 1fr;margin:0;padding:0;text-align:left}.wpbnbd.is-style-minimal.tiered .tiers .tier-label:before{background:#fff;border:1px solid #ccc;border-radius:100%;box-shadow:inset 0 0 0 3px #fff;content:"";display:block;height:20px;padding:3px;width:20px}.wpbnbd.is-style-minimal.tiered .tiers .tier-label:hover{color:inherit}.wpbnbd.is-style-minimal.tiered .tiers input[type=radio]:checked+.tier-select-label{background:none;color:inherit}.wpbnbd.is-style-minimal.tiered .tiers input[type=radio]:checked+.tier-select-label:before{background:currentcolor}.wpbnbd.is-style-minimal.tiered .money-input{bottom:0;left:0;right:0}.wpbnbd.is-style-minimal .frequencies{padding-top:calc(.76rem + 1.6em + 4px)}.wpbnbd.is-style-minimal .freq-label{background:transparent;border:none;box-shadow:0 3px 0 #fff,0 4px 0 0 #ccc;padding:.38rem 0;transition:none}@media only screen and (min-width:782px){.wpbnbd.is-style-minimal .freq-label{padding-left:.76rem;padding-right:.76rem}}.wpbnbd.is-style-minimal .freq-label:before{border-width:1px;border-color:#ccc}.wpbnbd.is-style-minimal .frequency input[type=radio]:checked+.freq-label{box-shadow:0 4px 0 currentcolor}.wpbnbd.is-style-minimal .frequency input[type=radio]:checked~.tiers{display:flex;flex-wrap:wrap;grid-gap:1.12rem;justify-content:center;margin:1.12rem 0}@media only screen and (min-width:600px){.wpbnbd.is-style-minimal .frequency input[type=radio]:checked~.tiers{display:grid;grid-gap:.56rem;grid-template-columns:repeat(4,1fr)}}.wpbnbd.is-style-minimal:not(.wpbnbd--platform-stripe) button[type=submit]{margin:0 auto;min-width:50%}@-webkit-keyframes spin{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}to{transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}to{transform:rotate(1turn)}}.wpbnbd__button{border:0 solid #ccc;background:#fff;color:#767676;line-height:1.6;text-overflow:ellipsis;text-align:center}.wpbnbd__button--active,.wpbnbd__button:focus,.wpbnbd__button:hover{color:#111}.wpbnbd mark{background-color:transparent}.newspack-blocks-donate-checkout-modal{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:99999}.newspack-blocks-donate-checkout-modal__content{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:calc(100vw - 32px);max-width:580px;min-height:200px;max-height:calc(100vh - 32px);background:#fff;border-radius:5px}.newspack-blocks-donate-checkout-modal__content>:not(.newspack-blocks-donate-checkout-modal__close){width:100%;height:100%;border:0;border-radius:5px}.newspack-blocks-donate-checkout-modal__spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:5px}.newspack-blocks-donate-checkout-modal__spinner>span{width:25px;height:25px;border:2px solid #fff;border-top-color:#767676;border-radius:50%;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}.newspack-blocks-donate-checkout-modal__close{position:absolute;top:0;right:0;padding:8px;border:0;background:transparent;color:#111;cursor:pointer}.newspack-blocks-donate-checkout-modal__close:focus,.newspack-blocks-donate-checkout-modal__close:hover{color:#767676}.newspack-blocks-donate-checkout-modal__close svg{display:block}@media(max-width:600px){.newspack-blocks-donate-checkout-modal__content{max-width:100%;width:100%;border-radius:0;top:auto;bottom:0;left:0;transform:none}.newspack-blocks-donate-checkout-modal__content>:not(.newspack-blocks-donate-checkout-modal__close){border-radius:0}}
|
package/dist/donate/view.rtl.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.wpbnbd.is-style-default .wpbnbd__button{padding:.38rem .76rem}.wpbnbd.is-style-default .wpbnbd__button:focus,.wpbnbd.is-style-default .wpbnbd__button:hover{background:#f1f1f1}.wpbnbd.is-style-default .wpbnbd__tiers__selection>button{flex:1}.wpbnbd.is-style-alternate{border-color:#f1f1f1;border-radius:5px}.wpbnbd.is-style-alternate .thanks{margin:1.12rem}.wpbnbd.is-style-alternate .money-input{max-width:100%}.wpbnbd.is-style-alternate .money-input input[type=number]{max-width:100%;width:100%}.wpbnbd.is-style-alternate.untiered .input-container{margin:1.12rem}.wpbnbd.is-style-alternate.tiered .tiers .tier-label{background:#f1f1f1;border-color:#f1f1f1;margin:0;text-align:center}.wpbnbd.is-style-alternate.tiered .money-input{bottom:0;right:0;left:0}@media only screen and (min-width:782px){.wpbnbd.is-style-alternate .frequencies{padding-top:calc(1.14rem + 1.6em + 4px)}}.wpbnbd.is-style-alternate .freq-label,.wpbnbd.is-style-alternate .wpbnbd__tiers__selection{background:#f1f1f1;border-color:#f1f1f1}.wpbnbd.is-style-alternate .wpbnbd__tiers__selection{width:-webkit-min-content;width:-moz-min-content;width:min-content;margin-right:auto;margin-left:auto;padding:5px;border-radius:5px}.wpbnbd.is-style-alternate .wpbnbd__tiers__selection .wpbnbd__button{color:#111;padding:0 15px}.wpbnbd.is-style-alternate .freq-label{border-width:1px;padding:calc(.57rem + 1px) .5rem}@media only screen and (min-width:600px){.wpbnbd.is-style-alternate .freq-label{padding:calc(.57rem + 1px) .76rem}}.wpbnbd.is-style-alternate .wpbnbd__button{border:.19rem solid transparent}.wpbnbd.is-style-alternate .frequency input[type=radio]:checked+.freq-label:after,.wpbnbd.is-style-alternate .wpbnbd__button--active{background:#fff;border-radius:5px;border:.19rem solid #fff;box-shadow:0 0 0 1px #ccc}.wpbnbd.is-style-alternate .frequency input[type=radio]:checked+.freq-label:after{box-sizing:content-box;bottom:.19rem;content:"";display:block;right:.19rem;position:absolute;left:.19rem;top:.19rem;z-index:-1}.wpbnbd.is-style-alternate .frequency input[type=radio]:checked+.freq-label:hover{background:#f1f1f1}.wpbnbd.is-style-alternate .frequency input[type=radio]:checked~.tiers{display:grid;grid-gap:.28rem;grid-template-columns:repeat(2,1fr);margin:1.12rem}@media only screen and (min-width:600px){.wpbnbd.is-style-alternate .frequency input[type=radio]:checked~.tiers{grid-template-columns:repeat(4,1fr);grid-gap:.56rem}}.wpbnbd.is-style-alternate.is-style-default button{border-top-right-radius:0;border-top-left-radius:0;margin:0 -1px -1px;width:calc(100% + 2px)}.wpbnbd.is-style-minimal{border:none}.wpbnbd.is-style-minimal form:not([data-is-streamlined-form]){text-align:center}.wpbnbd.is-style-minimal .thanks{margin:1.12rem 0}.wpbnbd.is-style-minimal .money-input{max-width:100%}.wpbnbd.is-style-minimal .money-input input[type=number]{max-width:100%;width:100%}.wpbnbd.is-style-minimal.untiered .input-container{margin:.56rem 0 1.12rem;text-align:right}.wpbnbd.is-style-minimal .wpbnbd__tiers__selection .wpbnbd__button{position:relative;border:none;padding:8px;min-width:50%}.wpbnbd.is-style-minimal .wpbnbd__tiers__selection .wpbnbd__button:after{position:absolute;content:"";display:block;height:1px;background:#ccc;width:100%;right:0;bottom:0}.wpbnbd.is-style-minimal .wpbnbd__tiers__selection .wpbnbd__button--active:after{height:3px;background:#111}.wpbnbd.is-style-minimal .wpbnbd__tiers__back-button{margin-bottom:10px}.wpbnbd.is-style-minimal.tiered .tiers .tier-label{align-items:center;display:grid;background:transparent;border:none;color:#767676;font-family:inherit;font-weight:inherit;grid-gap:.25rem;grid-template-columns:auto 1fr;margin:0;padding:0;text-align:right}.wpbnbd.is-style-minimal.tiered .tiers .tier-label:before{background:#fff;border:1px solid #ccc;border-radius:100%;box-shadow:inset 0 0 0 3px #fff;content:"";display:block;height:20px;padding:3px;width:20px}.wpbnbd.is-style-minimal.tiered .tiers .tier-label:hover{color:inherit}.wpbnbd.is-style-minimal.tiered .tiers input[type=radio]:checked+.tier-select-label{background:none;color:inherit}.wpbnbd.is-style-minimal.tiered .tiers input[type=radio]:checked+.tier-select-label:before{background:currentcolor}.wpbnbd.is-style-minimal.tiered .money-input{bottom:0;right:0;left:0}.wpbnbd.is-style-minimal .frequencies{padding-top:calc(.76rem + 1.6em + 4px)}.wpbnbd.is-style-minimal .freq-label{background:transparent;border:none;box-shadow:0 3px 0 #fff,0 4px 0 0 #ccc;padding:.38rem 0;transition:none}@media only screen and (min-width:782px){.wpbnbd.is-style-minimal .freq-label{padding-right:.76rem;padding-left:.76rem}}.wpbnbd.is-style-minimal .freq-label:before{border-width:1px;border-color:#ccc}.wpbnbd.is-style-minimal .frequency input[type=radio]:checked+.freq-label{box-shadow:0 4px 0 currentcolor}.wpbnbd.is-style-minimal .frequency input[type=radio]:checked~.tiers{display:flex;flex-wrap:wrap;grid-gap:1.12rem;justify-content:center;margin:1.12rem 0}@media only screen and (min-width:600px){.wpbnbd.is-style-minimal .frequency input[type=radio]:checked~.tiers{display:grid;grid-gap:.56rem;grid-template-columns:repeat(4,1fr)}}.wpbnbd.is-style-minimal:not(.wpbnbd--platform-stripe) button[type=submit]{margin:0 auto;min-width:50%}.wpbnbd__button{border:0 solid #ccc;background:#fff;color:#767676;line-height:1.6;text-overflow:ellipsis;text-align:center}.wpbnbd__button--active,.wpbnbd__button:focus,.wpbnbd__button:hover{color:#111}.wpbnbd mark{background-color:transparent}
|
|
1
|
+
.wpbnbd.is-style-default .wpbnbd__button{padding:.38rem .76rem}.wpbnbd.is-style-default .wpbnbd__button:focus,.wpbnbd.is-style-default .wpbnbd__button:hover{background:#f1f1f1}.wpbnbd.is-style-default .wpbnbd__tiers__selection>button{flex:1}.wpbnbd.is-style-alternate{border-color:#f1f1f1;border-radius:5px}.wpbnbd.is-style-alternate .thanks{margin:1.12rem}.wpbnbd.is-style-alternate .money-input{max-width:100%}.wpbnbd.is-style-alternate .money-input input[type=number]{max-width:100%;width:100%}.wpbnbd.is-style-alternate.untiered .input-container{margin:1.12rem}.wpbnbd.is-style-alternate.tiered .tiers .tier-label{background:#f1f1f1;border-color:#f1f1f1;margin:0;text-align:center}.wpbnbd.is-style-alternate.tiered .money-input{bottom:0;right:0;left:0}@media only screen and (min-width:782px){.wpbnbd.is-style-alternate .frequencies{padding-top:calc(1.14rem + 1.6em + 4px)}}.wpbnbd.is-style-alternate .freq-label,.wpbnbd.is-style-alternate .wpbnbd__tiers__selection{background:#f1f1f1;border-color:#f1f1f1}.wpbnbd.is-style-alternate .wpbnbd__tiers__selection{width:-webkit-min-content;width:-moz-min-content;width:min-content;margin-right:auto;margin-left:auto;padding:5px;border-radius:5px}.wpbnbd.is-style-alternate .wpbnbd__tiers__selection .wpbnbd__button{color:#111;padding:0 15px}.wpbnbd.is-style-alternate .freq-label{border-width:1px;padding:calc(.57rem + 1px) .5rem}@media only screen and (min-width:600px){.wpbnbd.is-style-alternate .freq-label{padding:calc(.57rem + 1px) .76rem}}.wpbnbd.is-style-alternate .wpbnbd__button{border:.19rem solid transparent}.wpbnbd.is-style-alternate .frequency input[type=radio]:checked+.freq-label:after,.wpbnbd.is-style-alternate .wpbnbd__button--active{background:#fff;border-radius:5px;border:.19rem solid #fff;box-shadow:0 0 0 1px #ccc}.wpbnbd.is-style-alternate .frequency input[type=radio]:checked+.freq-label:after{box-sizing:content-box;bottom:.19rem;content:"";display:block;right:.19rem;position:absolute;left:.19rem;top:.19rem;z-index:-1}.wpbnbd.is-style-alternate .frequency input[type=radio]:checked+.freq-label:hover{background:#f1f1f1}.wpbnbd.is-style-alternate .frequency input[type=radio]:checked~.tiers{display:grid;grid-gap:.28rem;grid-template-columns:repeat(2,1fr);margin:1.12rem}@media only screen and (min-width:600px){.wpbnbd.is-style-alternate .frequency input[type=radio]:checked~.tiers{grid-template-columns:repeat(4,1fr);grid-gap:.56rem}}.wpbnbd.is-style-alternate.is-style-default button{border-top-right-radius:0;border-top-left-radius:0;margin:0 -1px -1px;width:calc(100% + 2px)}.wpbnbd.is-style-minimal{border:none}.wpbnbd.is-style-minimal form:not([data-is-streamlined-form]){text-align:center}.wpbnbd.is-style-minimal .thanks{margin:1.12rem 0}.wpbnbd.is-style-minimal .money-input{max-width:100%}.wpbnbd.is-style-minimal .money-input input[type=number]{max-width:100%;width:100%}.wpbnbd.is-style-minimal.untiered .input-container{margin:.56rem 0 1.12rem;text-align:right}.wpbnbd.is-style-minimal .wpbnbd__tiers__selection .wpbnbd__button{position:relative;border:none;padding:8px;min-width:50%}.wpbnbd.is-style-minimal .wpbnbd__tiers__selection .wpbnbd__button:after{position:absolute;content:"";display:block;height:1px;background:#ccc;width:100%;right:0;bottom:0}.wpbnbd.is-style-minimal .wpbnbd__tiers__selection .wpbnbd__button--active:after{height:3px;background:#111}.wpbnbd.is-style-minimal .wpbnbd__tiers__back-button{margin-bottom:10px}.wpbnbd.is-style-minimal.tiered .tiers .tier-label{align-items:center;display:grid;background:transparent;border:none;color:#767676;font-family:inherit;font-weight:inherit;grid-gap:.25rem;grid-template-columns:auto 1fr;margin:0;padding:0;text-align:right}.wpbnbd.is-style-minimal.tiered .tiers .tier-label:before{background:#fff;border:1px solid #ccc;border-radius:100%;box-shadow:inset 0 0 0 3px #fff;content:"";display:block;height:20px;padding:3px;width:20px}.wpbnbd.is-style-minimal.tiered .tiers .tier-label:hover{color:inherit}.wpbnbd.is-style-minimal.tiered .tiers input[type=radio]:checked+.tier-select-label{background:none;color:inherit}.wpbnbd.is-style-minimal.tiered .tiers input[type=radio]:checked+.tier-select-label:before{background:currentcolor}.wpbnbd.is-style-minimal.tiered .money-input{bottom:0;right:0;left:0}.wpbnbd.is-style-minimal .frequencies{padding-top:calc(.76rem + 1.6em + 4px)}.wpbnbd.is-style-minimal .freq-label{background:transparent;border:none;box-shadow:0 3px 0 #fff,0 4px 0 0 #ccc;padding:.38rem 0;transition:none}@media only screen and (min-width:782px){.wpbnbd.is-style-minimal .freq-label{padding-right:.76rem;padding-left:.76rem}}.wpbnbd.is-style-minimal .freq-label:before{border-width:1px;border-color:#ccc}.wpbnbd.is-style-minimal .frequency input[type=radio]:checked+.freq-label{box-shadow:0 4px 0 currentcolor}.wpbnbd.is-style-minimal .frequency input[type=radio]:checked~.tiers{display:flex;flex-wrap:wrap;grid-gap:1.12rem;justify-content:center;margin:1.12rem 0}@media only screen and (min-width:600px){.wpbnbd.is-style-minimal .frequency input[type=radio]:checked~.tiers{display:grid;grid-gap:.56rem;grid-template-columns:repeat(4,1fr)}}.wpbnbd.is-style-minimal:not(.wpbnbd--platform-stripe) button[type=submit]{margin:0 auto;min-width:50%}@-webkit-keyframes spin{0%{transform:rotate(0deg)}50%{transform:rotate(-180deg)}to{transform:rotate(-1turn)}}@keyframes spin{0%{transform:rotate(0deg)}50%{transform:rotate(-180deg)}to{transform:rotate(-1turn)}}.wpbnbd__button{border:0 solid #ccc;background:#fff;color:#767676;line-height:1.6;text-overflow:ellipsis;text-align:center}.wpbnbd__button--active,.wpbnbd__button:focus,.wpbnbd__button:hover{color:#111}.wpbnbd mark{background-color:transparent}.newspack-blocks-donate-checkout-modal{position:fixed;top:0;right:0;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:99999}.newspack-blocks-donate-checkout-modal__content{position:absolute;top:50%;right:50%;transform:translate(50%,-50%);width:calc(100vw - 32px);max-width:580px;min-height:200px;max-height:calc(100vh - 32px);background:#fff;border-radius:5px}.newspack-blocks-donate-checkout-modal__content>:not(.newspack-blocks-donate-checkout-modal__close){width:100%;height:100%;border:0;border-radius:5px}.newspack-blocks-donate-checkout-modal__spinner{position:absolute;top:50%;right:50%;transform:translate(50%,-50%);width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:5px}.newspack-blocks-donate-checkout-modal__spinner>span{width:25px;height:25px;border:2px solid #fff;border-top-color:#767676;border-radius:50%;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}.newspack-blocks-donate-checkout-modal__close{position:absolute;top:0;left:0;padding:8px;border:0;background:transparent;color:#111;cursor:pointer}.newspack-blocks-donate-checkout-modal__close:focus,.newspack-blocks-donate-checkout-modal__close:hover{color:#767676}.newspack-blocks-donate-checkout-modal__close svg{display:block}@media(max-width:600px){.newspack-blocks-donate-checkout-modal__content{max-width:100%;width:100%;border-radius:0;top:auto;bottom:0;right:0;transform:none}.newspack-blocks-donate-checkout-modal__content>:not(.newspack-blocks-donate-checkout-modal__close){border-radius:0}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '731af8399246ffa2f9d180d28ae2cfe5');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{var e,t,n={};function o(t){var n=t.querySelector("iframe");n&&(n.src="about:blank"),e.disconnect(),t.style.display="none"}t=function(){var t=document.querySelector(".newspack-blocks-donate-checkout-modal");if(t){var n=document.querySelector(".newspack-blocks-donate-checkout-modal__spinner"),c="newspack_modal_checkout",a=document.createElement("input");a.type="hidden",a.name="modal_checkout",a.value="1";var r=t.querySelector(".newspack-blocks-donate-checkout-modal__content"),d=document.createElement("iframe");d.name=c,r.appendChild(d),document.querySelectorAll(".wpbnbd.wpbnbd--platform-wc").forEach((function(o){o.querySelectorAll("form").forEach((function(o){o.appendChild(a.cloneNode()),o.target=c,o.addEventListener("submit",(function(){n.style.display="flex",t.style.display="block",e=new ResizeObserver((function(e){if(e&&e.length){var t=e[0].contentRect;t&&(r.style.height=t.top+t.bottom+"px")}})),d.addEventListener("load",(function(){var t=d.contentWindow.location;if(window.newspackReaderActivation&&t.href.indexOf("order-received")>-1){var o=window.newspackReaderActivation,c=new Proxy(new URLSearchParams(t.search),{get:function(e,t){return e.get(t)}});c.email&&(o.setReaderEmail(c.email),o.setAuthenticated(!0))}var a=d.contentWindow.document.querySelector("#newspack_modal_checkout");a&&e.observe(a),n.style.display="none"}))}))}))})),t.addEventListener("click",(function(e){e.target===t&&o(t)})),t.querySelectorAll(".newspack-blocks-donate-checkout-modal__close").forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault(),o(t)}))}))}},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",t):t());var c=window;for(var a in n)c[a]=n[a];n.__esModule&&Object.defineProperty(c,"__esModule",{value:!0})})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '6ff1ed9230f6ab63475d777dd66b58b6');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#newspack_modal_checkout{padding:32px;font-size:1rem}#newspack_modal_checkout .order-details-summary{border:2px solid;border-radius:3px;padding:16px}#newspack_modal_checkout .order-details-summary h4{font-size:1rem;margin:0}#newspack_modal_checkout .order-details-summary h4>span{color:inherit;font-size:clamp(1.75rem,1.75rem + (1vw - .48rem)*.962,2.25rem);font-weight:700;line-height:1.434}#newspack_modal_checkout .order-details-summary h4 .subscription-details{font-size:1rem;font-weight:400}#newspack_modal_checkout .woocommerce-billing-fields{margin-bottom:16px}#newspack_modal_checkout .checkout-billing-summary{border-bottom:1px solid #ccc;padding-bottom:32px}#newspack_modal_checkout .checkout-billing-summary__grid{align-items:baseline;display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}#newspack_modal_checkout .checkout-billing-summary p{font-size:clamp(.75rem,.75rem + (1vw - .48rem)*.481,1rem);margin:16px 0 0}#newspack_modal_checkout .checkout-billing-summary .edit-billing-link{color:#767676;font-size:clamp(.75rem,.75rem + (1vw - .48rem)*.481,1rem);display:inline-block;text-decoration:underline}#newspack_modal_checkout .checkout-billing-summary .edit-billing-link:focus,#newspack_modal_checkout .checkout-billing-summary .edit-billing-link:hover{color:inherit}#newspack_modal_checkout form,#newspack_modal_checkout form #wc-stripe-payment-request-button-separator{margin:0}#newspack_modal_checkout form .woocommerce-terms-and-conditions-wrapper{margin:16px 0}#newspack_modal_checkout form h3{font-size:1.37rem;margin:32px 0 0}#newspack_modal_checkout form p{margin:16px 0}#newspack_modal_checkout form .select2-container .select2-selection--single{margin:0}#newspack_modal_checkout form #payment button#place_order{margin-bottom:0}#newspack_modal_checkout form button{display:block;width:100%}#newspack_modal_checkout .form-row-first,#newspack_modal_checkout .form-row-last{width:calc(50% - 8px)}#newspack_modal_checkout .form-row-last+.form-row-first,#newspack_modal_checkout .form-row-wide+.form-row-first,#newspack_modal_checkout .form-row-wide+.form-row-first+.form-row-last{margin-top:0}#newspack_modal_checkout .select2-container--default .select2-selection--single{border-color:#ccc;border-radius:0;height:44px}#newspack_modal_checkout .select2-container--default .select2-selection--single .select2-selection__rendered{color:inherit;line-height:44px}#newspack_modal_checkout .select2-container--default .select2-selection--single .select2-selection__arrow{height:42px}#newspack_modal_checkout .wc_payment_method .payment_box{background:#f0f0f0;border-radius:3px;padding:16px}#newspack_modal_checkout .wc_payment_method .payment_box p{margin-top:0}#newspack_modal_checkout .wc-saved-payment-methods{padding:0}#newspack_modal_checkout .woocommerce-error{border-radius:3px;margin:0}#newspack_modal_checkout .woocommerce-notices-wrapper:not(:empty){margin-bottom:32px}#newspack_modal_checkout .woocommerce-privacy-policy-text{color:#767676}#newspack_modal_checkout .woocommerce-privacy-policy-text p{font-size:clamp(.75rem,.75rem + (1vw - .48rem)*.481,1rem);margin:0}#newspack_modal_checkout .woocommerce-thankyou-order-received{align-items:center;border-bottom:1px solid #ccc;display:flex;flex-direction:column;justify-content:center;margin:0 0 32px;padding:0 0 32px}#newspack_modal_checkout .woocommerce-thankyou-order-received:before{-webkit-animation:bounce .25s ease-in;animation:bounce .25s ease-in;-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;background-color:#4ab866;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z' fill='%23fff'/%3E%3C/svg%3E");background-position:50% 50%;background-repeat:no-repeat;background-size:24px;border-radius:50%;content:"";display:block;height:40px;margin-bottom:16px;padding:8px;transform:scale(0);width:40px}#newspack_modal_checkout .woocommerce-order-overview{color:#767676;list-style:none;margin:16px 0 0;padding:0}@-webkit-keyframes bounce{0%{transform:scale(0)}90%{transform:scale(1.4)}to{transform:scale(1)}}@keyframes bounce{0%{transform:scale(0)}90%{transform:scale(1.4)}to{transform:scale(1)}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var e={r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},o={};e.r(o);var r=window;for(var t in o)r[t]=o[t];o.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#newspack_modal_checkout{padding:32px;font-size:1rem}#newspack_modal_checkout .order-details-summary{border:2px solid;border-radius:3px;padding:16px}#newspack_modal_checkout .order-details-summary h4{font-size:1rem;margin:0}#newspack_modal_checkout .order-details-summary h4>span{color:inherit;font-size:clamp(1.75rem,1.75rem + (1vw - .48rem)*.962,2.25rem);font-weight:700;line-height:1.434}#newspack_modal_checkout .order-details-summary h4 .subscription-details{font-size:1rem;font-weight:400}#newspack_modal_checkout .woocommerce-billing-fields{margin-bottom:16px}#newspack_modal_checkout .checkout-billing-summary{border-bottom:1px solid #ccc;padding-bottom:32px}#newspack_modal_checkout .checkout-billing-summary__grid{align-items:baseline;display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}#newspack_modal_checkout .checkout-billing-summary p{font-size:clamp(.75rem,.75rem + (1vw - .48rem)*.481,1rem);margin:16px 0 0}#newspack_modal_checkout .checkout-billing-summary .edit-billing-link{color:#767676;font-size:clamp(.75rem,.75rem + (1vw - .48rem)*.481,1rem);display:inline-block;text-decoration:underline}#newspack_modal_checkout .checkout-billing-summary .edit-billing-link:focus,#newspack_modal_checkout .checkout-billing-summary .edit-billing-link:hover{color:inherit}#newspack_modal_checkout form,#newspack_modal_checkout form #wc-stripe-payment-request-button-separator{margin:0}#newspack_modal_checkout form .woocommerce-terms-and-conditions-wrapper{margin:16px 0}#newspack_modal_checkout form h3{font-size:1.37rem;margin:32px 0 0}#newspack_modal_checkout form p{margin:16px 0}#newspack_modal_checkout form .select2-container .select2-selection--single{margin:0}#newspack_modal_checkout form #payment button#place_order{margin-bottom:0}#newspack_modal_checkout form button{display:block;width:100%}#newspack_modal_checkout .form-row-first,#newspack_modal_checkout .form-row-last{width:calc(50% - 8px)}#newspack_modal_checkout .form-row-last+.form-row-first,#newspack_modal_checkout .form-row-wide+.form-row-first,#newspack_modal_checkout .form-row-wide+.form-row-first+.form-row-last{margin-top:0}#newspack_modal_checkout .select2-container--default .select2-selection--single{border-color:#ccc;border-radius:0;height:44px}#newspack_modal_checkout .select2-container--default .select2-selection--single .select2-selection__rendered{color:inherit;line-height:44px}#newspack_modal_checkout .select2-container--default .select2-selection--single .select2-selection__arrow{height:42px}#newspack_modal_checkout .wc_payment_method .payment_box{background:#f0f0f0;border-radius:3px;padding:16px}#newspack_modal_checkout .wc_payment_method .payment_box p{margin-top:0}#newspack_modal_checkout .wc-saved-payment-methods{padding:0}#newspack_modal_checkout .woocommerce-error{border-radius:3px;margin:0}#newspack_modal_checkout .woocommerce-notices-wrapper:not(:empty){margin-bottom:32px}#newspack_modal_checkout .woocommerce-privacy-policy-text{color:#767676}#newspack_modal_checkout .woocommerce-privacy-policy-text p{font-size:clamp(.75rem,.75rem + (1vw - .48rem)*.481,1rem);margin:0}#newspack_modal_checkout .woocommerce-thankyou-order-received{align-items:center;border-bottom:1px solid #ccc;display:flex;flex-direction:column;justify-content:center;margin:0 0 32px;padding:0 0 32px}#newspack_modal_checkout .woocommerce-thankyou-order-received:before{-webkit-animation:bounce .25s ease-in;animation:bounce .25s ease-in;-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;background-color:#4ab866;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z' fill='%23fff'/%3E%3C/svg%3E");background-position:50% 50%;background-repeat:no-repeat;background-size:24px;border-radius:50%;content:"";display:block;height:40px;margin-bottom:16px;padding:8px;transform:scale(0);width:40px}#newspack_modal_checkout .woocommerce-order-overview{color:#767676;list-style:none;margin:16px 0 0;padding:0}@-webkit-keyframes bounce{0%{transform:scale(0)}90%{transform:scale(1.4)}to{transform:scale(1)}}@keyframes bounce{0%{transform:scale(0)}90%{transform:scale(1.4)}to{transform:scale(1)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array('wp-i18n', 'wp-polyfill'), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array('wp-i18n', 'wp-polyfill'), 'version' => 'e5048d1d00e54562d3d1e5159ddbb45c');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@-webkit-keyframes loader{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}@keyframes loader{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}.wp-block-newspack-blocks-donate .stripe-payment{position:relative}.wp-block-newspack-blocks-donate .stripe-payment,.wp-block-newspack-blocks-donate .stripe-payment--transition,.wp-block-newspack-blocks-donate .stripe-payment:after{transition:all .3s ease-out}.wp-block-newspack-blocks-donate .stripe-payment:after{content:"";opacity:0;pointer-events:none;position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(318deg,#d5d5d5,#fff);background-size:400% 400%;-webkit-animation:loader 3s ease infinite;animation:loader 3s ease infinite;border-radius:5px}.wp-block-newspack-blocks-donate .stripe-payment__card{padding:.34rem .66rem;min-height:32px}.wp-block-newspack-blocks-donate .stripe-payment__card,.wp-block-newspack-blocks-donate .stripe-payment input[type=email],.wp-block-newspack-blocks-donate .stripe-payment input[type=text]{border:1px solid #ccc;border-radius:3px}.wp-block-newspack-blocks-donate .stripe-payment__checkbox,.wp-block-newspack-blocks-donate .stripe-payment button,.wp-block-newspack-blocks-donate .stripe-payment input[type=email],.wp-block-newspack-blocks-donate .stripe-payment input[type=text]{font-size:.7em}.wp-block-newspack-blocks-donate .stripe-payment__messages,.wp-block-newspack-blocks-donate .stripe-payment input[type=email],.wp-block-newspack-blocks-donate .stripe-payment input[type=text]{width:100%}.wp-block-newspack-blocks-donate .stripe-payment input[type=email],.wp-block-newspack-blocks-donate .stripe-payment input[type=text]{border-radius:3px;font-family:sans-serif}@media only screen and (min-width:782px){.wp-block-newspack-blocks-donate .stripe-payment input[type=email],.wp-block-newspack-blocks-donate .stripe-payment input[type=text]{font-size:14px;line-height:1.2}}.wp-block-newspack-blocks-donate .stripe-payment--invisible>*{opacity:0}.wp-block-newspack-blocks-donate .stripe-payment--invisible:after{opacity:1}.wp-block-newspack-blocks-donate .stripe-payment--hidden{display:none}.wp-block-newspack-blocks-donate .stripe-payment__checkbox{align-items:center;display:inline-flex;cursor:pointer}.wp-block-newspack-blocks-donate .stripe-payment__checkbox input{height:1em;width:1em;margin-right:.5em}.wp-block-newspack-blocks-donate .stripe-payment__messages{margin-bottom:10px}.wp-block-newspack-blocks-donate .stripe-payment__messages>div{border:solid #dfdfdf;border-width:0 0 0 4px;font-size:.8em;margin-top:.76rem;padding:.38rem .76rem}.wp-block-newspack-blocks-donate .stripe-payment__messages>div:empty{border:0;margin:0;padding:0}.wp-block-newspack-blocks-donate .stripe-payment__messages>div.type-error{background-color:rgba(
|
|
1
|
+
@-webkit-keyframes loader{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}@keyframes loader{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}.wp-block-newspack-blocks-donate .stripe-payment{position:relative}.wp-block-newspack-blocks-donate .stripe-payment,.wp-block-newspack-blocks-donate .stripe-payment--transition,.wp-block-newspack-blocks-donate .stripe-payment:after{transition:all .3s ease-out}.wp-block-newspack-blocks-donate .stripe-payment:after{content:"";opacity:0;pointer-events:none;position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(318deg,#d5d5d5,#fff);background-size:400% 400%;-webkit-animation:loader 3s ease infinite;animation:loader 3s ease infinite;border-radius:5px}.wp-block-newspack-blocks-donate .stripe-payment__card{padding:.34rem .66rem;min-height:32px}.wp-block-newspack-blocks-donate .stripe-payment__card,.wp-block-newspack-blocks-donate .stripe-payment input[type=email],.wp-block-newspack-blocks-donate .stripe-payment input[type=text]{border:1px solid #ccc;border-radius:3px}.wp-block-newspack-blocks-donate .stripe-payment__checkbox,.wp-block-newspack-blocks-donate .stripe-payment button,.wp-block-newspack-blocks-donate .stripe-payment input[type=email],.wp-block-newspack-blocks-donate .stripe-payment input[type=text]{font-size:.7em}.wp-block-newspack-blocks-donate .stripe-payment__messages,.wp-block-newspack-blocks-donate .stripe-payment input[type=email],.wp-block-newspack-blocks-donate .stripe-payment input[type=text]{width:100%}.wp-block-newspack-blocks-donate .stripe-payment input[type=email],.wp-block-newspack-blocks-donate .stripe-payment input[type=text]{border-radius:3px;font-family:sans-serif}@media only screen and (min-width:782px){.wp-block-newspack-blocks-donate .stripe-payment input[type=email],.wp-block-newspack-blocks-donate .stripe-payment input[type=text]{font-size:14px;line-height:1.2}}.wp-block-newspack-blocks-donate .stripe-payment--invisible>*{opacity:0}.wp-block-newspack-blocks-donate .stripe-payment--invisible:after{opacity:1}.wp-block-newspack-blocks-donate .stripe-payment--hidden{display:none}.wp-block-newspack-blocks-donate .stripe-payment__checkbox{align-items:center;display:inline-flex;cursor:pointer}.wp-block-newspack-blocks-donate .stripe-payment__checkbox input{height:1em;width:1em;margin-right:.5em}.wp-block-newspack-blocks-donate .stripe-payment__messages{margin-bottom:10px}.wp-block-newspack-blocks-donate .stripe-payment__messages>div{border:solid #dfdfdf;border-width:0 0 0 4px;font-size:.8em;margin-top:.76rem;padding:.38rem .76rem}.wp-block-newspack-blocks-donate .stripe-payment__messages>div:empty{border:0;margin:0;padding:0}.wp-block-newspack-blocks-donate .stripe-payment__messages>div.type-error{background-color:rgba(204,24,24,.075);border-color:#cc1818}.wp-block-newspack-blocks-donate .stripe-payment__messages>div.type-success{background-color:rgba(74,184,102,.075);border-color:#4ab866;margin:1.12rem}.wp-block-newspack-blocks-donate .stripe-payment--disabled button,.wp-block-newspack-blocks-donate .stripe-payment--disabled input{pointer-events:none;opacity:.4}.wp-block-newspack-blocks-donate .stripe-payment__element{margin-bottom:.4rem}.wp-block-newspack-blocks-donate .stripe-payment__row{margin-bottom:.5rem}.wp-block-newspack-blocks-donate .stripe-payment__row--small{margin-bottom:5px;line-height:1.2}.wp-block-newspack-blocks-donate .stripe-payment__row--flex{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap}@media only screen and (min-width:782px){.wp-block-newspack-blocks-donate .stripe-payment__row--flex{flex-wrap:nowrap}}.wp-block-newspack-blocks-donate .stripe-payment__row--flex input{margin-bottom:.5rem}@media only screen and (min-width:782px){.wp-block-newspack-blocks-donate .stripe-payment__row--flex input{margin-bottom:0;width:50%}.wp-block-newspack-blocks-donate .stripe-payment__row--flex input+input{margin-left:.5rem}}.wp-block-newspack-blocks-donate .stripe-payment__row--additional-fields{display:flex;flex-wrap:wrap;margin-left:-.25rem;margin-right:-.25rem}.wp-block-newspack-blocks-donate .stripe-payment__row--additional-fields>input{margin-bottom:.5rem;margin-left:.25rem;margin-right:.25rem}.wp-block-newspack-blocks-donate .stripe-payment__info{color:#767676;font-size:.7em;font-style:italic;padding-left:1.5em;display:none}@media only screen and (min-width:600px){.wp-block-newspack-blocks-donate .stripe-payment__info{display:block}}.wp-block-newspack-blocks-donate .stripe-payment__footer{align-items:flex-end;margin-bottom:1.32rem;margin-left:-10px;margin-right:-10px}.wp-block-newspack-blocks-donate .stripe-payment__footer>*{padding-left:10px;padding-right:10px}.wp-block-newspack-blocks-donate .stripe-payment__methods{display:flex;flex-wrap:wrap;width:100%}@media only screen and (min-width:600px){.wp-block-newspack-blocks-donate .stripe-payment__methods{width:auto}}.wp-block-newspack-blocks-donate .stripe-payment__methods button{margin-left:0;margin-right:0;margin-bottom:0;height:46px}.wp-block-newspack-blocks-donate .stripe-payment__methods>*{width:100%}.wp-block-newspack-blocks-donate .stripe-payment__methods>:not(:last-child){margin-bottom:10px}@media only screen and (min-width:600px){.wp-block-newspack-blocks-donate .stripe-payment__methods>*{width:auto}}.wp-block-newspack-blocks-donate .stripe-payment__request-button{min-width:190px}@media only screen and (min-width:600px){.wp-block-newspack-blocks-donate .stripe-payment__request-button{margin-right:1em}}.wp-block-newspack-blocks-donate .stripe-payment__request-button--invisible{opacity:0}.wp-block-newspack-blocks-donate__stripe{margin:.38rem .76rem .76rem}@media only screen and (min-width:782px){.wp-block-newspack-blocks-donate__stripe{margin-left:1.5rem;margin-right:1.5rem}}.wp-block-newspack-blocks-donate__stripe--editor input:first-child{margin-top:0}#stripe-fees-amount{padding-left:3px}.wpbnbd.is-style-alternate .wp-block-newspack-blocks-donate__stripe{margin:1.12rem 1.12rem 0}.wpbnbd.is-style-alternate .stripe-payment__row{margin-bottom:.56rem}.wpbnbd.is-style-alternate .stripe-payment__footer{margin:0 0 1.12rem}.wpbnbd.is-style-alternate .stripe-payment__footer>*{padding:0}.wpbnbd.is-style-alternate .stripe-payment__footer button{border-top-left-radius:5px;border-top-right-radius:5px;margin:0;width:auto}.wpbnbd.is-style-minimal .wp-block-newspack-blocks-donate__stripe{margin:0;text-align:left}.wpbnbd.is-style-minimal .stripe-payment__row{margin-bottom:.56rem}.wpbnbd.is-style-minimal .stripe-payment__inputs{margin-bottom:1.12rem}.wpbnbd.is-style-minimal .stripe-payment__footer{margin:0 0 1.12rem}.wpbnbd.is-style-minimal .stripe-payment__footer>*{padding:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var e={7597:(e,t)=>{"use strict";function r(e){return r="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},r(e)}var n,o="https://js.stripe.com/v3",a=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,i="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",u=null,c=function(e){return null!==u||(u=new Promise((function(t,r){if("undefined"!=typeof window)if(window.Stripe&&e&&console.warn(i),window.Stripe)t(window.Stripe);else try{var n=function(){for(var e=document.querySelectorAll('script[src^="'.concat(o,'"]')),t=0;t<e.length;t++){var r=e[t];if(a.test(r.src))return r}return null}();n&&e?console.warn(i):n||(n=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",r=document.createElement("script");r.src="".concat(o).concat(t);var n=document.head||document.body;if(!n)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return n.appendChild(r),r}(e)),n.addEventListener("load",(function(){window.Stripe?t(window.Stripe):r(new Error("Stripe.js not available"))})),n.addEventListener("error",(function(){r(new Error("Failed to load Stripe.js"))}))}catch(u){return void r(u)}else t(null)}))),u},s=function(e,t,r){if(null===e)return null;var n=e.apply(void 0,t);return function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"1.46.0",startTime:t})}(n,r),n},l=!1,f=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];l=!0;var o=Date.now();return c(n).then((function(e){return s(e,t,o)}))};f.setLoadParameters=function(e){if(l)throw new Error("You cannot change load parameters after calling loadStripe");n=function(e){var t="invalid load parameters; expected object of shape\n\n {advancedFraudSignals: boolean}\n\nbut received\n\n ".concat(JSON.stringify(e),"\n");if(null===e||"object"!==r(e))throw new Error(t);if(1===Object.keys(e).length&&"boolean"==typeof e.advancedFraudSignals)return e;throw new Error(t)}(e)},t.loadStripe=f},7894:(e,t,r)=>{e.exports=r(7597)},5666:e=>{var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(T){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var a=t&&t.prototype instanceof h?t:h,i=Object.create(a.prototype),u=new P(n||[]);return o(i,"_invoke",{value:E(e,r,u)}),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var p="suspendedStart",d="executing",m="completed",y={};function h(){}function v(){}function b(){}var w={};s(w,i,(function(){return this}));var g=Object.getPrototypeOf,x=g&&g(g(q([])));x&&x!==r&&n.call(x,i)&&(w=x);var k=b.prototype=h.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function r(o,a,i,u){var c=f(e[o],e,a);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,i,u)}),(function(e){r("throw",e,i,u)})):t.resolve(l).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,u)}))}u(c.arg)}var a;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return a=a?a.then(o,o):o()}})}function E(e,t,r){var n=p;return function(o,a){if(n===d)throw new Error("Generator is already running");if(n===m){if("throw"===o)throw a;return R()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var u=j(i,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===p)throw n=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var c=f(e,t,r);if("normal"===c.type){if(n=r.done?m:"suspendedYield",c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=m,r.method="throw",r.arg=c.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function O(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function q(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:R}}function R(){return{value:t,done:!0}}return v.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=s(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},S(_.prototype),s(_.prototype,u,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new _(l(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},S(k),s(k,c,"Generator"),s(k,i,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=q,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:q(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}(e.exports);try{regeneratorRuntime=t}catch(r){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}function a(e,t,r,n,o,a,i){try{var u=e[a](i),c=u.value}catch(s){return void r(s)}u.done?t(c):Promise.resolve(c).then(n,o)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function u(e){a(i,n,o,u,c,"next",e)}function c(e){a(i,n,o,u,c,"throw",e)}u(void 0)}))}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||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.")}()}r.r(n),r.d(n,{processStreamlinedElements:()=>_});const l=window.wp.i18n;var f=r(7894);r(5666);function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],_n=!0,i=!1;try{for(r=r.call(e);!(_n=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);_n=!0);}catch(u){i=!0,o=u}finally{try{_n||null==r.return||r.return()}finally{if(i)throw o}}return a}}(e,t)||c(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var __=l.__,d=function(e,t){var r,n={};r=e.email,/\S+@\S+/.test(r)||(n.email=__("Email address is invalid.","newspack-blocks"));var o=t.minimumDonation;return o&&parseFloat(e.amount)<o&&(n.amount=(0,l.sprintf)(__("Amount must be at least %d.","newspack-blocks"),o)),0===e.full_name.length&&(n.amount=__("Full name should be provided.","newspack-blocks")),n},m=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"error";t.innerHTML="",e.forEach((function(e){if(e){var n=document.createElement("div");n.classList.add("type-".concat(r)),n.innerHTML=e,t.appendChild(n)}})),"success"===r&&t.parentElement&&t.parentElement.replaceWith(t)},y=function(e){var t=e.closest("[data-streamlined-config]"),r=null==t?void 0:t.getAttribute("data-streamlined-config");if(!r)return{};var n=p(JSON.parse(r),12),o=n[0],a=n[1],i=n[2],u=n[3],c=n[4],s=n[5],l=n[6],f=n[7],d=n[8],m=n[9],y=n[10],h=n[11];return{currency:o.toLowerCase(),currencySymbol:a,siteName:i,isCurrencyZeroDecimal:u,countryCode:c,frequencies:s,feeMultiplier:parseFloat(l),feeStatic:parseFloat(f),stripePublishableKey:d,paymentRequestType:m,captchaSiteKey:y,minimumDonation:parseFloat(h)}},h=function(e){var t=Object.fromEntries(new FormData(e)),r="donation_value_".concat(t.donation_frequency);return t.amount=t[r],"other"===t.amount&&(t.amount=t["".concat(r,"_other")]),t.amount||(t.amount=t["".concat(r,"_untiered")]),t.cid&&"string"==typeof t.cid&&0===t.cid.indexOf("CLIENT_ID")&&(t.cid=document.cookie.split("; ").reduce((function(e,t){var r=t.split("=");return e[r[0]]=r[1],e}),{})["newspack-cid"]),t},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{convertToSubunit:!1},r=t.convertToSubunit,n=y(e),o=h(e),a=o.amount,i=void 0===a?"0":a,u=o.agree_to_pay_fees,c=function(e){return r?e*(n.isCurrencyZeroDecimal?1:100):e},s=0;return u&&(s=c(w(e)||0)),c(parseFloat(i))+s},b=function(e){var t=y(e),r=h(e).donation_frequency,n=t.frequencies[r];return{label:"".concat(t.siteName," (").concat(n,")"),amount:v(e,{convertToSubunit:!0})}},w=function(e){var t=y(e),r=t.feeMultiplier,n=t.feeStatic;if(void 0===r||void 0===n||isNaN(r)||isNaN(n))return 0;var o=h(e).amount;return function(e,t,r){return parseFloat(((e+r)/(100-t)*100-e).toFixed(2))}(parseFloat(o),r,n)},g=function(){var e=i(regeneratorRuntime.mark((function e(t,r){var n,o=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>2&&void 0!==o[2]?o[2]:"POST",e.abrupt("return",fetch("/wp-json/newspack-blocks/v1".concat(t),{method:n,headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(function(){var e=i(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.json();case 2:if(r=e.sent,!t.ok){e.next=5;break}return e.abrupt("return",r);case 5:return e.abrupt("return",{error:r});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 2:case"end":return e.stop()}}),e)})));return function(_x,t){return e.apply(this,arguments)}}(),x=function(e,t){var r=(0,l.sprintf)(__("Your payment has been processed. Thank you for your contribution! You will receive a confirmation email at %s.","newspack-blocks"),e);m([r],t,"success")},k=l.__,S=function(e){return s(e.querySelectorAll("input[data-is-additional-field]")).map((function(e){return{name:e.name,value:e.value}}))},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return s(e.querySelectorAll(".stripe-payment")).forEach(function(){var e=i(regeneratorRuntime.mark((function e(t){var r,n,a,u,c,s,l,p,_,E,j,O,L,P,q,R,T,F;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c=!1,s=t.closest("form"),l=t.querySelector(".stripe-payment__messages"),s&&l){e.next=5;break}return e.abrupt("return");case 5:p=t.closest(".wpbnbd"),_="newspackPaymentFlowComplete-".concat((null==p?void 0:p.id)||""),E=y(s),j=function(){return t.classList.add("stripe-payment--disabled")},(O=function(){return t.classList.remove("stripe-payment--disabled")})(),L=function(){if(!c){var e=t.querySelector(".stripe-payment__inputs.stripe-payment--hidden");e&&(e.classList.remove("stripe-payment--hidden"),c=!0)}},P=function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){var n=window.grecaptcha;if(!n)return e("");null!=n&&n.ready&&t||r(k("Error loading the reCaptcha library.","newspack-blocks")),n.ready(i(regeneratorRuntime.mark((function o(){var a;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,n.execute(t,{action:"submit"});case 3:return a=o.sent,o.abrupt("return",e(a));case 7:o.prev=7,o.t0=o.catch(0),r(o.t0);case 10:case"end":return o.stop()}}),o,null,[[0,7]])}))))})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),q=function(){var e=i(regeneratorRuntime.mark((function e(t){var n,a,i,u,c,f,p,d,y,b,w,j,L,q,R,T,F,A=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=A.length>1&&void 0!==A[1]?A[1]:void 0,u=A.length>2&&void 0!==A[2]?A[2]:{},r){e.next=4;break}return e.abrupt("return");case 4:if(!(c=null==E?void 0:E.captchaSiteKey)){e.next=17;break}return e.prev=6,e.next=9,P(c);case 9:f=e.sent,e.next=17;break;case 12:return e.prev=12,e.t0=e.catch(6),p=e.t0 instanceof Error?e.t0.message:k("Error processing captcha request.","newspack-blocks"),m([p],l),e.abrupt("return",{error:!0});case 17:return d=h(s),y=s.closest("amp-layout.newspack-popup"),b=y&&y.hasAttribute("amp-access")?y.getAttribute("amp-access"):null,w=S(s),j=o({captchaToken:f,stripe_tokenization_method:i?null===(n=i.card)||void 0===n?void 0:n.tokenization_method:"card",stripe_source_id:t.id,amount:v(s),email:d.email,full_name:d.full_name,frequency:d.donation_frequency,newsletter_opt_in:Boolean(d.newsletter_opt_in),clientId:d.cid,origin:b,additional_fields:w},u),e.next=24,g("/donate",j);case 24:if(L=e.sent,200===(null===(a=L.data)||void 0===a?void 0:a.status)||!L.message){e.next=28;break}return m([L.message],l),e.abrupt("return",{error:!0});case 28:if(!L.error){e.next=31;break}return m([L.error],l),e.abrupt("return",{error:!0});case 31:if(q=function(e){return m([e],l),O(),window.dispatchEvent(new Event(_)),{error:!0}},!L.client_secret){e.next=55;break}return e.next=35,r.confirmCardPayment(L.client_secret);case 35:if(!(R=e.sent).error){e.next=40;break}return e.abrupt("return",q(R.error.message));case 40:if("succeeded"!==R.paymentIntent.status){e.next=44;break}x(j.email,l),e.next=55;break;case 44:if("requires_action"!==R.paymentIntent.status){e.next=54;break}return e.next=47,r.confirmCardPayment(L.client_secret);case 47:if(T=e.sent,!(F=T.error)){e.next=51;break}return e.abrupt("return",q(F.message));case 51:x(j.email,l),e.next=55;break;case 54:return e.abrupt("return",q(k("Something went wrong with the payment. Please try again later.","newspack-blocks")));case 55:return"success"===L.status&&x(j.email,l),window.dispatchEvent(new Event(_)),e.abrupt("return",{});case 58:case"end":return e.stop()}}),e,null,[[6,12]])})));return function(t){return e.apply(this,arguments)}}(),R=function(){var e=i(regeneratorRuntime.mark((function e(){var o,c,l,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,f.loadStripe)(E.stripePublishableKey);case 2:if(r=e.sent){e.next=5;break}return e.abrupt("return");case 5:if(o=t.querySelector(".stripe-payment__card")){e.next=8;break}return e.abrupt("return");case 8:return c=r.elements(),(n=c.create("card")).mount(o),a=r.paymentRequest({country:E.countryCode,currency:E.currency,total:b(s),requestPayerName:!0,requestPayerEmail:!0}),e.next=14,a.canMakePayment();case 14:if(!e.sent){e.next=28;break}if(a.on("source",function(){var e=i(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,q(t.source,u,{email:t.payerEmail,full_name:t.payerName});case 2:r=e.sent,t.complete(null!=r&&r.error?"fail":"success");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),a.on("token",function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u=t.token;case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),s.addEventListener("change",(function(){a.update({total:b(s)})})),l=c.create("paymentRequestButton",{paymentRequest:a,style:{paymentRequestButton:{type:E.paymentRequestType,height:"46px"}}}),p=t.querySelector(".stripe-payment__request-button")){e.next=23;break}return e.abrupt("return");case 23:l.mount(p),p.classList.remove("stripe-payment--hidden"),setTimeout((function(){p.classList.remove("stripe-payment__request-button--invisible")}),0),e.next=29;break;case 28:L();case 29:t.classList.remove("stripe-payment--invisible");case 30:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),new IntersectionObserver((function(e){e[0].isIntersecting&&R()})).observe(t),(T=t.querySelector('button[type="submit"]'))&&(T.onclick=function(e){c||(e.preventDefault(),L())}),(F=function(){var e=t.querySelector("#stripe-fees-amount");if(e){var r=Object.fromEntries(new FormData(s)),n=w(s);if(0===n){var o=t.querySelector("#stripe-fees-amount-container");o&&(o.style.display="none")}"string"==typeof r.donation_frequency&&(e.innerHTML="(".concat(E.currencySymbol).concat(n.toFixed(2)," ").concat(E.frequencies[r.donation_frequency].toLowerCase(),")"))}})(),s.addEventListener("change",F),s.addEventListener("submit",function(){var e=i(regeneratorRuntime.mark((function e(t){var o,a,i,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=2;break}return e.abrupt("return");case 2:if(t.preventDefault(),j(),m([k("Processing payment…","newspack-blocks")],l,"info"),a=h(s),!((i=Object.values(d(a,E))).length>0)){e.next=11;break}return m(i,l),O(),e.abrupt("return");case 11:return u=function(e){e.message&&i.push(e.message),m(i,l),O()},e.next=14,r.createSource(n,{type:"card",owner:{name:a.full_name,email:a.email}});case 14:if(!(c=e.sent).error){e.next=18;break}return u(c.error),e.abrupt("return");case 18:return e.next=20,q(c.source);case 20:null!==(o=window.newspackReaderActivation)&&void 0!==o&&o.refreshAuthentication&&window.newspackReaderActivation.refreshAuthentication();case 21:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 23:case"end":return e.stop()}}),e)})));return function(_x){return e.apply(this,arguments)}}())};_()})();var o=window;for(var a in n)o[a]=n[a];n.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})();
|
|
1
|
+
(()=>{var e={7597:(e,t)=>{"use strict";function r(e){return r="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},r(e)}var n,o="https://js.stripe.com/v3",a=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,i="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",u=null,c=function(e){return null!==u||(u=new Promise((function(t,r){if("undefined"!=typeof window)if(window.Stripe&&e&&console.warn(i),window.Stripe)t(window.Stripe);else try{var n=function(){for(var e=document.querySelectorAll('script[src^="'.concat(o,'"]')),t=0;t<e.length;t++){var r=e[t];if(a.test(r.src))return r}return null}();n&&e?console.warn(i):n||(n=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",r=document.createElement("script");r.src="".concat(o).concat(t);var n=document.head||document.body;if(!n)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return n.appendChild(r),r}(e)),n.addEventListener("load",(function(){window.Stripe?t(window.Stripe):r(new Error("Stripe.js not available"))})),n.addEventListener("error",(function(){r(new Error("Failed to load Stripe.js"))}))}catch(u){return void r(u)}else t(null)}))),u},s=function(e,t,r){if(null===e)return null;var n=e.apply(void 0,t);return function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"1.46.0",startTime:t})}(n,r),n},l=!1,p=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];l=!0;var o=Date.now();return c(n).then((function(e){return s(e,t,o)}))};p.setLoadParameters=function(e){if(l)throw new Error("You cannot change load parameters after calling loadStripe");n=function(e){var t="invalid load parameters; expected object of shape\n\n {advancedFraudSignals: boolean}\n\nbut received\n\n ".concat(JSON.stringify(e),"\n");if(null===e||"object"!==r(e))throw new Error(t);if(1===Object.keys(e).length&&"boolean"==typeof e.advancedFraudSignals)return e;throw new Error(t)}(e)},t.loadStripe=p},7894:(e,t,r)=>{e.exports=r(7597)},5666:e=>{var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(T){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var a=t&&t.prototype instanceof h?t:h,i=Object.create(a.prototype),u=new P(n||[]);return o(i,"_invoke",{value:E(e,r,u)}),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var f="suspendedStart",d="executing",m="completed",y={};function h(){}function v(){}function b(){}var w={};s(w,i,(function(){return this}));var g=Object.getPrototypeOf,x=g&&g(g(q([])));x&&x!==r&&n.call(x,i)&&(w=x);var _=b.prototype=h.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(o,a,i,u){var c=p(e[o],e,a);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,i,u)}),(function(e){r("throw",e,i,u)})):t.resolve(l).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,u)}))}u(c.arg)}var a;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return a=a?a.then(o,o):o()}})}function E(e,t,r){var n=f;return function(o,a){if(n===d)throw new Error("Generator is already running");if(n===m){if("throw"===o)throw a;return R()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var u=j(i,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var c=p(e,t,r);if("normal"===c.type){if(n=r.done?m:"suspendedYield",c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=m,r.method="throw",r.arg=c.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=p(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function O(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function q(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:R}}function R(){return{value:t,done:!0}}return v.prototype=b,o(_,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=s(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},k(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new S(l(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},k(_),s(_,c,"Generator"),s(_,i,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=q,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:q(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}(e.exports);try{regeneratorRuntime=t}catch(r){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}function a(e,t,r,n,o,a,i){try{var u=e[a](i),c=u.value}catch(s){return void r(s)}u.done?t(c):Promise.resolve(c).then(n,o)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function u(e){a(i,n,o,u,c,"next",e)}function c(e){a(i,n,o,u,c,"throw",e)}u(void 0)}))}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||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.")}()}r.r(n),r.d(n,{processStreamlinedElements:()=>S});const l=window.wp.i18n;var p=r(7894);r(5666);function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],_n=!0,i=!1;try{for(r=r.call(e);!(_n=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);_n=!0);}catch(u){i=!0,o=u}finally{try{_n||null==r.return||r.return()}finally{if(i)throw o}}return a}}(e,t)||c(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var __=l.__,d=function(e,t){var r,n={};r=e.email,/\S+@\S+/.test(r)||(n.email=__("Email address is invalid.","newspack-blocks"));var o=t.minimumDonation;return o&&parseFloat(e.amount)<o&&(n.amount=(0,l.sprintf)(__("Amount must be at least %d.","newspack-blocks"),o)),0===e.full_name.length&&(n.amount=__("Full name should be provided.","newspack-blocks")),n},m=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"error";t.innerHTML="",e.forEach((function(e){if(e){var n=document.createElement("div");n.classList.add("type-".concat(r)),n.innerHTML=e,t.appendChild(n)}})),"success"===r&&t.parentElement&&t.parentElement.replaceWith(t)},y=function(e){var t=e.closest("[data-streamlined-config]"),r=null==t?void 0:t.getAttribute("data-streamlined-config");if(!r)return{};var n=f(JSON.parse(r),12),o=n[0],a=n[1],i=n[2],u=n[3],c=n[4],s=n[5],l=n[6],p=n[7],d=n[8],m=n[9],y=n[10],h=n[11];return{currency:o.toLowerCase(),currencySymbol:a,siteName:i,isCurrencyZeroDecimal:u,countryCode:c,frequencies:s,feeMultiplier:parseFloat(l),feeStatic:parseFloat(p),stripePublishableKey:d,paymentRequestType:m,captchaSiteKey:y,minimumDonation:parseFloat(h)}},h=function(e){var t=Object.fromEntries(new FormData(e)),r="donation_value_".concat(t.donation_frequency);return t.amount=t[r],"other"===t.amount&&(t.amount=t["".concat(r,"_other")]),t.amount||(t.amount=t["".concat(r,"_untiered")]),t.cid&&"string"==typeof t.cid&&0===t.cid.indexOf("CLIENT_ID")&&(t.cid=document.cookie.split("; ").reduce((function(e,t){var r=t.split("=");return e[r[0]]=r[1],e}),{})["newspack-cid"]),t},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{convertToSubunit:!1},r=t.convertToSubunit,n=y(e),o=h(e),a=o.amount,i=void 0===a?"0":a,u=o.agree_to_pay_fees,c=function(e){return r?e*(n.isCurrencyZeroDecimal?1:100):e},s=0;return u&&(s=c(w(e)||0)),c(parseFloat(i))+s},b=function(e){var t=y(e),r=h(e).donation_frequency,n=t.frequencies[r];return{label:"".concat(t.siteName," (").concat(n,")"),amount:v(e,{convertToSubunit:!0})}},w=function(e){var t=y(e),r=t.feeMultiplier,n=t.feeStatic;if(void 0===r||void 0===n||isNaN(r)||isNaN(n))return 0;var o=h(e).amount;return function(e,t,r){return parseFloat(((e+r)/(100-t)*100-e).toFixed(2))}(parseFloat(o),r,n)},g=function(){var e=i(regeneratorRuntime.mark((function e(t,r){var n,o=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>2&&void 0!==o[2]?o[2]:"POST",e.abrupt("return",fetch("/wp-json/newspack-blocks/v1".concat(t),{method:n,headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(function(){var e=i(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.json();case 2:if(r=e.sent,!t.ok){e.next=5;break}return e.abrupt("return",r);case 5:return e.abrupt("return",{error:r});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 2:case"end":return e.stop()}}),e)})));return function(_x,t){return e.apply(this,arguments)}}(),x=function(e,t){var r=(0,l.sprintf)(__("Your payment has been processed. Thank you for your contribution! You will receive a confirmation email at %s.","newspack-blocks"),e);m([r],t,"success")},_=l.__,k=function(e){return s(e.querySelectorAll("input[data-is-additional-field]")).map((function(e){return{name:e.name,value:e.value}}))},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return s(e.querySelectorAll(".stripe-payment")).forEach(function(){var e=i(regeneratorRuntime.mark((function e(t){var r,n,a,u,c,s,l,f,S,E,j,O,L,P,q,R,T,F;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c=!1,s=t.closest("form"),l=t.querySelector(".stripe-payment__messages"),s&&l){e.next=5;break}return e.abrupt("return");case 5:f=t.closest(".wpbnbd"),S="newspackPaymentFlowComplete-".concat((null==f?void 0:f.id)||""),E=y(s),j=function(){return t.classList.add("stripe-payment--disabled")},(O=function(){return t.classList.remove("stripe-payment--disabled")})(),L=function(){if(!c){var e=t.querySelector(".stripe-payment__inputs.stripe-payment--hidden");e&&(e.classList.remove("stripe-payment--hidden"),c=!0)}},P=function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){var n=window.grecaptcha;if(!n)return e("");null!=n&&n.ready&&t||r(_("Error loading the reCaptcha library.","newspack-blocks")),n.ready(i(regeneratorRuntime.mark((function o(){var a;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,n.execute(t,{action:"submit"});case 3:return a=o.sent,o.abrupt("return",e(a));case 7:o.prev=7,o.t0=o.catch(0),r(o.t0);case 10:case"end":return o.stop()}}),o,null,[[0,7]])}))))})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),q=function(){var e=i(regeneratorRuntime.mark((function e(t){var n,a,i,u,c,p,f,d,y,b,w,j,L,q,R,T,F,A=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=A.length>1&&void 0!==A[1]?A[1]:void 0,u=A.length>2&&void 0!==A[2]?A[2]:{},r){e.next=4;break}return e.abrupt("return");case 4:if(!(c=null==E?void 0:E.captchaSiteKey)){e.next=17;break}return e.prev=6,e.next=9,P(c);case 9:p=e.sent,e.next=17;break;case 12:return e.prev=12,e.t0=e.catch(6),f=e.t0 instanceof Error?e.t0.message:_("Error processing captcha request.","newspack-blocks"),m([f],l),e.abrupt("return",{error:!0});case 17:return d=h(s),y=s.closest("amp-layout.newspack-popup"),b=y&&y.hasAttribute("amp-access")?y.getAttribute("amp-access"):null,w=k(s),j=o({captchaToken:p,stripe_tokenization_method:i?null===(n=i.card)||void 0===n?void 0:n.tokenization_method:"card",stripe_source_id:t.id,amount:v(s),email:d.email,full_name:d.full_name,frequency:d.donation_frequency,newsletter_opt_in:Boolean(d.newsletter_opt_in),newspack_popup_id:d.newspack_popup_id,_wp_http_referer:d._wp_http_referer,clientId:d.cid,origin:b,additional_fields:w},u),e.next=24,g("/donate",j);case 24:if(L=e.sent,200===(null===(a=L.data)||void 0===a?void 0:a.status)||!L.message){e.next=28;break}return m([L.message],l),e.abrupt("return",{error:!0});case 28:if(!L.error){e.next=31;break}return m([L.error],l),e.abrupt("return",{error:!0});case 31:if(q=function(e){return m([e],l),O(),window.dispatchEvent(new Event(S)),{error:!0}},!L.client_secret){e.next=55;break}return e.next=35,r.confirmCardPayment(L.client_secret);case 35:if(!(R=e.sent).error){e.next=40;break}return e.abrupt("return",q(R.error.message));case 40:if("succeeded"!==R.paymentIntent.status){e.next=44;break}x(j.email,l),e.next=55;break;case 44:if("requires_action"!==R.paymentIntent.status){e.next=54;break}return e.next=47,r.confirmCardPayment(L.client_secret);case 47:if(T=e.sent,!(F=T.error)){e.next=51;break}return e.abrupt("return",q(F.message));case 51:x(j.email,l),e.next=55;break;case 54:return e.abrupt("return",q(_("Something went wrong with the payment. Please try again later.","newspack-blocks")));case 55:return"success"===L.status&&x(j.email,l),window.dispatchEvent(new Event(S)),e.abrupt("return",{});case 58:case"end":return e.stop()}}),e,null,[[6,12]])})));return function(t){return e.apply(this,arguments)}}(),R=function(){var e=i(regeneratorRuntime.mark((function e(){var o,c,l,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,p.loadStripe)(E.stripePublishableKey);case 2:if(r=e.sent){e.next=5;break}return e.abrupt("return");case 5:if(o=t.querySelector(".stripe-payment__card")){e.next=8;break}return e.abrupt("return");case 8:return c=r.elements(),(n=c.create("card")).mount(o),a=r.paymentRequest({country:E.countryCode,currency:E.currency,total:b(s),requestPayerName:!0,requestPayerEmail:!0}),e.next=14,a.canMakePayment();case 14:if(!e.sent){e.next=28;break}if(a.on("source",function(){var e=i(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,q(t.source,u,{email:t.payerEmail,full_name:t.payerName});case 2:r=e.sent,t.complete(null!=r&&r.error?"fail":"success");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),a.on("token",function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u=t.token;case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),s.addEventListener("change",(function(){a.update({total:b(s)})})),l=c.create("paymentRequestButton",{paymentRequest:a,style:{paymentRequestButton:{type:E.paymentRequestType,height:"46px"}}}),f=t.querySelector(".stripe-payment__request-button")){e.next=23;break}return e.abrupt("return");case 23:l.mount(f),f.classList.remove("stripe-payment--hidden"),setTimeout((function(){f.classList.remove("stripe-payment__request-button--invisible")}),0),e.next=29;break;case 28:L();case 29:t.classList.remove("stripe-payment--invisible");case 30:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),new IntersectionObserver((function(e){e[0].isIntersecting&&R()})).observe(t),(T=t.querySelector('button[type="submit"]'))&&(T.onclick=function(e){c||(e.preventDefault(),L())}),(F=function(){var e=t.querySelector("#stripe-fees-amount");if(e){var r=Object.fromEntries(new FormData(s)),n=w(s);if(0===n){var o=t.querySelector("#stripe-fees-amount-container");o&&(o.style.display="none")}"string"==typeof r.donation_frequency&&(e.innerHTML="(".concat(E.currencySymbol).concat(n.toFixed(2)," ").concat(E.frequencies[r.donation_frequency].toLowerCase(),")"))}})(),s.addEventListener("change",F),s.addEventListener("submit",function(){var e=i(regeneratorRuntime.mark((function e(t){var o,a,i,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=2;break}return e.abrupt("return");case 2:if(t.preventDefault(),j(),m([_("Processing payment…","newspack-blocks")],l,"info"),a=h(s),!((i=Object.values(d(a,E))).length>0)){e.next=11;break}return m(i,l),O(),e.abrupt("return");case 11:return u=function(e){e.message&&i.push(e.message),m(i,l),O()},e.next=14,r.createSource(n,{type:"card",owner:{name:a.full_name,email:a.email}});case 14:if(!(c=e.sent).error){e.next=18;break}return u(c.error),e.abrupt("return");case 18:return e.next=20,q(c.source);case 20:null!==(o=window.newspackReaderActivation)&&void 0!==o&&o.refreshAuthentication&&window.newspackReaderActivation.refreshAuthentication();case 21:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 23:case"end":return e.stop()}}),e)})));return function(_x){return e.apply(this,arguments)}}())};S()})();var o=window;for(var a in n)o[a]=n[a];n.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@-webkit-keyframes loader{0%{background-position:100% 50%}50%{background-position:0 50%}to{background-position:100% 50%}}@keyframes loader{0%{background-position:100% 50%}50%{background-position:0 50%}to{background-position:100% 50%}}.wp-block-newspack-blocks-donate .stripe-payment{position:relative}.wp-block-newspack-blocks-donate .stripe-payment,.wp-block-newspack-blocks-donate .stripe-payment--transition,.wp-block-newspack-blocks-donate .stripe-payment:after{transition:all .3s ease-out}.wp-block-newspack-blocks-donate .stripe-payment:after{content:"";opacity:0;pointer-events:none;position:absolute;top:0;right:0;width:100%;height:100%;background:linear-gradient(-318deg,#d5d5d5,#fff);background-size:400% 400%;-webkit-animation:loader 3s ease infinite;animation:loader 3s ease infinite;border-radius:5px}.wp-block-newspack-blocks-donate .stripe-payment__card{padding:.34rem .66rem;min-height:32px}.wp-block-newspack-blocks-donate .stripe-payment__card,.wp-block-newspack-blocks-donate .stripe-payment input[type=email],.wp-block-newspack-blocks-donate .stripe-payment input[type=text]{border:1px solid #ccc;border-radius:3px}.wp-block-newspack-blocks-donate .stripe-payment__checkbox,.wp-block-newspack-blocks-donate .stripe-payment button,.wp-block-newspack-blocks-donate .stripe-payment input[type=email],.wp-block-newspack-blocks-donate .stripe-payment input[type=text]{font-size:.7em}.wp-block-newspack-blocks-donate .stripe-payment__messages,.wp-block-newspack-blocks-donate .stripe-payment input[type=email],.wp-block-newspack-blocks-donate .stripe-payment input[type=text]{width:100%}.wp-block-newspack-blocks-donate .stripe-payment input[type=email],.wp-block-newspack-blocks-donate .stripe-payment input[type=text]{border-radius:3px;font-family:sans-serif}@media only screen and (min-width:782px){.wp-block-newspack-blocks-donate .stripe-payment input[type=email],.wp-block-newspack-blocks-donate .stripe-payment input[type=text]{font-size:14px;line-height:1.2}}.wp-block-newspack-blocks-donate .stripe-payment--invisible>*{opacity:0}.wp-block-newspack-blocks-donate .stripe-payment--invisible:after{opacity:1}.wp-block-newspack-blocks-donate .stripe-payment--hidden{display:none}.wp-block-newspack-blocks-donate .stripe-payment__checkbox{align-items:center;display:inline-flex;cursor:pointer}.wp-block-newspack-blocks-donate .stripe-payment__checkbox input{height:1em;width:1em;margin-left:.5em}.wp-block-newspack-blocks-donate .stripe-payment__messages{margin-bottom:10px}.wp-block-newspack-blocks-donate .stripe-payment__messages>div{border:solid #dfdfdf;border-width:0 4px 0 0;font-size:.8em;margin-top:.76rem;padding:.38rem .76rem}.wp-block-newspack-blocks-donate .stripe-payment__messages>div:empty{border:0;margin:0;padding:0}.wp-block-newspack-blocks-donate .stripe-payment__messages>div.type-error{background-color:rgba(
|
|
1
|
+
@-webkit-keyframes loader{0%{background-position:100% 50%}50%{background-position:0 50%}to{background-position:100% 50%}}@keyframes loader{0%{background-position:100% 50%}50%{background-position:0 50%}to{background-position:100% 50%}}.wp-block-newspack-blocks-donate .stripe-payment{position:relative}.wp-block-newspack-blocks-donate .stripe-payment,.wp-block-newspack-blocks-donate .stripe-payment--transition,.wp-block-newspack-blocks-donate .stripe-payment:after{transition:all .3s ease-out}.wp-block-newspack-blocks-donate .stripe-payment:after{content:"";opacity:0;pointer-events:none;position:absolute;top:0;right:0;width:100%;height:100%;background:linear-gradient(-318deg,#d5d5d5,#fff);background-size:400% 400%;-webkit-animation:loader 3s ease infinite;animation:loader 3s ease infinite;border-radius:5px}.wp-block-newspack-blocks-donate .stripe-payment__card{padding:.34rem .66rem;min-height:32px}.wp-block-newspack-blocks-donate .stripe-payment__card,.wp-block-newspack-blocks-donate .stripe-payment input[type=email],.wp-block-newspack-blocks-donate .stripe-payment input[type=text]{border:1px solid #ccc;border-radius:3px}.wp-block-newspack-blocks-donate .stripe-payment__checkbox,.wp-block-newspack-blocks-donate .stripe-payment button,.wp-block-newspack-blocks-donate .stripe-payment input[type=email],.wp-block-newspack-blocks-donate .stripe-payment input[type=text]{font-size:.7em}.wp-block-newspack-blocks-donate .stripe-payment__messages,.wp-block-newspack-blocks-donate .stripe-payment input[type=email],.wp-block-newspack-blocks-donate .stripe-payment input[type=text]{width:100%}.wp-block-newspack-blocks-donate .stripe-payment input[type=email],.wp-block-newspack-blocks-donate .stripe-payment input[type=text]{border-radius:3px;font-family:sans-serif}@media only screen and (min-width:782px){.wp-block-newspack-blocks-donate .stripe-payment input[type=email],.wp-block-newspack-blocks-donate .stripe-payment input[type=text]{font-size:14px;line-height:1.2}}.wp-block-newspack-blocks-donate .stripe-payment--invisible>*{opacity:0}.wp-block-newspack-blocks-donate .stripe-payment--invisible:after{opacity:1}.wp-block-newspack-blocks-donate .stripe-payment--hidden{display:none}.wp-block-newspack-blocks-donate .stripe-payment__checkbox{align-items:center;display:inline-flex;cursor:pointer}.wp-block-newspack-blocks-donate .stripe-payment__checkbox input{height:1em;width:1em;margin-left:.5em}.wp-block-newspack-blocks-donate .stripe-payment__messages{margin-bottom:10px}.wp-block-newspack-blocks-donate .stripe-payment__messages>div{border:solid #dfdfdf;border-width:0 4px 0 0;font-size:.8em;margin-top:.76rem;padding:.38rem .76rem}.wp-block-newspack-blocks-donate .stripe-payment__messages>div:empty{border:0;margin:0;padding:0}.wp-block-newspack-blocks-donate .stripe-payment__messages>div.type-error{background-color:rgba(204,24,24,.075);border-color:#cc1818}.wp-block-newspack-blocks-donate .stripe-payment__messages>div.type-success{background-color:rgba(74,184,102,.075);border-color:#4ab866;margin:1.12rem}.wp-block-newspack-blocks-donate .stripe-payment--disabled button,.wp-block-newspack-blocks-donate .stripe-payment--disabled input{pointer-events:none;opacity:.4}.wp-block-newspack-blocks-donate .stripe-payment__element{margin-bottom:.4rem}.wp-block-newspack-blocks-donate .stripe-payment__row{margin-bottom:.5rem}.wp-block-newspack-blocks-donate .stripe-payment__row--small{margin-bottom:5px;line-height:1.2}.wp-block-newspack-blocks-donate .stripe-payment__row--flex{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap}@media only screen and (min-width:782px){.wp-block-newspack-blocks-donate .stripe-payment__row--flex{flex-wrap:nowrap}}.wp-block-newspack-blocks-donate .stripe-payment__row--flex input{margin-bottom:.5rem}@media only screen and (min-width:782px){.wp-block-newspack-blocks-donate .stripe-payment__row--flex input{margin-bottom:0;width:50%}.wp-block-newspack-blocks-donate .stripe-payment__row--flex input+input{margin-right:.5rem}}.wp-block-newspack-blocks-donate .stripe-payment__row--additional-fields{display:flex;flex-wrap:wrap;margin-right:-.25rem;margin-left:-.25rem}.wp-block-newspack-blocks-donate .stripe-payment__row--additional-fields>input{margin-bottom:.5rem;margin-right:.25rem;margin-left:.25rem}.wp-block-newspack-blocks-donate .stripe-payment__info{color:#767676;font-size:.7em;font-style:italic;padding-right:1.5em;display:none}@media only screen and (min-width:600px){.wp-block-newspack-blocks-donate .stripe-payment__info{display:block}}.wp-block-newspack-blocks-donate .stripe-payment__footer{align-items:flex-end;margin-bottom:1.32rem;margin-right:-10px;margin-left:-10px}.wp-block-newspack-blocks-donate .stripe-payment__footer>*{padding-right:10px;padding-left:10px}.wp-block-newspack-blocks-donate .stripe-payment__methods{display:flex;flex-wrap:wrap;width:100%}@media only screen and (min-width:600px){.wp-block-newspack-blocks-donate .stripe-payment__methods{width:auto}}.wp-block-newspack-blocks-donate .stripe-payment__methods button{margin-right:0;margin-left:0;margin-bottom:0;height:46px}.wp-block-newspack-blocks-donate .stripe-payment__methods>*{width:100%}.wp-block-newspack-blocks-donate .stripe-payment__methods>:not(:last-child){margin-bottom:10px}@media only screen and (min-width:600px){.wp-block-newspack-blocks-donate .stripe-payment__methods>*{width:auto}}.wp-block-newspack-blocks-donate .stripe-payment__request-button{min-width:190px}@media only screen and (min-width:600px){.wp-block-newspack-blocks-donate .stripe-payment__request-button{margin-left:1em}}.wp-block-newspack-blocks-donate .stripe-payment__request-button--invisible{opacity:0}.wp-block-newspack-blocks-donate__stripe{margin:.38rem .76rem .76rem}@media only screen and (min-width:782px){.wp-block-newspack-blocks-donate__stripe{margin-right:1.5rem;margin-left:1.5rem}}.wp-block-newspack-blocks-donate__stripe--editor input:first-child{margin-top:0}#stripe-fees-amount{padding-right:3px}.wpbnbd.is-style-alternate .wp-block-newspack-blocks-donate__stripe{margin:1.12rem 1.12rem 0}.wpbnbd.is-style-alternate .stripe-payment__row{margin-bottom:.56rem}.wpbnbd.is-style-alternate .stripe-payment__footer{margin:0 0 1.12rem}.wpbnbd.is-style-alternate .stripe-payment__footer>*{padding:0}.wpbnbd.is-style-alternate .stripe-payment__footer button{border-top-right-radius:5px;border-top-left-radius:5px;margin:0;width:auto}.wpbnbd.is-style-minimal .wp-block-newspack-blocks-donate__stripe{margin:0;text-align:right}.wpbnbd.is-style-minimal .stripe-payment__row{margin-bottom:.56rem}.wpbnbd.is-style-minimal .stripe-payment__inputs{margin-bottom:1.12rem}.wpbnbd.is-style-minimal .stripe-payment__footer{margin:0 0 1.12rem}.wpbnbd.is-style-minimal .stripe-payment__footer>*{padding:0}
|
package/dist/editor.asset.php
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '1a0aceabc22a85ddb6887cd6b70ea382');
|