@gofynd/theme-template 3.2.7 → 3.2.9
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/components/address-form/address-form.js +1 -1
- package/dist/components/address-form/form-input-selector.js +1 -1
- package/dist/components/address-form/v2/address-form.js +1 -1
- package/dist/components/compare-product-card/compare-product-card.css +888 -0
- package/dist/components/compare-product-card/compare-product-card.js +1 -0
- package/dist/components/core/fy-dropdown/fy-dropdown.js +1 -1
- package/dist/components/core/fy-input/fy-input.js +1 -1
- package/dist/components/filter-modal/filter-modal.js +1 -1
- package/dist/components/form-builder/form-builder.js +1 -1
- package/dist/components/google-map/google-map.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/location-modal/location-modal.js +1 -1
- package/dist/components/product-card/product-card.js +1 -1
- package/dist/components/quantity-control/quantity-control.js +1 -1
- package/dist/components/range-slider/range-slider.js +1 -1
- package/dist/index.css +1401 -216
- package/dist/index.js +1 -1
- package/dist/page-layouts/cart/Components/chip-item/chip-item.js +1 -1
- package/dist/page-layouts/cart/Components/delivery-location/delivery-location.js +1 -1
- package/dist/page-layouts/compare/compare.css +7384 -309
- package/dist/page-layouts/compare/compare.js +2 -1
- package/dist/page-layouts/compare/compare.js.LICENSE.txt +5 -0
- package/dist/page-layouts/login/component/social-login-button/apple-login-button.css +373 -0
- package/dist/page-layouts/login/component/social-login-button/apple-login-button.js +1 -0
- package/dist/page-layouts/login/component/social-login-button/facebook-login-button.css +373 -0
- package/dist/page-layouts/login/component/social-login-button/facebook-login-button.js +1 -0
- package/dist/page-layouts/login/component/social-login-button/google-login-button.css +375 -0
- package/dist/page-layouts/login/component/social-login-button/google-login-button.js +1 -0
- package/dist/page-layouts/plp/Components/add-to-cart/add-to-cart.css +3 -0
- package/dist/page-layouts/plp/Components/add-to-cart/add-to-cart.js +1 -1
- package/dist/page-layouts/plp/Components/delivery-info/delivery-info.js +1 -1
- package/dist/page-layouts/plp/Components/filter-item/filter-item.js +1 -1
- package/dist/page-layouts/plp/Components/filter-list/filter-list.js +1 -1
- package/dist/page-layouts/plp/Components/image-gallery/image-gallery.js +1 -1
- package/dist/page-layouts/plp/Components/lightbox-image/lightbox-image.js +1 -1
- package/dist/page-layouts/plp/Components/mobile-slider/mobile-slider.js +1 -1
- package/dist/page-layouts/plp/Components/product-variants/product-variants.js +1 -1
- package/dist/page-layouts/single-checkout/address/single-address.js +1 -1
- package/dist/page-layouts/single-checkout/payment/card-form.css +58 -1
- package/dist/page-layouts/single-checkout/payment/checkout-payment-content.css +1046 -1
- package/dist/page-layouts/single-checkout/payment/checkout-payment-content.js +1 -1
- package/dist/page-layouts/single-checkout/payment/checkout-payment.css +1192 -144
- package/dist/page-layouts/single-checkout/payment/checkout-payment.js +1 -1
- package/dist/page-layouts/single-checkout/payment/juspay-card-from.css +58 -1
- package/dist/page-layouts/single-checkout/shipment/single-page-shipment.css +1 -0
- package/dist/pages/cart/cart.js +1 -1
- package/dist/pages/cart/index.js +1 -1
- package/dist/pages/checkout/checkout.css +62 -1
- package/dist/pages/checkout/checkout.js +1 -1
- package/dist/pages/checkout/index.css +62 -1
- package/dist/pages/checkout/index.js +1 -1
- package/dist/pages/contact-us/contact-us.js +1 -1
- package/dist/pages/contact-us/index.js +1 -1
- package/dist/pages/index.css +1401 -216
- package/dist/pages/index.js +1 -1
- package/dist/pages/login/index.css +1121 -0
- package/dist/pages/login/index.js +1 -1
- package/dist/pages/login/login.css +1121 -0
- package/dist/pages/login/login.js +1 -1
- package/dist/pages/order/index.js +1 -1
- package/dist/pages/order/order-tracking-details/order-tracking-details.js +1 -1
- package/dist/pages/order/order-tracking.js +1 -1
- package/dist/pages/order-status/index.css +5 -0
- package/dist/pages/order-status/index.js +1 -1
- package/dist/pages/order-status/order-status.css +5 -0
- package/dist/pages/order-status/order-status.js +1 -1
- package/dist/pages/product-listing/index.css +3 -0
- package/dist/pages/product-listing/index.js +1 -1
- package/dist/pages/product-listing/product-listing.css +3 -0
- package/dist/pages/product-listing/product-listing.js +1 -1
- package/dist/pages/profile/components/add-email-modal/add-email-modal.js +1 -1
- package/dist/pages/profile/components/add-phone-modal/add-phone-modal.js +1 -1
- package/dist/pages/profile/email/email.js +1 -1
- package/dist/pages/profile/email/index.js +1 -1
- package/dist/pages/profile/index.js +1 -1
- package/dist/pages/profile/phone/index.js +1 -1
- package/dist/pages/profile/phone/phone.js +1 -1
- package/dist/pages/profile/profile-details.js +1 -1
- package/dist/pages/wishlist/index.css +3 -0
- package/dist/pages/wishlist/index.js +1 -1
- package/dist/pages/wishlist/wishlist.css +3 -0
- package/dist/pages/wishlist/wishlist.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
/**color by character**/
|
|
2
|
+
/** Font family **/
|
|
3
|
+
/** Font weight **/
|
|
4
|
+
.apple-login-button__display-block___hwLap {
|
|
5
|
+
display: block;
|
|
6
|
+
}
|
|
7
|
+
.apple-login-button__inline-block___aCF4e,
|
|
8
|
+
.apple-login-button__inlineBlock___B4Xl5 {
|
|
9
|
+
display: inline-block;
|
|
10
|
+
}
|
|
11
|
+
.apple-login-button__flex-row___X9IvI {
|
|
12
|
+
display: flex;
|
|
13
|
+
}
|
|
14
|
+
.apple-login-button__flex-column___G7Y3y,
|
|
15
|
+
.apple-login-button__flexColumn___SFk5p {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
}
|
|
19
|
+
.apple-login-button__flex-align-center___daUe5,
|
|
20
|
+
.apple-login-button__flexAlignCenter___ofuh5 {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
}
|
|
24
|
+
.apple-login-button__flex-justify-center___DJ3WX,
|
|
25
|
+
.apple-login-button__flexJustifyCenter___aC83Y {
|
|
26
|
+
display: flex;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
}
|
|
29
|
+
.apple-login-button__flex-center___yxBkX,
|
|
30
|
+
.apple-login-button__flexCenter___mtYEb {
|
|
31
|
+
display: flex;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
align-items: center;
|
|
34
|
+
}
|
|
35
|
+
.apple-login-button__justify-start___Ob0Wc,
|
|
36
|
+
.apple-login-button__justifyStart___yoZ4s {
|
|
37
|
+
justify-content: flex-start;
|
|
38
|
+
}
|
|
39
|
+
.apple-login-button__justify-end___D4MFl,
|
|
40
|
+
.apple-login-button__justifyEnd___w7f3L {
|
|
41
|
+
justify-content: flex-end;
|
|
42
|
+
}
|
|
43
|
+
.apple-login-button__justify-between___L8FRs,
|
|
44
|
+
.apple-login-button__justifyBetween___FcE4J {
|
|
45
|
+
justify-content: space-between;
|
|
46
|
+
}
|
|
47
|
+
.apple-login-button__justify-around___jzZ4w,
|
|
48
|
+
.apple-login-button__justifyAround___Z4Oi1 {
|
|
49
|
+
justify-content: space-around;
|
|
50
|
+
}
|
|
51
|
+
.apple-login-button__justify-evenly___AmQxs,
|
|
52
|
+
.apple-login-button__justifyEvenly___RWzUG {
|
|
53
|
+
justify-content: space-evenly;
|
|
54
|
+
}
|
|
55
|
+
h1,
|
|
56
|
+
.apple-login-button__h1___oGPVa {
|
|
57
|
+
font-weight: 700;
|
|
58
|
+
font-size: 28px;
|
|
59
|
+
line-height: 42px;
|
|
60
|
+
letter-spacing: -0.03em;
|
|
61
|
+
color: var(--textHeading, #26201a);
|
|
62
|
+
}
|
|
63
|
+
@media only screen and (min-width: 769px) {
|
|
64
|
+
h1,
|
|
65
|
+
.apple-login-button__h1___oGPVa {
|
|
66
|
+
font-size: 36px;
|
|
67
|
+
line-height: 48px;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
h2,
|
|
71
|
+
.apple-login-button__h2___HPSR0 {
|
|
72
|
+
font-weight: 700;
|
|
73
|
+
font-size: 28px;
|
|
74
|
+
line-height: 36px;
|
|
75
|
+
letter-spacing: -0.03em;
|
|
76
|
+
color: var(--textHeading, #26201a);
|
|
77
|
+
}
|
|
78
|
+
@media only screen and (min-width: 769px) {
|
|
79
|
+
h2,
|
|
80
|
+
.apple-login-button__h2___HPSR0 {
|
|
81
|
+
font-size: 32px;
|
|
82
|
+
line-height: 42px;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
h3,
|
|
86
|
+
.apple-login-button__h3___JIdf0 {
|
|
87
|
+
font-weight: 700;
|
|
88
|
+
letter-spacing: -0.02em;
|
|
89
|
+
color: var(--textHeading, #26201a);
|
|
90
|
+
font-size: 24px;
|
|
91
|
+
line-height: 32px;
|
|
92
|
+
}
|
|
93
|
+
@media only screen and (min-width: 769px) {
|
|
94
|
+
h3,
|
|
95
|
+
.apple-login-button__h3___JIdf0 {
|
|
96
|
+
font-weight: 700;
|
|
97
|
+
letter-spacing: -0.02em;
|
|
98
|
+
color: var(--textHeading, #26201a);
|
|
99
|
+
font-size: 28px;
|
|
100
|
+
line-height: 36px;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
h4,
|
|
104
|
+
.apple-login-button__h4___bA6k4 {
|
|
105
|
+
font-weight: 600;
|
|
106
|
+
letter-spacing: -0.02em;
|
|
107
|
+
color: var(--textHeading, #26201a);
|
|
108
|
+
font-size: 16px;
|
|
109
|
+
line-height: 1.5;
|
|
110
|
+
}
|
|
111
|
+
@media only screen and (min-width: 769px) {
|
|
112
|
+
h4,
|
|
113
|
+
.apple-login-button__h4___bA6k4 {
|
|
114
|
+
font-weight: 600;
|
|
115
|
+
letter-spacing: -0.02em;
|
|
116
|
+
color: var(--textHeading, #26201a);
|
|
117
|
+
font-size: 20px;
|
|
118
|
+
line-height: 1.5;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
h5,
|
|
122
|
+
.apple-login-button__h5___zP6bH {
|
|
123
|
+
font-weight: 600;
|
|
124
|
+
font-size: 14px;
|
|
125
|
+
line-height: 16px;
|
|
126
|
+
letter-spacing: -0.02em;
|
|
127
|
+
color: var(--textHeading, #26201a);
|
|
128
|
+
}
|
|
129
|
+
@media only screen and (min-width: 769px) {
|
|
130
|
+
h5,
|
|
131
|
+
.apple-login-button__h5___zP6bH {
|
|
132
|
+
font-size: 16px;
|
|
133
|
+
line-height: 18px;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
.apple-login-button__b1___ipJa4 {
|
|
137
|
+
font-weight: 400;
|
|
138
|
+
font-size: 14px;
|
|
139
|
+
line-height: 18px;
|
|
140
|
+
letter-spacing: -0.02em;
|
|
141
|
+
color: var(--textBody, #3c3131);
|
|
142
|
+
}
|
|
143
|
+
@media only screen and (min-width: 769px) {
|
|
144
|
+
.apple-login-button__b1___ipJa4 {
|
|
145
|
+
font-size: 16px;
|
|
146
|
+
line-height: 20px;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
.apple-login-button__b-small___4Ny5P,
|
|
150
|
+
.apple-login-button__bSmall___gQa9Z,
|
|
151
|
+
.apple-login-button__b2___dxOtO {
|
|
152
|
+
font-weight: 400;
|
|
153
|
+
letter-spacing: -0.02em;
|
|
154
|
+
color: var(--textBody, #3c3131);
|
|
155
|
+
font-size: 12px;
|
|
156
|
+
line-height: 16px;
|
|
157
|
+
}
|
|
158
|
+
@media only screen and (min-width: 769px) {
|
|
159
|
+
.apple-login-button__b-small___4Ny5P,
|
|
160
|
+
.apple-login-button__bSmall___gQa9Z,
|
|
161
|
+
.apple-login-button__b2___dxOtO {
|
|
162
|
+
font-weight: 400;
|
|
163
|
+
letter-spacing: -0.02em;
|
|
164
|
+
color: var(--textBody, #3c3131);
|
|
165
|
+
font-size: 14px;
|
|
166
|
+
line-height: 18px;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
.apple-login-button__d1___aUKTx {
|
|
170
|
+
font-size: 36px;
|
|
171
|
+
font-weight: 700;
|
|
172
|
+
line-height: 48px;
|
|
173
|
+
letter-spacing: -0.02em;
|
|
174
|
+
}
|
|
175
|
+
@media only screen and (min-width: 769px) {
|
|
176
|
+
.apple-login-button__d1___aUKTx {
|
|
177
|
+
font-size: 64px;
|
|
178
|
+
line-height: 85px;
|
|
179
|
+
letter-spacing: -0.03em;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
.apple-login-button__caption-medium___lIWNV,
|
|
183
|
+
.apple-login-button__captionMedium___bHFgu {
|
|
184
|
+
font-size: 12px;
|
|
185
|
+
line-height: 1.5;
|
|
186
|
+
letter-spacing: -0.02em;
|
|
187
|
+
font-weight: 500;
|
|
188
|
+
}
|
|
189
|
+
@media only screen and (max-width: 480px) {
|
|
190
|
+
.apple-login-button__caption-medium___lIWNV,
|
|
191
|
+
.apple-login-button__captionMedium___bHFgu {
|
|
192
|
+
font-size: 11px;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
.apple-login-button__caption-semi-bold___Y_xIg,
|
|
196
|
+
.apple-login-button__captionSemiBold___zYVQG {
|
|
197
|
+
font-size: 12px;
|
|
198
|
+
line-height: 1.5;
|
|
199
|
+
letter-spacing: -0.02em;
|
|
200
|
+
font-weight: 600;
|
|
201
|
+
}
|
|
202
|
+
@media only screen and (max-width: 480px) {
|
|
203
|
+
.apple-login-button__caption-semi-bold___Y_xIg,
|
|
204
|
+
.apple-login-button__captionSemiBold___zYVQG {
|
|
205
|
+
font-size: 11px;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
.apple-login-button__btn-link___AyEZc,
|
|
209
|
+
.apple-login-button__btnLink___agp9E {
|
|
210
|
+
font-weight: 500;
|
|
211
|
+
letter-spacing: -0.02em;
|
|
212
|
+
font-size: 12px;
|
|
213
|
+
line-height: 14px;
|
|
214
|
+
border-radius: var(--buttonRadius, 0px);
|
|
215
|
+
cursor: pointer;
|
|
216
|
+
color: var(--buttonLink, #b1655b);
|
|
217
|
+
text-decoration: underline;
|
|
218
|
+
background: none;
|
|
219
|
+
border: none;
|
|
220
|
+
}
|
|
221
|
+
@media only screen and (min-width: 769px) {
|
|
222
|
+
.apple-login-button__btn-link___AyEZc,
|
|
223
|
+
.apple-login-button__btnLink___agp9E {
|
|
224
|
+
font-weight: 500;
|
|
225
|
+
letter-spacing: -0.02em;
|
|
226
|
+
font-size: 14px;
|
|
227
|
+
line-height: 16px;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
.apple-login-button__btn-link___AyEZc:hover,
|
|
231
|
+
.apple-login-button__btnLink___agp9E:hover {
|
|
232
|
+
color: var(--buttonLinkL1, #c1847c);
|
|
233
|
+
}
|
|
234
|
+
.apple-login-button__btn-link___AyEZc:disabled,
|
|
235
|
+
.apple-login-button__btnLink___agp9E:disabled {
|
|
236
|
+
color: var(--buttonLinkL2, #d0a39d);
|
|
237
|
+
}
|
|
238
|
+
.apple-login-button__btn-link___AyEZc:active,
|
|
239
|
+
.apple-login-button__btnLink___agp9E:active {
|
|
240
|
+
opacity: 0.8;
|
|
241
|
+
}
|
|
242
|
+
.apple-login-button__user-select-none___Uu59m,
|
|
243
|
+
.apple-login-button__userSelectNone___xv1oB {
|
|
244
|
+
user-select: none;
|
|
245
|
+
-moz-user-select: none;
|
|
246
|
+
-webkit-user-select: none;
|
|
247
|
+
-ms-user-select: none;
|
|
248
|
+
}
|
|
249
|
+
.apple-login-button__margin-0-auto___l6O1E,
|
|
250
|
+
.apple-login-button__margin0auto___Nsb8q {
|
|
251
|
+
margin: 0 auto;
|
|
252
|
+
}
|
|
253
|
+
.apple-login-button__base-page-container___dQWd_,
|
|
254
|
+
.apple-login-button__basePageContainer___ZgJBO {
|
|
255
|
+
max-width: 1440px !important;
|
|
256
|
+
}
|
|
257
|
+
.apple-login-button__remove-scroll___AJwUm,
|
|
258
|
+
.apple-login-button__removeScroll___glZJJ {
|
|
259
|
+
overflow-y: hidden !important;
|
|
260
|
+
}
|
|
261
|
+
.apple-login-button__mr-5____BDrE,
|
|
262
|
+
.apple-login-button__mr5___hzHua {
|
|
263
|
+
margin-inline-end: 30px !important;
|
|
264
|
+
}
|
|
265
|
+
.apple-login-button__mr-2___AgcLa,
|
|
266
|
+
.apple-login-button__mr2___seZiB {
|
|
267
|
+
margin-inline-end: 5px !important;
|
|
268
|
+
}
|
|
269
|
+
.apple-login-button__py-5___H1MFT,
|
|
270
|
+
.apple-login-button__py5___bGZBu {
|
|
271
|
+
padding-top: 1.875rem !important;
|
|
272
|
+
padding-bottom: 1.875rem !important;
|
|
273
|
+
}
|
|
274
|
+
.apple-login-button__view-all-text___luJo7,
|
|
275
|
+
.apple-login-button__viewAllText___h297C {
|
|
276
|
+
font-size: 20px;
|
|
277
|
+
font-weight: 400;
|
|
278
|
+
text-transform: lowercase;
|
|
279
|
+
text-decoration: underline;
|
|
280
|
+
}
|
|
281
|
+
.apple-login-button__view-all-mobile___Kk5t1,
|
|
282
|
+
.apple-login-button__viewAllMobile___cznr_ {
|
|
283
|
+
display: none;
|
|
284
|
+
}
|
|
285
|
+
@media only screen and (max-width: 768px) {
|
|
286
|
+
.apple-login-button__view-all-mobile___Kk5t1,
|
|
287
|
+
.apple-login-button__viewAllMobile___cznr_ {
|
|
288
|
+
display: flex;
|
|
289
|
+
align-items: center;
|
|
290
|
+
justify-content: center;
|
|
291
|
+
margin-top: 40px;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
@media only screen and (max-width: 480px) {
|
|
295
|
+
.apple-login-button__view-all-mobile___Kk5t1,
|
|
296
|
+
.apple-login-button__viewAllMobile___cznr_ {
|
|
297
|
+
margin-top: 24px;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
.apple-login-button__accent-btn___nsUdz,
|
|
301
|
+
.apple-login-button__accentBtn___nV53L {
|
|
302
|
+
background-color: var(--accentColor);
|
|
303
|
+
color: #fff;
|
|
304
|
+
}
|
|
305
|
+
.apple-login-button__no-scroll___K6rEz,
|
|
306
|
+
.apple-login-button__noScroll___YSL2S {
|
|
307
|
+
overflow-y: hidden;
|
|
308
|
+
}
|
|
309
|
+
.apple-login-button__hide-overflow___nBoux,
|
|
310
|
+
.apple-login-button__hideOverflow___UTMCC {
|
|
311
|
+
overflow: hidden;
|
|
312
|
+
}
|
|
313
|
+
.apple-login-button__markdown-body___hbLF0 h6 {
|
|
314
|
+
margin-top: 0 !important;
|
|
315
|
+
margin-bottom: 0 !important;
|
|
316
|
+
}
|
|
317
|
+
@media only screen and (max-width: 480px) {
|
|
318
|
+
.apple-login-button__markdown-body___hbLF0 {
|
|
319
|
+
font-size: 12px !important;
|
|
320
|
+
padding: 5px !important;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
.apple-login-button__view3d-canvas___YbVDV {
|
|
324
|
+
width: 100%;
|
|
325
|
+
height: 100%;
|
|
326
|
+
}
|
|
327
|
+
@media only screen and (max-width: 480px) {
|
|
328
|
+
.apple-login-button__view-mobile-up___QmpIA {
|
|
329
|
+
display: none !important;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
@media only screen and (min-width: 481px) {
|
|
333
|
+
.apple-login-button__view-mobile___hDSl7 {
|
|
334
|
+
display: none !important;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
.apple-login-button__apple-login-container___QDt06 {
|
|
338
|
+
margin-top: 12px;
|
|
339
|
+
}
|
|
340
|
+
.apple-login-button__apple-login-container___QDt06 .apple-login-button__apple-login-button___bv6AQ {
|
|
341
|
+
height: 48px;
|
|
342
|
+
padding: 12px;
|
|
343
|
+
background: transparent;
|
|
344
|
+
border-radius: 4px;
|
|
345
|
+
border: 1px solid var(--dividerStokes, #dadce0);
|
|
346
|
+
font-size: 14px;
|
|
347
|
+
font-style: normal;
|
|
348
|
+
font-weight: 600;
|
|
349
|
+
line-height: 19.6px;
|
|
350
|
+
text-transform: uppercase;
|
|
351
|
+
color: var(--textHeading, #3c4043);
|
|
352
|
+
width: 100%;
|
|
353
|
+
box-sizing: border-box;
|
|
354
|
+
display: flex;
|
|
355
|
+
align-items: center;
|
|
356
|
+
cursor: pointer;
|
|
357
|
+
font-family: var(--font-body);
|
|
358
|
+
}
|
|
359
|
+
.apple-login-button__apple-login-container___QDt06 .apple-login-button__apple-login-button___bv6AQ svg {
|
|
360
|
+
flex: 0 0 24px;
|
|
361
|
+
fill: black;
|
|
362
|
+
}
|
|
363
|
+
.apple-login-button__apple-login-container___QDt06 .apple-login-button__apple-login-button___bv6AQ span {
|
|
364
|
+
margin-inline-end: 24px;
|
|
365
|
+
color: var(--textHeading, #3c4043);
|
|
366
|
+
font-size: 14px;
|
|
367
|
+
font-style: normal;
|
|
368
|
+
font-weight: 600;
|
|
369
|
+
line-height: 19.6px;
|
|
370
|
+
text-transform: uppercase;
|
|
371
|
+
width: 100%;
|
|
372
|
+
}
|
|
373
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function webpackUniversalModuleDefinition(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("fdk-core/utils"),require("react")):"function"==typeof define&&define.amd?define("firestone",["fdk-core/utils","react"],r):"object"==typeof exports?exports.firestone=r(require("fdk-core/utils"),require("react")):e.firestone=r(e["fdk-core/utils"],e.react)}("undefined"!=typeof self?self:this,((e,r)=>(()=>{"use strict";var t={4062:(e,r,t)=>{t.d(r,{Dn:()=>a,ar:()=>n});var n="apple-login-button__apple-login-button___bv6AQ",a="apple-login-button__apple-login-container___QDt06"},447:r=>{r.exports=e},9155:e=>{e.exports=r}},n={};function __webpack_require__(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,__webpack_require__),a.exports}__webpack_require__.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(r,{a:r}),r},__webpack_require__.d=(e,r)=>{for(var t in r)__webpack_require__.o(r,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{__webpack_require__.r(a),__webpack_require__.d(a,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var e=__webpack_require__(9155),r=__webpack_require__.n(e),t=__webpack_require__(4062),n=__webpack_require__(447);const randomString=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16;return[...crypto.getRandomValues(new Uint8Array(e))].map((e=>("0"+(255&e).toString(16)).slice(-2))).join("")},__WEBPACK_DEFAULT_EXPORT__=a=>{let{appleClientId:o="",redirectURI:i="",scope:l="name email",usePopup:c=!0,onAppleCredential:p,onError:_,className:u="",disabled:s=!1}=a;const[d,f]=(0,e.useState)(!1),[w,b]=(0,e.useState)(null),m=(0,e.useRef)(!0),g=(0,n.useFPI)(),y=(0,n.useGlobalStore)(g?.getters?.i18N_DETAILS)||{},k=y?.language?.locale||"en-US";(0,e.useEffect)((()=>(m.current=!0,(async()=>{try{b(null),await new Promise(((e,r)=>{if(window.AppleID?.auth)return e();const t=document.createElement("script");t.src="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",t.async=!0,t.defer=!0,t.onload=()=>e(),t.onerror=()=>r(new Error("Failed to load Apple SDK")),document.head.appendChild(t)}));const e=randomString(),r=randomString();window.AppleID.auth.init({clientId:o,scope:l,redirectURI:i,state:e,nonce:r,usePopup:c,locale:k}),m.current&&f(!0)}catch(e){console.error(e),m.current&&(b(e.message),f(!1),_?.(e))}})(),()=>{m.current=!1})),[o,i,l,c,k]);return r().createElement("div",{className:t.Dn},r().createElement("button",{className:t.ar,onClick:async()=>{if(d&&!s)try{const e=await window.AppleID.auth.signIn();await(p?.(e))}catch(e){console.warn("Apple sign-in cancelled/failed:",e),b(e?.message||"Apple sign-in was cancelled"),_?.(e)}},disabled:!d||s},r().createElement("svg",{width:"20",height:"20",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false"},r().createElement("path",{fill:"currentColor",d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"})),r().createElement("span",null,"Sign in with Apple")),w?r().createElement("div",{style:{marginTop:8,fontSize:12,color:"var(--error, #c62828)"}},w):null)}})(),a})()));
|