@gofynd/theme-template 3.2.10 → 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 (99) 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/filter-modal/filter-modal.css +26 -10
  10. package/dist/components/filter-modal/filter-modal.js +2 -1
  11. package/dist/components/filter-modal/filter-modal.js.LICENSE.txt +25 -0
  12. package/dist/components/form-builder/form-builder.js +1 -1
  13. package/dist/components/google-map/v2/google-map.js +1 -1
  14. package/dist/components/index.css +1 -1
  15. package/dist/components/index.js +1 -1
  16. package/dist/components/order-shipment/order-shipment.css +434 -5
  17. package/dist/components/order-shipment/order-shipment.js +1 -1
  18. package/dist/components/product-card/product-card.js +1 -1
  19. package/dist/components/profile-navigation/profile-navigation.css +1 -1
  20. package/dist/components/quantity-control/quantity-control.js +1 -1
  21. package/dist/components/range-slider/range-slider.css +26 -10
  22. package/dist/components/range-slider/range-slider.js +2 -1
  23. package/dist/components/range-slider/range-slider.js.LICENSE.txt +25 -0
  24. package/dist/components/shipment-item/shipment-item.css +434 -11
  25. package/dist/components/shipment-item/shipment-item.js +1 -1
  26. package/dist/components/shipment-tracking/shipment-tracking.js +1 -1
  27. package/dist/components/shipments-update-item/shipments-update-item.css +441 -28
  28. package/dist/components/shipments-update-item/shipments-update-item.js +1 -1
  29. package/dist/helper/hooks/index.js +1 -1
  30. package/dist/helper/hooks/useAddressAutofill.js +1 -0
  31. package/dist/index.css +674 -303
  32. package/dist/index.js +1 -1
  33. package/dist/index.js.LICENSE.txt +20 -0
  34. package/dist/page-layouts/auth/mobile-number/mobile-number.js +1 -1
  35. package/dist/page-layouts/cart/Components/chip-item/chip-image.css +411 -0
  36. package/dist/page-layouts/cart/Components/chip-item/chip-image.js +1 -0
  37. package/dist/page-layouts/cart/Components/chip-item/chip-item.css +411 -0
  38. package/dist/page-layouts/cart/Components/chip-item/chip-item.js +1 -1
  39. package/dist/page-layouts/cart/Components/coupon/coupon.js +1 -1
  40. package/dist/page-layouts/cart/Components/delivery-location/delivery-location.js +1 -1
  41. package/dist/page-layouts/compare/compare.js +1 -1
  42. package/dist/page-layouts/login/component/login-otp/login-otp.js +1 -1
  43. package/dist/page-layouts/login/component/login-password/login-password.js +1 -1
  44. package/dist/page-layouts/login/component/soacial-login-button/apple-login-button.css +373 -0
  45. package/dist/page-layouts/login/component/soacial-login-button/apple-login-button.js +1 -0
  46. package/dist/page-layouts/login/component/soacial-login-button/facebook-login-button.css +373 -0
  47. package/dist/page-layouts/login/component/soacial-login-button/facebook-login-button.js +1 -0
  48. package/dist/page-layouts/login/component/soacial-login-button/google-login-button.css +375 -0
  49. package/dist/page-layouts/login/component/soacial-login-button/google-login-button.js +1 -0
  50. package/dist/page-layouts/login/component/social-login-button/apple-login-button.js +1 -1
  51. package/dist/page-layouts/plp/Components/add-to-cart/add-to-cart.js +1 -1
  52. package/dist/page-layouts/plp/Components/filter-item/filter-item.css +26 -10
  53. package/dist/page-layouts/plp/Components/filter-item/filter-item.js +2 -1
  54. package/dist/page-layouts/plp/Components/filter-item/filter-item.js.LICENSE.txt +25 -0
  55. package/dist/page-layouts/plp/Components/filter-list/filter-list.css +26 -10
  56. package/dist/page-layouts/plp/Components/filter-list/filter-list.js +2 -1
  57. package/dist/page-layouts/plp/Components/filter-list/filter-list.js.LICENSE.txt +25 -0
  58. package/dist/page-layouts/plp/Components/filter-tags/filter-tags.js +1 -1
  59. package/dist/page-layouts/single-checkout/address/single-address.js +1 -1
  60. package/dist/page-layouts/single-checkout/payment/card-form.js +1 -1
  61. package/dist/page-layouts/single-checkout/payment/checkout-payment-content.js +1 -1
  62. package/dist/page-layouts/single-checkout/payment/checkout-payment.js +1 -1
  63. package/dist/pages/blog/blog.js +1 -1
  64. package/dist/pages/blog/index.js +1 -1
  65. package/dist/pages/cart/cart.css +411 -0
  66. package/dist/pages/cart/cart.js +1 -1
  67. package/dist/pages/cart/index.css +411 -0
  68. package/dist/pages/cart/index.js +1 -1
  69. package/dist/pages/checkout/checkout.js +1 -1
  70. package/dist/pages/checkout/index.js +1 -1
  71. package/dist/pages/edit-profile/edit-profile.js +1 -1
  72. package/dist/pages/edit-profile/index.js +1 -1
  73. package/dist/pages/index.css +729 -358
  74. package/dist/pages/index.js +1 -1
  75. package/dist/pages/index.js.LICENSE.txt +20 -0
  76. package/dist/pages/login/index.css +292 -292
  77. package/dist/pages/login/index.js +1 -1
  78. package/dist/pages/login/login.css +292 -292
  79. package/dist/pages/login/login.js +1 -1
  80. package/dist/pages/order/order-tracking-details/order-tracking-details.css +435 -16
  81. package/dist/pages/order/order-tracking-details/order-tracking-details.js +1 -1
  82. package/dist/pages/order-status/index.css +895 -6
  83. package/dist/pages/order-status/index.js +1 -1
  84. package/dist/pages/order-status/order-status.css +895 -6
  85. package/dist/pages/order-status/order-status.js +1 -1
  86. package/dist/pages/product-listing/index.css +26 -10
  87. package/dist/pages/product-listing/index.js +1 -1
  88. package/dist/pages/product-listing/index.js.LICENSE.txt +20 -0
  89. package/dist/pages/product-listing/product-listing.css +26 -10
  90. package/dist/pages/product-listing/product-listing.js +1 -1
  91. package/dist/pages/product-listing/product-listing.js.LICENSE.txt +20 -0
  92. package/dist/pages/profile/components/add-phone-modal/add-phone-modal.js +1 -1
  93. package/dist/pages/profile/phone/index.js +1 -1
  94. package/dist/pages/profile/phone/phone.js +1 -1
  95. package/dist/pages/register/index.js +1 -1
  96. package/dist/pages/register/register.js +1 -1
  97. package/dist/pages/wishlist/index.js +1 -1
  98. package/dist/pages/wishlist/wishlist.js +1 -1
  99. package/package.json +2 -1
@@ -0,0 +1,373 @@
1
+ /**color by character**/
2
+ /** Font family **/
3
+ /** Font weight **/
4
+ .apple-login-button__display-block___dG0cB {
5
+ display: block;
6
+ }
7
+ .apple-login-button__inline-block___rxWk0,
8
+ .apple-login-button__inlineBlock___GbOb0 {
9
+ display: inline-block;
10
+ }
11
+ .apple-login-button__flex-row___Qw_Fa {
12
+ display: flex;
13
+ }
14
+ .apple-login-button__flex-column___A1G0F,
15
+ .apple-login-button__flexColumn___YgkEF {
16
+ display: flex;
17
+ flex-direction: column;
18
+ }
19
+ .apple-login-button__flex-align-center___EreYd,
20
+ .apple-login-button__flexAlignCenter___oLZmE {
21
+ display: flex;
22
+ align-items: center;
23
+ }
24
+ .apple-login-button__flex-justify-center___a8nUo,
25
+ .apple-login-button__flexJustifyCenter___O2d1e {
26
+ display: flex;
27
+ justify-content: center;
28
+ }
29
+ .apple-login-button__flex-center___Df9rs,
30
+ .apple-login-button__flexCenter___elYd0 {
31
+ display: flex;
32
+ justify-content: center;
33
+ align-items: center;
34
+ }
35
+ .apple-login-button__justify-start___Lc4VK,
36
+ .apple-login-button__justifyStart___SnLmh {
37
+ justify-content: flex-start;
38
+ }
39
+ .apple-login-button__justify-end___PnUX5,
40
+ .apple-login-button__justifyEnd___BheGy {
41
+ justify-content: flex-end;
42
+ }
43
+ .apple-login-button__justify-between___Jk3Ft,
44
+ .apple-login-button__justifyBetween___S2jbv {
45
+ justify-content: space-between;
46
+ }
47
+ .apple-login-button__justify-around___DsR2p,
48
+ .apple-login-button__justifyAround___EKItA {
49
+ justify-content: space-around;
50
+ }
51
+ .apple-login-button__justify-evenly___pIfvx,
52
+ .apple-login-button__justifyEvenly___dSYeJ {
53
+ justify-content: space-evenly;
54
+ }
55
+ h1,
56
+ .apple-login-button__h1___JcdLQ {
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___JcdLQ {
66
+ font-size: 36px;
67
+ line-height: 48px;
68
+ }
69
+ }
70
+ h2,
71
+ .apple-login-button__h2___vOU4L {
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___vOU4L {
81
+ font-size: 32px;
82
+ line-height: 42px;
83
+ }
84
+ }
85
+ h3,
86
+ .apple-login-button__h3___FVfvK {
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___FVfvK {
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___xdITK {
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___xdITK {
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___Qdbbu {
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___Qdbbu {
132
+ font-size: 16px;
133
+ line-height: 18px;
134
+ }
135
+ }
136
+ .apple-login-button__b1___LI7x4 {
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___LI7x4 {
145
+ font-size: 16px;
146
+ line-height: 20px;
147
+ }
148
+ }
149
+ .apple-login-button__b-small___S0r6Y,
150
+ .apple-login-button__bSmall___ShBOg,
151
+ .apple-login-button__b2___QdIFV {
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___S0r6Y,
160
+ .apple-login-button__bSmall___ShBOg,
161
+ .apple-login-button__b2___QdIFV {
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___WpD6I {
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___WpD6I {
177
+ font-size: 64px;
178
+ line-height: 85px;
179
+ letter-spacing: -0.03em;
180
+ }
181
+ }
182
+ .apple-login-button__caption-medium___xbIYA,
183
+ .apple-login-button__captionMedium___Gvj0Y {
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___xbIYA,
191
+ .apple-login-button__captionMedium___Gvj0Y {
192
+ font-size: 11px;
193
+ }
194
+ }
195
+ .apple-login-button__caption-semi-bold___xqkJH,
196
+ .apple-login-button__captionSemiBold___ypuug {
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___xqkJH,
204
+ .apple-login-button__captionSemiBold___ypuug {
205
+ font-size: 11px;
206
+ }
207
+ }
208
+ .apple-login-button__btn-link___pb7wA,
209
+ .apple-login-button__btnLink___lVhUr {
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___pb7wA,
223
+ .apple-login-button__btnLink___lVhUr {
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___pb7wA:hover,
231
+ .apple-login-button__btnLink___lVhUr:hover {
232
+ color: var(--buttonLinkL1, #c1847c);
233
+ }
234
+ .apple-login-button__btn-link___pb7wA:disabled,
235
+ .apple-login-button__btnLink___lVhUr:disabled {
236
+ color: var(--buttonLinkL2, #d0a39d);
237
+ }
238
+ .apple-login-button__btn-link___pb7wA:active,
239
+ .apple-login-button__btnLink___lVhUr:active {
240
+ opacity: 0.8;
241
+ }
242
+ .apple-login-button__user-select-none___xLxbK,
243
+ .apple-login-button__userSelectNone___Yb76S {
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___sCy7C,
250
+ .apple-login-button__margin0auto___PiAtN {
251
+ margin: 0 auto;
252
+ }
253
+ .apple-login-button__base-page-container___xhJC1,
254
+ .apple-login-button__basePageContainer___HdZ9Z {
255
+ max-width: 1440px !important;
256
+ }
257
+ .apple-login-button__remove-scroll___kn_oH,
258
+ .apple-login-button__removeScroll___ISkN8 {
259
+ overflow-y: hidden !important;
260
+ }
261
+ .apple-login-button__mr-5___Tp04W,
262
+ .apple-login-button__mr5___xIXK0 {
263
+ margin-inline-end: 30px !important;
264
+ }
265
+ .apple-login-button__mr-2___kGX0D,
266
+ .apple-login-button__mr2___48yrx {
267
+ margin-inline-end: 5px !important;
268
+ }
269
+ .apple-login-button__py-5___FPiuH,
270
+ .apple-login-button__py5___ucemw {
271
+ padding-top: 1.875rem !important;
272
+ padding-bottom: 1.875rem !important;
273
+ }
274
+ .apple-login-button__view-all-text___UWZW1,
275
+ .apple-login-button__viewAllText___nF_hO {
276
+ font-size: 20px;
277
+ font-weight: 400;
278
+ text-transform: lowercase;
279
+ text-decoration: underline;
280
+ }
281
+ .apple-login-button__view-all-mobile___EQceO,
282
+ .apple-login-button__viewAllMobile___Kxztt {
283
+ display: none;
284
+ }
285
+ @media only screen and (max-width: 768px) {
286
+ .apple-login-button__view-all-mobile___EQceO,
287
+ .apple-login-button__viewAllMobile___Kxztt {
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___EQceO,
296
+ .apple-login-button__viewAllMobile___Kxztt {
297
+ margin-top: 24px;
298
+ }
299
+ }
300
+ .apple-login-button__accent-btn___gEKGS,
301
+ .apple-login-button__accentBtn___YDRux {
302
+ background-color: var(--accentColor);
303
+ color: #fff;
304
+ }
305
+ .apple-login-button__no-scroll___nAAr6,
306
+ .apple-login-button__noScroll___UUzVo {
307
+ overflow-y: hidden;
308
+ }
309
+ .apple-login-button__hide-overflow___ZR1cR,
310
+ .apple-login-button__hideOverflow___JkOWO {
311
+ overflow: hidden;
312
+ }
313
+ .apple-login-button__markdown-body___FzhVg 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___FzhVg {
319
+ font-size: 12px !important;
320
+ padding: 5px !important;
321
+ }
322
+ }
323
+ .apple-login-button__view3d-canvas___p2S5_ {
324
+ width: 100%;
325
+ height: 100%;
326
+ }
327
+ @media only screen and (max-width: 480px) {
328
+ .apple-login-button__view-mobile-up___zIt7A {
329
+ display: none !important;
330
+ }
331
+ }
332
+ @media only screen and (min-width: 481px) {
333
+ .apple-login-button__view-mobile___ny3wS {
334
+ display: none !important;
335
+ }
336
+ }
337
+ .apple-login-button__apple-login-container___bBsdH {
338
+ margin-top: 12px;
339
+ }
340
+ .apple-login-button__apple-login-container___bBsdH .apple-login-button__apple-login-button___Z4ssW {
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___bBsdH .apple-login-button__apple-login-button___Z4ssW svg {
360
+ flex: 0 0 24px;
361
+ fill: black;
362
+ }
363
+ .apple-login-button__apple-login-container___bBsdH .apple-login-button__apple-login-button___Z4ssW 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={383:(e,r,t)=>{t.d(r,{Dn:()=>a,ar:()=>n});var n="apple-login-button__apple-login-button___Z4ssW",a="apple-login-button__apple-login-container___bBsdH"},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__(383),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:s="",disabled:u=!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&&!u)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||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")),w?r().createElement("div",{style:{marginTop:8,fontSize:12,color:"var(--error, #c62828)"}},w):null)}})(),a})()));