@gofynd/theme-template 3.2.6 → 3.2.8
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 +824 -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 -213
- package/dist/index.js +1 -1
- package/dist/page-layouts/cart/Components/chip-item/chip-item.css +2 -0
- 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 +7319 -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 +59 -1
- package/dist/page-layouts/single-checkout/payment/checkout-payment-content.css +59 -1
- package/dist/page-layouts/single-checkout/payment/checkout-payment-content.js +1 -1
- package/dist/page-layouts/single-checkout/payment/checkout-payment.css +62 -1
- package/dist/page-layouts/single-checkout/payment/checkout-payment.js +1 -1
- package/dist/page-layouts/single-checkout/payment/juspay-card-from.css +59 -1
- package/dist/page-layouts/single-checkout/shipment/single-page-shipment.css +1 -0
- package/dist/pages/cart/cart.css +2 -0
- package/dist/pages/cart/cart.js +1 -1
- package/dist/pages/cart/index.css +2 -0
- package/dist/pages/cart/index.js +1 -1
- package/dist/pages/checkout/checkout.css +63 -1
- package/dist/pages/checkout/checkout.js +1 -1
- package/dist/pages/checkout/index.css +63 -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 -213
- 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
|
+
.facebook-login-button__display-block___zjvnE {
|
|
5
|
+
display: block;
|
|
6
|
+
}
|
|
7
|
+
.facebook-login-button__inline-block___DI3Vk,
|
|
8
|
+
.facebook-login-button__inlineBlock___p0R2f {
|
|
9
|
+
display: inline-block;
|
|
10
|
+
}
|
|
11
|
+
.facebook-login-button__flex-row___OaM0g {
|
|
12
|
+
display: flex;
|
|
13
|
+
}
|
|
14
|
+
.facebook-login-button__flex-column___GWHUO,
|
|
15
|
+
.facebook-login-button__flexColumn___vmTFT {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
}
|
|
19
|
+
.facebook-login-button__flex-align-center___M1zHK,
|
|
20
|
+
.facebook-login-button__flexAlignCenter___YhQNt {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
}
|
|
24
|
+
.facebook-login-button__flex-justify-center___mlKsM,
|
|
25
|
+
.facebook-login-button__flexJustifyCenter___QYADt {
|
|
26
|
+
display: flex;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
}
|
|
29
|
+
.facebook-login-button__flex-center___tJtdp,
|
|
30
|
+
.facebook-login-button__flexCenter___jM1oP {
|
|
31
|
+
display: flex;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
align-items: center;
|
|
34
|
+
}
|
|
35
|
+
.facebook-login-button__justify-start___o8HIw,
|
|
36
|
+
.facebook-login-button__justifyStart___ydOaC {
|
|
37
|
+
justify-content: flex-start;
|
|
38
|
+
}
|
|
39
|
+
.facebook-login-button__justify-end___Xxu9y,
|
|
40
|
+
.facebook-login-button__justifyEnd___JJahf {
|
|
41
|
+
justify-content: flex-end;
|
|
42
|
+
}
|
|
43
|
+
.facebook-login-button__justify-between___Vewwo,
|
|
44
|
+
.facebook-login-button__justifyBetween___EeHlc {
|
|
45
|
+
justify-content: space-between;
|
|
46
|
+
}
|
|
47
|
+
.facebook-login-button__justify-around___LmeOW,
|
|
48
|
+
.facebook-login-button__justifyAround___JSyJb {
|
|
49
|
+
justify-content: space-around;
|
|
50
|
+
}
|
|
51
|
+
.facebook-login-button__justify-evenly___MZbi6,
|
|
52
|
+
.facebook-login-button__justifyEvenly___wt99i {
|
|
53
|
+
justify-content: space-evenly;
|
|
54
|
+
}
|
|
55
|
+
h1,
|
|
56
|
+
.facebook-login-button__h1___H8grr {
|
|
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
|
+
.facebook-login-button__h1___H8grr {
|
|
66
|
+
font-size: 36px;
|
|
67
|
+
line-height: 48px;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
h2,
|
|
71
|
+
.facebook-login-button__h2___iRoil {
|
|
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
|
+
.facebook-login-button__h2___iRoil {
|
|
81
|
+
font-size: 32px;
|
|
82
|
+
line-height: 42px;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
h3,
|
|
86
|
+
.facebook-login-button__h3___Jn7gH {
|
|
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
|
+
.facebook-login-button__h3___Jn7gH {
|
|
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
|
+
.facebook-login-button__h4____fgnK {
|
|
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
|
+
.facebook-login-button__h4____fgnK {
|
|
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
|
+
.facebook-login-button__h5___ZOk0w {
|
|
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
|
+
.facebook-login-button__h5___ZOk0w {
|
|
132
|
+
font-size: 16px;
|
|
133
|
+
line-height: 18px;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
.facebook-login-button__b1___U1Mgc {
|
|
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
|
+
.facebook-login-button__b1___U1Mgc {
|
|
145
|
+
font-size: 16px;
|
|
146
|
+
line-height: 20px;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
.facebook-login-button__b-small___cQ06P,
|
|
150
|
+
.facebook-login-button__bSmall___niutO,
|
|
151
|
+
.facebook-login-button__b2___nTIF5 {
|
|
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
|
+
.facebook-login-button__b-small___cQ06P,
|
|
160
|
+
.facebook-login-button__bSmall___niutO,
|
|
161
|
+
.facebook-login-button__b2___nTIF5 {
|
|
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
|
+
.facebook-login-button__d1___LbIQx {
|
|
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
|
+
.facebook-login-button__d1___LbIQx {
|
|
177
|
+
font-size: 64px;
|
|
178
|
+
line-height: 85px;
|
|
179
|
+
letter-spacing: -0.03em;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
.facebook-login-button__caption-medium___TsfS6,
|
|
183
|
+
.facebook-login-button__captionMedium___pHi7v {
|
|
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
|
+
.facebook-login-button__caption-medium___TsfS6,
|
|
191
|
+
.facebook-login-button__captionMedium___pHi7v {
|
|
192
|
+
font-size: 11px;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
.facebook-login-button__caption-semi-bold___jgz3q,
|
|
196
|
+
.facebook-login-button__captionSemiBold___Whpz9 {
|
|
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
|
+
.facebook-login-button__caption-semi-bold___jgz3q,
|
|
204
|
+
.facebook-login-button__captionSemiBold___Whpz9 {
|
|
205
|
+
font-size: 11px;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
.facebook-login-button__btn-link___xqFij,
|
|
209
|
+
.facebook-login-button__btnLink___nQQDj {
|
|
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
|
+
.facebook-login-button__btn-link___xqFij,
|
|
223
|
+
.facebook-login-button__btnLink___nQQDj {
|
|
224
|
+
font-weight: 500;
|
|
225
|
+
letter-spacing: -0.02em;
|
|
226
|
+
font-size: 14px;
|
|
227
|
+
line-height: 16px;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
.facebook-login-button__btn-link___xqFij:hover,
|
|
231
|
+
.facebook-login-button__btnLink___nQQDj:hover {
|
|
232
|
+
color: var(--buttonLinkL1, #c1847c);
|
|
233
|
+
}
|
|
234
|
+
.facebook-login-button__btn-link___xqFij:disabled,
|
|
235
|
+
.facebook-login-button__btnLink___nQQDj:disabled {
|
|
236
|
+
color: var(--buttonLinkL2, #d0a39d);
|
|
237
|
+
}
|
|
238
|
+
.facebook-login-button__btn-link___xqFij:active,
|
|
239
|
+
.facebook-login-button__btnLink___nQQDj:active {
|
|
240
|
+
opacity: 0.8;
|
|
241
|
+
}
|
|
242
|
+
.facebook-login-button__user-select-none___VOxiT,
|
|
243
|
+
.facebook-login-button__userSelectNone___OWMIQ {
|
|
244
|
+
user-select: none;
|
|
245
|
+
-moz-user-select: none;
|
|
246
|
+
-webkit-user-select: none;
|
|
247
|
+
-ms-user-select: none;
|
|
248
|
+
}
|
|
249
|
+
.facebook-login-button__margin-0-auto___HYkij,
|
|
250
|
+
.facebook-login-button__margin0auto___nKW2C {
|
|
251
|
+
margin: 0 auto;
|
|
252
|
+
}
|
|
253
|
+
.facebook-login-button__base-page-container___EtZuz,
|
|
254
|
+
.facebook-login-button__basePageContainer___mDB5N {
|
|
255
|
+
max-width: 1440px !important;
|
|
256
|
+
}
|
|
257
|
+
.facebook-login-button__remove-scroll___eBRUs,
|
|
258
|
+
.facebook-login-button__removeScroll___GXb7r {
|
|
259
|
+
overflow-y: hidden !important;
|
|
260
|
+
}
|
|
261
|
+
.facebook-login-button__mr-5___q58cH,
|
|
262
|
+
.facebook-login-button__mr5___fwWw2 {
|
|
263
|
+
margin-inline-end: 30px !important;
|
|
264
|
+
}
|
|
265
|
+
.facebook-login-button__mr-2___ZKd3H,
|
|
266
|
+
.facebook-login-button__mr2___erY8R {
|
|
267
|
+
margin-inline-end: 5px !important;
|
|
268
|
+
}
|
|
269
|
+
.facebook-login-button__py-5___VjPa9,
|
|
270
|
+
.facebook-login-button__py5____PWCV {
|
|
271
|
+
padding-top: 1.875rem !important;
|
|
272
|
+
padding-bottom: 1.875rem !important;
|
|
273
|
+
}
|
|
274
|
+
.facebook-login-button__view-all-text___LEUab,
|
|
275
|
+
.facebook-login-button__viewAllText___nDMhF {
|
|
276
|
+
font-size: 20px;
|
|
277
|
+
font-weight: 400;
|
|
278
|
+
text-transform: lowercase;
|
|
279
|
+
text-decoration: underline;
|
|
280
|
+
}
|
|
281
|
+
.facebook-login-button__view-all-mobile___zvPKL,
|
|
282
|
+
.facebook-login-button__viewAllMobile___D2Vp0 {
|
|
283
|
+
display: none;
|
|
284
|
+
}
|
|
285
|
+
@media only screen and (max-width: 768px) {
|
|
286
|
+
.facebook-login-button__view-all-mobile___zvPKL,
|
|
287
|
+
.facebook-login-button__viewAllMobile___D2Vp0 {
|
|
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
|
+
.facebook-login-button__view-all-mobile___zvPKL,
|
|
296
|
+
.facebook-login-button__viewAllMobile___D2Vp0 {
|
|
297
|
+
margin-top: 24px;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
.facebook-login-button__accent-btn___WXMXk,
|
|
301
|
+
.facebook-login-button__accentBtn___Eo2xa {
|
|
302
|
+
background-color: var(--accentColor);
|
|
303
|
+
color: #fff;
|
|
304
|
+
}
|
|
305
|
+
.facebook-login-button__no-scroll___DA1oc,
|
|
306
|
+
.facebook-login-button__noScroll___Vz_wN {
|
|
307
|
+
overflow-y: hidden;
|
|
308
|
+
}
|
|
309
|
+
.facebook-login-button__hide-overflow___IOMnf,
|
|
310
|
+
.facebook-login-button__hideOverflow___dUDT6 {
|
|
311
|
+
overflow: hidden;
|
|
312
|
+
}
|
|
313
|
+
.facebook-login-button__markdown-body___hpsNo h6 {
|
|
314
|
+
margin-top: 0 !important;
|
|
315
|
+
margin-bottom: 0 !important;
|
|
316
|
+
}
|
|
317
|
+
@media only screen and (max-width: 480px) {
|
|
318
|
+
.facebook-login-button__markdown-body___hpsNo {
|
|
319
|
+
font-size: 12px !important;
|
|
320
|
+
padding: 5px !important;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
.facebook-login-button__view3d-canvas___drNqq {
|
|
324
|
+
width: 100%;
|
|
325
|
+
height: 100%;
|
|
326
|
+
}
|
|
327
|
+
@media only screen and (max-width: 480px) {
|
|
328
|
+
.facebook-login-button__view-mobile-up___KlJWO {
|
|
329
|
+
display: none !important;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
@media only screen and (min-width: 481px) {
|
|
333
|
+
.facebook-login-button__view-mobile___ovTS9 {
|
|
334
|
+
display: none !important;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
.facebook-login-button__facebook-login-container____88Dn {
|
|
338
|
+
margin-top: 12px;
|
|
339
|
+
}
|
|
340
|
+
.facebook-login-button__facebook-login-container____88Dn .facebook-login-button__facebook-login-button___yF4aw {
|
|
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
|
+
.facebook-login-button__facebook-login-container____88Dn .facebook-login-button__facebook-login-button___yF4aw svg {
|
|
360
|
+
flex: 0 0 24px;
|
|
361
|
+
fill: #1877f2;
|
|
362
|
+
}
|
|
363
|
+
.facebook-login-button__facebook-login-container____88Dn .facebook-login-button__facebook-login-button___yF4aw 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,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("firestone",["react"],t):"object"==typeof exports?exports.firestone=t(require("react")):e.firestone=t(e.react)}("undefined"!=typeof self?self:this,(e=>(()=>{"use strict";var t={9155:t=>{t.exports=e}},o={};function __webpack_require__(e){var n=o[e];if(void 0!==n)return n.exports;var r=o[e]={exports:{}};return t[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{__webpack_require__.r(n),__webpack_require__.d(n,{default:()=>facebook_login_button});var e=__webpack_require__(9155),t=__webpack_require__.n(e);const facebook_login_button=o=>{let{facebookAppId:n,loginWithFacebookMutation:r,application_id:a}=o;const[i,_]=(0,e.useState)(!1),[c,l]=(0,e.useState)(null),[s,u]=(0,e.useState)(null);(0,e.useEffect)((()=>{var e,t,o,r,a;window.fbAsyncInit=function(){window.FB.init({appId:n,cookie:!0,xfbml:!0,version:"v18.0"})},e=document,t="script",o="facebook-jssdk",a=e.getElementsByTagName(t)[0],e.getElementById(o)||((r=e.createElement(t)).id=o,r.src="https://connect.facebook.net/en_US/sdk.js",a.parentNode.insertBefore(r,a))}),[]);return t().createElement("div",{className:"facebook-login-button__facebook-login-container____88Dn"},t().createElement("button",{onClick:()=>{_(!0),u(null),window.FB.login((function(e){e.authResponse?window.FB.api("/me",{fields:"id,name,email,first_name,last_name,picture"},(async function(t){try{const o={oAuthRequestSchemaInput:{is_signed_in:!0,oauth2:{access_token:e.authResponse.accessToken,expiry:e.authResponse.expiresIn},profile:{email:t.email||"",first_name:t.first_name||"",full_name:t.name||"",id:t.id,image:t.picture?.data?.url||"",last_name:t.last_name||""}},platform:a};await r(o)}catch(e){console.log("Login failed: "+e.message),console.error("Login error:",e)}finally{_(!1)}})):(console.log("Facebook login was cancelled or failed"),_(!1))}),{scope:"email,public_profile"})},disabled:i,className:"facebook-login-button__facebook-login-button___yF4aw"},t().createElement("svg",{viewBox:"0 0 28 28",fill:"#1877F2"},t().createElement("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})),t().createElement("span",null,"Continue with Facebook")))}})(),n})()));
|