@economist/web-apple-pay 1.7.10 → 1.8.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.
- package/dist/index.js +63 -19
- package/dist/src/apple-pay-button.js +63 -19
- package/dist/src/apple-pay-button.stories.js +63 -19
- package/dist/src/apple-pay-logo.js +2 -1
- package/dist/src/apple-pay-modal.js +2 -1
- package/dist/src/apple-pay-modal.stories.js +63 -19
- package/dist/src/index.js +63 -19
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -66,12 +66,13 @@ function formatPrice(price, currencyCode, shouldFixDecimalPlaces = true, roundUp
|
|
|
66
66
|
// src/apple-pay-logo.ts
|
|
67
67
|
var LOGO_DEFS_ID = "apple-pay-logo-defs";
|
|
68
68
|
var LOGO_PATH = "M10.2651 4.21143C10.4299 4.21143 10.7106 4.23763 11.1074 4.29004C11.5042 4.34245 11.9385 4.49219 12.4102 4.73926C12.8893 4.97884 13.3236 5.37939 13.7129 5.94092C13.6904 5.96338 13.5819 6.04574 13.3872 6.18799C13.1925 6.32275 12.9754 6.5249 12.7358 6.79443C12.4963 7.05648 12.2866 7.39339 12.1069 7.80518C11.9272 8.20947 11.8374 8.69238 11.8374 9.25391C11.8374 9.89779 11.9497 10.4443 12.1743 10.8936C12.4064 11.3428 12.6722 11.7059 12.9717 11.9829C13.2786 12.2524 13.5482 12.4508 13.7803 12.5781C14.0199 12.7054 14.1471 12.7728 14.1621 12.7803C14.1546 12.8102 14.0573 13.076 13.8701 13.5776C13.6904 14.0793 13.391 14.637 12.9717 15.251C12.6048 15.7826 12.208 16.2729 11.7812 16.7222C11.362 17.1714 10.8566 17.396 10.2651 17.396C9.86833 17.396 9.54264 17.3398 9.28809 17.2275C9.03353 17.1077 8.77148 16.9917 8.50195 16.8794C8.23242 16.7596 7.8693 16.6997 7.4126 16.6997C6.97087 16.6997 6.60026 16.7596 6.30078 16.8794C6.00879 16.9992 5.72803 17.119 5.4585 17.2388C5.19645 17.3586 4.88574 17.4185 4.52637 17.4185C3.97982 17.4185 3.50065 17.2013 3.08887 16.7671C2.67708 16.3328 2.25407 15.8125 1.81982 15.2061C1.3182 14.4873 0.887695 13.6113 0.52832 12.5781C0.176432 11.5374 0.000488281 10.4893 0.000488281 9.43359C0.000488281 8.30306 0.213867 7.35596 0.640625 6.59229C1.06738 5.82113 1.61393 5.24089 2.28027 4.85156C2.9541 4.45475 3.65039 4.25635 4.36914 4.25635C4.75098 4.25635 5.11035 4.31999 5.44727 4.44727C5.78418 4.56706 6.09863 4.69059 6.39062 4.81787C6.6901 4.94515 6.95964 5.00879 7.19922 5.00879C7.43132 5.00879 7.70085 4.94141 8.00781 4.80664C8.31478 4.67188 8.65918 4.54085 9.04102 4.41357C9.42285 4.27881 9.83089 4.21143 10.2651 4.21143ZM9.64746 2.78516C9.35547 3.13704 8.98861 3.43278 8.54688 3.67236C8.10514 3.90446 7.68587 4.02051 7.28906 4.02051C7.20671 4.02051 7.12809 4.01302 7.05322 3.99805C7.04574 3.97559 7.03825 3.93441 7.03076 3.87451C7.02327 3.81462 7.01953 3.75098 7.01953 3.68359C7.01953 3.23438 7.11686 2.80013 7.31152 2.38086C7.50618 1.9541 7.72705 1.60221 7.97412 1.3252C8.28857 0.950846 8.68538 0.640137 9.16455 0.393066C9.64372 0.145996 10.1004 0.014974 10.5347 0C10.5571 0.0973307 10.5684 0.213379 10.5684 0.348145C10.5684 0.797363 10.4823 1.23535 10.3101 1.66211C10.1379 2.08138 9.91699 2.45573 9.64746 2.78516ZM17.6885 11.5112V9.71436H22.0459C23.2064 9.71436 24.1048 9.41488 24.7412 8.81592C25.3776 8.20947 25.6958 7.37467 25.6958 6.31152V6.28906C25.6958 5.21842 25.3776 4.38363 24.7412 3.78467C24.1048 3.18571 23.2064 2.88623 22.0459 2.88623H17.6885V1.08936H22.5625C23.5807 1.08936 24.4792 1.30648 25.2578 1.74072C26.0365 2.17497 26.6466 2.78141 27.0884 3.56006C27.5376 4.3387 27.7622 5.24089 27.7622 6.2666V6.28906C27.7622 7.31478 27.5376 8.2207 27.0884 9.00684C26.6466 9.79297 26.0365 10.4069 25.2578 10.8486C24.4792 11.2904 23.5807 11.5112 22.5625 11.5112H17.6885ZM16.6777 17.2949V1.08936H18.6992V17.2949H16.6777ZM32.6699 17.5195C31.9062 17.5195 31.2249 17.3735 30.626 17.0815C30.0345 16.7896 29.5703 16.3778 29.2334 15.8462C28.904 15.3071 28.7393 14.682 28.7393 13.9707V13.9482C28.7393 13.2594 28.9077 12.668 29.2446 12.1738C29.5815 11.6797 30.0682 11.2904 30.7046 11.0059C31.3485 10.7139 32.1234 10.5417 33.0293 10.4893L37.3979 10.2422V11.7695L33.2539 12.0278C32.4303 12.0728 31.8052 12.2599 31.3784 12.5894C30.9517 12.9188 30.7383 13.3643 30.7383 13.9258V13.9482C30.7383 14.5322 30.9554 14.9927 31.3896 15.3296C31.8239 15.659 32.3929 15.8237 33.0967 15.8237C33.7331 15.8237 34.2983 15.6927 34.7925 15.4307C35.2941 15.1686 35.6909 14.813 35.9829 14.3638C36.2749 13.9071 36.4209 13.3979 36.4209 12.8364V9.27637C36.4209 8.55762 36.1963 7.99609 35.7471 7.5918C35.2979 7.1875 34.6502 6.98535 33.8042 6.98535C33.063 6.98535 32.4603 7.13883 31.9961 7.4458C31.5394 7.74528 31.2474 8.14958 31.1201 8.65869L31.0977 8.7373H29.1885L29.1997 8.625C29.2746 7.98861 29.5067 7.41585 29.896 6.90674C30.2928 6.39762 30.8244 5.99707 31.4907 5.70508C32.1646 5.4056 32.9469 5.25586 33.8379 5.25586C34.7812 5.25586 35.5898 5.41683 36.2637 5.73877C36.945 6.05322 37.4653 6.50244 37.8247 7.08643C38.1916 7.66292 38.375 8.35173 38.375 9.15283V17.2949H36.4209V15.4307H36.3311C36.0915 15.8574 35.7845 16.228 35.4102 16.5425C35.0433 16.8569 34.6278 17.1003 34.1636 17.2725C33.6994 17.4372 33.2015 17.5195 32.6699 17.5195ZM42.1484 21.3267C41.9837 21.3267 41.8115 21.3192 41.6318 21.3042C41.4521 21.2892 41.2987 21.2705 41.1714 21.248V19.6421C41.2612 19.6646 41.366 19.6795 41.4858 19.687C41.6056 19.702 41.7292 19.7095 41.8564 19.7095C42.4554 19.7095 42.9383 19.5897 43.3052 19.3501C43.672 19.1105 43.9678 18.6576 44.1924 17.9912L44.4282 17.3062L40.0371 5.48047H42.126L45.6187 15.981L45.0796 15.2734H45.7759L45.248 15.981L48.7407 5.48047H50.7959L46.1802 18.0249C45.8807 18.826 45.555 19.4661 45.2031 19.9453C44.8512 20.432 44.432 20.7839 43.9453 21.001C43.4587 21.2181 42.8597 21.3267 42.1484 21.3267Z";
|
|
69
|
+
var APPLE_LOGO_PATH = LOGO_PATH.slice(0, LOGO_PATH.indexOf("M17.6885"));
|
|
69
70
|
function ensureApplePayLogoSymbol() {
|
|
70
71
|
if (document.getElementById(LOGO_DEFS_ID)) {
|
|
71
72
|
return;
|
|
72
73
|
}
|
|
73
74
|
const tmp = document.createElement("div");
|
|
74
|
-
tmp.innerHTML = `<svg aria-hidden="true" style="display:none" id="${LOGO_DEFS_ID}"><defs><symbol id="apple-pay-logo" viewBox="0 0 51 22"><path d="${LOGO_PATH}" fill="currentColor"/></symbol></defs></svg>`;
|
|
75
|
+
tmp.innerHTML = `<svg aria-hidden="true" style="display:none" id="${LOGO_DEFS_ID}"><defs><symbol id="apple-pay-logo" viewBox="0 0 51 22"><path d="${LOGO_PATH}" fill="currentColor"/></symbol><symbol id="apple-logo" viewBox="0 0 15 18"><path d="${APPLE_LOGO_PATH}" fill="currentColor"/></symbol></defs></svg>`;
|
|
75
76
|
document.body.prepend(tmp.firstElementChild);
|
|
76
77
|
}
|
|
77
78
|
|
|
@@ -1011,8 +1012,27 @@ var ApplePayModal = class _ApplePayModal extends HTMLElement {
|
|
|
1011
1012
|
|
|
1012
1013
|
// src/templates/apple-pay-button.template.html
|
|
1013
1014
|
var apple_pay_button_template_default = `<style>
|
|
1014
|
-
/*
|
|
1015
|
+
/*
|
|
1016
|
+
* Entry CTA only: \u201CSubscribe with [apple logo] Apple Pay\u201D.
|
|
1017
|
+
* Uses OS SF Pro via local() (no Marber). Modal styling is unchanged.
|
|
1018
|
+
*/
|
|
1019
|
+
@font-face {
|
|
1020
|
+
font-family: 'WAP Apple Pay Text';
|
|
1021
|
+
src:
|
|
1022
|
+
local('SF Pro Text Light'),
|
|
1023
|
+
local('SFProText-Light'),
|
|
1024
|
+
local('SF Pro Text'),
|
|
1025
|
+
local('SFProText-Regular'),
|
|
1026
|
+
local('-apple-system'),
|
|
1027
|
+
local('BlinkMacSystemFont'),
|
|
1028
|
+
local('Helvetica Neue');
|
|
1029
|
+
font-weight: 300;
|
|
1030
|
+
font-style: normal;
|
|
1031
|
+
font-display: swap;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1015
1034
|
teg-apple-pay-button {
|
|
1035
|
+
--wap-apple-pay-scale: 1.375; /* default height 44px / 32 */
|
|
1016
1036
|
display: block;
|
|
1017
1037
|
margin: var(--apple-pay-margin, 0);
|
|
1018
1038
|
width: 100%;
|
|
@@ -1028,27 +1048,43 @@ var apple_pay_button_template_default = `<style>
|
|
|
1028
1048
|
}
|
|
1029
1049
|
|
|
1030
1050
|
teg-apple-pay-button .apple-pay-btn {
|
|
1031
|
-
display: flex;
|
|
1051
|
+
display: inline-flex;
|
|
1032
1052
|
align-items: center;
|
|
1033
1053
|
justify-content: center;
|
|
1034
|
-
gap: 0.375rem;
|
|
1035
1054
|
width: 100%;
|
|
1036
1055
|
min-width: 0;
|
|
1037
1056
|
height: 100%;
|
|
1038
1057
|
min-height: var(--apple-pay-height, 2.75rem);
|
|
1058
|
+
padding: 0 calc(8px * var(--wap-apple-pay-scale));
|
|
1059
|
+
box-sizing: border-box;
|
|
1039
1060
|
background-color: var(--apple-pay-background-color, #000);
|
|
1040
1061
|
color: var(--apple-pay-foreground-color, #fff);
|
|
1041
1062
|
border: none;
|
|
1042
|
-
border-radius: var(--apple-pay-border-radius,
|
|
1063
|
+
border-radius: var(--apple-pay-border-radius, 5px);
|
|
1043
1064
|
cursor: pointer;
|
|
1044
|
-
font-family:
|
|
1045
|
-
|
|
1046
|
-
font-
|
|
1065
|
+
font-family: 'WAP Apple Pay Text', -apple-system, BlinkMacSystemFont,
|
|
1066
|
+
'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
1067
|
+
font-size: calc(12px * var(--wap-apple-pay-scale));
|
|
1068
|
+
font-weight: 300;
|
|
1069
|
+
font-style: normal;
|
|
1070
|
+
line-height: 1;
|
|
1071
|
+
letter-spacing: -0.01em;
|
|
1072
|
+
-webkit-font-smoothing: antialiased;
|
|
1073
|
+
-moz-osx-font-smoothing: grayscale;
|
|
1047
1074
|
}
|
|
1048
1075
|
|
|
1049
|
-
teg-apple-pay-button .apple-pay-
|
|
1076
|
+
teg-apple-pay-button .apple-pay-btn__label {
|
|
1077
|
+
display: inline-flex;
|
|
1078
|
+
align-items: center;
|
|
1079
|
+
gap: calc(4px * var(--wap-apple-pay-scale));
|
|
1080
|
+
white-space: nowrap;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
teg-apple-pay-button .apple-pay-btn__apple-logo {
|
|
1050
1084
|
flex-shrink: 0;
|
|
1051
1085
|
display: block;
|
|
1086
|
+
width: calc(12px * var(--wap-apple-pay-scale));
|
|
1087
|
+
height: calc(14px * var(--wap-apple-pay-scale));
|
|
1052
1088
|
color: currentColor;
|
|
1053
1089
|
}
|
|
1054
1090
|
|
|
@@ -1057,6 +1093,10 @@ var apple_pay_button_template_default = `<style>
|
|
|
1057
1093
|
cursor: default;
|
|
1058
1094
|
}
|
|
1059
1095
|
|
|
1096
|
+
teg-apple-pay-button .apple-pay-btn.wap-loading .apple-pay-btn__label {
|
|
1097
|
+
visibility: hidden;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1060
1100
|
teg-apple-pay-button .apple-pay-btn.wap-loading::before {
|
|
1061
1101
|
content: '';
|
|
1062
1102
|
position: absolute;
|
|
@@ -1070,11 +1110,6 @@ var apple_pay_button_template_default = `<style>
|
|
|
1070
1110
|
animation: wap-button-spinner 0.8s linear infinite;
|
|
1071
1111
|
}
|
|
1072
1112
|
|
|
1073
|
-
teg-apple-pay-button .apple-pay-btn__logo {
|
|
1074
|
-
display: inline-flex;
|
|
1075
|
-
align-items: center;
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
1113
|
teg-apple-pay-button .apple-pay-btn__loading {
|
|
1079
1114
|
display: none;
|
|
1080
1115
|
}
|
|
@@ -1089,17 +1124,26 @@ var apple_pay_button_template_default = `<style>
|
|
|
1089
1124
|
}
|
|
1090
1125
|
</style>
|
|
1091
1126
|
|
|
1092
|
-
<div class="apple-pay-container" aria-label="
|
|
1127
|
+
<div class="apple-pay-container" aria-label="Subscribe with Apple Pay">
|
|
1093
1128
|
<button
|
|
1094
1129
|
class="apple-pay-btn"
|
|
1095
1130
|
type="button"
|
|
1096
|
-
aria-label="
|
|
1131
|
+
aria-label="Subscribe with Apple Pay"
|
|
1097
1132
|
data-analytics="paywall:apple-pay-checkout"
|
|
1098
1133
|
>
|
|
1099
|
-
<span class="apple-pay-
|
|
1100
|
-
|
|
1101
|
-
|
|
1134
|
+
<span class="apple-pay-btn__label">
|
|
1135
|
+
Subscribe with
|
|
1136
|
+
<svg
|
|
1137
|
+
class="apple-pay-btn__apple-logo"
|
|
1138
|
+
width="17"
|
|
1139
|
+
height="19"
|
|
1140
|
+
viewBox="0 0 15 18"
|
|
1141
|
+
aria-hidden="true"
|
|
1142
|
+
role="img"
|
|
1143
|
+
>
|
|
1144
|
+
<use href="#apple-logo" />
|
|
1102
1145
|
</svg>
|
|
1146
|
+
Apple Pay
|
|
1103
1147
|
</span>
|
|
1104
1148
|
<span class="apple-pay-btn__loading" aria-hidden="true">Loading...</span>
|
|
1105
1149
|
</button>
|
|
@@ -66,12 +66,13 @@ function formatPrice(price, currencyCode, shouldFixDecimalPlaces = true, roundUp
|
|
|
66
66
|
// src/apple-pay-logo.ts
|
|
67
67
|
var LOGO_DEFS_ID = "apple-pay-logo-defs";
|
|
68
68
|
var LOGO_PATH = "M10.2651 4.21143C10.4299 4.21143 10.7106 4.23763 11.1074 4.29004C11.5042 4.34245 11.9385 4.49219 12.4102 4.73926C12.8893 4.97884 13.3236 5.37939 13.7129 5.94092C13.6904 5.96338 13.5819 6.04574 13.3872 6.18799C13.1925 6.32275 12.9754 6.5249 12.7358 6.79443C12.4963 7.05648 12.2866 7.39339 12.1069 7.80518C11.9272 8.20947 11.8374 8.69238 11.8374 9.25391C11.8374 9.89779 11.9497 10.4443 12.1743 10.8936C12.4064 11.3428 12.6722 11.7059 12.9717 11.9829C13.2786 12.2524 13.5482 12.4508 13.7803 12.5781C14.0199 12.7054 14.1471 12.7728 14.1621 12.7803C14.1546 12.8102 14.0573 13.076 13.8701 13.5776C13.6904 14.0793 13.391 14.637 12.9717 15.251C12.6048 15.7826 12.208 16.2729 11.7812 16.7222C11.362 17.1714 10.8566 17.396 10.2651 17.396C9.86833 17.396 9.54264 17.3398 9.28809 17.2275C9.03353 17.1077 8.77148 16.9917 8.50195 16.8794C8.23242 16.7596 7.8693 16.6997 7.4126 16.6997C6.97087 16.6997 6.60026 16.7596 6.30078 16.8794C6.00879 16.9992 5.72803 17.119 5.4585 17.2388C5.19645 17.3586 4.88574 17.4185 4.52637 17.4185C3.97982 17.4185 3.50065 17.2013 3.08887 16.7671C2.67708 16.3328 2.25407 15.8125 1.81982 15.2061C1.3182 14.4873 0.887695 13.6113 0.52832 12.5781C0.176432 11.5374 0.000488281 10.4893 0.000488281 9.43359C0.000488281 8.30306 0.213867 7.35596 0.640625 6.59229C1.06738 5.82113 1.61393 5.24089 2.28027 4.85156C2.9541 4.45475 3.65039 4.25635 4.36914 4.25635C4.75098 4.25635 5.11035 4.31999 5.44727 4.44727C5.78418 4.56706 6.09863 4.69059 6.39062 4.81787C6.6901 4.94515 6.95964 5.00879 7.19922 5.00879C7.43132 5.00879 7.70085 4.94141 8.00781 4.80664C8.31478 4.67188 8.65918 4.54085 9.04102 4.41357C9.42285 4.27881 9.83089 4.21143 10.2651 4.21143ZM9.64746 2.78516C9.35547 3.13704 8.98861 3.43278 8.54688 3.67236C8.10514 3.90446 7.68587 4.02051 7.28906 4.02051C7.20671 4.02051 7.12809 4.01302 7.05322 3.99805C7.04574 3.97559 7.03825 3.93441 7.03076 3.87451C7.02327 3.81462 7.01953 3.75098 7.01953 3.68359C7.01953 3.23438 7.11686 2.80013 7.31152 2.38086C7.50618 1.9541 7.72705 1.60221 7.97412 1.3252C8.28857 0.950846 8.68538 0.640137 9.16455 0.393066C9.64372 0.145996 10.1004 0.014974 10.5347 0C10.5571 0.0973307 10.5684 0.213379 10.5684 0.348145C10.5684 0.797363 10.4823 1.23535 10.3101 1.66211C10.1379 2.08138 9.91699 2.45573 9.64746 2.78516ZM17.6885 11.5112V9.71436H22.0459C23.2064 9.71436 24.1048 9.41488 24.7412 8.81592C25.3776 8.20947 25.6958 7.37467 25.6958 6.31152V6.28906C25.6958 5.21842 25.3776 4.38363 24.7412 3.78467C24.1048 3.18571 23.2064 2.88623 22.0459 2.88623H17.6885V1.08936H22.5625C23.5807 1.08936 24.4792 1.30648 25.2578 1.74072C26.0365 2.17497 26.6466 2.78141 27.0884 3.56006C27.5376 4.3387 27.7622 5.24089 27.7622 6.2666V6.28906C27.7622 7.31478 27.5376 8.2207 27.0884 9.00684C26.6466 9.79297 26.0365 10.4069 25.2578 10.8486C24.4792 11.2904 23.5807 11.5112 22.5625 11.5112H17.6885ZM16.6777 17.2949V1.08936H18.6992V17.2949H16.6777ZM32.6699 17.5195C31.9062 17.5195 31.2249 17.3735 30.626 17.0815C30.0345 16.7896 29.5703 16.3778 29.2334 15.8462C28.904 15.3071 28.7393 14.682 28.7393 13.9707V13.9482C28.7393 13.2594 28.9077 12.668 29.2446 12.1738C29.5815 11.6797 30.0682 11.2904 30.7046 11.0059C31.3485 10.7139 32.1234 10.5417 33.0293 10.4893L37.3979 10.2422V11.7695L33.2539 12.0278C32.4303 12.0728 31.8052 12.2599 31.3784 12.5894C30.9517 12.9188 30.7383 13.3643 30.7383 13.9258V13.9482C30.7383 14.5322 30.9554 14.9927 31.3896 15.3296C31.8239 15.659 32.3929 15.8237 33.0967 15.8237C33.7331 15.8237 34.2983 15.6927 34.7925 15.4307C35.2941 15.1686 35.6909 14.813 35.9829 14.3638C36.2749 13.9071 36.4209 13.3979 36.4209 12.8364V9.27637C36.4209 8.55762 36.1963 7.99609 35.7471 7.5918C35.2979 7.1875 34.6502 6.98535 33.8042 6.98535C33.063 6.98535 32.4603 7.13883 31.9961 7.4458C31.5394 7.74528 31.2474 8.14958 31.1201 8.65869L31.0977 8.7373H29.1885L29.1997 8.625C29.2746 7.98861 29.5067 7.41585 29.896 6.90674C30.2928 6.39762 30.8244 5.99707 31.4907 5.70508C32.1646 5.4056 32.9469 5.25586 33.8379 5.25586C34.7812 5.25586 35.5898 5.41683 36.2637 5.73877C36.945 6.05322 37.4653 6.50244 37.8247 7.08643C38.1916 7.66292 38.375 8.35173 38.375 9.15283V17.2949H36.4209V15.4307H36.3311C36.0915 15.8574 35.7845 16.228 35.4102 16.5425C35.0433 16.8569 34.6278 17.1003 34.1636 17.2725C33.6994 17.4372 33.2015 17.5195 32.6699 17.5195ZM42.1484 21.3267C41.9837 21.3267 41.8115 21.3192 41.6318 21.3042C41.4521 21.2892 41.2987 21.2705 41.1714 21.248V19.6421C41.2612 19.6646 41.366 19.6795 41.4858 19.687C41.6056 19.702 41.7292 19.7095 41.8564 19.7095C42.4554 19.7095 42.9383 19.5897 43.3052 19.3501C43.672 19.1105 43.9678 18.6576 44.1924 17.9912L44.4282 17.3062L40.0371 5.48047H42.126L45.6187 15.981L45.0796 15.2734H45.7759L45.248 15.981L48.7407 5.48047H50.7959L46.1802 18.0249C45.8807 18.826 45.555 19.4661 45.2031 19.9453C44.8512 20.432 44.432 20.7839 43.9453 21.001C43.4587 21.2181 42.8597 21.3267 42.1484 21.3267Z";
|
|
69
|
+
var APPLE_LOGO_PATH = LOGO_PATH.slice(0, LOGO_PATH.indexOf("M17.6885"));
|
|
69
70
|
function ensureApplePayLogoSymbol() {
|
|
70
71
|
if (document.getElementById(LOGO_DEFS_ID)) {
|
|
71
72
|
return;
|
|
72
73
|
}
|
|
73
74
|
const tmp = document.createElement("div");
|
|
74
|
-
tmp.innerHTML = `<svg aria-hidden="true" style="display:none" id="${LOGO_DEFS_ID}"><defs><symbol id="apple-pay-logo" viewBox="0 0 51 22"><path d="${LOGO_PATH}" fill="currentColor"/></symbol></defs></svg>`;
|
|
75
|
+
tmp.innerHTML = `<svg aria-hidden="true" style="display:none" id="${LOGO_DEFS_ID}"><defs><symbol id="apple-pay-logo" viewBox="0 0 51 22"><path d="${LOGO_PATH}" fill="currentColor"/></symbol><symbol id="apple-logo" viewBox="0 0 15 18"><path d="${APPLE_LOGO_PATH}" fill="currentColor"/></symbol></defs></svg>`;
|
|
75
76
|
document.body.prepend(tmp.firstElementChild);
|
|
76
77
|
}
|
|
77
78
|
|
|
@@ -1006,8 +1007,27 @@ var ApplePayModal = class _ApplePayModal extends HTMLElement {
|
|
|
1006
1007
|
|
|
1007
1008
|
// src/templates/apple-pay-button.template.html
|
|
1008
1009
|
var apple_pay_button_template_default = `<style>
|
|
1009
|
-
/*
|
|
1010
|
+
/*
|
|
1011
|
+
* Entry CTA only: \u201CSubscribe with [apple logo] Apple Pay\u201D.
|
|
1012
|
+
* Uses OS SF Pro via local() (no Marber). Modal styling is unchanged.
|
|
1013
|
+
*/
|
|
1014
|
+
@font-face {
|
|
1015
|
+
font-family: 'WAP Apple Pay Text';
|
|
1016
|
+
src:
|
|
1017
|
+
local('SF Pro Text Light'),
|
|
1018
|
+
local('SFProText-Light'),
|
|
1019
|
+
local('SF Pro Text'),
|
|
1020
|
+
local('SFProText-Regular'),
|
|
1021
|
+
local('-apple-system'),
|
|
1022
|
+
local('BlinkMacSystemFont'),
|
|
1023
|
+
local('Helvetica Neue');
|
|
1024
|
+
font-weight: 300;
|
|
1025
|
+
font-style: normal;
|
|
1026
|
+
font-display: swap;
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1010
1029
|
teg-apple-pay-button {
|
|
1030
|
+
--wap-apple-pay-scale: 1.375; /* default height 44px / 32 */
|
|
1011
1031
|
display: block;
|
|
1012
1032
|
margin: var(--apple-pay-margin, 0);
|
|
1013
1033
|
width: 100%;
|
|
@@ -1023,27 +1043,43 @@ var apple_pay_button_template_default = `<style>
|
|
|
1023
1043
|
}
|
|
1024
1044
|
|
|
1025
1045
|
teg-apple-pay-button .apple-pay-btn {
|
|
1026
|
-
display: flex;
|
|
1046
|
+
display: inline-flex;
|
|
1027
1047
|
align-items: center;
|
|
1028
1048
|
justify-content: center;
|
|
1029
|
-
gap: 0.375rem;
|
|
1030
1049
|
width: 100%;
|
|
1031
1050
|
min-width: 0;
|
|
1032
1051
|
height: 100%;
|
|
1033
1052
|
min-height: var(--apple-pay-height, 2.75rem);
|
|
1053
|
+
padding: 0 calc(8px * var(--wap-apple-pay-scale));
|
|
1054
|
+
box-sizing: border-box;
|
|
1034
1055
|
background-color: var(--apple-pay-background-color, #000);
|
|
1035
1056
|
color: var(--apple-pay-foreground-color, #fff);
|
|
1036
1057
|
border: none;
|
|
1037
|
-
border-radius: var(--apple-pay-border-radius,
|
|
1058
|
+
border-radius: var(--apple-pay-border-radius, 5px);
|
|
1038
1059
|
cursor: pointer;
|
|
1039
|
-
font-family:
|
|
1040
|
-
|
|
1041
|
-
font-
|
|
1060
|
+
font-family: 'WAP Apple Pay Text', -apple-system, BlinkMacSystemFont,
|
|
1061
|
+
'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
1062
|
+
font-size: calc(12px * var(--wap-apple-pay-scale));
|
|
1063
|
+
font-weight: 300;
|
|
1064
|
+
font-style: normal;
|
|
1065
|
+
line-height: 1;
|
|
1066
|
+
letter-spacing: -0.01em;
|
|
1067
|
+
-webkit-font-smoothing: antialiased;
|
|
1068
|
+
-moz-osx-font-smoothing: grayscale;
|
|
1042
1069
|
}
|
|
1043
1070
|
|
|
1044
|
-
teg-apple-pay-button .apple-pay-
|
|
1071
|
+
teg-apple-pay-button .apple-pay-btn__label {
|
|
1072
|
+
display: inline-flex;
|
|
1073
|
+
align-items: center;
|
|
1074
|
+
gap: calc(4px * var(--wap-apple-pay-scale));
|
|
1075
|
+
white-space: nowrap;
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
teg-apple-pay-button .apple-pay-btn__apple-logo {
|
|
1045
1079
|
flex-shrink: 0;
|
|
1046
1080
|
display: block;
|
|
1081
|
+
width: calc(12px * var(--wap-apple-pay-scale));
|
|
1082
|
+
height: calc(14px * var(--wap-apple-pay-scale));
|
|
1047
1083
|
color: currentColor;
|
|
1048
1084
|
}
|
|
1049
1085
|
|
|
@@ -1052,6 +1088,10 @@ var apple_pay_button_template_default = `<style>
|
|
|
1052
1088
|
cursor: default;
|
|
1053
1089
|
}
|
|
1054
1090
|
|
|
1091
|
+
teg-apple-pay-button .apple-pay-btn.wap-loading .apple-pay-btn__label {
|
|
1092
|
+
visibility: hidden;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1055
1095
|
teg-apple-pay-button .apple-pay-btn.wap-loading::before {
|
|
1056
1096
|
content: '';
|
|
1057
1097
|
position: absolute;
|
|
@@ -1065,11 +1105,6 @@ var apple_pay_button_template_default = `<style>
|
|
|
1065
1105
|
animation: wap-button-spinner 0.8s linear infinite;
|
|
1066
1106
|
}
|
|
1067
1107
|
|
|
1068
|
-
teg-apple-pay-button .apple-pay-btn__logo {
|
|
1069
|
-
display: inline-flex;
|
|
1070
|
-
align-items: center;
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
1108
|
teg-apple-pay-button .apple-pay-btn__loading {
|
|
1074
1109
|
display: none;
|
|
1075
1110
|
}
|
|
@@ -1084,17 +1119,26 @@ var apple_pay_button_template_default = `<style>
|
|
|
1084
1119
|
}
|
|
1085
1120
|
</style>
|
|
1086
1121
|
|
|
1087
|
-
<div class="apple-pay-container" aria-label="
|
|
1122
|
+
<div class="apple-pay-container" aria-label="Subscribe with Apple Pay">
|
|
1088
1123
|
<button
|
|
1089
1124
|
class="apple-pay-btn"
|
|
1090
1125
|
type="button"
|
|
1091
|
-
aria-label="
|
|
1126
|
+
aria-label="Subscribe with Apple Pay"
|
|
1092
1127
|
data-analytics="paywall:apple-pay-checkout"
|
|
1093
1128
|
>
|
|
1094
|
-
<span class="apple-pay-
|
|
1095
|
-
|
|
1096
|
-
|
|
1129
|
+
<span class="apple-pay-btn__label">
|
|
1130
|
+
Subscribe with
|
|
1131
|
+
<svg
|
|
1132
|
+
class="apple-pay-btn__apple-logo"
|
|
1133
|
+
width="17"
|
|
1134
|
+
height="19"
|
|
1135
|
+
viewBox="0 0 15 18"
|
|
1136
|
+
aria-hidden="true"
|
|
1137
|
+
role="img"
|
|
1138
|
+
>
|
|
1139
|
+
<use href="#apple-logo" />
|
|
1097
1140
|
</svg>
|
|
1141
|
+
Apple Pay
|
|
1098
1142
|
</span>
|
|
1099
1143
|
<span class="apple-pay-btn__loading" aria-hidden="true">Loading...</span>
|
|
1100
1144
|
</button>
|
|
@@ -66,12 +66,13 @@ function formatPrice(price, currencyCode, shouldFixDecimalPlaces = true, roundUp
|
|
|
66
66
|
// src/apple-pay-logo.ts
|
|
67
67
|
var LOGO_DEFS_ID = "apple-pay-logo-defs";
|
|
68
68
|
var LOGO_PATH = "M10.2651 4.21143C10.4299 4.21143 10.7106 4.23763 11.1074 4.29004C11.5042 4.34245 11.9385 4.49219 12.4102 4.73926C12.8893 4.97884 13.3236 5.37939 13.7129 5.94092C13.6904 5.96338 13.5819 6.04574 13.3872 6.18799C13.1925 6.32275 12.9754 6.5249 12.7358 6.79443C12.4963 7.05648 12.2866 7.39339 12.1069 7.80518C11.9272 8.20947 11.8374 8.69238 11.8374 9.25391C11.8374 9.89779 11.9497 10.4443 12.1743 10.8936C12.4064 11.3428 12.6722 11.7059 12.9717 11.9829C13.2786 12.2524 13.5482 12.4508 13.7803 12.5781C14.0199 12.7054 14.1471 12.7728 14.1621 12.7803C14.1546 12.8102 14.0573 13.076 13.8701 13.5776C13.6904 14.0793 13.391 14.637 12.9717 15.251C12.6048 15.7826 12.208 16.2729 11.7812 16.7222C11.362 17.1714 10.8566 17.396 10.2651 17.396C9.86833 17.396 9.54264 17.3398 9.28809 17.2275C9.03353 17.1077 8.77148 16.9917 8.50195 16.8794C8.23242 16.7596 7.8693 16.6997 7.4126 16.6997C6.97087 16.6997 6.60026 16.7596 6.30078 16.8794C6.00879 16.9992 5.72803 17.119 5.4585 17.2388C5.19645 17.3586 4.88574 17.4185 4.52637 17.4185C3.97982 17.4185 3.50065 17.2013 3.08887 16.7671C2.67708 16.3328 2.25407 15.8125 1.81982 15.2061C1.3182 14.4873 0.887695 13.6113 0.52832 12.5781C0.176432 11.5374 0.000488281 10.4893 0.000488281 9.43359C0.000488281 8.30306 0.213867 7.35596 0.640625 6.59229C1.06738 5.82113 1.61393 5.24089 2.28027 4.85156C2.9541 4.45475 3.65039 4.25635 4.36914 4.25635C4.75098 4.25635 5.11035 4.31999 5.44727 4.44727C5.78418 4.56706 6.09863 4.69059 6.39062 4.81787C6.6901 4.94515 6.95964 5.00879 7.19922 5.00879C7.43132 5.00879 7.70085 4.94141 8.00781 4.80664C8.31478 4.67188 8.65918 4.54085 9.04102 4.41357C9.42285 4.27881 9.83089 4.21143 10.2651 4.21143ZM9.64746 2.78516C9.35547 3.13704 8.98861 3.43278 8.54688 3.67236C8.10514 3.90446 7.68587 4.02051 7.28906 4.02051C7.20671 4.02051 7.12809 4.01302 7.05322 3.99805C7.04574 3.97559 7.03825 3.93441 7.03076 3.87451C7.02327 3.81462 7.01953 3.75098 7.01953 3.68359C7.01953 3.23438 7.11686 2.80013 7.31152 2.38086C7.50618 1.9541 7.72705 1.60221 7.97412 1.3252C8.28857 0.950846 8.68538 0.640137 9.16455 0.393066C9.64372 0.145996 10.1004 0.014974 10.5347 0C10.5571 0.0973307 10.5684 0.213379 10.5684 0.348145C10.5684 0.797363 10.4823 1.23535 10.3101 1.66211C10.1379 2.08138 9.91699 2.45573 9.64746 2.78516ZM17.6885 11.5112V9.71436H22.0459C23.2064 9.71436 24.1048 9.41488 24.7412 8.81592C25.3776 8.20947 25.6958 7.37467 25.6958 6.31152V6.28906C25.6958 5.21842 25.3776 4.38363 24.7412 3.78467C24.1048 3.18571 23.2064 2.88623 22.0459 2.88623H17.6885V1.08936H22.5625C23.5807 1.08936 24.4792 1.30648 25.2578 1.74072C26.0365 2.17497 26.6466 2.78141 27.0884 3.56006C27.5376 4.3387 27.7622 5.24089 27.7622 6.2666V6.28906C27.7622 7.31478 27.5376 8.2207 27.0884 9.00684C26.6466 9.79297 26.0365 10.4069 25.2578 10.8486C24.4792 11.2904 23.5807 11.5112 22.5625 11.5112H17.6885ZM16.6777 17.2949V1.08936H18.6992V17.2949H16.6777ZM32.6699 17.5195C31.9062 17.5195 31.2249 17.3735 30.626 17.0815C30.0345 16.7896 29.5703 16.3778 29.2334 15.8462C28.904 15.3071 28.7393 14.682 28.7393 13.9707V13.9482C28.7393 13.2594 28.9077 12.668 29.2446 12.1738C29.5815 11.6797 30.0682 11.2904 30.7046 11.0059C31.3485 10.7139 32.1234 10.5417 33.0293 10.4893L37.3979 10.2422V11.7695L33.2539 12.0278C32.4303 12.0728 31.8052 12.2599 31.3784 12.5894C30.9517 12.9188 30.7383 13.3643 30.7383 13.9258V13.9482C30.7383 14.5322 30.9554 14.9927 31.3896 15.3296C31.8239 15.659 32.3929 15.8237 33.0967 15.8237C33.7331 15.8237 34.2983 15.6927 34.7925 15.4307C35.2941 15.1686 35.6909 14.813 35.9829 14.3638C36.2749 13.9071 36.4209 13.3979 36.4209 12.8364V9.27637C36.4209 8.55762 36.1963 7.99609 35.7471 7.5918C35.2979 7.1875 34.6502 6.98535 33.8042 6.98535C33.063 6.98535 32.4603 7.13883 31.9961 7.4458C31.5394 7.74528 31.2474 8.14958 31.1201 8.65869L31.0977 8.7373H29.1885L29.1997 8.625C29.2746 7.98861 29.5067 7.41585 29.896 6.90674C30.2928 6.39762 30.8244 5.99707 31.4907 5.70508C32.1646 5.4056 32.9469 5.25586 33.8379 5.25586C34.7812 5.25586 35.5898 5.41683 36.2637 5.73877C36.945 6.05322 37.4653 6.50244 37.8247 7.08643C38.1916 7.66292 38.375 8.35173 38.375 9.15283V17.2949H36.4209V15.4307H36.3311C36.0915 15.8574 35.7845 16.228 35.4102 16.5425C35.0433 16.8569 34.6278 17.1003 34.1636 17.2725C33.6994 17.4372 33.2015 17.5195 32.6699 17.5195ZM42.1484 21.3267C41.9837 21.3267 41.8115 21.3192 41.6318 21.3042C41.4521 21.2892 41.2987 21.2705 41.1714 21.248V19.6421C41.2612 19.6646 41.366 19.6795 41.4858 19.687C41.6056 19.702 41.7292 19.7095 41.8564 19.7095C42.4554 19.7095 42.9383 19.5897 43.3052 19.3501C43.672 19.1105 43.9678 18.6576 44.1924 17.9912L44.4282 17.3062L40.0371 5.48047H42.126L45.6187 15.981L45.0796 15.2734H45.7759L45.248 15.981L48.7407 5.48047H50.7959L46.1802 18.0249C45.8807 18.826 45.555 19.4661 45.2031 19.9453C44.8512 20.432 44.432 20.7839 43.9453 21.001C43.4587 21.2181 42.8597 21.3267 42.1484 21.3267Z";
|
|
69
|
+
var APPLE_LOGO_PATH = LOGO_PATH.slice(0, LOGO_PATH.indexOf("M17.6885"));
|
|
69
70
|
function ensureApplePayLogoSymbol() {
|
|
70
71
|
if (document.getElementById(LOGO_DEFS_ID)) {
|
|
71
72
|
return;
|
|
72
73
|
}
|
|
73
74
|
const tmp = document.createElement("div");
|
|
74
|
-
tmp.innerHTML = `<svg aria-hidden="true" style="display:none" id="${LOGO_DEFS_ID}"><defs><symbol id="apple-pay-logo" viewBox="0 0 51 22"><path d="${LOGO_PATH}" fill="currentColor"/></symbol></defs></svg>`;
|
|
75
|
+
tmp.innerHTML = `<svg aria-hidden="true" style="display:none" id="${LOGO_DEFS_ID}"><defs><symbol id="apple-pay-logo" viewBox="0 0 51 22"><path d="${LOGO_PATH}" fill="currentColor"/></symbol><symbol id="apple-logo" viewBox="0 0 15 18"><path d="${APPLE_LOGO_PATH}" fill="currentColor"/></symbol></defs></svg>`;
|
|
75
76
|
document.body.prepend(tmp.firstElementChild);
|
|
76
77
|
}
|
|
77
78
|
|
|
@@ -1014,8 +1015,27 @@ var ApplePayModal = class _ApplePayModal extends HTMLElement {
|
|
|
1014
1015
|
|
|
1015
1016
|
// src/templates/apple-pay-button.template.html
|
|
1016
1017
|
var apple_pay_button_template_default = `<style>
|
|
1017
|
-
/*
|
|
1018
|
+
/*
|
|
1019
|
+
* Entry CTA only: \u201CSubscribe with [apple logo] Apple Pay\u201D.
|
|
1020
|
+
* Uses OS SF Pro via local() (no Marber). Modal styling is unchanged.
|
|
1021
|
+
*/
|
|
1022
|
+
@font-face {
|
|
1023
|
+
font-family: 'WAP Apple Pay Text';
|
|
1024
|
+
src:
|
|
1025
|
+
local('SF Pro Text Light'),
|
|
1026
|
+
local('SFProText-Light'),
|
|
1027
|
+
local('SF Pro Text'),
|
|
1028
|
+
local('SFProText-Regular'),
|
|
1029
|
+
local('-apple-system'),
|
|
1030
|
+
local('BlinkMacSystemFont'),
|
|
1031
|
+
local('Helvetica Neue');
|
|
1032
|
+
font-weight: 300;
|
|
1033
|
+
font-style: normal;
|
|
1034
|
+
font-display: swap;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1018
1037
|
teg-apple-pay-button {
|
|
1038
|
+
--wap-apple-pay-scale: 1.375; /* default height 44px / 32 */
|
|
1019
1039
|
display: block;
|
|
1020
1040
|
margin: var(--apple-pay-margin, 0);
|
|
1021
1041
|
width: 100%;
|
|
@@ -1031,27 +1051,43 @@ var apple_pay_button_template_default = `<style>
|
|
|
1031
1051
|
}
|
|
1032
1052
|
|
|
1033
1053
|
teg-apple-pay-button .apple-pay-btn {
|
|
1034
|
-
display: flex;
|
|
1054
|
+
display: inline-flex;
|
|
1035
1055
|
align-items: center;
|
|
1036
1056
|
justify-content: center;
|
|
1037
|
-
gap: 0.375rem;
|
|
1038
1057
|
width: 100%;
|
|
1039
1058
|
min-width: 0;
|
|
1040
1059
|
height: 100%;
|
|
1041
1060
|
min-height: var(--apple-pay-height, 2.75rem);
|
|
1061
|
+
padding: 0 calc(8px * var(--wap-apple-pay-scale));
|
|
1062
|
+
box-sizing: border-box;
|
|
1042
1063
|
background-color: var(--apple-pay-background-color, #000);
|
|
1043
1064
|
color: var(--apple-pay-foreground-color, #fff);
|
|
1044
1065
|
border: none;
|
|
1045
|
-
border-radius: var(--apple-pay-border-radius,
|
|
1066
|
+
border-radius: var(--apple-pay-border-radius, 5px);
|
|
1046
1067
|
cursor: pointer;
|
|
1047
|
-
font-family:
|
|
1048
|
-
|
|
1049
|
-
font-
|
|
1068
|
+
font-family: 'WAP Apple Pay Text', -apple-system, BlinkMacSystemFont,
|
|
1069
|
+
'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
1070
|
+
font-size: calc(12px * var(--wap-apple-pay-scale));
|
|
1071
|
+
font-weight: 300;
|
|
1072
|
+
font-style: normal;
|
|
1073
|
+
line-height: 1;
|
|
1074
|
+
letter-spacing: -0.01em;
|
|
1075
|
+
-webkit-font-smoothing: antialiased;
|
|
1076
|
+
-moz-osx-font-smoothing: grayscale;
|
|
1050
1077
|
}
|
|
1051
1078
|
|
|
1052
|
-
teg-apple-pay-button .apple-pay-
|
|
1079
|
+
teg-apple-pay-button .apple-pay-btn__label {
|
|
1080
|
+
display: inline-flex;
|
|
1081
|
+
align-items: center;
|
|
1082
|
+
gap: calc(4px * var(--wap-apple-pay-scale));
|
|
1083
|
+
white-space: nowrap;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
teg-apple-pay-button .apple-pay-btn__apple-logo {
|
|
1053
1087
|
flex-shrink: 0;
|
|
1054
1088
|
display: block;
|
|
1089
|
+
width: calc(12px * var(--wap-apple-pay-scale));
|
|
1090
|
+
height: calc(14px * var(--wap-apple-pay-scale));
|
|
1055
1091
|
color: currentColor;
|
|
1056
1092
|
}
|
|
1057
1093
|
|
|
@@ -1060,6 +1096,10 @@ var apple_pay_button_template_default = `<style>
|
|
|
1060
1096
|
cursor: default;
|
|
1061
1097
|
}
|
|
1062
1098
|
|
|
1099
|
+
teg-apple-pay-button .apple-pay-btn.wap-loading .apple-pay-btn__label {
|
|
1100
|
+
visibility: hidden;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1063
1103
|
teg-apple-pay-button .apple-pay-btn.wap-loading::before {
|
|
1064
1104
|
content: '';
|
|
1065
1105
|
position: absolute;
|
|
@@ -1073,11 +1113,6 @@ var apple_pay_button_template_default = `<style>
|
|
|
1073
1113
|
animation: wap-button-spinner 0.8s linear infinite;
|
|
1074
1114
|
}
|
|
1075
1115
|
|
|
1076
|
-
teg-apple-pay-button .apple-pay-btn__logo {
|
|
1077
|
-
display: inline-flex;
|
|
1078
|
-
align-items: center;
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
1116
|
teg-apple-pay-button .apple-pay-btn__loading {
|
|
1082
1117
|
display: none;
|
|
1083
1118
|
}
|
|
@@ -1092,17 +1127,26 @@ var apple_pay_button_template_default = `<style>
|
|
|
1092
1127
|
}
|
|
1093
1128
|
</style>
|
|
1094
1129
|
|
|
1095
|
-
<div class="apple-pay-container" aria-label="
|
|
1130
|
+
<div class="apple-pay-container" aria-label="Subscribe with Apple Pay">
|
|
1096
1131
|
<button
|
|
1097
1132
|
class="apple-pay-btn"
|
|
1098
1133
|
type="button"
|
|
1099
|
-
aria-label="
|
|
1134
|
+
aria-label="Subscribe with Apple Pay"
|
|
1100
1135
|
data-analytics="paywall:apple-pay-checkout"
|
|
1101
1136
|
>
|
|
1102
|
-
<span class="apple-pay-
|
|
1103
|
-
|
|
1104
|
-
|
|
1137
|
+
<span class="apple-pay-btn__label">
|
|
1138
|
+
Subscribe with
|
|
1139
|
+
<svg
|
|
1140
|
+
class="apple-pay-btn__apple-logo"
|
|
1141
|
+
width="17"
|
|
1142
|
+
height="19"
|
|
1143
|
+
viewBox="0 0 15 18"
|
|
1144
|
+
aria-hidden="true"
|
|
1145
|
+
role="img"
|
|
1146
|
+
>
|
|
1147
|
+
<use href="#apple-logo" />
|
|
1105
1148
|
</svg>
|
|
1149
|
+
Apple Pay
|
|
1106
1150
|
</span>
|
|
1107
1151
|
<span class="apple-pay-btn__loading" aria-hidden="true">Loading...</span>
|
|
1108
1152
|
</button>
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
// src/apple-pay-logo.ts
|
|
2
2
|
var LOGO_DEFS_ID = "apple-pay-logo-defs";
|
|
3
3
|
var LOGO_PATH = "M10.2651 4.21143C10.4299 4.21143 10.7106 4.23763 11.1074 4.29004C11.5042 4.34245 11.9385 4.49219 12.4102 4.73926C12.8893 4.97884 13.3236 5.37939 13.7129 5.94092C13.6904 5.96338 13.5819 6.04574 13.3872 6.18799C13.1925 6.32275 12.9754 6.5249 12.7358 6.79443C12.4963 7.05648 12.2866 7.39339 12.1069 7.80518C11.9272 8.20947 11.8374 8.69238 11.8374 9.25391C11.8374 9.89779 11.9497 10.4443 12.1743 10.8936C12.4064 11.3428 12.6722 11.7059 12.9717 11.9829C13.2786 12.2524 13.5482 12.4508 13.7803 12.5781C14.0199 12.7054 14.1471 12.7728 14.1621 12.7803C14.1546 12.8102 14.0573 13.076 13.8701 13.5776C13.6904 14.0793 13.391 14.637 12.9717 15.251C12.6048 15.7826 12.208 16.2729 11.7812 16.7222C11.362 17.1714 10.8566 17.396 10.2651 17.396C9.86833 17.396 9.54264 17.3398 9.28809 17.2275C9.03353 17.1077 8.77148 16.9917 8.50195 16.8794C8.23242 16.7596 7.8693 16.6997 7.4126 16.6997C6.97087 16.6997 6.60026 16.7596 6.30078 16.8794C6.00879 16.9992 5.72803 17.119 5.4585 17.2388C5.19645 17.3586 4.88574 17.4185 4.52637 17.4185C3.97982 17.4185 3.50065 17.2013 3.08887 16.7671C2.67708 16.3328 2.25407 15.8125 1.81982 15.2061C1.3182 14.4873 0.887695 13.6113 0.52832 12.5781C0.176432 11.5374 0.000488281 10.4893 0.000488281 9.43359C0.000488281 8.30306 0.213867 7.35596 0.640625 6.59229C1.06738 5.82113 1.61393 5.24089 2.28027 4.85156C2.9541 4.45475 3.65039 4.25635 4.36914 4.25635C4.75098 4.25635 5.11035 4.31999 5.44727 4.44727C5.78418 4.56706 6.09863 4.69059 6.39062 4.81787C6.6901 4.94515 6.95964 5.00879 7.19922 5.00879C7.43132 5.00879 7.70085 4.94141 8.00781 4.80664C8.31478 4.67188 8.65918 4.54085 9.04102 4.41357C9.42285 4.27881 9.83089 4.21143 10.2651 4.21143ZM9.64746 2.78516C9.35547 3.13704 8.98861 3.43278 8.54688 3.67236C8.10514 3.90446 7.68587 4.02051 7.28906 4.02051C7.20671 4.02051 7.12809 4.01302 7.05322 3.99805C7.04574 3.97559 7.03825 3.93441 7.03076 3.87451C7.02327 3.81462 7.01953 3.75098 7.01953 3.68359C7.01953 3.23438 7.11686 2.80013 7.31152 2.38086C7.50618 1.9541 7.72705 1.60221 7.97412 1.3252C8.28857 0.950846 8.68538 0.640137 9.16455 0.393066C9.64372 0.145996 10.1004 0.014974 10.5347 0C10.5571 0.0973307 10.5684 0.213379 10.5684 0.348145C10.5684 0.797363 10.4823 1.23535 10.3101 1.66211C10.1379 2.08138 9.91699 2.45573 9.64746 2.78516ZM17.6885 11.5112V9.71436H22.0459C23.2064 9.71436 24.1048 9.41488 24.7412 8.81592C25.3776 8.20947 25.6958 7.37467 25.6958 6.31152V6.28906C25.6958 5.21842 25.3776 4.38363 24.7412 3.78467C24.1048 3.18571 23.2064 2.88623 22.0459 2.88623H17.6885V1.08936H22.5625C23.5807 1.08936 24.4792 1.30648 25.2578 1.74072C26.0365 2.17497 26.6466 2.78141 27.0884 3.56006C27.5376 4.3387 27.7622 5.24089 27.7622 6.2666V6.28906C27.7622 7.31478 27.5376 8.2207 27.0884 9.00684C26.6466 9.79297 26.0365 10.4069 25.2578 10.8486C24.4792 11.2904 23.5807 11.5112 22.5625 11.5112H17.6885ZM16.6777 17.2949V1.08936H18.6992V17.2949H16.6777ZM32.6699 17.5195C31.9062 17.5195 31.2249 17.3735 30.626 17.0815C30.0345 16.7896 29.5703 16.3778 29.2334 15.8462C28.904 15.3071 28.7393 14.682 28.7393 13.9707V13.9482C28.7393 13.2594 28.9077 12.668 29.2446 12.1738C29.5815 11.6797 30.0682 11.2904 30.7046 11.0059C31.3485 10.7139 32.1234 10.5417 33.0293 10.4893L37.3979 10.2422V11.7695L33.2539 12.0278C32.4303 12.0728 31.8052 12.2599 31.3784 12.5894C30.9517 12.9188 30.7383 13.3643 30.7383 13.9258V13.9482C30.7383 14.5322 30.9554 14.9927 31.3896 15.3296C31.8239 15.659 32.3929 15.8237 33.0967 15.8237C33.7331 15.8237 34.2983 15.6927 34.7925 15.4307C35.2941 15.1686 35.6909 14.813 35.9829 14.3638C36.2749 13.9071 36.4209 13.3979 36.4209 12.8364V9.27637C36.4209 8.55762 36.1963 7.99609 35.7471 7.5918C35.2979 7.1875 34.6502 6.98535 33.8042 6.98535C33.063 6.98535 32.4603 7.13883 31.9961 7.4458C31.5394 7.74528 31.2474 8.14958 31.1201 8.65869L31.0977 8.7373H29.1885L29.1997 8.625C29.2746 7.98861 29.5067 7.41585 29.896 6.90674C30.2928 6.39762 30.8244 5.99707 31.4907 5.70508C32.1646 5.4056 32.9469 5.25586 33.8379 5.25586C34.7812 5.25586 35.5898 5.41683 36.2637 5.73877C36.945 6.05322 37.4653 6.50244 37.8247 7.08643C38.1916 7.66292 38.375 8.35173 38.375 9.15283V17.2949H36.4209V15.4307H36.3311C36.0915 15.8574 35.7845 16.228 35.4102 16.5425C35.0433 16.8569 34.6278 17.1003 34.1636 17.2725C33.6994 17.4372 33.2015 17.5195 32.6699 17.5195ZM42.1484 21.3267C41.9837 21.3267 41.8115 21.3192 41.6318 21.3042C41.4521 21.2892 41.2987 21.2705 41.1714 21.248V19.6421C41.2612 19.6646 41.366 19.6795 41.4858 19.687C41.6056 19.702 41.7292 19.7095 41.8564 19.7095C42.4554 19.7095 42.9383 19.5897 43.3052 19.3501C43.672 19.1105 43.9678 18.6576 44.1924 17.9912L44.4282 17.3062L40.0371 5.48047H42.126L45.6187 15.981L45.0796 15.2734H45.7759L45.248 15.981L48.7407 5.48047H50.7959L46.1802 18.0249C45.8807 18.826 45.555 19.4661 45.2031 19.9453C44.8512 20.432 44.432 20.7839 43.9453 21.001C43.4587 21.2181 42.8597 21.3267 42.1484 21.3267Z";
|
|
4
|
+
var APPLE_LOGO_PATH = LOGO_PATH.slice(0, LOGO_PATH.indexOf("M17.6885"));
|
|
4
5
|
function ensureApplePayLogoSymbol() {
|
|
5
6
|
if (document.getElementById(LOGO_DEFS_ID)) {
|
|
6
7
|
return;
|
|
7
8
|
}
|
|
8
9
|
const tmp = document.createElement("div");
|
|
9
|
-
tmp.innerHTML = `<svg aria-hidden="true" style="display:none" id="${LOGO_DEFS_ID}"><defs><symbol id="apple-pay-logo" viewBox="0 0 51 22"><path d="${LOGO_PATH}" fill="currentColor"/></symbol></defs></svg>`;
|
|
10
|
+
tmp.innerHTML = `<svg aria-hidden="true" style="display:none" id="${LOGO_DEFS_ID}"><defs><symbol id="apple-pay-logo" viewBox="0 0 51 22"><path d="${LOGO_PATH}" fill="currentColor"/></symbol><symbol id="apple-logo" viewBox="0 0 15 18"><path d="${APPLE_LOGO_PATH}" fill="currentColor"/></symbol></defs></svg>`;
|
|
10
11
|
document.body.prepend(tmp.firstElementChild);
|
|
11
12
|
}
|
|
12
13
|
export {
|
|
@@ -66,12 +66,13 @@ function formatPrice(price, currencyCode, shouldFixDecimalPlaces = true, roundUp
|
|
|
66
66
|
// src/apple-pay-logo.ts
|
|
67
67
|
var LOGO_DEFS_ID = "apple-pay-logo-defs";
|
|
68
68
|
var LOGO_PATH = "M10.2651 4.21143C10.4299 4.21143 10.7106 4.23763 11.1074 4.29004C11.5042 4.34245 11.9385 4.49219 12.4102 4.73926C12.8893 4.97884 13.3236 5.37939 13.7129 5.94092C13.6904 5.96338 13.5819 6.04574 13.3872 6.18799C13.1925 6.32275 12.9754 6.5249 12.7358 6.79443C12.4963 7.05648 12.2866 7.39339 12.1069 7.80518C11.9272 8.20947 11.8374 8.69238 11.8374 9.25391C11.8374 9.89779 11.9497 10.4443 12.1743 10.8936C12.4064 11.3428 12.6722 11.7059 12.9717 11.9829C13.2786 12.2524 13.5482 12.4508 13.7803 12.5781C14.0199 12.7054 14.1471 12.7728 14.1621 12.7803C14.1546 12.8102 14.0573 13.076 13.8701 13.5776C13.6904 14.0793 13.391 14.637 12.9717 15.251C12.6048 15.7826 12.208 16.2729 11.7812 16.7222C11.362 17.1714 10.8566 17.396 10.2651 17.396C9.86833 17.396 9.54264 17.3398 9.28809 17.2275C9.03353 17.1077 8.77148 16.9917 8.50195 16.8794C8.23242 16.7596 7.8693 16.6997 7.4126 16.6997C6.97087 16.6997 6.60026 16.7596 6.30078 16.8794C6.00879 16.9992 5.72803 17.119 5.4585 17.2388C5.19645 17.3586 4.88574 17.4185 4.52637 17.4185C3.97982 17.4185 3.50065 17.2013 3.08887 16.7671C2.67708 16.3328 2.25407 15.8125 1.81982 15.2061C1.3182 14.4873 0.887695 13.6113 0.52832 12.5781C0.176432 11.5374 0.000488281 10.4893 0.000488281 9.43359C0.000488281 8.30306 0.213867 7.35596 0.640625 6.59229C1.06738 5.82113 1.61393 5.24089 2.28027 4.85156C2.9541 4.45475 3.65039 4.25635 4.36914 4.25635C4.75098 4.25635 5.11035 4.31999 5.44727 4.44727C5.78418 4.56706 6.09863 4.69059 6.39062 4.81787C6.6901 4.94515 6.95964 5.00879 7.19922 5.00879C7.43132 5.00879 7.70085 4.94141 8.00781 4.80664C8.31478 4.67188 8.65918 4.54085 9.04102 4.41357C9.42285 4.27881 9.83089 4.21143 10.2651 4.21143ZM9.64746 2.78516C9.35547 3.13704 8.98861 3.43278 8.54688 3.67236C8.10514 3.90446 7.68587 4.02051 7.28906 4.02051C7.20671 4.02051 7.12809 4.01302 7.05322 3.99805C7.04574 3.97559 7.03825 3.93441 7.03076 3.87451C7.02327 3.81462 7.01953 3.75098 7.01953 3.68359C7.01953 3.23438 7.11686 2.80013 7.31152 2.38086C7.50618 1.9541 7.72705 1.60221 7.97412 1.3252C8.28857 0.950846 8.68538 0.640137 9.16455 0.393066C9.64372 0.145996 10.1004 0.014974 10.5347 0C10.5571 0.0973307 10.5684 0.213379 10.5684 0.348145C10.5684 0.797363 10.4823 1.23535 10.3101 1.66211C10.1379 2.08138 9.91699 2.45573 9.64746 2.78516ZM17.6885 11.5112V9.71436H22.0459C23.2064 9.71436 24.1048 9.41488 24.7412 8.81592C25.3776 8.20947 25.6958 7.37467 25.6958 6.31152V6.28906C25.6958 5.21842 25.3776 4.38363 24.7412 3.78467C24.1048 3.18571 23.2064 2.88623 22.0459 2.88623H17.6885V1.08936H22.5625C23.5807 1.08936 24.4792 1.30648 25.2578 1.74072C26.0365 2.17497 26.6466 2.78141 27.0884 3.56006C27.5376 4.3387 27.7622 5.24089 27.7622 6.2666V6.28906C27.7622 7.31478 27.5376 8.2207 27.0884 9.00684C26.6466 9.79297 26.0365 10.4069 25.2578 10.8486C24.4792 11.2904 23.5807 11.5112 22.5625 11.5112H17.6885ZM16.6777 17.2949V1.08936H18.6992V17.2949H16.6777ZM32.6699 17.5195C31.9062 17.5195 31.2249 17.3735 30.626 17.0815C30.0345 16.7896 29.5703 16.3778 29.2334 15.8462C28.904 15.3071 28.7393 14.682 28.7393 13.9707V13.9482C28.7393 13.2594 28.9077 12.668 29.2446 12.1738C29.5815 11.6797 30.0682 11.2904 30.7046 11.0059C31.3485 10.7139 32.1234 10.5417 33.0293 10.4893L37.3979 10.2422V11.7695L33.2539 12.0278C32.4303 12.0728 31.8052 12.2599 31.3784 12.5894C30.9517 12.9188 30.7383 13.3643 30.7383 13.9258V13.9482C30.7383 14.5322 30.9554 14.9927 31.3896 15.3296C31.8239 15.659 32.3929 15.8237 33.0967 15.8237C33.7331 15.8237 34.2983 15.6927 34.7925 15.4307C35.2941 15.1686 35.6909 14.813 35.9829 14.3638C36.2749 13.9071 36.4209 13.3979 36.4209 12.8364V9.27637C36.4209 8.55762 36.1963 7.99609 35.7471 7.5918C35.2979 7.1875 34.6502 6.98535 33.8042 6.98535C33.063 6.98535 32.4603 7.13883 31.9961 7.4458C31.5394 7.74528 31.2474 8.14958 31.1201 8.65869L31.0977 8.7373H29.1885L29.1997 8.625C29.2746 7.98861 29.5067 7.41585 29.896 6.90674C30.2928 6.39762 30.8244 5.99707 31.4907 5.70508C32.1646 5.4056 32.9469 5.25586 33.8379 5.25586C34.7812 5.25586 35.5898 5.41683 36.2637 5.73877C36.945 6.05322 37.4653 6.50244 37.8247 7.08643C38.1916 7.66292 38.375 8.35173 38.375 9.15283V17.2949H36.4209V15.4307H36.3311C36.0915 15.8574 35.7845 16.228 35.4102 16.5425C35.0433 16.8569 34.6278 17.1003 34.1636 17.2725C33.6994 17.4372 33.2015 17.5195 32.6699 17.5195ZM42.1484 21.3267C41.9837 21.3267 41.8115 21.3192 41.6318 21.3042C41.4521 21.2892 41.2987 21.2705 41.1714 21.248V19.6421C41.2612 19.6646 41.366 19.6795 41.4858 19.687C41.6056 19.702 41.7292 19.7095 41.8564 19.7095C42.4554 19.7095 42.9383 19.5897 43.3052 19.3501C43.672 19.1105 43.9678 18.6576 44.1924 17.9912L44.4282 17.3062L40.0371 5.48047H42.126L45.6187 15.981L45.0796 15.2734H45.7759L45.248 15.981L48.7407 5.48047H50.7959L46.1802 18.0249C45.8807 18.826 45.555 19.4661 45.2031 19.9453C44.8512 20.432 44.432 20.7839 43.9453 21.001C43.4587 21.2181 42.8597 21.3267 42.1484 21.3267Z";
|
|
69
|
+
var APPLE_LOGO_PATH = LOGO_PATH.slice(0, LOGO_PATH.indexOf("M17.6885"));
|
|
69
70
|
function ensureApplePayLogoSymbol() {
|
|
70
71
|
if (document.getElementById(LOGO_DEFS_ID)) {
|
|
71
72
|
return;
|
|
72
73
|
}
|
|
73
74
|
const tmp = document.createElement("div");
|
|
74
|
-
tmp.innerHTML = `<svg aria-hidden="true" style="display:none" id="${LOGO_DEFS_ID}"><defs><symbol id="apple-pay-logo" viewBox="0 0 51 22"><path d="${LOGO_PATH}" fill="currentColor"/></symbol></defs></svg>`;
|
|
75
|
+
tmp.innerHTML = `<svg aria-hidden="true" style="display:none" id="${LOGO_DEFS_ID}"><defs><symbol id="apple-pay-logo" viewBox="0 0 51 22"><path d="${LOGO_PATH}" fill="currentColor"/></symbol><symbol id="apple-logo" viewBox="0 0 15 18"><path d="${APPLE_LOGO_PATH}" fill="currentColor"/></symbol></defs></svg>`;
|
|
75
76
|
document.body.prepend(tmp.firstElementChild);
|
|
76
77
|
}
|
|
77
78
|
|
|
@@ -66,12 +66,13 @@ function formatPrice(price, currencyCode, shouldFixDecimalPlaces = true, roundUp
|
|
|
66
66
|
// src/apple-pay-logo.ts
|
|
67
67
|
var LOGO_DEFS_ID = "apple-pay-logo-defs";
|
|
68
68
|
var LOGO_PATH = "M10.2651 4.21143C10.4299 4.21143 10.7106 4.23763 11.1074 4.29004C11.5042 4.34245 11.9385 4.49219 12.4102 4.73926C12.8893 4.97884 13.3236 5.37939 13.7129 5.94092C13.6904 5.96338 13.5819 6.04574 13.3872 6.18799C13.1925 6.32275 12.9754 6.5249 12.7358 6.79443C12.4963 7.05648 12.2866 7.39339 12.1069 7.80518C11.9272 8.20947 11.8374 8.69238 11.8374 9.25391C11.8374 9.89779 11.9497 10.4443 12.1743 10.8936C12.4064 11.3428 12.6722 11.7059 12.9717 11.9829C13.2786 12.2524 13.5482 12.4508 13.7803 12.5781C14.0199 12.7054 14.1471 12.7728 14.1621 12.7803C14.1546 12.8102 14.0573 13.076 13.8701 13.5776C13.6904 14.0793 13.391 14.637 12.9717 15.251C12.6048 15.7826 12.208 16.2729 11.7812 16.7222C11.362 17.1714 10.8566 17.396 10.2651 17.396C9.86833 17.396 9.54264 17.3398 9.28809 17.2275C9.03353 17.1077 8.77148 16.9917 8.50195 16.8794C8.23242 16.7596 7.8693 16.6997 7.4126 16.6997C6.97087 16.6997 6.60026 16.7596 6.30078 16.8794C6.00879 16.9992 5.72803 17.119 5.4585 17.2388C5.19645 17.3586 4.88574 17.4185 4.52637 17.4185C3.97982 17.4185 3.50065 17.2013 3.08887 16.7671C2.67708 16.3328 2.25407 15.8125 1.81982 15.2061C1.3182 14.4873 0.887695 13.6113 0.52832 12.5781C0.176432 11.5374 0.000488281 10.4893 0.000488281 9.43359C0.000488281 8.30306 0.213867 7.35596 0.640625 6.59229C1.06738 5.82113 1.61393 5.24089 2.28027 4.85156C2.9541 4.45475 3.65039 4.25635 4.36914 4.25635C4.75098 4.25635 5.11035 4.31999 5.44727 4.44727C5.78418 4.56706 6.09863 4.69059 6.39062 4.81787C6.6901 4.94515 6.95964 5.00879 7.19922 5.00879C7.43132 5.00879 7.70085 4.94141 8.00781 4.80664C8.31478 4.67188 8.65918 4.54085 9.04102 4.41357C9.42285 4.27881 9.83089 4.21143 10.2651 4.21143ZM9.64746 2.78516C9.35547 3.13704 8.98861 3.43278 8.54688 3.67236C8.10514 3.90446 7.68587 4.02051 7.28906 4.02051C7.20671 4.02051 7.12809 4.01302 7.05322 3.99805C7.04574 3.97559 7.03825 3.93441 7.03076 3.87451C7.02327 3.81462 7.01953 3.75098 7.01953 3.68359C7.01953 3.23438 7.11686 2.80013 7.31152 2.38086C7.50618 1.9541 7.72705 1.60221 7.97412 1.3252C8.28857 0.950846 8.68538 0.640137 9.16455 0.393066C9.64372 0.145996 10.1004 0.014974 10.5347 0C10.5571 0.0973307 10.5684 0.213379 10.5684 0.348145C10.5684 0.797363 10.4823 1.23535 10.3101 1.66211C10.1379 2.08138 9.91699 2.45573 9.64746 2.78516ZM17.6885 11.5112V9.71436H22.0459C23.2064 9.71436 24.1048 9.41488 24.7412 8.81592C25.3776 8.20947 25.6958 7.37467 25.6958 6.31152V6.28906C25.6958 5.21842 25.3776 4.38363 24.7412 3.78467C24.1048 3.18571 23.2064 2.88623 22.0459 2.88623H17.6885V1.08936H22.5625C23.5807 1.08936 24.4792 1.30648 25.2578 1.74072C26.0365 2.17497 26.6466 2.78141 27.0884 3.56006C27.5376 4.3387 27.7622 5.24089 27.7622 6.2666V6.28906C27.7622 7.31478 27.5376 8.2207 27.0884 9.00684C26.6466 9.79297 26.0365 10.4069 25.2578 10.8486C24.4792 11.2904 23.5807 11.5112 22.5625 11.5112H17.6885ZM16.6777 17.2949V1.08936H18.6992V17.2949H16.6777ZM32.6699 17.5195C31.9062 17.5195 31.2249 17.3735 30.626 17.0815C30.0345 16.7896 29.5703 16.3778 29.2334 15.8462C28.904 15.3071 28.7393 14.682 28.7393 13.9707V13.9482C28.7393 13.2594 28.9077 12.668 29.2446 12.1738C29.5815 11.6797 30.0682 11.2904 30.7046 11.0059C31.3485 10.7139 32.1234 10.5417 33.0293 10.4893L37.3979 10.2422V11.7695L33.2539 12.0278C32.4303 12.0728 31.8052 12.2599 31.3784 12.5894C30.9517 12.9188 30.7383 13.3643 30.7383 13.9258V13.9482C30.7383 14.5322 30.9554 14.9927 31.3896 15.3296C31.8239 15.659 32.3929 15.8237 33.0967 15.8237C33.7331 15.8237 34.2983 15.6927 34.7925 15.4307C35.2941 15.1686 35.6909 14.813 35.9829 14.3638C36.2749 13.9071 36.4209 13.3979 36.4209 12.8364V9.27637C36.4209 8.55762 36.1963 7.99609 35.7471 7.5918C35.2979 7.1875 34.6502 6.98535 33.8042 6.98535C33.063 6.98535 32.4603 7.13883 31.9961 7.4458C31.5394 7.74528 31.2474 8.14958 31.1201 8.65869L31.0977 8.7373H29.1885L29.1997 8.625C29.2746 7.98861 29.5067 7.41585 29.896 6.90674C30.2928 6.39762 30.8244 5.99707 31.4907 5.70508C32.1646 5.4056 32.9469 5.25586 33.8379 5.25586C34.7812 5.25586 35.5898 5.41683 36.2637 5.73877C36.945 6.05322 37.4653 6.50244 37.8247 7.08643C38.1916 7.66292 38.375 8.35173 38.375 9.15283V17.2949H36.4209V15.4307H36.3311C36.0915 15.8574 35.7845 16.228 35.4102 16.5425C35.0433 16.8569 34.6278 17.1003 34.1636 17.2725C33.6994 17.4372 33.2015 17.5195 32.6699 17.5195ZM42.1484 21.3267C41.9837 21.3267 41.8115 21.3192 41.6318 21.3042C41.4521 21.2892 41.2987 21.2705 41.1714 21.248V19.6421C41.2612 19.6646 41.366 19.6795 41.4858 19.687C41.6056 19.702 41.7292 19.7095 41.8564 19.7095C42.4554 19.7095 42.9383 19.5897 43.3052 19.3501C43.672 19.1105 43.9678 18.6576 44.1924 17.9912L44.4282 17.3062L40.0371 5.48047H42.126L45.6187 15.981L45.0796 15.2734H45.7759L45.248 15.981L48.7407 5.48047H50.7959L46.1802 18.0249C45.8807 18.826 45.555 19.4661 45.2031 19.9453C44.8512 20.432 44.432 20.7839 43.9453 21.001C43.4587 21.2181 42.8597 21.3267 42.1484 21.3267Z";
|
|
69
|
+
var APPLE_LOGO_PATH = LOGO_PATH.slice(0, LOGO_PATH.indexOf("M17.6885"));
|
|
69
70
|
function ensureApplePayLogoSymbol() {
|
|
70
71
|
if (document.getElementById(LOGO_DEFS_ID)) {
|
|
71
72
|
return;
|
|
72
73
|
}
|
|
73
74
|
const tmp = document.createElement("div");
|
|
74
|
-
tmp.innerHTML = `<svg aria-hidden="true" style="display:none" id="${LOGO_DEFS_ID}"><defs><symbol id="apple-pay-logo" viewBox="0 0 51 22"><path d="${LOGO_PATH}" fill="currentColor"/></symbol></defs></svg>`;
|
|
75
|
+
tmp.innerHTML = `<svg aria-hidden="true" style="display:none" id="${LOGO_DEFS_ID}"><defs><symbol id="apple-pay-logo" viewBox="0 0 51 22"><path d="${LOGO_PATH}" fill="currentColor"/></symbol><symbol id="apple-logo" viewBox="0 0 15 18"><path d="${APPLE_LOGO_PATH}" fill="currentColor"/></symbol></defs></svg>`;
|
|
75
76
|
document.body.prepend(tmp.firstElementChild);
|
|
76
77
|
}
|
|
77
78
|
|
|
@@ -1006,8 +1007,27 @@ var ApplePayModal = class _ApplePayModal extends HTMLElement {
|
|
|
1006
1007
|
|
|
1007
1008
|
// src/templates/apple-pay-button.template.html
|
|
1008
1009
|
var apple_pay_button_template_default = `<style>
|
|
1009
|
-
/*
|
|
1010
|
+
/*
|
|
1011
|
+
* Entry CTA only: \u201CSubscribe with [apple logo] Apple Pay\u201D.
|
|
1012
|
+
* Uses OS SF Pro via local() (no Marber). Modal styling is unchanged.
|
|
1013
|
+
*/
|
|
1014
|
+
@font-face {
|
|
1015
|
+
font-family: 'WAP Apple Pay Text';
|
|
1016
|
+
src:
|
|
1017
|
+
local('SF Pro Text Light'),
|
|
1018
|
+
local('SFProText-Light'),
|
|
1019
|
+
local('SF Pro Text'),
|
|
1020
|
+
local('SFProText-Regular'),
|
|
1021
|
+
local('-apple-system'),
|
|
1022
|
+
local('BlinkMacSystemFont'),
|
|
1023
|
+
local('Helvetica Neue');
|
|
1024
|
+
font-weight: 300;
|
|
1025
|
+
font-style: normal;
|
|
1026
|
+
font-display: swap;
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1010
1029
|
teg-apple-pay-button {
|
|
1030
|
+
--wap-apple-pay-scale: 1.375; /* default height 44px / 32 */
|
|
1011
1031
|
display: block;
|
|
1012
1032
|
margin: var(--apple-pay-margin, 0);
|
|
1013
1033
|
width: 100%;
|
|
@@ -1023,27 +1043,43 @@ var apple_pay_button_template_default = `<style>
|
|
|
1023
1043
|
}
|
|
1024
1044
|
|
|
1025
1045
|
teg-apple-pay-button .apple-pay-btn {
|
|
1026
|
-
display: flex;
|
|
1046
|
+
display: inline-flex;
|
|
1027
1047
|
align-items: center;
|
|
1028
1048
|
justify-content: center;
|
|
1029
|
-
gap: 0.375rem;
|
|
1030
1049
|
width: 100%;
|
|
1031
1050
|
min-width: 0;
|
|
1032
1051
|
height: 100%;
|
|
1033
1052
|
min-height: var(--apple-pay-height, 2.75rem);
|
|
1053
|
+
padding: 0 calc(8px * var(--wap-apple-pay-scale));
|
|
1054
|
+
box-sizing: border-box;
|
|
1034
1055
|
background-color: var(--apple-pay-background-color, #000);
|
|
1035
1056
|
color: var(--apple-pay-foreground-color, #fff);
|
|
1036
1057
|
border: none;
|
|
1037
|
-
border-radius: var(--apple-pay-border-radius,
|
|
1058
|
+
border-radius: var(--apple-pay-border-radius, 5px);
|
|
1038
1059
|
cursor: pointer;
|
|
1039
|
-
font-family:
|
|
1040
|
-
|
|
1041
|
-
font-
|
|
1060
|
+
font-family: 'WAP Apple Pay Text', -apple-system, BlinkMacSystemFont,
|
|
1061
|
+
'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
1062
|
+
font-size: calc(12px * var(--wap-apple-pay-scale));
|
|
1063
|
+
font-weight: 300;
|
|
1064
|
+
font-style: normal;
|
|
1065
|
+
line-height: 1;
|
|
1066
|
+
letter-spacing: -0.01em;
|
|
1067
|
+
-webkit-font-smoothing: antialiased;
|
|
1068
|
+
-moz-osx-font-smoothing: grayscale;
|
|
1042
1069
|
}
|
|
1043
1070
|
|
|
1044
|
-
teg-apple-pay-button .apple-pay-
|
|
1071
|
+
teg-apple-pay-button .apple-pay-btn__label {
|
|
1072
|
+
display: inline-flex;
|
|
1073
|
+
align-items: center;
|
|
1074
|
+
gap: calc(4px * var(--wap-apple-pay-scale));
|
|
1075
|
+
white-space: nowrap;
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
teg-apple-pay-button .apple-pay-btn__apple-logo {
|
|
1045
1079
|
flex-shrink: 0;
|
|
1046
1080
|
display: block;
|
|
1081
|
+
width: calc(12px * var(--wap-apple-pay-scale));
|
|
1082
|
+
height: calc(14px * var(--wap-apple-pay-scale));
|
|
1047
1083
|
color: currentColor;
|
|
1048
1084
|
}
|
|
1049
1085
|
|
|
@@ -1052,6 +1088,10 @@ var apple_pay_button_template_default = `<style>
|
|
|
1052
1088
|
cursor: default;
|
|
1053
1089
|
}
|
|
1054
1090
|
|
|
1091
|
+
teg-apple-pay-button .apple-pay-btn.wap-loading .apple-pay-btn__label {
|
|
1092
|
+
visibility: hidden;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1055
1095
|
teg-apple-pay-button .apple-pay-btn.wap-loading::before {
|
|
1056
1096
|
content: '';
|
|
1057
1097
|
position: absolute;
|
|
@@ -1065,11 +1105,6 @@ var apple_pay_button_template_default = `<style>
|
|
|
1065
1105
|
animation: wap-button-spinner 0.8s linear infinite;
|
|
1066
1106
|
}
|
|
1067
1107
|
|
|
1068
|
-
teg-apple-pay-button .apple-pay-btn__logo {
|
|
1069
|
-
display: inline-flex;
|
|
1070
|
-
align-items: center;
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
1108
|
teg-apple-pay-button .apple-pay-btn__loading {
|
|
1074
1109
|
display: none;
|
|
1075
1110
|
}
|
|
@@ -1084,17 +1119,26 @@ var apple_pay_button_template_default = `<style>
|
|
|
1084
1119
|
}
|
|
1085
1120
|
</style>
|
|
1086
1121
|
|
|
1087
|
-
<div class="apple-pay-container" aria-label="
|
|
1122
|
+
<div class="apple-pay-container" aria-label="Subscribe with Apple Pay">
|
|
1088
1123
|
<button
|
|
1089
1124
|
class="apple-pay-btn"
|
|
1090
1125
|
type="button"
|
|
1091
|
-
aria-label="
|
|
1126
|
+
aria-label="Subscribe with Apple Pay"
|
|
1092
1127
|
data-analytics="paywall:apple-pay-checkout"
|
|
1093
1128
|
>
|
|
1094
|
-
<span class="apple-pay-
|
|
1095
|
-
|
|
1096
|
-
|
|
1129
|
+
<span class="apple-pay-btn__label">
|
|
1130
|
+
Subscribe with
|
|
1131
|
+
<svg
|
|
1132
|
+
class="apple-pay-btn__apple-logo"
|
|
1133
|
+
width="17"
|
|
1134
|
+
height="19"
|
|
1135
|
+
viewBox="0 0 15 18"
|
|
1136
|
+
aria-hidden="true"
|
|
1137
|
+
role="img"
|
|
1138
|
+
>
|
|
1139
|
+
<use href="#apple-logo" />
|
|
1097
1140
|
</svg>
|
|
1141
|
+
Apple Pay
|
|
1098
1142
|
</span>
|
|
1099
1143
|
<span class="apple-pay-btn__loading" aria-hidden="true">Loading...</span>
|
|
1100
1144
|
</button>
|
package/dist/src/index.js
CHANGED
|
@@ -66,12 +66,13 @@ function formatPrice(price, currencyCode, shouldFixDecimalPlaces = true, roundUp
|
|
|
66
66
|
// src/apple-pay-logo.ts
|
|
67
67
|
var LOGO_DEFS_ID = "apple-pay-logo-defs";
|
|
68
68
|
var LOGO_PATH = "M10.2651 4.21143C10.4299 4.21143 10.7106 4.23763 11.1074 4.29004C11.5042 4.34245 11.9385 4.49219 12.4102 4.73926C12.8893 4.97884 13.3236 5.37939 13.7129 5.94092C13.6904 5.96338 13.5819 6.04574 13.3872 6.18799C13.1925 6.32275 12.9754 6.5249 12.7358 6.79443C12.4963 7.05648 12.2866 7.39339 12.1069 7.80518C11.9272 8.20947 11.8374 8.69238 11.8374 9.25391C11.8374 9.89779 11.9497 10.4443 12.1743 10.8936C12.4064 11.3428 12.6722 11.7059 12.9717 11.9829C13.2786 12.2524 13.5482 12.4508 13.7803 12.5781C14.0199 12.7054 14.1471 12.7728 14.1621 12.7803C14.1546 12.8102 14.0573 13.076 13.8701 13.5776C13.6904 14.0793 13.391 14.637 12.9717 15.251C12.6048 15.7826 12.208 16.2729 11.7812 16.7222C11.362 17.1714 10.8566 17.396 10.2651 17.396C9.86833 17.396 9.54264 17.3398 9.28809 17.2275C9.03353 17.1077 8.77148 16.9917 8.50195 16.8794C8.23242 16.7596 7.8693 16.6997 7.4126 16.6997C6.97087 16.6997 6.60026 16.7596 6.30078 16.8794C6.00879 16.9992 5.72803 17.119 5.4585 17.2388C5.19645 17.3586 4.88574 17.4185 4.52637 17.4185C3.97982 17.4185 3.50065 17.2013 3.08887 16.7671C2.67708 16.3328 2.25407 15.8125 1.81982 15.2061C1.3182 14.4873 0.887695 13.6113 0.52832 12.5781C0.176432 11.5374 0.000488281 10.4893 0.000488281 9.43359C0.000488281 8.30306 0.213867 7.35596 0.640625 6.59229C1.06738 5.82113 1.61393 5.24089 2.28027 4.85156C2.9541 4.45475 3.65039 4.25635 4.36914 4.25635C4.75098 4.25635 5.11035 4.31999 5.44727 4.44727C5.78418 4.56706 6.09863 4.69059 6.39062 4.81787C6.6901 4.94515 6.95964 5.00879 7.19922 5.00879C7.43132 5.00879 7.70085 4.94141 8.00781 4.80664C8.31478 4.67188 8.65918 4.54085 9.04102 4.41357C9.42285 4.27881 9.83089 4.21143 10.2651 4.21143ZM9.64746 2.78516C9.35547 3.13704 8.98861 3.43278 8.54688 3.67236C8.10514 3.90446 7.68587 4.02051 7.28906 4.02051C7.20671 4.02051 7.12809 4.01302 7.05322 3.99805C7.04574 3.97559 7.03825 3.93441 7.03076 3.87451C7.02327 3.81462 7.01953 3.75098 7.01953 3.68359C7.01953 3.23438 7.11686 2.80013 7.31152 2.38086C7.50618 1.9541 7.72705 1.60221 7.97412 1.3252C8.28857 0.950846 8.68538 0.640137 9.16455 0.393066C9.64372 0.145996 10.1004 0.014974 10.5347 0C10.5571 0.0973307 10.5684 0.213379 10.5684 0.348145C10.5684 0.797363 10.4823 1.23535 10.3101 1.66211C10.1379 2.08138 9.91699 2.45573 9.64746 2.78516ZM17.6885 11.5112V9.71436H22.0459C23.2064 9.71436 24.1048 9.41488 24.7412 8.81592C25.3776 8.20947 25.6958 7.37467 25.6958 6.31152V6.28906C25.6958 5.21842 25.3776 4.38363 24.7412 3.78467C24.1048 3.18571 23.2064 2.88623 22.0459 2.88623H17.6885V1.08936H22.5625C23.5807 1.08936 24.4792 1.30648 25.2578 1.74072C26.0365 2.17497 26.6466 2.78141 27.0884 3.56006C27.5376 4.3387 27.7622 5.24089 27.7622 6.2666V6.28906C27.7622 7.31478 27.5376 8.2207 27.0884 9.00684C26.6466 9.79297 26.0365 10.4069 25.2578 10.8486C24.4792 11.2904 23.5807 11.5112 22.5625 11.5112H17.6885ZM16.6777 17.2949V1.08936H18.6992V17.2949H16.6777ZM32.6699 17.5195C31.9062 17.5195 31.2249 17.3735 30.626 17.0815C30.0345 16.7896 29.5703 16.3778 29.2334 15.8462C28.904 15.3071 28.7393 14.682 28.7393 13.9707V13.9482C28.7393 13.2594 28.9077 12.668 29.2446 12.1738C29.5815 11.6797 30.0682 11.2904 30.7046 11.0059C31.3485 10.7139 32.1234 10.5417 33.0293 10.4893L37.3979 10.2422V11.7695L33.2539 12.0278C32.4303 12.0728 31.8052 12.2599 31.3784 12.5894C30.9517 12.9188 30.7383 13.3643 30.7383 13.9258V13.9482C30.7383 14.5322 30.9554 14.9927 31.3896 15.3296C31.8239 15.659 32.3929 15.8237 33.0967 15.8237C33.7331 15.8237 34.2983 15.6927 34.7925 15.4307C35.2941 15.1686 35.6909 14.813 35.9829 14.3638C36.2749 13.9071 36.4209 13.3979 36.4209 12.8364V9.27637C36.4209 8.55762 36.1963 7.99609 35.7471 7.5918C35.2979 7.1875 34.6502 6.98535 33.8042 6.98535C33.063 6.98535 32.4603 7.13883 31.9961 7.4458C31.5394 7.74528 31.2474 8.14958 31.1201 8.65869L31.0977 8.7373H29.1885L29.1997 8.625C29.2746 7.98861 29.5067 7.41585 29.896 6.90674C30.2928 6.39762 30.8244 5.99707 31.4907 5.70508C32.1646 5.4056 32.9469 5.25586 33.8379 5.25586C34.7812 5.25586 35.5898 5.41683 36.2637 5.73877C36.945 6.05322 37.4653 6.50244 37.8247 7.08643C38.1916 7.66292 38.375 8.35173 38.375 9.15283V17.2949H36.4209V15.4307H36.3311C36.0915 15.8574 35.7845 16.228 35.4102 16.5425C35.0433 16.8569 34.6278 17.1003 34.1636 17.2725C33.6994 17.4372 33.2015 17.5195 32.6699 17.5195ZM42.1484 21.3267C41.9837 21.3267 41.8115 21.3192 41.6318 21.3042C41.4521 21.2892 41.2987 21.2705 41.1714 21.248V19.6421C41.2612 19.6646 41.366 19.6795 41.4858 19.687C41.6056 19.702 41.7292 19.7095 41.8564 19.7095C42.4554 19.7095 42.9383 19.5897 43.3052 19.3501C43.672 19.1105 43.9678 18.6576 44.1924 17.9912L44.4282 17.3062L40.0371 5.48047H42.126L45.6187 15.981L45.0796 15.2734H45.7759L45.248 15.981L48.7407 5.48047H50.7959L46.1802 18.0249C45.8807 18.826 45.555 19.4661 45.2031 19.9453C44.8512 20.432 44.432 20.7839 43.9453 21.001C43.4587 21.2181 42.8597 21.3267 42.1484 21.3267Z";
|
|
69
|
+
var APPLE_LOGO_PATH = LOGO_PATH.slice(0, LOGO_PATH.indexOf("M17.6885"));
|
|
69
70
|
function ensureApplePayLogoSymbol() {
|
|
70
71
|
if (document.getElementById(LOGO_DEFS_ID)) {
|
|
71
72
|
return;
|
|
72
73
|
}
|
|
73
74
|
const tmp = document.createElement("div");
|
|
74
|
-
tmp.innerHTML = `<svg aria-hidden="true" style="display:none" id="${LOGO_DEFS_ID}"><defs><symbol id="apple-pay-logo" viewBox="0 0 51 22"><path d="${LOGO_PATH}" fill="currentColor"/></symbol></defs></svg>`;
|
|
75
|
+
tmp.innerHTML = `<svg aria-hidden="true" style="display:none" id="${LOGO_DEFS_ID}"><defs><symbol id="apple-pay-logo" viewBox="0 0 51 22"><path d="${LOGO_PATH}" fill="currentColor"/></symbol><symbol id="apple-logo" viewBox="0 0 15 18"><path d="${APPLE_LOGO_PATH}" fill="currentColor"/></symbol></defs></svg>`;
|
|
75
76
|
document.body.prepend(tmp.firstElementChild);
|
|
76
77
|
}
|
|
77
78
|
|
|
@@ -1011,8 +1012,27 @@ var ApplePayModal = class _ApplePayModal extends HTMLElement {
|
|
|
1011
1012
|
|
|
1012
1013
|
// src/templates/apple-pay-button.template.html
|
|
1013
1014
|
var apple_pay_button_template_default = `<style>
|
|
1014
|
-
/*
|
|
1015
|
+
/*
|
|
1016
|
+
* Entry CTA only: \u201CSubscribe with [apple logo] Apple Pay\u201D.
|
|
1017
|
+
* Uses OS SF Pro via local() (no Marber). Modal styling is unchanged.
|
|
1018
|
+
*/
|
|
1019
|
+
@font-face {
|
|
1020
|
+
font-family: 'WAP Apple Pay Text';
|
|
1021
|
+
src:
|
|
1022
|
+
local('SF Pro Text Light'),
|
|
1023
|
+
local('SFProText-Light'),
|
|
1024
|
+
local('SF Pro Text'),
|
|
1025
|
+
local('SFProText-Regular'),
|
|
1026
|
+
local('-apple-system'),
|
|
1027
|
+
local('BlinkMacSystemFont'),
|
|
1028
|
+
local('Helvetica Neue');
|
|
1029
|
+
font-weight: 300;
|
|
1030
|
+
font-style: normal;
|
|
1031
|
+
font-display: swap;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1015
1034
|
teg-apple-pay-button {
|
|
1035
|
+
--wap-apple-pay-scale: 1.375; /* default height 44px / 32 */
|
|
1016
1036
|
display: block;
|
|
1017
1037
|
margin: var(--apple-pay-margin, 0);
|
|
1018
1038
|
width: 100%;
|
|
@@ -1028,27 +1048,43 @@ var apple_pay_button_template_default = `<style>
|
|
|
1028
1048
|
}
|
|
1029
1049
|
|
|
1030
1050
|
teg-apple-pay-button .apple-pay-btn {
|
|
1031
|
-
display: flex;
|
|
1051
|
+
display: inline-flex;
|
|
1032
1052
|
align-items: center;
|
|
1033
1053
|
justify-content: center;
|
|
1034
|
-
gap: 0.375rem;
|
|
1035
1054
|
width: 100%;
|
|
1036
1055
|
min-width: 0;
|
|
1037
1056
|
height: 100%;
|
|
1038
1057
|
min-height: var(--apple-pay-height, 2.75rem);
|
|
1058
|
+
padding: 0 calc(8px * var(--wap-apple-pay-scale));
|
|
1059
|
+
box-sizing: border-box;
|
|
1039
1060
|
background-color: var(--apple-pay-background-color, #000);
|
|
1040
1061
|
color: var(--apple-pay-foreground-color, #fff);
|
|
1041
1062
|
border: none;
|
|
1042
|
-
border-radius: var(--apple-pay-border-radius,
|
|
1063
|
+
border-radius: var(--apple-pay-border-radius, 5px);
|
|
1043
1064
|
cursor: pointer;
|
|
1044
|
-
font-family:
|
|
1045
|
-
|
|
1046
|
-
font-
|
|
1065
|
+
font-family: 'WAP Apple Pay Text', -apple-system, BlinkMacSystemFont,
|
|
1066
|
+
'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
1067
|
+
font-size: calc(12px * var(--wap-apple-pay-scale));
|
|
1068
|
+
font-weight: 300;
|
|
1069
|
+
font-style: normal;
|
|
1070
|
+
line-height: 1;
|
|
1071
|
+
letter-spacing: -0.01em;
|
|
1072
|
+
-webkit-font-smoothing: antialiased;
|
|
1073
|
+
-moz-osx-font-smoothing: grayscale;
|
|
1047
1074
|
}
|
|
1048
1075
|
|
|
1049
|
-
teg-apple-pay-button .apple-pay-
|
|
1076
|
+
teg-apple-pay-button .apple-pay-btn__label {
|
|
1077
|
+
display: inline-flex;
|
|
1078
|
+
align-items: center;
|
|
1079
|
+
gap: calc(4px * var(--wap-apple-pay-scale));
|
|
1080
|
+
white-space: nowrap;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
teg-apple-pay-button .apple-pay-btn__apple-logo {
|
|
1050
1084
|
flex-shrink: 0;
|
|
1051
1085
|
display: block;
|
|
1086
|
+
width: calc(12px * var(--wap-apple-pay-scale));
|
|
1087
|
+
height: calc(14px * var(--wap-apple-pay-scale));
|
|
1052
1088
|
color: currentColor;
|
|
1053
1089
|
}
|
|
1054
1090
|
|
|
@@ -1057,6 +1093,10 @@ var apple_pay_button_template_default = `<style>
|
|
|
1057
1093
|
cursor: default;
|
|
1058
1094
|
}
|
|
1059
1095
|
|
|
1096
|
+
teg-apple-pay-button .apple-pay-btn.wap-loading .apple-pay-btn__label {
|
|
1097
|
+
visibility: hidden;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1060
1100
|
teg-apple-pay-button .apple-pay-btn.wap-loading::before {
|
|
1061
1101
|
content: '';
|
|
1062
1102
|
position: absolute;
|
|
@@ -1070,11 +1110,6 @@ var apple_pay_button_template_default = `<style>
|
|
|
1070
1110
|
animation: wap-button-spinner 0.8s linear infinite;
|
|
1071
1111
|
}
|
|
1072
1112
|
|
|
1073
|
-
teg-apple-pay-button .apple-pay-btn__logo {
|
|
1074
|
-
display: inline-flex;
|
|
1075
|
-
align-items: center;
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
1113
|
teg-apple-pay-button .apple-pay-btn__loading {
|
|
1079
1114
|
display: none;
|
|
1080
1115
|
}
|
|
@@ -1089,17 +1124,26 @@ var apple_pay_button_template_default = `<style>
|
|
|
1089
1124
|
}
|
|
1090
1125
|
</style>
|
|
1091
1126
|
|
|
1092
|
-
<div class="apple-pay-container" aria-label="
|
|
1127
|
+
<div class="apple-pay-container" aria-label="Subscribe with Apple Pay">
|
|
1093
1128
|
<button
|
|
1094
1129
|
class="apple-pay-btn"
|
|
1095
1130
|
type="button"
|
|
1096
|
-
aria-label="
|
|
1131
|
+
aria-label="Subscribe with Apple Pay"
|
|
1097
1132
|
data-analytics="paywall:apple-pay-checkout"
|
|
1098
1133
|
>
|
|
1099
|
-
<span class="apple-pay-
|
|
1100
|
-
|
|
1101
|
-
|
|
1134
|
+
<span class="apple-pay-btn__label">
|
|
1135
|
+
Subscribe with
|
|
1136
|
+
<svg
|
|
1137
|
+
class="apple-pay-btn__apple-logo"
|
|
1138
|
+
width="17"
|
|
1139
|
+
height="19"
|
|
1140
|
+
viewBox="0 0 15 18"
|
|
1141
|
+
aria-hidden="true"
|
|
1142
|
+
role="img"
|
|
1143
|
+
>
|
|
1144
|
+
<use href="#apple-logo" />
|
|
1102
1145
|
</svg>
|
|
1146
|
+
Apple Pay
|
|
1103
1147
|
</span>
|
|
1104
1148
|
<span class="apple-pay-btn__loading" aria-hidden="true">Loading...</span>
|
|
1105
1149
|
</button>
|