@automattic/newspack-blocks 1.62.0 → 1.63.0

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.
Files changed (36) hide show
  1. package/.cache/babel/5e04dda33432537a699ab71a27655be2.json.gz +0 -0
  2. package/.cache/babel/81d61663497adb3168841f4a2209d3f7.json.gz +0 -0
  3. package/.cache/babel/94da44980d733eb5af862cce75e78e73.json.gz +0 -0
  4. package/CHANGELOG.md +26 -0
  5. package/composer.lock +38 -38
  6. package/dist/carousel/view.asset.php +1 -1
  7. package/dist/donate/view.asset.php +1 -1
  8. package/dist/donate/view.css +1 -1
  9. package/dist/donate/view.rtl.css +1 -1
  10. package/dist/donateStreamlined.asset.php +1 -1
  11. package/dist/donateStreamlined.js +1 -1
  12. package/dist/editor.asset.php +1 -1
  13. package/dist/editor.css +1 -1
  14. package/dist/editor.rtl.css +1 -1
  15. package/dist/homepage-articles/view.asset.php +1 -1
  16. package/dist/homepage-articles/view.css +1 -1
  17. package/dist/homepage-articles/view.rtl.css +1 -1
  18. package/newspack-blocks.php +2 -2
  19. package/package.json +4 -4
  20. package/src/blocks/author-list/block.json +6 -1
  21. package/src/blocks/author-list/view.php +1 -1
  22. package/src/blocks/author-profile/view.php +1 -1
  23. package/src/blocks/donate/class-wp-rest-newspack-donate-controller.php +24 -30
  24. package/src/blocks/donate/frontend/class-newspack-blocks-donate-renderer-base.php +1 -1
  25. package/src/blocks/donate/streamlined/index.test.js +2 -2
  26. package/src/blocks/donate/streamlined/index.ts +18 -33
  27. package/src/blocks/donate/styles/view.scss +4 -0
  28. package/src/blocks/homepage-articles/view.scss +4 -0
  29. package/src/blocks/shared/author.js +3 -3
  30. package/vendor/autoload.php +1 -1
  31. package/vendor/composer/autoload_real.php +4 -4
  32. package/vendor/composer/autoload_static.php +2 -2
  33. package/vendor/composer/installed.php +2 -2
  34. package/.cache/babel/9ed09b96b5f2df9daa6ce37304a7440e.json.gz +0 -0
  35. package/.cache/babel/ae0944270a644af5be09780d8243f357.json.gz +0 -0
  36. package/.cache/babel/ae5234090fe105d107e9c099fcb2465f.json.gz +0 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,29 @@
1
+ # [1.63.0](https://github.com/Automattic/newspack-blocks/compare/v1.62.0...v1.63.0) (2023-02-28)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * attribute types for custom author fields ([#1365](https://github.com/Automattic/newspack-blocks/issues/1365)) ([483e49c](https://github.com/Automattic/newspack-blocks/commit/483e49cd2923ad0d9f0e5c8030df23e8e64138cb))
7
+ * remove mark background in Newspack blocks ([#1363](https://github.com/Automattic/newspack-blocks/issues/1363)) ([295b7d1](https://github.com/Automattic/newspack-blocks/commit/295b7d18df51f4bb6991c415d5e288af0dbb647f))
8
+
9
+
10
+ ### Features
11
+
12
+ * **donate-block:** native wc subs ([#1359](https://github.com/Automattic/newspack-blocks/issues/1359)) ([9834aa0](https://github.com/Automattic/newspack-blocks/commit/9834aa0ade7d74fe2ab832ccdd96859917ca2ac0))
13
+
14
+ # [1.63.0-alpha.1](https://github.com/Automattic/newspack-blocks/compare/v1.62.0...v1.63.0-alpha.1) (2023-02-17)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * attribute types for custom author fields ([#1365](https://github.com/Automattic/newspack-blocks/issues/1365)) ([483e49c](https://github.com/Automattic/newspack-blocks/commit/483e49cd2923ad0d9f0e5c8030df23e8e64138cb))
20
+ * remove mark background in Newspack blocks ([#1363](https://github.com/Automattic/newspack-blocks/issues/1363)) ([295b7d1](https://github.com/Automattic/newspack-blocks/commit/295b7d18df51f4bb6991c415d5e288af0dbb647f))
21
+
22
+
23
+ ### Features
24
+
25
+ * **donate-block:** native wc subs ([#1359](https://github.com/Automattic/newspack-blocks/issues/1359)) ([9834aa0](https://github.com/Automattic/newspack-blocks/commit/9834aa0ade7d74fe2ab832ccdd96859917ca2ac0))
26
+
1
27
  # [1.62.0](https://github.com/Automattic/newspack-blocks/compare/v1.61.0...v1.62.0) (2023-02-16)
2
28
 
3
29
 
package/composer.lock CHANGED
@@ -483,16 +483,16 @@
483
483
  },
484
484
  {
485
485
  "name": "nikic/php-parser",
486
- "version": "v4.15.2",
486
+ "version": "v4.15.3",
487
487
  "source": {
488
488
  "type": "git",
489
489
  "url": "https://github.com/nikic/PHP-Parser.git",
490
- "reference": "f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc"
490
+ "reference": "570e980a201d8ed0236b0a62ddf2c9cbb2034039"
491
491
  },
492
492
  "dist": {
493
493
  "type": "zip",
494
- "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc",
495
- "reference": "f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc",
494
+ "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/570e980a201d8ed0236b0a62ddf2c9cbb2034039",
495
+ "reference": "570e980a201d8ed0236b0a62ddf2c9cbb2034039",
496
496
  "shasum": ""
497
497
  },
498
498
  "require": {
@@ -533,9 +533,9 @@
533
533
  ],
534
534
  "support": {
535
535
  "issues": "https://github.com/nikic/PHP-Parser/issues",
536
- "source": "https://github.com/nikic/PHP-Parser/tree/v4.15.2"
536
+ "source": "https://github.com/nikic/PHP-Parser/tree/v4.15.3"
537
537
  },
538
- "time": "2022-11-12T15:38:23+00:00"
538
+ "time": "2023-01-16T22:05:37+00:00"
539
539
  },
540
540
  {
541
541
  "name": "phar-io/manifest",
@@ -823,16 +823,16 @@
823
823
  },
824
824
  {
825
825
  "name": "phpunit/php-code-coverage",
826
- "version": "9.2.23",
826
+ "version": "9.2.24",
827
827
  "source": {
828
828
  "type": "git",
829
829
  "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
830
- "reference": "9f1f0f9a2fbb680b26d1cf9b61b6eac43a6e4e9c"
830
+ "reference": "2cf940ebc6355a9d430462811b5aaa308b174bed"
831
831
  },
832
832
  "dist": {
833
833
  "type": "zip",
834
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/9f1f0f9a2fbb680b26d1cf9b61b6eac43a6e4e9c",
835
- "reference": "9f1f0f9a2fbb680b26d1cf9b61b6eac43a6e4e9c",
834
+ "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2cf940ebc6355a9d430462811b5aaa308b174bed",
835
+ "reference": "2cf940ebc6355a9d430462811b5aaa308b174bed",
836
836
  "shasum": ""
837
837
  },
838
838
  "require": {
@@ -888,7 +888,7 @@
888
888
  ],
889
889
  "support": {
890
890
  "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
891
- "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.23"
891
+ "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.24"
892
892
  },
893
893
  "funding": [
894
894
  {
@@ -896,7 +896,7 @@
896
896
  "type": "github"
897
897
  }
898
898
  ],
899
- "time": "2022-12-28T12:41:10+00:00"
899
+ "time": "2023-01-26T08:26:55+00:00"
900
900
  },
901
901
  {
902
902
  "name": "phpunit/php-file-iterator",
@@ -1141,16 +1141,16 @@
1141
1141
  },
1142
1142
  {
1143
1143
  "name": "phpunit/phpunit",
1144
- "version": "9.5.28",
1144
+ "version": "9.6.3",
1145
1145
  "source": {
1146
1146
  "type": "git",
1147
1147
  "url": "https://github.com/sebastianbergmann/phpunit.git",
1148
- "reference": "954ca3113a03bf780d22f07bf055d883ee04b65e"
1148
+ "reference": "e7b1615e3e887d6c719121c6d4a44b0ab9645555"
1149
1149
  },
1150
1150
  "dist": {
1151
1151
  "type": "zip",
1152
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/954ca3113a03bf780d22f07bf055d883ee04b65e",
1153
- "reference": "954ca3113a03bf780d22f07bf055d883ee04b65e",
1152
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/e7b1615e3e887d6c719121c6d4a44b0ab9645555",
1153
+ "reference": "e7b1615e3e887d6c719121c6d4a44b0ab9645555",
1154
1154
  "shasum": ""
1155
1155
  },
1156
1156
  "require": {
@@ -1192,7 +1192,7 @@
1192
1192
  "type": "library",
1193
1193
  "extra": {
1194
1194
  "branch-alias": {
1195
- "dev-master": "9.5-dev"
1195
+ "dev-master": "9.6-dev"
1196
1196
  }
1197
1197
  },
1198
1198
  "autoload": {
@@ -1223,7 +1223,7 @@
1223
1223
  ],
1224
1224
  "support": {
1225
1225
  "issues": "https://github.com/sebastianbergmann/phpunit/issues",
1226
- "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.28"
1226
+ "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.3"
1227
1227
  },
1228
1228
  "funding": [
1229
1229
  {
@@ -1239,7 +1239,7 @@
1239
1239
  "type": "tidelift"
1240
1240
  }
1241
1241
  ],
1242
- "time": "2023-01-14T12:32:24+00:00"
1242
+ "time": "2023-02-04T13:37:15+00:00"
1243
1243
  },
1244
1244
  {
1245
1245
  "name": "psr/container",
@@ -1655,16 +1655,16 @@
1655
1655
  },
1656
1656
  {
1657
1657
  "name": "sebastian/environment",
1658
- "version": "5.1.4",
1658
+ "version": "5.1.5",
1659
1659
  "source": {
1660
1660
  "type": "git",
1661
1661
  "url": "https://github.com/sebastianbergmann/environment.git",
1662
- "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7"
1662
+ "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed"
1663
1663
  },
1664
1664
  "dist": {
1665
1665
  "type": "zip",
1666
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/1b5dff7bb151a4db11d49d90e5408e4e938270f7",
1667
- "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7",
1666
+ "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/830c43a844f1f8d5b7a1f6d6076b784454d8b7ed",
1667
+ "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed",
1668
1668
  "shasum": ""
1669
1669
  },
1670
1670
  "require": {
@@ -1706,7 +1706,7 @@
1706
1706
  ],
1707
1707
  "support": {
1708
1708
  "issues": "https://github.com/sebastianbergmann/environment/issues",
1709
- "source": "https://github.com/sebastianbergmann/environment/tree/5.1.4"
1709
+ "source": "https://github.com/sebastianbergmann/environment/tree/5.1.5"
1710
1710
  },
1711
1711
  "funding": [
1712
1712
  {
@@ -1714,7 +1714,7 @@
1714
1714
  "type": "github"
1715
1715
  }
1716
1716
  ],
1717
- "time": "2022-04-03T09:37:03+00:00"
1717
+ "time": "2023-02-03T06:03:51+00:00"
1718
1718
  },
1719
1719
  {
1720
1720
  "name": "sebastian/exporter",
@@ -2028,16 +2028,16 @@
2028
2028
  },
2029
2029
  {
2030
2030
  "name": "sebastian/recursion-context",
2031
- "version": "4.0.4",
2031
+ "version": "4.0.5",
2032
2032
  "source": {
2033
2033
  "type": "git",
2034
2034
  "url": "https://github.com/sebastianbergmann/recursion-context.git",
2035
- "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172"
2035
+ "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1"
2036
2036
  },
2037
2037
  "dist": {
2038
2038
  "type": "zip",
2039
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/cd9d8cf3c5804de4341c283ed787f099f5506172",
2040
- "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172",
2039
+ "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1",
2040
+ "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1",
2041
2041
  "shasum": ""
2042
2042
  },
2043
2043
  "require": {
@@ -2076,10 +2076,10 @@
2076
2076
  }
2077
2077
  ],
2078
2078
  "description": "Provides functionality to recursively process PHP variables",
2079
- "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
2079
+ "homepage": "https://github.com/sebastianbergmann/recursion-context",
2080
2080
  "support": {
2081
2081
  "issues": "https://github.com/sebastianbergmann/recursion-context/issues",
2082
- "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.4"
2082
+ "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.5"
2083
2083
  },
2084
2084
  "funding": [
2085
2085
  {
@@ -2087,7 +2087,7 @@
2087
2087
  "type": "github"
2088
2088
  }
2089
2089
  ],
2090
- "time": "2020-10-26T13:17:30+00:00"
2090
+ "time": "2023-02-03T06:07:39+00:00"
2091
2091
  },
2092
2092
  {
2093
2093
  "name": "sebastian/resource-operations",
@@ -2146,16 +2146,16 @@
2146
2146
  },
2147
2147
  {
2148
2148
  "name": "sebastian/type",
2149
- "version": "3.2.0",
2149
+ "version": "3.2.1",
2150
2150
  "source": {
2151
2151
  "type": "git",
2152
2152
  "url": "https://github.com/sebastianbergmann/type.git",
2153
- "reference": "fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e"
2153
+ "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7"
2154
2154
  },
2155
2155
  "dist": {
2156
2156
  "type": "zip",
2157
- "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e",
2158
- "reference": "fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e",
2157
+ "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7",
2158
+ "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7",
2159
2159
  "shasum": ""
2160
2160
  },
2161
2161
  "require": {
@@ -2190,7 +2190,7 @@
2190
2190
  "homepage": "https://github.com/sebastianbergmann/type",
2191
2191
  "support": {
2192
2192
  "issues": "https://github.com/sebastianbergmann/type/issues",
2193
- "source": "https://github.com/sebastianbergmann/type/tree/3.2.0"
2193
+ "source": "https://github.com/sebastianbergmann/type/tree/3.2.1"
2194
2194
  },
2195
2195
  "funding": [
2196
2196
  {
@@ -2198,7 +2198,7 @@
2198
2198
  "type": "github"
2199
2199
  }
2200
2200
  ],
2201
- "time": "2022-09-12T14:47:03+00:00"
2201
+ "time": "2023-02-03T06:13:03+00:00"
2202
2202
  },
2203
2203
  {
2204
2204
  "name": "sebastian/version",
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-a11y', 'wp-dom-ready', 'wp-escape-html', 'wp-i18n', 'wp-polyfill'), 'version' => '9f26df1203829af22bbffe69c5f51170');
1
+ <?php return array('dependencies' => array('wp-a11y', 'wp-dom-ready', 'wp-escape-html', 'wp-i18n', 'wp-polyfill'), 'version' => '73f7007a5b115ea4cee28acfd0df0ccd');
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-polyfill'), 'version' => '377e7801f24d61801f716be27244f61b');
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => 'a4061072b4ae9f3f0b66be0b306738a8');
@@ -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}
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 +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}
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 +1 @@
1
- <?php return array('dependencies' => array('wp-i18n', 'wp-polyfill'), 'version' => 'dc4732eeb0f4ed34003bc2a7099d3a6b');
1
+ <?php return array('dependencies' => array('wp-i18n', 'wp-polyfill'), 'version' => '11d3f22717eca27b719a9133acfed2bd');
@@ -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 g={};s(g,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(q([])));x&&x!==r&&n.call(x,i)&&(g=x);var k=b.prototype=h.prototype=Object.create(g);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(g(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})}},g=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)},w=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,A;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=!1,l=t.closest("form"),p=t.querySelector(".stripe-payment__messages"),l&&p){e.next=5;break}return e.abrupt("return");case 5:_=t.closest(".wpbnbd"),E="newspackPaymentFlowComplete-".concat((null==_?void 0:_.id)||""),j=y(l),O=function(){return t.classList.add("stripe-payment--disabled")},(L=function(){return t.classList.remove("stripe-payment--disabled")})(),P=function(){if(!s){var e=t.querySelector(".stripe-payment__inputs.stripe-payment--hidden");e&&(e.classList.remove("stripe-payment--hidden"),s=!0)}},q=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)}}(),R=function(){var e=i(regeneratorRuntime.mark((function e(t){var n,a,i,c,s,f,d,y,b,g,_,O,P,R,T,F=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=F.length>1&&void 0!==F[1]?F[1]:{},r){e.next=3;break}return e.abrupt("return");case 3:if(!(i=null==j?void 0:j.captchaSiteKey)){e.next=16;break}return e.prev=5,e.next=8,q(i);case 8:c=e.sent,e.next=16;break;case 11:return e.prev=11,e.t0=e.catch(5),s=e.t0 instanceof Error?e.t0.message:k("Error processing captcha request.","newspack-blocks"),m([s],p),e.abrupt("return",{error:!0});case 16:return f=h(l),d=l.closest("amp-layout.newspack-popup"),y=d&&d.hasAttribute("amp-access")?d.getAttribute("amp-access"):null,b=S(l),g=o({captchaToken:c,tokenData:t,amount:v(l),email:f.email,full_name:f.full_name,frequency:f.donation_frequency,newsletter_opt_in:Boolean(f.newsletter_opt_in),clientId:f.cid,origin:y,additional_fields:b},a),e.next=23,w("/donate",g);case 23:if(_=e.sent,200===(null===(n=_.data)||void 0===n?void 0:n.status)||!_.message){e.next=27;break}return m([_.message],p),e.abrupt("return",{error:!0});case 27:if(!_.error){e.next=30;break}return m([_.error],p),e.abrupt("return",{error:!0});case 30:if(O=function(e){return m([e],p),L(),window.dispatchEvent(new Event(E)),{error:!0}},!_.client_secret||!u){e.next=54;break}return e.next=34,r.confirmCardPayment(_.client_secret,{payment_method:u});case 34:if(!(P=e.sent).error){e.next=39;break}return e.abrupt("return",O(P.error.message));case 39:if("succeeded"!==P.paymentIntent.status){e.next=43;break}x(g.email,p),e.next=54;break;case 43:if("requires_action"!==P.paymentIntent.status){e.next=53;break}return e.next=46,r.confirmCardPayment(_.client_secret);case 46:if(R=e.sent,!(T=R.error)){e.next=50;break}return e.abrupt("return",O(T.message));case 50:x(g.email,p),e.next=54;break;case 53:return e.abrupt("return",O(k("Something went wrong with the payment. Please try again later.","newspack-blocks")));case 54:return"success"===_.status&&x(g.email,p),window.dispatchEvent(new Event(E)),e.abrupt("return",{});case 57:case"end":return e.stop()}}),e,null,[[5,11]])})));return function(t){return e.apply(this,arguments)}}(),T=function(){var e=i(regeneratorRuntime.mark((function e(){var o,s,p,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,f.loadStripe)(j.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 s=r.elements(),(n=s.create("card")).mount(o),a=r.paymentRequest({country:j.countryCode,currency:j.currency,total:b(l),requestPayerName:!0,requestPayerEmail:!0}),e.next=14,a.canMakePayment();case 14:if(!e.sent){e.next=28;break}if(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:c=t.token;case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),a.on("paymentmethod",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 u=t.paymentMethod.id,e.next=3,R(c,{email:t.payerEmail,full_name:t.payerName,payment_method_id:u});case 3:r=e.sent,t.complete(null!=r&&r.error?"fail":"success");case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),l.addEventListener("change",(function(){a.update({total:b(l)})})),p=s.create("paymentRequestButton",{paymentRequest:a,style:{paymentRequestButton:{type:j.paymentRequestType,height:"46px"}}}),d=t.querySelector(".stripe-payment__request-button")){e.next=23;break}return e.abrupt("return");case 23:p.mount(d),d.classList.remove("stripe-payment--hidden"),setTimeout((function(){d.classList.remove("stripe-payment__request-button--invisible")}),0),e.next=29;break;case 28:P();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&&T()})).observe(t),(F=t.querySelector('button[type="submit"]'))&&(F.onclick=function(e){s||(e.preventDefault(),P())}),(A=function(){var e=t.querySelector("#stripe-fees-amount");if(e){var r=Object.fromEntries(new FormData(l)),n=g(l);if(0===n){var o=t.querySelector("#stripe-fees-amount-container");o&&(o.style.display="none")}"string"==typeof r.donation_frequency&&(e.innerHTML="(".concat(j.currencySymbol).concat(n.toFixed(2)," ").concat(j.frequencies[r.donation_frequency].toLowerCase(),")"))}})(),l.addEventListener("change",A),l.addEventListener("submit",function(){var e=i(regeneratorRuntime.mark((function e(t){var o,a,i,c,s,f;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(),O(),m([k("Processing payment…","newspack-blocks")],p,"info"),a=h(l),!((i=Object.values(d(a,j))).length>0)){e.next=11;break}return m(i,p),L(),e.abrupt("return");case 11:return c=function(e){e.message&&i.push(e.message),m(i,p),L()},e.next=14,r.createToken(n);case 14:if(!(s=e.sent).error){e.next=18;break}return c(s.error),e.abrupt("return");case 18:return e.next=20,r.createPaymentMethod({type:"card",card:n,billing_details:{name:a.full_name,email:a.email}});case 20:if(!(f=e.sent).error){e.next=24;break}return c(f.error),e.abrupt("return");case 24:return u={card:n},e.next=27,R(s.token,{payment_method_id:f.paymentMethod.id});case 27:null!==(o=window.newspackReaderActivation)&&void 0!==o&&o.refreshAuthentication&&window.newspackReaderActivation.refreshAuthentication();case 28: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,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 +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' => '02b26f394811fa43199403ae1ee602e3');
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' => 'ce1d09f7cbf392714606543c2089e9e6');