@cimplify/sdk 0.100.2 → 0.100.3

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 (48) hide show
  1. package/dist/advanced.d.mts +1 -1
  2. package/dist/advanced.d.ts +1 -1
  3. package/dist/advanced.js +20 -20
  4. package/dist/advanced.mjs +1 -1
  5. package/dist/{chunk-IJI7KMTG.js → chunk-CNY2XFN4.js} +255 -74
  6. package/dist/{chunk-TIQLOH2B.mjs → chunk-FFRQNNUQ.mjs} +3 -0
  7. package/dist/{chunk-6JEKKL3M.js → chunk-FWKSBF3F.js} +3 -0
  8. package/dist/{chunk-B2YOCOLH.mjs → chunk-HFTRLRLM.mjs} +2 -2
  9. package/dist/{chunk-QRBBSIAY.js → chunk-KNCW5DI7.js} +4 -4
  10. package/dist/{chunk-YWNJJO2U.mjs → chunk-NOGCGI4J.mjs} +2 -2
  11. package/dist/{chunk-IFAQLFAJ.js → chunk-XCS56XSS.js} +2 -2
  12. package/dist/{chunk-PJUXAUM2.mjs → chunk-XG4DZT4I.mjs} +209 -28
  13. package/dist/{client-C6wb92AD.d.mts → client-BGeSemVv.d.mts} +2 -2
  14. package/dist/{client-LPg_AUUr.d.ts → client-BWdeCgmo.d.ts} +11 -2
  15. package/dist/{client-D8XcrONA.d.mts → client-Bx4NRdl8.d.mts} +11 -2
  16. package/dist/{client-CgXkRu2o.d.ts → client-Cvp8W1r9.d.ts} +2 -2
  17. package/dist/index.d.mts +2 -2
  18. package/dist/index.d.ts +2 -2
  19. package/dist/index.js +69 -69
  20. package/dist/index.mjs +3 -3
  21. package/dist/mock/cli.mjs +2 -2
  22. package/dist/mock/library.js +2 -2
  23. package/dist/mock/library.mjs +2 -2
  24. package/dist/mock/msw.js +2 -2
  25. package/dist/mock/msw.mjs +2 -2
  26. package/dist/react.d.mts +1 -1
  27. package/dist/react.d.ts +1 -1
  28. package/dist/react.js +25 -25
  29. package/dist/react.mjs +2 -2
  30. package/dist/{server--RyVAfPN.d.mts → server-BRJ61o2J.d.mts} +3 -3
  31. package/dist/{server-CNyy47HL.d.ts → server-CXrVYtNo.d.ts} +3 -3
  32. package/dist/server.d.mts +2 -2
  33. package/dist/server.d.ts +2 -2
  34. package/dist/server.js +7 -7
  35. package/dist/server.mjs +2 -2
  36. package/dist/testing/msw.d.mts +1 -1
  37. package/dist/testing/msw.d.ts +1 -1
  38. package/dist/testing/msw.js +2 -2
  39. package/dist/testing/msw.mjs +1 -1
  40. package/dist/testing/suite.d.mts +4 -4
  41. package/dist/testing/suite.d.ts +4 -4
  42. package/dist/testing/suite.js +23 -23
  43. package/dist/testing/suite.mjs +4 -4
  44. package/dist/testing.d.mts +3 -3
  45. package/dist/testing.d.ts +3 -3
  46. package/dist/testing.js +79 -79
  47. package/dist/testing.mjs +5 -5
  48. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  var chunkQPRI2NII_js = require('./chunk-QPRI2NII.js');
4
4
  var chunkL5GKVQVJ_js = require('./chunk-L5GKVQVJ.js');
5
- var chunkIJI7KMTG_js = require('./chunk-IJI7KMTG.js');
6
- var chunk6JEKKL3M_js = require('./chunk-6JEKKL3M.js');
5
+ var chunkCNY2XFN4_js = require('./chunk-CNY2XFN4.js');
6
+ var chunkFWKSBF3F_js = require('./chunk-FWKSBF3F.js');
7
7
  var chunkWMEC5JWN_js = require('./chunk-WMEC5JWN.js');
8
8
  var chunkNIOUSKQQ_js = require('./chunk-NIOUSKQQ.js');
9
9
  require('./chunk-OWW5GUSB.js');
@@ -27,9 +27,9 @@ async function signInSilent(opts) {
27
27
  } catch {
28
28
  }
29
29
  const callbackUri = opts.callbackUri ?? "/auth/callback";
30
- const authorizeEndpoint = opts.authUrl ? `${opts.authUrl.replace(/\/$/, "")}/oauth/authorize` : await chunk6JEKKL3M_js.getAuthorizationEndpoint(opts.issuer ?? chunk6JEKKL3M_js.DEFAULT_ISSUER);
31
- const pkce = await chunk6JEKKL3M_js.generatePkce();
32
- const state = chunk6JEKKL3M_js.generateState();
30
+ const authorizeEndpoint = opts.authUrl ? `${opts.authUrl.replace(/\/$/, "")}/oauth/authorize` : await chunkFWKSBF3F_js.getAuthorizationEndpoint(opts.issuer ?? chunkFWKSBF3F_js.DEFAULT_ISSUER);
31
+ const pkce = await chunkFWKSBF3F_js.generatePkce();
32
+ const state = chunkFWKSBF3F_js.generateState();
33
33
  const params = new URLSearchParams({
34
34
  response_type: RESPONSE_TYPE_CODE,
35
35
  response_mode: RESPONSE_MODE_WEB_MESSAGE,
@@ -183,259 +183,259 @@ Object.defineProperty(exports, "resolvePhoneCountryCode", {
183
183
  });
184
184
  Object.defineProperty(exports, "ActivityService", {
185
185
  enumerable: true,
186
- get: function () { return chunkIJI7KMTG_js.ActivityService; }
186
+ get: function () { return chunkCNY2XFN4_js.ActivityService; }
187
187
  });
188
188
  Object.defineProperty(exports, "CimplifyClient", {
189
189
  enumerable: true,
190
- get: function () { return chunkIJI7KMTG_js.CimplifyClient; }
190
+ get: function () { return chunkCNY2XFN4_js.CimplifyClient; }
191
191
  });
192
192
  Object.defineProperty(exports, "DeliveryService", {
193
193
  enumerable: true,
194
- get: function () { return chunkIJI7KMTG_js.DeliveryService; }
194
+ get: function () { return chunkCNY2XFN4_js.DeliveryService; }
195
195
  });
196
196
  Object.defineProperty(exports, "PlacesService", {
197
197
  enumerable: true,
198
- get: function () { return chunkIJI7KMTG_js.PlacesService; }
198
+ get: function () { return chunkCNY2XFN4_js.PlacesService; }
199
199
  });
200
200
  Object.defineProperty(exports, "StoreCreditQueries", {
201
201
  enumerable: true,
202
- get: function () { return chunkIJI7KMTG_js.StoreCreditQueries; }
202
+ get: function () { return chunkCNY2XFN4_js.StoreCreditQueries; }
203
203
  });
204
204
  Object.defineProperty(exports, "SubscriptionService", {
205
205
  enumerable: true,
206
- get: function () { return chunkIJI7KMTG_js.SubscriptionService; }
206
+ get: function () { return chunkCNY2XFN4_js.SubscriptionService; }
207
207
  });
208
208
  Object.defineProperty(exports, "SupportService", {
209
209
  enumerable: true,
210
- get: function () { return chunkIJI7KMTG_js.SupportService; }
210
+ get: function () { return chunkCNY2XFN4_js.SupportService; }
211
211
  });
212
212
  Object.defineProperty(exports, "UploadService", {
213
213
  enumerable: true,
214
- get: function () { return chunkIJI7KMTG_js.UploadService; }
214
+ get: function () { return chunkCNY2XFN4_js.UploadService; }
215
215
  });
216
216
  Object.defineProperty(exports, "createCimplifyClient", {
217
217
  enumerable: true,
218
- get: function () { return chunkIJI7KMTG_js.createCimplifyClient; }
218
+ get: function () { return chunkCNY2XFN4_js.createCimplifyClient; }
219
219
  });
220
220
  Object.defineProperty(exports, "AUTHORIZATION_TYPE", {
221
221
  enumerable: true,
222
- get: function () { return chunk6JEKKL3M_js.AUTHORIZATION_TYPE; }
222
+ get: function () { return chunkFWKSBF3F_js.AUTHORIZATION_TYPE; }
223
223
  });
224
224
  Object.defineProperty(exports, "AUTH_MUTATION", {
225
225
  enumerable: true,
226
- get: function () { return chunk6JEKKL3M_js.AUTH_MUTATION; }
226
+ get: function () { return chunkFWKSBF3F_js.AUTH_MUTATION; }
227
227
  });
228
228
  Object.defineProperty(exports, "AuthService", {
229
229
  enumerable: true,
230
- get: function () { return chunk6JEKKL3M_js.AuthService; }
230
+ get: function () { return chunkFWKSBF3F_js.AuthService; }
231
231
  });
232
232
  Object.defineProperty(exports, "BusinessService", {
233
233
  enumerable: true,
234
- get: function () { return chunk6JEKKL3M_js.BusinessService; }
234
+ get: function () { return chunkFWKSBF3F_js.BusinessService; }
235
235
  });
236
236
  Object.defineProperty(exports, "CHECKOUT_MODE", {
237
237
  enumerable: true,
238
- get: function () { return chunk6JEKKL3M_js.CHECKOUT_MODE; }
238
+ get: function () { return chunkFWKSBF3F_js.CHECKOUT_MODE; }
239
239
  });
240
240
  Object.defineProperty(exports, "CHECKOUT_MUTATION", {
241
241
  enumerable: true,
242
- get: function () { return chunk6JEKKL3M_js.CHECKOUT_MUTATION; }
242
+ get: function () { return chunkFWKSBF3F_js.CHECKOUT_MUTATION; }
243
243
  });
244
244
  Object.defineProperty(exports, "CHECKOUT_STEP", {
245
245
  enumerable: true,
246
- get: function () { return chunk6JEKKL3M_js.CHECKOUT_STEP; }
246
+ get: function () { return chunkFWKSBF3F_js.CHECKOUT_STEP; }
247
247
  });
248
248
  Object.defineProperty(exports, "CONTACT_TYPE", {
249
249
  enumerable: true,
250
- get: function () { return chunk6JEKKL3M_js.CONTACT_TYPE; }
250
+ get: function () { return chunkFWKSBF3F_js.CONTACT_TYPE; }
251
251
  });
252
252
  Object.defineProperty(exports, "CartOperations", {
253
253
  enumerable: true,
254
- get: function () { return chunk6JEKKL3M_js.CartOperations; }
254
+ get: function () { return chunkFWKSBF3F_js.CartOperations; }
255
255
  });
256
256
  Object.defineProperty(exports, "CatalogueQueries", {
257
257
  enumerable: true,
258
- get: function () { return chunk6JEKKL3M_js.CatalogueQueries; }
258
+ get: function () { return chunkFWKSBF3F_js.CatalogueQueries; }
259
259
  });
260
260
  Object.defineProperty(exports, "CheckoutOperations", {
261
261
  enumerable: true,
262
- get: function () { return chunk6JEKKL3M_js.CheckoutService; }
262
+ get: function () { return chunkFWKSBF3F_js.CheckoutService; }
263
263
  });
264
264
  Object.defineProperty(exports, "CheckoutService", {
265
265
  enumerable: true,
266
- get: function () { return chunk6JEKKL3M_js.CheckoutService; }
266
+ get: function () { return chunkFWKSBF3F_js.CheckoutService; }
267
267
  });
268
268
  Object.defineProperty(exports, "CimplifyElement", {
269
269
  enumerable: true,
270
- get: function () { return chunk6JEKKL3M_js.CimplifyElement; }
270
+ get: function () { return chunkFWKSBF3F_js.CimplifyElement; }
271
271
  });
272
272
  Object.defineProperty(exports, "CimplifyElements", {
273
273
  enumerable: true,
274
- get: function () { return chunk6JEKKL3M_js.CimplifyElements; }
274
+ get: function () { return chunkFWKSBF3F_js.CimplifyElements; }
275
275
  });
276
276
  Object.defineProperty(exports, "DEFAULT_COUNTRY", {
277
277
  enumerable: true,
278
- get: function () { return chunk6JEKKL3M_js.DEFAULT_COUNTRY; }
278
+ get: function () { return chunkFWKSBF3F_js.DEFAULT_COUNTRY; }
279
279
  });
280
280
  Object.defineProperty(exports, "DEFAULT_CURRENCY", {
281
281
  enumerable: true,
282
- get: function () { return chunk6JEKKL3M_js.DEFAULT_CURRENCY; }
282
+ get: function () { return chunkFWKSBF3F_js.DEFAULT_CURRENCY; }
283
283
  });
284
284
  Object.defineProperty(exports, "DEVICE_TYPE", {
285
285
  enumerable: true,
286
- get: function () { return chunk6JEKKL3M_js.DEVICE_TYPE; }
286
+ get: function () { return chunkFWKSBF3F_js.DEVICE_TYPE; }
287
287
  });
288
288
  Object.defineProperty(exports, "ELEMENTS_AUTH_CONTACT_TYPES", {
289
289
  enumerable: true,
290
- get: function () { return chunk6JEKKL3M_js.ELEMENTS_AUTH_CONTACT_TYPES; }
290
+ get: function () { return chunkFWKSBF3F_js.ELEMENTS_AUTH_CONTACT_TYPES; }
291
291
  });
292
292
  Object.defineProperty(exports, "ELEMENTS_AUTH_MODES", {
293
293
  enumerable: true,
294
- get: function () { return chunk6JEKKL3M_js.ELEMENTS_AUTH_MODES; }
294
+ get: function () { return chunkFWKSBF3F_js.ELEMENTS_AUTH_MODES; }
295
295
  });
296
296
  Object.defineProperty(exports, "ELEMENTS_AUTH_PROMPTS", {
297
297
  enumerable: true,
298
- get: function () { return chunk6JEKKL3M_js.ELEMENTS_AUTH_PROMPTS; }
298
+ get: function () { return chunkFWKSBF3F_js.ELEMENTS_AUTH_PROMPTS; }
299
299
  });
300
300
  Object.defineProperty(exports, "ELEMENT_TYPES", {
301
301
  enumerable: true,
302
- get: function () { return chunk6JEKKL3M_js.ELEMENT_TYPES; }
302
+ get: function () { return chunkFWKSBF3F_js.ELEMENT_TYPES; }
303
303
  });
304
304
  Object.defineProperty(exports, "EVENT_TYPES", {
305
305
  enumerable: true,
306
- get: function () { return chunk6JEKKL3M_js.EVENT_TYPES; }
306
+ get: function () { return chunkFWKSBF3F_js.EVENT_TYPES; }
307
307
  });
308
308
  Object.defineProperty(exports, "FxService", {
309
309
  enumerable: true,
310
- get: function () { return chunk6JEKKL3M_js.FxService; }
310
+ get: function () { return chunkFWKSBF3F_js.FxService; }
311
311
  });
312
312
  Object.defineProperty(exports, "InventoryService", {
313
313
  enumerable: true,
314
- get: function () { return chunk6JEKKL3M_js.InventoryService; }
314
+ get: function () { return chunkFWKSBF3F_js.InventoryService; }
315
315
  });
316
316
  Object.defineProperty(exports, "LINK_MUTATION", {
317
317
  enumerable: true,
318
- get: function () { return chunk6JEKKL3M_js.LINK_MUTATION; }
318
+ get: function () { return chunkFWKSBF3F_js.LINK_MUTATION; }
319
319
  });
320
320
  Object.defineProperty(exports, "LINK_QUERY", {
321
321
  enumerable: true,
322
- get: function () { return chunk6JEKKL3M_js.LINK_QUERY; }
322
+ get: function () { return chunkFWKSBF3F_js.LINK_QUERY; }
323
323
  });
324
324
  Object.defineProperty(exports, "LinkService", {
325
325
  enumerable: true,
326
- get: function () { return chunk6JEKKL3M_js.LinkService; }
326
+ get: function () { return chunkFWKSBF3F_js.LinkService; }
327
327
  });
328
328
  Object.defineProperty(exports, "LiteService", {
329
329
  enumerable: true,
330
- get: function () { return chunk6JEKKL3M_js.LiteService; }
330
+ get: function () { return chunkFWKSBF3F_js.LiteService; }
331
331
  });
332
332
  Object.defineProperty(exports, "MESSAGE_TYPES", {
333
333
  enumerable: true,
334
- get: function () { return chunk6JEKKL3M_js.MESSAGE_TYPES; }
334
+ get: function () { return chunkFWKSBF3F_js.MESSAGE_TYPES; }
335
335
  });
336
336
  Object.defineProperty(exports, "MOBILE_MONEY_PROVIDER", {
337
337
  enumerable: true,
338
- get: function () { return chunk6JEKKL3M_js.MOBILE_MONEY_PROVIDER; }
338
+ get: function () { return chunkFWKSBF3F_js.MOBILE_MONEY_PROVIDER; }
339
339
  });
340
340
  Object.defineProperty(exports, "ORDER_MUTATION", {
341
341
  enumerable: true,
342
- get: function () { return chunk6JEKKL3M_js.ORDER_MUTATION; }
342
+ get: function () { return chunkFWKSBF3F_js.ORDER_MUTATION; }
343
343
  });
344
344
  Object.defineProperty(exports, "ORDER_TYPE", {
345
345
  enumerable: true,
346
- get: function () { return chunk6JEKKL3M_js.ORDER_TYPE; }
346
+ get: function () { return chunkFWKSBF3F_js.ORDER_TYPE; }
347
347
  });
348
348
  Object.defineProperty(exports, "OrderQueries", {
349
349
  enumerable: true,
350
- get: function () { return chunk6JEKKL3M_js.OrderQueries; }
350
+ get: function () { return chunkFWKSBF3F_js.OrderQueries; }
351
351
  });
352
352
  Object.defineProperty(exports, "PAYMENT_METHOD", {
353
353
  enumerable: true,
354
- get: function () { return chunk6JEKKL3M_js.PAYMENT_METHOD; }
354
+ get: function () { return chunkFWKSBF3F_js.PAYMENT_METHOD; }
355
355
  });
356
356
  Object.defineProperty(exports, "PAYMENT_MUTATION", {
357
357
  enumerable: true,
358
- get: function () { return chunk6JEKKL3M_js.PAYMENT_MUTATION; }
358
+ get: function () { return chunkFWKSBF3F_js.PAYMENT_MUTATION; }
359
359
  });
360
360
  Object.defineProperty(exports, "PAYMENT_STATE", {
361
361
  enumerable: true,
362
- get: function () { return chunk6JEKKL3M_js.PAYMENT_STATE; }
362
+ get: function () { return chunkFWKSBF3F_js.PAYMENT_STATE; }
363
363
  });
364
364
  Object.defineProperty(exports, "PICKUP_TIME_TYPE", {
365
365
  enumerable: true,
366
- get: function () { return chunk6JEKKL3M_js.PICKUP_TIME_TYPE; }
366
+ get: function () { return chunkFWKSBF3F_js.PICKUP_TIME_TYPE; }
367
367
  });
368
368
  Object.defineProperty(exports, "SchedulingService", {
369
369
  enumerable: true,
370
- get: function () { return chunk6JEKKL3M_js.SchedulingService; }
370
+ get: function () { return chunkFWKSBF3F_js.SchedulingService; }
371
371
  });
372
372
  Object.defineProperty(exports, "combine", {
373
373
  enumerable: true,
374
- get: function () { return chunk6JEKKL3M_js.combine; }
374
+ get: function () { return chunkFWKSBF3F_js.combine; }
375
375
  });
376
376
  Object.defineProperty(exports, "combineObject", {
377
377
  enumerable: true,
378
- get: function () { return chunk6JEKKL3M_js.combineObject; }
378
+ get: function () { return chunkFWKSBF3F_js.combineObject; }
379
379
  });
380
380
  Object.defineProperty(exports, "createElements", {
381
381
  enumerable: true,
382
- get: function () { return chunk6JEKKL3M_js.createElements; }
382
+ get: function () { return chunkFWKSBF3F_js.createElements; }
383
383
  });
384
384
  Object.defineProperty(exports, "err", {
385
385
  enumerable: true,
386
- get: function () { return chunk6JEKKL3M_js.err; }
386
+ get: function () { return chunkFWKSBF3F_js.err; }
387
387
  });
388
388
  Object.defineProperty(exports, "flatMap", {
389
389
  enumerable: true,
390
- get: function () { return chunk6JEKKL3M_js.flatMap; }
390
+ get: function () { return chunkFWKSBF3F_js.flatMap; }
391
391
  });
392
392
  Object.defineProperty(exports, "fromPromise", {
393
393
  enumerable: true,
394
- get: function () { return chunk6JEKKL3M_js.fromPromise; }
394
+ get: function () { return chunkFWKSBF3F_js.fromPromise; }
395
395
  });
396
396
  Object.defineProperty(exports, "generateIdempotencyKey", {
397
397
  enumerable: true,
398
- get: function () { return chunk6JEKKL3M_js.generateIdempotencyKey; }
398
+ get: function () { return chunkFWKSBF3F_js.generateIdempotencyKey; }
399
399
  });
400
400
  Object.defineProperty(exports, "getOrElse", {
401
401
  enumerable: true,
402
- get: function () { return chunk6JEKKL3M_js.getOrElse; }
402
+ get: function () { return chunkFWKSBF3F_js.getOrElse; }
403
403
  });
404
404
  Object.defineProperty(exports, "isErr", {
405
405
  enumerable: true,
406
- get: function () { return chunk6JEKKL3M_js.isErr; }
406
+ get: function () { return chunkFWKSBF3F_js.isErr; }
407
407
  });
408
408
  Object.defineProperty(exports, "isOk", {
409
409
  enumerable: true,
410
- get: function () { return chunk6JEKKL3M_js.isOk; }
410
+ get: function () { return chunkFWKSBF3F_js.isOk; }
411
411
  });
412
412
  Object.defineProperty(exports, "mapError", {
413
413
  enumerable: true,
414
- get: function () { return chunk6JEKKL3M_js.mapError; }
414
+ get: function () { return chunkFWKSBF3F_js.mapError; }
415
415
  });
416
416
  Object.defineProperty(exports, "mapResult", {
417
417
  enumerable: true,
418
- get: function () { return chunk6JEKKL3M_js.mapResult; }
418
+ get: function () { return chunkFWKSBF3F_js.mapResult; }
419
419
  });
420
420
  Object.defineProperty(exports, "ok", {
421
421
  enumerable: true,
422
- get: function () { return chunk6JEKKL3M_js.ok; }
422
+ get: function () { return chunkFWKSBF3F_js.ok; }
423
423
  });
424
424
  Object.defineProperty(exports, "startSignIn", {
425
425
  enumerable: true,
426
- get: function () { return chunk6JEKKL3M_js.startSignIn; }
426
+ get: function () { return chunkFWKSBF3F_js.startSignIn; }
427
427
  });
428
428
  Object.defineProperty(exports, "toNullable", {
429
429
  enumerable: true,
430
- get: function () { return chunk6JEKKL3M_js.toNullable; }
430
+ get: function () { return chunkFWKSBF3F_js.toNullable; }
431
431
  });
432
432
  Object.defineProperty(exports, "tryCatch", {
433
433
  enumerable: true,
434
- get: function () { return chunk6JEKKL3M_js.tryCatch; }
434
+ get: function () { return chunkFWKSBF3F_js.tryCatch; }
435
435
  });
436
436
  Object.defineProperty(exports, "unwrap", {
437
437
  enumerable: true,
438
- get: function () { return chunk6JEKKL3M_js.unwrap; }
438
+ get: function () { return chunkFWKSBF3F_js.unwrap; }
439
439
  });
440
440
  Object.defineProperty(exports, "CURRENCY_SYMBOLS", {
441
441
  enumerable: true,
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  export { BOUNDARY_KIND, CIMPLIFY_CDN_HOSTS, DEFAULT_CDN_BASE_URL, DURATION_UNIT, INPUT_FIELD_TYPE, PRODUCT_TYPE, RENDER_HINT, allGalleryImages, assetUrl, chatMessageCards, getVariantDisplayName, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, stayLength, stayPeriods } from './chunk-4G5UWFC3.mjs';
2
2
  export { isValidPhoneForContext, normalizePhoneToE164, resolvePhoneCountryCode } from './chunk-YOIVZ6OA.mjs';
3
- export { ActivityService, CimplifyClient, DeliveryService, PlacesService, StoreCreditQueries, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-PJUXAUM2.mjs';
4
- import { getAuthorizationEndpoint, DEFAULT_ISSUER, generatePkce, generateState } from './chunk-TIQLOH2B.mjs';
5
- export { AUTHORIZATION_TYPE, AUTH_MUTATION, AuthService, BusinessService, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CONTACT_TYPE, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, DEFAULT_COUNTRY, DEFAULT_CURRENCY, DEVICE_TYPE, ELEMENTS_AUTH_CONTACT_TYPES, ELEMENTS_AUTH_MODES, ELEMENTS_AUTH_PROMPTS, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LINK_MUTATION, LINK_QUERY, LinkService, LiteService, MESSAGE_TYPES, MOBILE_MONEY_PROVIDER, ORDER_MUTATION, ORDER_TYPE, OrderQueries, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE, SchedulingService, combine, combineObject, createElements, err, flatMap, fromPromise, generateIdempotencyKey, getOrElse, isErr, isOk, mapError, mapResult, ok, startSignIn, toNullable, tryCatch, unwrap } from './chunk-TIQLOH2B.mjs';
3
+ export { ActivityService, CimplifyClient, DeliveryService, PlacesService, StoreCreditQueries, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-XG4DZT4I.mjs';
4
+ import { getAuthorizationEndpoint, DEFAULT_ISSUER, generatePkce, generateState } from './chunk-FFRQNNUQ.mjs';
5
+ export { AUTHORIZATION_TYPE, AUTH_MUTATION, AuthService, BusinessService, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CONTACT_TYPE, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, DEFAULT_COUNTRY, DEFAULT_CURRENCY, DEVICE_TYPE, ELEMENTS_AUTH_CONTACT_TYPES, ELEMENTS_AUTH_MODES, ELEMENTS_AUTH_PROMPTS, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LINK_MUTATION, LINK_QUERY, LinkService, LiteService, MESSAGE_TYPES, MOBILE_MONEY_PROVIDER, ORDER_MUTATION, ORDER_TYPE, OrderQueries, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE, SchedulingService, combine, combineObject, createElements, err, flatMap, fromPromise, generateIdempotencyKey, getOrElse, isErr, isOk, mapError, mapResult, ok, startSignIn, toNullable, tryCatch, unwrap } from './chunk-FFRQNNUQ.mjs';
6
6
  export { CURRENCY_SYMBOLS, MOBILE_MONEY_PROVIDERS, categorizePaymentError, detectMobileMoneyProvider, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatPriceRange, formatPriceWithTax, formatProductPrice, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getMarkupPercentage, getPriceRange, getProductCurrency, getTaxAmount, getUnitPriceAtQuantity, hasTaxInfo, isOnSale, isPaymentStatusFailure, isPaymentStatusRequiresAction, isPaymentStatusSuccess, isTaxInclusive, normalizePaymentResponse, normalizeStatusResponse, parsePrice } from './chunk-DLW3RWRK.mjs';
7
7
  export { CimplifyError, ERROR_HINTS, ErrorCode, IdempotencyMismatchError, ZERO, currencyCode, enrichError, getErrorHint, isCimplifyError, isIdempotencyMismatchError, isQuoteConflictRequiringConsent, isQuoteError, isRetryableError, isSupportedCurrency, money, moneyFromNumber } from './chunk-O3YUHLZL.mjs';
8
8
  import './chunk-3G6RQLXK.mjs';
package/dist/mock/cli.mjs CHANGED
@@ -3478,7 +3478,7 @@ function buildV1(deps) {
3478
3478
  });
3479
3479
  app.post("/activity/events", async (c) => {
3480
3480
  const body = await c.req.json().catch(() => ({}));
3481
- return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, c.var.session.id, body.events ?? []));
3481
+ return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, body.analytics_session_id ?? c.var.session.id, body.events ?? []));
3482
3482
  });
3483
3483
  app.get("/activity/state", (c) => tryRoute(c, () => deps.activity.getState(deps.defaultBusinessId, c.var.session.id)));
3484
3484
  app.get("/activity/recommendations", (c) => tryRoute(c, () => deps.activity.getRecommendations(deps.defaultBusinessId)));
@@ -6441,7 +6441,7 @@ function createActivityService(opts) {
6441
6441
  id,
6442
6442
  business_id: businessId,
6443
6443
  session_id: sessionId,
6444
- event_type: e.event_type,
6444
+ event_type: e.type,
6445
6445
  payload: e.payload ?? {},
6446
6446
  created_at: clock.iso()
6447
6447
  };
@@ -2540,7 +2540,7 @@ function buildV1(deps) {
2540
2540
  });
2541
2541
  app.post("/activity/events", async (c) => {
2542
2542
  const body = await c.req.json().catch(() => ({}));
2543
- return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, c.var.session.id, body.events ?? []));
2543
+ return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, body.analytics_session_id ?? c.var.session.id, body.events ?? []));
2544
2544
  });
2545
2545
  app.get("/activity/state", (c) => tryRoute(c, () => deps.activity.getState(deps.defaultBusinessId, c.var.session.id)));
2546
2546
  app.get("/activity/recommendations", (c) => tryRoute(c, () => deps.activity.getRecommendations(deps.defaultBusinessId)));
@@ -5503,7 +5503,7 @@ function createActivityService(opts) {
5503
5503
  id,
5504
5504
  business_id: businessId,
5505
5505
  session_id: sessionId,
5506
- event_type: e.event_type,
5506
+ event_type: e.type,
5507
5507
  payload: e.payload ?? {},
5508
5508
  created_at: clock.iso()
5509
5509
  };
@@ -2538,7 +2538,7 @@ function buildV1(deps) {
2538
2538
  });
2539
2539
  app.post("/activity/events", async (c) => {
2540
2540
  const body = await c.req.json().catch(() => ({}));
2541
- return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, c.var.session.id, body.events ?? []));
2541
+ return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, body.analytics_session_id ?? c.var.session.id, body.events ?? []));
2542
2542
  });
2543
2543
  app.get("/activity/state", (c) => tryRoute(c, () => deps.activity.getState(deps.defaultBusinessId, c.var.session.id)));
2544
2544
  app.get("/activity/recommendations", (c) => tryRoute(c, () => deps.activity.getRecommendations(deps.defaultBusinessId)));
@@ -5501,7 +5501,7 @@ function createActivityService(opts) {
5501
5501
  id,
5502
5502
  business_id: businessId,
5503
5503
  session_id: sessionId,
5504
- event_type: e.event_type,
5504
+ event_type: e.type,
5505
5505
  payload: e.payload ?? {},
5506
5506
  created_at: clock.iso()
5507
5507
  };
package/dist/mock/msw.js CHANGED
@@ -2538,7 +2538,7 @@ function buildV1(deps) {
2538
2538
  });
2539
2539
  app.post("/activity/events", async (c) => {
2540
2540
  const body = await c.req.json().catch(() => ({}));
2541
- return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, c.var.session.id, body.events ?? []));
2541
+ return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, body.analytics_session_id ?? c.var.session.id, body.events ?? []));
2542
2542
  });
2543
2543
  app.get("/activity/state", (c) => tryRoute(c, () => deps.activity.getState(deps.defaultBusinessId, c.var.session.id)));
2544
2544
  app.get("/activity/recommendations", (c) => tryRoute(c, () => deps.activity.getRecommendations(deps.defaultBusinessId)));
@@ -5501,7 +5501,7 @@ function createActivityService(opts) {
5501
5501
  id,
5502
5502
  business_id: businessId,
5503
5503
  session_id: sessionId,
5504
- event_type: e.event_type,
5504
+ event_type: e.type,
5505
5505
  payload: e.payload ?? {},
5506
5506
  created_at: clock.iso()
5507
5507
  };
package/dist/mock/msw.mjs CHANGED
@@ -2536,7 +2536,7 @@ function buildV1(deps) {
2536
2536
  });
2537
2537
  app.post("/activity/events", async (c) => {
2538
2538
  const body = await c.req.json().catch(() => ({}));
2539
- return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, c.var.session.id, body.events ?? []));
2539
+ return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, body.analytics_session_id ?? c.var.session.id, body.events ?? []));
2540
2540
  });
2541
2541
  app.get("/activity/state", (c) => tryRoute(c, () => deps.activity.getState(deps.defaultBusinessId, c.var.session.id)));
2542
2542
  app.get("/activity/recommendations", (c) => tryRoute(c, () => deps.activity.getRecommendations(deps.defaultBusinessId)));
@@ -5499,7 +5499,7 @@ function createActivityService(opts) {
5499
5499
  id,
5500
5500
  business_id: businessId,
5501
5501
  session_id: sessionId,
5502
- event_type: e.event_type,
5502
+ event_type: e.type,
5503
5503
  payload: e.payload ?? {},
5504
5504
  created_at: clock.iso()
5505
5505
  };
package/dist/react.d.mts CHANGED
@@ -2,7 +2,7 @@ import * as React$1 from 'react';
2
2
  import React__default, { ReactNode, PointerEvent, MouseEvent } from 'react';
3
3
  import { d as AdSlot, c as AdPosition, a as AdContextValue, S as SignInOptions } from './sign-in-DQlIdqsi.mjs';
4
4
  export { A as AdConfig, g as getVariantDisplayName } from './sign-in-DQlIdqsi.mjs';
5
- import { af as CimplifyClient, cb as OrderType, cw as ProcessCheckoutResult, ac as CheckoutStatus, ad as CheckoutStatusContext, a$ as EnrichedOrderItem, a_ as EnrichedOrder, w as Business, bA as Location, cN as ReorderResult, c9 as OrderStatus, bQ as Order, cy as QuoteBundleSelectionInput, cz as QuoteCompositeSelectionInput, cs as PriceQuote, cC as QuoteUiMessage, d7 as Service, r as AvailableSlot, ay as DayAvailability, aq as CustomerBooking, L as CancelBookingResult, f as ActivityStateResponse, dg as SessionMessage, c as ActivityRecommendation, aA as DeliveryFeeResponse, aD as DeliveryOptionsResponse, bd as FxRateResponse, dq as StoreCreditBalance, ds as StorefrontBootstrap, _ as ChatWidgetStarter, W as ChatMessage, Z as ChatUploadAttachment, h as AddressInfo, n as AuthenticatedData, aZ as ElementsOptions, cm as PaymentMethodInfo, aX as ElementsCheckoutResult, cv as ProcessCheckoutOptions, ai as CimplifyElements, T as ChatAttachment, bp as LineItem, dj as Staff, d2 as Room, Y as ChatReplyContext } from './client-D8XcrONA.mjs';
5
+ import { af as CimplifyClient, cb as OrderType, cw as ProcessCheckoutResult, ac as CheckoutStatus, ad as CheckoutStatusContext, a$ as EnrichedOrderItem, a_ as EnrichedOrder, w as Business, bA as Location, cN as ReorderResult, c9 as OrderStatus, bQ as Order, cy as QuoteBundleSelectionInput, cz as QuoteCompositeSelectionInput, cs as PriceQuote, cC as QuoteUiMessage, d7 as Service, r as AvailableSlot, ay as DayAvailability, aq as CustomerBooking, L as CancelBookingResult, f as ActivityStateResponse, dg as SessionMessage, c as ActivityRecommendation, aA as DeliveryFeeResponse, aD as DeliveryOptionsResponse, bd as FxRateResponse, dq as StoreCreditBalance, ds as StorefrontBootstrap, _ as ChatWidgetStarter, W as ChatMessage, Z as ChatUploadAttachment, h as AddressInfo, n as AuthenticatedData, aZ as ElementsOptions, cm as PaymentMethodInfo, aX as ElementsCheckoutResult, cv as ProcessCheckoutOptions, ai as CimplifyElements, T as ChatAttachment, bp as LineItem, dj as Staff, d2 as Room, Y as ChatReplyContext } from './client-Bx4NRdl8.mjs';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
  import { ad as CurrencyCode, aZ as Product, aQ as Pagination, V as CimplifyError, bb as ProductWithDetails, S as Category, aO as Money, U as ChosenPrice, E as BundleSelectionInput, a1 as ComponentSelectionInput, D as BundleSelectionData, aa as CompositeSelectionData, W as Collection, b6 as ProductTaxonomy, bx as TaxonomyWithChildren, b7 as ProductTimeProfile, aj as Deal, b2 as ProductDealInfo, ap as DiscountValidation, G as BundleSummary, a8 as CompositePriceResult, bs as SubscriptionWithDetails, br as SubscriptionStatus, bo as Subscription, ae as CustomAttributeDefinition, bc as PropertyFacet, b1 as ProductBillingPlan, bQ as VariantView, bK as VariantAxisWithValues, f as AddOnWithOptions, y as BundleComponentView, z as BundlePriceType, a6 as CompositeGroupView, as as DisplayCart, b3 as ProductInputField, h as AddressValue, bi as SaleInfo, bD as UpcomingSale, av as DurationUnit, t as BoundaryKind, bk as SchedulingMode, al as DepositType, af as CustomAttributeValue, b4 as ProductProperty, be as QuantityPricingTier } from './product-CeV8euw4.mjs';
8
8
  import { P as ProductWithPrice } from './price-D96h6c6L.mjs';
package/dist/react.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as React$1 from 'react';
2
2
  import React__default, { ReactNode, PointerEvent, MouseEvent } from 'react';
3
3
  import { d as AdSlot, c as AdPosition, a as AdContextValue, S as SignInOptions } from './sign-in-DQlIdqsi.js';
4
4
  export { A as AdConfig, g as getVariantDisplayName } from './sign-in-DQlIdqsi.js';
5
- import { af as CimplifyClient, cb as OrderType, cw as ProcessCheckoutResult, ac as CheckoutStatus, ad as CheckoutStatusContext, a$ as EnrichedOrderItem, a_ as EnrichedOrder, w as Business, bA as Location, cN as ReorderResult, c9 as OrderStatus, bQ as Order, cy as QuoteBundleSelectionInput, cz as QuoteCompositeSelectionInput, cs as PriceQuote, cC as QuoteUiMessage, d7 as Service, r as AvailableSlot, ay as DayAvailability, aq as CustomerBooking, L as CancelBookingResult, f as ActivityStateResponse, dg as SessionMessage, c as ActivityRecommendation, aA as DeliveryFeeResponse, aD as DeliveryOptionsResponse, bd as FxRateResponse, dq as StoreCreditBalance, ds as StorefrontBootstrap, _ as ChatWidgetStarter, W as ChatMessage, Z as ChatUploadAttachment, h as AddressInfo, n as AuthenticatedData, aZ as ElementsOptions, cm as PaymentMethodInfo, aX as ElementsCheckoutResult, cv as ProcessCheckoutOptions, ai as CimplifyElements, T as ChatAttachment, bp as LineItem, dj as Staff, d2 as Room, Y as ChatReplyContext } from './client-LPg_AUUr.js';
5
+ import { af as CimplifyClient, cb as OrderType, cw as ProcessCheckoutResult, ac as CheckoutStatus, ad as CheckoutStatusContext, a$ as EnrichedOrderItem, a_ as EnrichedOrder, w as Business, bA as Location, cN as ReorderResult, c9 as OrderStatus, bQ as Order, cy as QuoteBundleSelectionInput, cz as QuoteCompositeSelectionInput, cs as PriceQuote, cC as QuoteUiMessage, d7 as Service, r as AvailableSlot, ay as DayAvailability, aq as CustomerBooking, L as CancelBookingResult, f as ActivityStateResponse, dg as SessionMessage, c as ActivityRecommendation, aA as DeliveryFeeResponse, aD as DeliveryOptionsResponse, bd as FxRateResponse, dq as StoreCreditBalance, ds as StorefrontBootstrap, _ as ChatWidgetStarter, W as ChatMessage, Z as ChatUploadAttachment, h as AddressInfo, n as AuthenticatedData, aZ as ElementsOptions, cm as PaymentMethodInfo, aX as ElementsCheckoutResult, cv as ProcessCheckoutOptions, ai as CimplifyElements, T as ChatAttachment, bp as LineItem, dj as Staff, d2 as Room, Y as ChatReplyContext } from './client-BWdeCgmo.js';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
  import { ad as CurrencyCode, aZ as Product, aQ as Pagination, V as CimplifyError, bb as ProductWithDetails, S as Category, aO as Money, U as ChosenPrice, E as BundleSelectionInput, a1 as ComponentSelectionInput, D as BundleSelectionData, aa as CompositeSelectionData, W as Collection, b6 as ProductTaxonomy, bx as TaxonomyWithChildren, b7 as ProductTimeProfile, aj as Deal, b2 as ProductDealInfo, ap as DiscountValidation, G as BundleSummary, a8 as CompositePriceResult, bs as SubscriptionWithDetails, br as SubscriptionStatus, bo as Subscription, ae as CustomAttributeDefinition, bc as PropertyFacet, b1 as ProductBillingPlan, bQ as VariantView, bK as VariantAxisWithValues, f as AddOnWithOptions, y as BundleComponentView, z as BundlePriceType, a6 as CompositeGroupView, as as DisplayCart, b3 as ProductInputField, h as AddressValue, bi as SaleInfo, bD as UpcomingSale, av as DurationUnit, t as BoundaryKind, bk as SchedulingMode, al as DepositType, af as CustomAttributeValue, b4 as ProductProperty, be as QuantityPricingTier } from './product-CeV8euw4.js';
8
8
  import { P as ProductWithPrice } from './price-CJLfcYKd.js';
package/dist/react.js CHANGED
@@ -3,8 +3,8 @@
3
3
 
4
4
  var chunkQPRI2NII_js = require('./chunk-QPRI2NII.js');
5
5
  var chunkXREIZ56K_js = require('./chunk-XREIZ56K.js');
6
- var chunkIJI7KMTG_js = require('./chunk-IJI7KMTG.js');
7
- var chunk6JEKKL3M_js = require('./chunk-6JEKKL3M.js');
6
+ var chunkCNY2XFN4_js = require('./chunk-CNY2XFN4.js');
7
+ var chunkFWKSBF3F_js = require('./chunk-FWKSBF3F.js');
8
8
  var chunkWMEC5JWN_js = require('./chunk-WMEC5JWN.js');
9
9
  var chunkNIOUSKQQ_js = require('./chunk-NIOUSKQQ.js');
10
10
  require('./chunk-OWW5GUSB.js');
@@ -845,7 +845,7 @@ async function syncFromServer(entry) {
845
845
  return next;
846
846
  }
847
847
  function emitMutationError(entry, operation, opId, idempotencyKey, error) {
848
- entry.client.events.emit(chunkIJI7KMTG_js.MUTATION_ERROR, {
848
+ entry.client.events.emit(chunkCNY2XFN4_js.MUTATION_ERROR, {
849
849
  service: "cart",
850
850
  operation,
851
851
  opId,
@@ -885,10 +885,10 @@ function getOrCreateStore(params) {
885
885
  syncTail: Promise.resolve(),
886
886
  failedOpRemovers: /* @__PURE__ */ new Set()
887
887
  };
888
- client.events.on(chunkIJI7KMTG_js.SESSION_CLAIMED, () => {
888
+ client.events.on(chunkCNY2XFN4_js.SESSION_CLAIMED, () => {
889
889
  if (entry.initialized) void syncFromServer(entry);
890
890
  });
891
- client.events.on(chunkIJI7KMTG_js.SESSION_CLEARED, () => {
891
+ client.events.on(chunkCNY2XFN4_js.SESSION_CLEARED, () => {
892
892
  if (entry.initialized) void syncFromServer(entry);
893
893
  });
894
894
  cartStores.set(storeKey, entry);
@@ -1192,7 +1192,7 @@ var DEFAULT_COUNTRY = "US";
1192
1192
  function createDefaultClient() {
1193
1193
  const processRef = globalThis.process;
1194
1194
  const envPublicKey = processRef?.env?.NEXT_PUBLIC_CIMPLIFY_PUBLIC_KEY || "";
1195
- return chunkIJI7KMTG_js.createCimplifyClient({ publicKey: envPublicKey });
1195
+ return chunkCNY2XFN4_js.createCimplifyClient({ publicKey: envPublicKey });
1196
1196
  }
1197
1197
  function getStoredLocationId() {
1198
1198
  if (typeof window === "undefined" || !window.localStorage) {
@@ -3504,7 +3504,7 @@ function CimplifySignInButton({
3504
3504
  const onClick = async () => {
3505
3505
  if (busy || disabled || !signInOpts.clientId) return;
3506
3506
  setBusy(true);
3507
- await chunk6JEKKL3M_js.startSignIn({
3507
+ await chunkFWKSBF3F_js.startSignIn({
3508
3508
  ...signInOpts,
3509
3509
  onSuccess: () => {
3510
3510
  setBusy(false);
@@ -4972,9 +4972,9 @@ function useClientSessionEpoch(client) {
4972
4972
  const subscribe = React14.useCallback(
4973
4973
  (notify) => {
4974
4974
  const unsubscribe = [
4975
- client.events.on(chunkIJI7KMTG_js.AUTH_TOKEN_CHANGED, notify),
4976
- client.events.on(chunkIJI7KMTG_js.SESSION_CLAIMED, notify),
4977
- client.events.on(chunkIJI7KMTG_js.SESSION_CLEARED, notify)
4975
+ client.events.on(chunkCNY2XFN4_js.AUTH_TOKEN_CHANGED, notify),
4976
+ client.events.on(chunkCNY2XFN4_js.SESSION_CLAIMED, notify),
4977
+ client.events.on(chunkCNY2XFN4_js.SESSION_CLEARED, notify)
4978
4978
  ];
4979
4979
  return () => {
4980
4980
  for (const stopListening of unsubscribe) {
@@ -6304,7 +6304,7 @@ function useChat(options = {}) {
6304
6304
  const watchSessionClaims = React14.useCallback(() => {
6305
6305
  const c = clientRef.current;
6306
6306
  if (!c || claimUnsubRef.current) return;
6307
- const unsubClaimed = c.events.on(chunkIJI7KMTG_js.SESSION_CLAIMED, (event) => {
6307
+ const unsubClaimed = c.events.on(chunkCNY2XFN4_js.SESSION_CLAIMED, (event) => {
6308
6308
  setClaimedAs(event.customerName || c.support.claimedCustomerName || null);
6309
6309
  if (!openedRef.current) {
6310
6310
  void openIfExisting();
@@ -6313,7 +6313,7 @@ function useChat(options = {}) {
6313
6313
  connectWebSocket();
6314
6314
  void resyncConversation();
6315
6315
  });
6316
- const unsubCleared = c.events.on(chunkIJI7KMTG_js.SESSION_CLEARED, resetConversation);
6316
+ const unsubCleared = c.events.on(chunkCNY2XFN4_js.SESSION_CLEARED, resetConversation);
6317
6317
  claimUnsubRef.current = () => {
6318
6318
  unsubClaimed();
6319
6319
  unsubCleared();
@@ -6365,7 +6365,7 @@ function useChat(options = {}) {
6365
6365
  if (!openedRef.current) return false;
6366
6366
  }
6367
6367
  const replyTo = opts?.replyTo;
6368
- const clientId = chunk6JEKKL3M_js.generateIdempotencyKey();
6368
+ const clientId = chunkFWKSBF3F_js.generateIdempotencyKey();
6369
6369
  const localId = optimisticId(clientId);
6370
6370
  const optimistic = {
6371
6371
  id: localId,
@@ -6554,15 +6554,15 @@ function AuthElement({
6554
6554
  }, [onReady, onAuthenticated, onError]);
6555
6555
  React14.useEffect(() => {
6556
6556
  if (!elements || !containerRef.current) return;
6557
- const element = elements.create(chunk6JEKKL3M_js.ELEMENT_TYPES.AUTH, { prefillEmail });
6557
+ const element = elements.create(chunkFWKSBF3F_js.ELEMENT_TYPES.AUTH, { prefillEmail });
6558
6558
  elementRef.current = element;
6559
- element.on(chunk6JEKKL3M_js.EVENT_TYPES.READY, () => onReadyRef.current?.());
6559
+ element.on(chunkFWKSBF3F_js.EVENT_TYPES.READY, () => onReadyRef.current?.());
6560
6560
  element.on(
6561
- chunk6JEKKL3M_js.EVENT_TYPES.AUTHENTICATED,
6561
+ chunkFWKSBF3F_js.EVENT_TYPES.AUTHENTICATED,
6562
6562
  (data) => onAuthenticatedRef.current?.(data)
6563
6563
  );
6564
6564
  element.on(
6565
- chunk6JEKKL3M_js.EVENT_TYPES.ERROR,
6565
+ chunkFWKSBF3F_js.EVENT_TYPES.ERROR,
6566
6566
  (data) => onErrorRef.current?.(data)
6567
6567
  );
6568
6568
  element.mount(containerRef.current);
@@ -6591,15 +6591,15 @@ function AddressElement({
6591
6591
  }, [onReady, onChange, onError]);
6592
6592
  React14.useEffect(() => {
6593
6593
  if (!elements || !containerRef.current) return;
6594
- const element = elements.create(chunk6JEKKL3M_js.ELEMENT_TYPES.ADDRESS, { mode });
6594
+ const element = elements.create(chunkFWKSBF3F_js.ELEMENT_TYPES.ADDRESS, { mode });
6595
6595
  elementRef.current = element;
6596
- element.on(chunk6JEKKL3M_js.EVENT_TYPES.READY, () => onReadyRef.current?.());
6596
+ element.on(chunkFWKSBF3F_js.EVENT_TYPES.READY, () => onReadyRef.current?.());
6597
6597
  element.on(
6598
- chunk6JEKKL3M_js.EVENT_TYPES.CHANGE,
6598
+ chunkFWKSBF3F_js.EVENT_TYPES.CHANGE,
6599
6599
  (data) => onChangeRef.current?.(data)
6600
6600
  );
6601
6601
  element.on(
6602
- chunk6JEKKL3M_js.EVENT_TYPES.ERROR,
6602
+ chunkFWKSBF3F_js.EVENT_TYPES.ERROR,
6603
6603
  (data) => onErrorRef.current?.(data)
6604
6604
  );
6605
6605
  element.mount(containerRef.current);
@@ -6629,15 +6629,15 @@ function PaymentElement({
6629
6629
  }, [onReady, onChange, onError]);
6630
6630
  React14.useEffect(() => {
6631
6631
  if (!elements || !containerRef.current) return;
6632
- const element = elements.create(chunk6JEKKL3M_js.ELEMENT_TYPES.PAYMENT, { amount, currency });
6632
+ const element = elements.create(chunkFWKSBF3F_js.ELEMENT_TYPES.PAYMENT, { amount, currency });
6633
6633
  elementRef.current = element;
6634
- element.on(chunk6JEKKL3M_js.EVENT_TYPES.READY, () => onReadyRef.current?.());
6634
+ element.on(chunkFWKSBF3F_js.EVENT_TYPES.READY, () => onReadyRef.current?.());
6635
6635
  element.on(
6636
- chunk6JEKKL3M_js.EVENT_TYPES.CHANGE,
6636
+ chunkFWKSBF3F_js.EVENT_TYPES.CHANGE,
6637
6637
  (data) => onChangeRef.current?.(data)
6638
6638
  );
6639
6639
  element.on(
6640
- chunk6JEKKL3M_js.EVENT_TYPES.ERROR,
6640
+ chunkFWKSBF3F_js.EVENT_TYPES.ERROR,
6641
6641
  (data) => onErrorRef.current?.(data)
6642
6642
  );
6643
6643
  element.mount(containerRef.current);