@gofynd/theme-template 3.2.9 → 3.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/dist/components/accordion/accordion.js +1 -1
  2. package/dist/components/address-form/address-form.js +1 -1
  3. package/dist/components/address-form/form-input-selector.js +1 -1
  4. package/dist/components/address-form/v2/address-form.js +1 -1
  5. package/dist/components/bag/bag.css +433 -0
  6. package/dist/components/bag/bag.js +1 -0
  7. package/dist/components/blog-page/blog-page.js +1 -1
  8. package/dist/components/compare-product-card/compare-product-card.js +1 -1
  9. package/dist/components/core/modal/modal.js +1 -1
  10. package/dist/components/filter-modal/filter-modal.css +26 -10
  11. package/dist/components/filter-modal/filter-modal.js +2 -1
  12. package/dist/components/filter-modal/filter-modal.js.LICENSE.txt +25 -0
  13. package/dist/components/form-builder/form-builder.js +1 -1
  14. package/dist/components/google-map/v2/google-map.js +1 -1
  15. package/dist/components/index.css +1 -1
  16. package/dist/components/index.js +1 -1
  17. package/dist/components/location-modal/location-modal.js +1 -1
  18. package/dist/components/order-shipment/order-shipment.css +434 -5
  19. package/dist/components/order-shipment/order-shipment.js +1 -1
  20. package/dist/components/product-card/product-card.js +1 -1
  21. package/dist/components/profile-navigation/profile-navigation.css +1 -1
  22. package/dist/components/quantity-control/quantity-control.js +1 -1
  23. package/dist/components/range-slider/range-slider.css +26 -10
  24. package/dist/components/range-slider/range-slider.js +2 -1
  25. package/dist/components/range-slider/range-slider.js.LICENSE.txt +25 -0
  26. package/dist/components/shipment-item/shipment-item.css +434 -11
  27. package/dist/components/shipment-item/shipment-item.js +1 -1
  28. package/dist/components/shipment-tracking/shipment-tracking.js +1 -1
  29. package/dist/components/shipments-update-item/shipments-update-item.css +441 -28
  30. package/dist/components/shipments-update-item/shipments-update-item.js +1 -1
  31. package/dist/components/sort-modal/sort-modal.js +1 -1
  32. package/dist/helper/hooks/index.js +1 -1
  33. package/dist/helper/hooks/useAddressAutofill.js +1 -0
  34. package/dist/index.css +674 -303
  35. package/dist/index.js +1 -1
  36. package/dist/index.js.LICENSE.txt +20 -0
  37. package/dist/page-layouts/auth/mobile-number/mobile-number.js +1 -1
  38. package/dist/page-layouts/cart/Components/chip-item/chip-image.css +411 -0
  39. package/dist/page-layouts/cart/Components/chip-item/chip-image.js +1 -0
  40. package/dist/page-layouts/cart/Components/chip-item/chip-item.css +411 -0
  41. package/dist/page-layouts/cart/Components/chip-item/chip-item.js +1 -1
  42. package/dist/page-layouts/cart/Components/comment/comment.js +1 -1
  43. package/dist/page-layouts/cart/Components/coupon/coupon.js +1 -1
  44. package/dist/page-layouts/cart/Components/delivery-location/delivery-location.js +1 -1
  45. package/dist/page-layouts/cart/Components/remove-cart-item/remove-cart-item.js +1 -1
  46. package/dist/page-layouts/compare/compare.js +1 -1
  47. package/dist/page-layouts/login/component/login-otp/login-otp.js +1 -1
  48. package/dist/page-layouts/login/component/login-password/login-password.js +1 -1
  49. package/dist/page-layouts/login/component/soacial-login-button/apple-login-button.css +373 -0
  50. package/dist/page-layouts/login/component/soacial-login-button/apple-login-button.js +1 -0
  51. package/dist/page-layouts/login/component/soacial-login-button/facebook-login-button.css +373 -0
  52. package/dist/page-layouts/login/component/soacial-login-button/facebook-login-button.js +1 -0
  53. package/dist/page-layouts/login/component/soacial-login-button/google-login-button.css +375 -0
  54. package/dist/page-layouts/login/component/soacial-login-button/google-login-button.js +1 -0
  55. package/dist/page-layouts/login/component/social-login-button/apple-login-button.js +1 -1
  56. package/dist/page-layouts/plp/Components/add-to-cart/add-to-cart.js +1 -1
  57. package/dist/page-layouts/plp/Components/filter-item/filter-item.css +26 -10
  58. package/dist/page-layouts/plp/Components/filter-item/filter-item.js +2 -1
  59. package/dist/page-layouts/plp/Components/filter-item/filter-item.js.LICENSE.txt +25 -0
  60. package/dist/page-layouts/plp/Components/filter-list/filter-list.css +26 -10
  61. package/dist/page-layouts/plp/Components/filter-list/filter-list.js +2 -1
  62. package/dist/page-layouts/plp/Components/filter-list/filter-list.js.LICENSE.txt +25 -0
  63. package/dist/page-layouts/plp/Components/filter-tags/filter-tags.js +1 -1
  64. package/dist/page-layouts/plp/Components/size-guide/size-guide.js +1 -1
  65. package/dist/page-layouts/single-checkout/address/single-address.js +1 -1
  66. package/dist/page-layouts/single-checkout/payment/card-form.js +1 -1
  67. package/dist/page-layouts/single-checkout/payment/checkout-payment-content.js +1 -1
  68. package/dist/page-layouts/single-checkout/payment/checkout-payment.js +1 -1
  69. package/dist/page-layouts/single-checkout/payment/juspay-card-from.js +1 -1
  70. package/dist/page-layouts/single-checkout/payment/zero-pay-btn/zero-pay-btn.js +1 -1
  71. package/dist/page-layouts/single-checkout/shipment/single-page-shipment.js +1 -1
  72. package/dist/page-layouts/single-checkout/shipment/single-shipment-content.js +1 -1
  73. package/dist/pages/blog/blog.js +1 -1
  74. package/dist/pages/blog/index.js +1 -1
  75. package/dist/pages/cart/cart.css +411 -0
  76. package/dist/pages/cart/cart.js +1 -1
  77. package/dist/pages/cart/index.css +411 -0
  78. package/dist/pages/cart/index.js +1 -1
  79. package/dist/pages/checkout/checkout.js +1 -1
  80. package/dist/pages/checkout/index.js +1 -1
  81. package/dist/pages/edit-profile/edit-profile.js +1 -1
  82. package/dist/pages/edit-profile/index.js +1 -1
  83. package/dist/pages/index.css +729 -358
  84. package/dist/pages/index.js +1 -1
  85. package/dist/pages/index.js.LICENSE.txt +20 -0
  86. package/dist/pages/login/index.css +292 -292
  87. package/dist/pages/login/index.js +1 -1
  88. package/dist/pages/login/login.css +292 -292
  89. package/dist/pages/login/login.js +1 -1
  90. package/dist/pages/order/order-tracking-details/order-tracking-details.css +435 -16
  91. package/dist/pages/order/order-tracking-details/order-tracking-details.js +1 -1
  92. package/dist/pages/order-status/index.css +895 -6
  93. package/dist/pages/order-status/index.js +1 -1
  94. package/dist/pages/order-status/order-status.css +895 -6
  95. package/dist/pages/order-status/order-status.js +1 -1
  96. package/dist/pages/product-listing/index.css +26 -10
  97. package/dist/pages/product-listing/index.js +1 -1
  98. package/dist/pages/product-listing/index.js.LICENSE.txt +20 -0
  99. package/dist/pages/product-listing/product-listing.css +26 -10
  100. package/dist/pages/product-listing/product-listing.js +1 -1
  101. package/dist/pages/product-listing/product-listing.js.LICENSE.txt +20 -0
  102. package/dist/pages/profile/components/add-email-modal/add-email-modal.js +1 -1
  103. package/dist/pages/profile/components/add-phone-modal/add-phone-modal.js +1 -1
  104. package/dist/pages/profile/components/confirm-modal/confirm-modal.js +1 -1
  105. package/dist/pages/profile/email/email.js +1 -1
  106. package/dist/pages/profile/email/index.js +1 -1
  107. package/dist/pages/profile/phone/index.js +1 -1
  108. package/dist/pages/profile/phone/phone.js +1 -1
  109. package/dist/pages/register/index.js +1 -1
  110. package/dist/pages/register/register.js +1 -1
  111. package/dist/pages/wishlist/index.js +1 -1
  112. package/dist/pages/wishlist/wishlist.js +1 -1
  113. package/package.json +2 -1
@@ -0,0 +1,375 @@
1
+ /**color by character**/
2
+ /** Font family **/
3
+ /** Font weight **/
4
+ .google-login-button__display-block___EQK2o {
5
+ display: block;
6
+ }
7
+ .google-login-button__inline-block___9pJfj,
8
+ .google-login-button__inlineBlock___xaDLJ {
9
+ display: inline-block;
10
+ }
11
+ .google-login-button__flex-row___w3sfS {
12
+ display: flex;
13
+ }
14
+ .google-login-button__flex-column___cMdoc,
15
+ .google-login-button__flexColumn___vi3_l {
16
+ display: flex;
17
+ flex-direction: column;
18
+ }
19
+ .google-login-button__flex-align-center___mhY9m,
20
+ .google-login-button__flexAlignCenter___OEPpa {
21
+ display: flex;
22
+ align-items: center;
23
+ }
24
+ .google-login-button__flex-justify-center___IXrmp,
25
+ .google-login-button__flexJustifyCenter___U16kz {
26
+ display: flex;
27
+ justify-content: center;
28
+ }
29
+ .google-login-button__flex-center___Gh9Mi,
30
+ .google-login-button__flexCenter___AEfD1 {
31
+ display: flex;
32
+ justify-content: center;
33
+ align-items: center;
34
+ }
35
+ .google-login-button__justify-start___h6Jgw,
36
+ .google-login-button__justifyStart___hikzO {
37
+ justify-content: flex-start;
38
+ }
39
+ .google-login-button__justify-end___JjvSy,
40
+ .google-login-button__justifyEnd___bwuFS {
41
+ justify-content: flex-end;
42
+ }
43
+ .google-login-button__justify-between___Umw8R,
44
+ .google-login-button__justifyBetween___uv6BP {
45
+ justify-content: space-between;
46
+ }
47
+ .google-login-button__justify-around___lfcBD,
48
+ .google-login-button__justifyAround___tNO7M {
49
+ justify-content: space-around;
50
+ }
51
+ .google-login-button__justify-evenly___ivoWs,
52
+ .google-login-button__justifyEvenly___UOMVU {
53
+ justify-content: space-evenly;
54
+ }
55
+ h1,
56
+ .google-login-button__h1___vLAjS {
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
+ .google-login-button__h1___vLAjS {
66
+ font-size: 36px;
67
+ line-height: 48px;
68
+ }
69
+ }
70
+ h2,
71
+ .google-login-button__h2___ucEr5 {
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
+ .google-login-button__h2___ucEr5 {
81
+ font-size: 32px;
82
+ line-height: 42px;
83
+ }
84
+ }
85
+ h3,
86
+ .google-login-button__h3___loah0 {
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
+ .google-login-button__h3___loah0 {
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
+ .google-login-button__h4___FXEwb {
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
+ .google-login-button__h4___FXEwb {
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
+ .google-login-button__h5___PTFst {
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
+ .google-login-button__h5___PTFst {
132
+ font-size: 16px;
133
+ line-height: 18px;
134
+ }
135
+ }
136
+ .google-login-button__b1___gn5kp {
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
+ .google-login-button__b1___gn5kp {
145
+ font-size: 16px;
146
+ line-height: 20px;
147
+ }
148
+ }
149
+ .google-login-button__b-small___XRSEe,
150
+ .google-login-button__bSmall___XmFGu,
151
+ .google-login-button__b2___TKzu0 {
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
+ .google-login-button__b-small___XRSEe,
160
+ .google-login-button__bSmall___XmFGu,
161
+ .google-login-button__b2___TKzu0 {
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
+ .google-login-button__d1___M75gW {
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
+ .google-login-button__d1___M75gW {
177
+ font-size: 64px;
178
+ line-height: 85px;
179
+ letter-spacing: -0.03em;
180
+ }
181
+ }
182
+ .google-login-button__caption-medium___OCpEN,
183
+ .google-login-button__captionMedium___bKtvU {
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
+ .google-login-button__caption-medium___OCpEN,
191
+ .google-login-button__captionMedium___bKtvU {
192
+ font-size: 11px;
193
+ }
194
+ }
195
+ .google-login-button__caption-semi-bold___GD7ZM,
196
+ .google-login-button__captionSemiBold___FZEVw {
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
+ .google-login-button__caption-semi-bold___GD7ZM,
204
+ .google-login-button__captionSemiBold___FZEVw {
205
+ font-size: 11px;
206
+ }
207
+ }
208
+ .google-login-button__btn-link___E020C,
209
+ .google-login-button__btnLink___DyX1T {
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
+ .google-login-button__btn-link___E020C,
223
+ .google-login-button__btnLink___DyX1T {
224
+ font-weight: 500;
225
+ letter-spacing: -0.02em;
226
+ font-size: 14px;
227
+ line-height: 16px;
228
+ }
229
+ }
230
+ .google-login-button__btn-link___E020C:hover,
231
+ .google-login-button__btnLink___DyX1T:hover {
232
+ color: var(--buttonLinkL1, #c1847c);
233
+ }
234
+ .google-login-button__btn-link___E020C:disabled,
235
+ .google-login-button__btnLink___DyX1T:disabled {
236
+ color: var(--buttonLinkL2, #d0a39d);
237
+ }
238
+ .google-login-button__btn-link___E020C:active,
239
+ .google-login-button__btnLink___DyX1T:active {
240
+ opacity: 0.8;
241
+ }
242
+ .google-login-button__user-select-none___bC0RH,
243
+ .google-login-button__userSelectNone___HQ4BZ {
244
+ user-select: none;
245
+ -moz-user-select: none;
246
+ -webkit-user-select: none;
247
+ -ms-user-select: none;
248
+ }
249
+ .google-login-button__margin-0-auto___UgACc,
250
+ .google-login-button__margin0auto___KDHNy {
251
+ margin: 0 auto;
252
+ }
253
+ .google-login-button__base-page-container___cCddh,
254
+ .google-login-button__basePageContainer___Luskf {
255
+ max-width: 1440px !important;
256
+ }
257
+ .google-login-button__remove-scroll___vm0Bf,
258
+ .google-login-button__removeScroll___tRToz {
259
+ overflow-y: hidden !important;
260
+ }
261
+ .google-login-button__mr-5___x4XQr,
262
+ .google-login-button__mr5___iTyOy {
263
+ margin-inline-end: 30px !important;
264
+ }
265
+ .google-login-button__mr-2___nmNTa,
266
+ .google-login-button__mr2___SCEtu {
267
+ margin-inline-end: 5px !important;
268
+ }
269
+ .google-login-button__py-5___xlK1L,
270
+ .google-login-button__py5___Df4BQ {
271
+ padding-top: 1.875rem !important;
272
+ padding-bottom: 1.875rem !important;
273
+ }
274
+ .google-login-button__view-all-text___vrryv,
275
+ .google-login-button__viewAllText___uFfCU {
276
+ font-size: 20px;
277
+ font-weight: 400;
278
+ text-transform: lowercase;
279
+ text-decoration: underline;
280
+ }
281
+ .google-login-button__view-all-mobile___A40K0,
282
+ .google-login-button__viewAllMobile___Iohgc {
283
+ display: none;
284
+ }
285
+ @media only screen and (max-width: 768px) {
286
+ .google-login-button__view-all-mobile___A40K0,
287
+ .google-login-button__viewAllMobile___Iohgc {
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
+ .google-login-button__view-all-mobile___A40K0,
296
+ .google-login-button__viewAllMobile___Iohgc {
297
+ margin-top: 24px;
298
+ }
299
+ }
300
+ .google-login-button__accent-btn___rKmnO,
301
+ .google-login-button__accentBtn___VKUfQ {
302
+ background-color: var(--accentColor);
303
+ color: #fff;
304
+ }
305
+ .google-login-button__no-scroll___lm8sG,
306
+ .google-login-button__noScroll___E1yUU {
307
+ overflow-y: hidden;
308
+ }
309
+ .google-login-button__hide-overflow___v49bU,
310
+ .google-login-button__hideOverflow___E2jbU {
311
+ overflow: hidden;
312
+ }
313
+ .google-login-button__markdown-body___f2CS3 h6 {
314
+ margin-top: 0 !important;
315
+ margin-bottom: 0 !important;
316
+ }
317
+ @media only screen and (max-width: 480px) {
318
+ .google-login-button__markdown-body___f2CS3 {
319
+ font-size: 12px !important;
320
+ padding: 5px !important;
321
+ }
322
+ }
323
+ .google-login-button__view3d-canvas___Dznnl {
324
+ width: 100%;
325
+ height: 100%;
326
+ }
327
+ @media only screen and (max-width: 480px) {
328
+ .google-login-button__view-mobile-up___roIVw {
329
+ display: none !important;
330
+ }
331
+ }
332
+ @media only screen and (min-width: 481px) {
333
+ .google-login-button__view-mobile___ixdST {
334
+ display: none !important;
335
+ }
336
+ }
337
+ .google-login-button__google-login-container___gsSus {
338
+ margin-top: 12px;
339
+ }
340
+ .google-login-button__google-login-container___gsSus .google-login-button__google-signin-wrapper___ewjLC {
341
+ width: 100%;
342
+ }
343
+ .google-login-button__google-login-container___gsSus .g_id_signin > div[role="button"] {
344
+ height: 48px !important;
345
+ padding: 12px !important;
346
+ background: transparent !important;
347
+ border-radius: 4px !important;
348
+ border: 1px solid var(--dividerStokes) !important;
349
+ font-size: 14px !important;
350
+ font-style: normal !important;
351
+ font-weight: 600 !important;
352
+ line-height: 19.6px !important;
353
+ text-transform: uppercase !important;
354
+ color: var(--textHeading) !important;
355
+ width: 100% !important;
356
+ box-sizing: border-box !important;
357
+ display: flex !important;
358
+ align-items: center !important;
359
+ cursor: pointer !important;
360
+ }
361
+ .google-login-button__google-login-container___gsSus .g_id_signin svg {
362
+ flex: 0 0 24px !important;
363
+ }
364
+ .google-login-button__google-login-container___gsSus .g_id_signin span {
365
+ margin-inline-end: 24px !important;
366
+ color: var(--textHeading, #26201a) !important;
367
+ font-size: 14px !important;
368
+ font-style: normal !important;
369
+ font-weight: 600 !important;
370
+ line-height: 19.6px !important;
371
+ text-transform: uppercase !important;
372
+ width: 100%;
373
+ font-family: var(--font-body) !important;
374
+ }
375
+
@@ -0,0 +1 @@
1
+ !function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("fdk-core/utils"),require("react")):"function"==typeof define&&define.amd?define("firestone",["fdk-core/utils","react"],t):"object"==typeof exports?exports.firestone=t(require("fdk-core/utils"),require("react")):e.firestone=t(e["fdk-core/utils"],e.react)}("undefined"!=typeof self?self:this,((e,t)=>(()=>{"use strict";var o={447:t=>{t.exports=e},9155:e=>{e.exports=t}},r={};function __webpack_require__(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,__webpack_require__),n.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:()=>google_login_button});var e=__webpack_require__(9155),t=__webpack_require__.n(e),o=__webpack_require__(447);const google_login_button=r=>{let{googleClientId:n,onGoogleCredential:i,onError:a,className:l="",buttonType:c="standard",buttonSize:s="large",disabled:d=!1}=r;const[u,_]=(0,e.useState)(!0),[p,g]=(0,e.useState)(null),f=(0,e.useRef)(!1),b=(0,e.useRef)(!0);(0,o.useFPI)();return(0,e.useEffect)((()=>{b.current=!0;return(async()=>{try{if(g(null),await new Promise(((e,t)=>{if(window.google||f.current)return void e();const o=document.createElement("script");o.src="https://accounts.google.com/gsi/client",o.async=!0,o.defer=!0,o.onload=()=>{f.current=!0,e()},o.onerror=()=>t(new Error("Failed to load Google SDK")),document.head.appendChild(o)})),!b.current)return;window.onGoogleCredential=i,window.google.accounts.id.initialize({client_id:n,callback:i,auto_select:!1,cancel_on_tap_outside:!0}),d||window.google.accounts.id.prompt((e=>{(e.isNotDisplayed()||e.isSkippedMoment())&&console.log("One Tap not displayed:",e.getNotDisplayedReason())})),setTimeout((()=>{const e=document.getElementById("google-signin-button");if(e&&window.google?.accounts?.id)try{window.google.accounts.id.renderButton(e,{type:c,size:s,theme:"outline",text:"signin_with",shape:"rectangular"}),(e=>{if(e)try{const t=e.querySelector('div[role="button"]'),o=e.querySelector("svg"),r=e.querySelector("span");t&&Object.assign(t.style,{height:"48px",padding:"12px",background:"transparent",borderRadius:"4px",border:"1px solid var(--dividerStokes, #dadce0)",fontSize:"14px",fontStyle:"normal",fontWeight:"600",lineHeight:"19.6px",textTransform:"uppercase",color:"var(--textHeading, #3c4043)",width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",cursor:"pointer",fontFamily:"var(--font-body)"}),o&&Object.assign(o.style,{flex:"0 0 24px"}),r&&Object.assign(r.style,{marginInlineEnd:"24px",color:"var(--textHeading, #3c4043)",fontSize:"14px",fontStyle:"normal",fontWeight:"600",lineHeight:"19.6px",textTransform:"uppercase",width:"100%"}),console.log("✅ Custom styles applied")}catch(e){console.warn("Failed to apply custom styles:",e)}})(e)}catch(e){console.error("Button render error:",e),g("Failed to render Google button")}}),100),b.current&&_(!1)}catch(e){console.error("Failed to initialize Google auth:",e),b.current&&(g(e.message),_(!1),a?.(e))}})(),()=>{if(b.current=!1,window.google?.accounts?.id)try{window.google.accounts.id.cancel?.(),window.google.accounts.id.disableAutoSelect?.()}catch(e){console.warn("Google cleanup error:",e)}window.onGoogleCredential&&delete window.onGoogleCredential}}),[n,c,s,d]),t().createElement("div",{className:`google-login-button__google-login-container___gsSus ${l}`},t().createElement("div",{id:"g_id_onload","data-client_id":n,"data-context":"signin","data-ux_mode":"popup","data-callback":"onGoogleCredential","data-auto_prompt":"false",style:{display:"none"}}),t().createElement("div",{className:"google-signin-wrapper"},t().createElement("div",{id:"google-signin-button",className:"g_id_signin","data-type":c,"data-size":s,style:{opacity:d,pointerEvents:d}})))}})(),n})()));
@@ -1 +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})()));
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={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:()=>apple_login_button});var e=__webpack_require__(9155),r=__webpack_require__.n(e),t=__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("")},apple_login_button=n=>{let{appleClientId:a="",redirectURI:o="",scope:i="name email",usePopup:l=!0,onAppleCredential:c,onError:p,className:_="",disabled:u=!1}=n;const[s,d]=(0,e.useState)(!1),[f,w]=(0,e.useState)(null),b=(0,e.useRef)(!0),m=(0,t.useFPI)(),g=(0,t.useGlobalStore)(m?.getters?.i18N_DETAILS)||{},y=g?.language?.locale||"en-US";(0,e.useEffect)((()=>(b.current=!0,(async()=>{try{w(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:a,scope:i,redirectURI:o,state:e,nonce:r,usePopup:l,locale:y}),b.current&&d(!0)}catch(e){console.error(e),b.current&&(w(e.message),d(!1),p?.(e))}})(),()=>{b.current=!1})),[a,o,i,l,y]);return r().createElement("div",{className:"apple-login-button__apple-login-container___QDt06"},r().createElement("button",{className:"apple-login-button__apple-login-button___bv6AQ",onClick:async()=>{if(s&&!u)try{const e=await window.AppleID.auth.signIn();await(c?.(e))}catch(e){console.warn("Apple sign-in cancelled/failed:",e),w(e?.message||"Apple sign-in was cancelled"),p?.(e)}},disabled:!s||u},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")),f?r().createElement("div",{style:{marginTop:8,fontSize:12,color:"var(--error, #c62828)"}},f):null)}})(),a})()));