@crystaldesign/widget-image-carousel 25.9.0-beta.4 → 25.9.0-beta.40

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.
@@ -1,5 +1,5 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
- import { useState, useEffect } from 'react';
2
+ import { useState, useCallback, useEffect } from 'react';
3
3
  import { useCss, useProductData, useConfiguration } from '@crystaldesign/widget-library';
4
4
  import { Swiper, SwiperSlide } from 'swiper/react';
5
5
  import { Navigation } from 'swiper/modules';
@@ -23,6 +23,9 @@ import { jsx, jsxs } from 'react/jsx-runtime';
23
23
  globalThis.process = { env:env };
24
24
  })();
25
25
 
26
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
27
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
28
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
26
29
  function useImageCarousel(_ref) {
27
30
  var productId = _ref.productId,
28
31
  settings = _ref.settings;
@@ -48,6 +51,15 @@ function useImageCarousel(_ref) {
48
51
  setSelectedProductId = _useProductData.setSelectedProductId,
49
52
  selectedProduct = _useProductData.selectedProduct,
50
53
  setProductCache = _useProductData.setProductCache;
54
+ var onClickProduct = useCallback(function (productId) {
55
+ setSelectedProductId(productId);
56
+ if (!settings.disableScrollToTop) {
57
+ window.scrollTo({
58
+ top: 0,
59
+ behavior: 'smooth'
60
+ });
61
+ }
62
+ }, [setSelectedProductId]);
51
63
  useEffect(function () {
52
64
  var loadMockups = /*#__PURE__*/function () {
53
65
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
@@ -121,36 +133,37 @@ function useImageCarousel(_ref) {
121
133
  media: media,
122
134
  error: error,
123
135
  loading: loading,
124
- setSelectedProductId: setSelectedProductId
136
+ setSelectedProductId: onClickProduct
125
137
  };
126
138
  function getWallMockups(_x, _x2) {
127
139
  return _getWallMockups.apply(this, arguments);
128
140
  }
129
141
  function _getWallMockups() {
130
142
  _getWallMockups = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(product, wallMockupFunctionType) {
131
- var _product$customData, _product$customData2;
132
- var wallMockupDivaNrs, wallMockupProducts, optCodex, optOpvPairsToSearch, media, _loop, i;
133
- return _regeneratorRuntime.wrap(function _callee2$(_context4) {
134
- while (1) switch (_context4.prev = _context4.next) {
143
+ var _product$customData, _product$customData2, _product$customData3;
144
+ var wallMockupDivaNrs, wallMockupProducts, optCodex, opvMapping, optOpvPairsToSearch, media, _loop, i;
145
+ return _regeneratorRuntime.wrap(function _callee2$(_context5) {
146
+ while (1) switch (_context5.prev = _context5.next) {
135
147
  case 0:
136
148
  wallMockupDivaNrs = (_product$customData = product.customData) === null || _product$customData === void 0 || (_product$customData = _product$customData['WALL_MOCKUP_DIVANRS']) === null || _product$customData === void 0 ? void 0 : _product$customData.value;
137
149
  if (wallMockupDivaNrs) {
138
- _context4.next = 3;
150
+ _context5.next = 3;
139
151
  break;
140
152
  }
141
- return _context4.abrupt("return", undefined);
153
+ return _context5.abrupt("return", undefined);
142
154
  case 3:
143
- _context4.next = 5;
155
+ _context5.next = 5;
144
156
  return getProductsByDivaNrs(wallMockupDivaNrs);
145
157
  case 5:
146
- wallMockupProducts = _context4.sent;
158
+ wallMockupProducts = _context5.sent;
147
159
  optCodex = (_product$customData2 = product.customData) === null || _product$customData2 === void 0 || (_product$customData2 = _product$customData2['OPT_TO_CHECK']) === null || _product$customData2 === void 0 ? void 0 : _product$customData2.value;
148
- if (optCodex) {
149
- _context4.next = 9;
160
+ opvMapping = (_product$customData3 = product.customData) === null || _product$customData3 === void 0 || (_product$customData3 = _product$customData3['MANUAL_OPV_MAPPING']) === null || _product$customData3 === void 0 ? void 0 : _product$customData3.value;
161
+ if (!(!optCodex && !opvMapping)) {
162
+ _context5.next = 10;
150
163
  break;
151
164
  }
152
- throw new Error('OPT_TO_CHECK is not set- ProductId: ' + product._id);
153
- case 9:
165
+ throw new Error('OPT_TO_CHECK or MANUAL_OPV_MAPPING is not set- ProductId: ' + product._id);
166
+ case 10:
154
167
  optOpvPairsToSearch = [];
155
168
  optCodex.forEach(function (opt) {
156
169
  var _product$configuratio;
@@ -158,30 +171,32 @@ function useImageCarousel(_ref) {
158
171
  });
159
172
  media = [];
160
173
  _loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
161
- var currentDivaNr, currentMockupVariants, _loop2, j;
162
- return _regeneratorRuntime.wrap(function _loop$(_context3) {
163
- while (1) switch (_context3.prev = _context3.next) {
174
+ var currentDivaNr, currentMockupVariants, foundMedia, _loop2, j, currentProducts, _iterator, _step, _loop3;
175
+ return _regeneratorRuntime.wrap(function _loop$(_context4) {
176
+ while (1) switch (_context4.prev = _context4.next) {
164
177
  case 0:
165
178
  currentDivaNr = wallMockupDivaNrs[i];
166
179
  currentMockupVariants = wallMockupProducts.data.filter(function (wmp) {
167
180
  return wmp.divaNr === currentDivaNr && wmp.baseProduct === false;
168
181
  });
182
+ foundMedia = false;
169
183
  _loop2 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop2() {
170
184
  var variant, allMatch, _variant$media, mediaUrl;
171
- return _regeneratorRuntime.wrap(function _loop2$(_context2) {
172
- while (1) switch (_context2.prev = _context2.next) {
185
+ return _regeneratorRuntime.wrap(function _loop2$(_context3) {
186
+ while (1) switch (_context3.prev = _context3.next) {
173
187
  case 0:
174
188
  variant = currentMockupVariants[j]; // check if all opt-opv-pairs match
175
189
  allMatch = optCodex.every(function (opt) {
176
- var _product$configuratio2, _variant$configuratio;
177
- var mainProductOPV = (_product$configuratio2 = product.configuration) === null || _product$configuratio2 === void 0 || (_product$configuratio2 = _product$configuratio2.OrderSets[0].Variant) === null || _product$configuratio2 === void 0 ? void 0 : _product$configuratio2[opt];
190
+ var _product$configuratio3, _variant$configuratio;
191
+ var mainProductOPV = (_product$configuratio3 = product.configuration) === null || _product$configuratio3 === void 0 || (_product$configuratio3 = _product$configuratio3.OrderSets[0].Variant) === null || _product$configuratio3 === void 0 ? void 0 : _product$configuratio3[opt];
178
192
  var variantOPV = (_variant$configuratio = variant.configuration) === null || _variant$configuratio === void 0 || (_variant$configuratio = _variant$configuratio.OrderSets[0].Variant) === null || _variant$configuratio === void 0 ? void 0 : _variant$configuratio[opt];
179
193
  return variantOPV === mainProductOPV;
180
194
  });
181
195
  if (!allMatch) {
182
- _context2.next = 8;
196
+ _context3.next = 8;
183
197
  break;
184
198
  }
199
+ foundMedia = true;
185
200
  setProductCache(variant._id, wallMockupProducts.data.filter(function (wmp) {
186
201
  return wmp.divaNr === currentDivaNr;
187
202
  }));
@@ -192,90 +207,162 @@ function useImageCarousel(_ref) {
192
207
  url: mediaUrl,
193
208
  productId: variant._id
194
209
  });
195
- return _context2.abrupt("return", 1);
210
+ return _context3.abrupt("return", 1);
196
211
  case 8:
197
212
  case "end":
198
- return _context2.stop();
213
+ return _context3.stop();
199
214
  }
200
215
  }, _loop2);
201
216
  });
202
217
  j = 0;
203
218
  case 5:
204
219
  if (!(j < currentMockupVariants.length)) {
205
- _context3.next = 12;
220
+ _context4.next = 12;
206
221
  break;
207
222
  }
208
- return _context3.delegateYield(_loop2(), "t0", 7);
223
+ return _context4.delegateYield(_loop2(), "t0", 7);
209
224
  case 7:
210
- if (!_context3.t0) {
211
- _context3.next = 9;
225
+ if (!_context4.t0) {
226
+ _context4.next = 9;
212
227
  break;
213
228
  }
214
- return _context3.abrupt("break", 12);
229
+ return _context4.abrupt("break", 12);
215
230
  case 9:
216
231
  j++;
217
- _context3.next = 5;
232
+ _context4.next = 5;
218
233
  break;
219
234
  case 12:
235
+ if (foundMedia) {
236
+ _context4.next = 30;
237
+ break;
238
+ }
239
+ //Search opv mapping
240
+ currentProducts = wallMockupProducts.data.filter(function (wmp) {
241
+ return wmp.divaNr === currentDivaNr;
242
+ });
243
+ _iterator = _createForOfIteratorHelper(opvMapping);
244
+ _context4.prev = 15;
245
+ _loop3 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop3() {
246
+ var _product$configuratio2;
247
+ var opvMappingItem, sourceOPT, sourceOPV, targetOPT, targetOPV, sourceProductOPV, targetProduct, _targetProduct$media, mediaUrl;
248
+ return _regeneratorRuntime.wrap(function _loop3$(_context2) {
249
+ while (1) switch (_context2.prev = _context2.next) {
250
+ case 0:
251
+ opvMappingItem = _step.value;
252
+ sourceOPT = opvMappingItem['SOURCE'].split('#')[0];
253
+ sourceOPV = opvMappingItem['SOURCE'].split('#')[1];
254
+ targetOPT = opvMappingItem['TARGET'].split('#')[0];
255
+ targetOPV = opvMappingItem['TARGET'].split('#')[1];
256
+ sourceProductOPV = (_product$configuratio2 = product.configuration) === null || _product$configuratio2 === void 0 || (_product$configuratio2 = _product$configuratio2.OrderSets[0].Variant) === null || _product$configuratio2 === void 0 ? void 0 : _product$configuratio2[sourceOPT];
257
+ if (sourceProductOPV === sourceOPV) {
258
+ targetProduct = currentProducts.find(function (p) {
259
+ var _p$configuration, _p$configuration2;
260
+ return ((_p$configuration = p.configuration) === null || _p$configuration === void 0 || (_p$configuration = _p$configuration.OrderSets[0].Variant) === null || _p$configuration === void 0 ? void 0 : _p$configuration[targetOPT]) === targetOPV || hasMatchingOrderLine((_p$configuration2 = p.configuration) === null || _p$configuration2 === void 0 ? void 0 : _p$configuration2.OrderSets[0], targetOPT, targetOPV);
261
+ });
262
+ if (targetProduct) {
263
+ mediaUrl = targetProduct === null || targetProduct === void 0 || (_targetProduct$media = targetProduct.media) === null || _targetProduct$media === void 0 || (_targetProduct$media = _targetProduct$media.find(function (m) {
264
+ return m.functionType === wallMockupFunctionType;
265
+ })) === null || _targetProduct$media === void 0 ? void 0 : _targetProduct$media.url;
266
+ media.push({
267
+ url: mediaUrl,
268
+ productId: targetProduct._id
269
+ });
270
+ }
271
+ }
272
+ case 7:
273
+ case "end":
274
+ return _context2.stop();
275
+ }
276
+ }, _loop3);
277
+ });
278
+ _iterator.s();
279
+ case 18:
280
+ if ((_step = _iterator.n()).done) {
281
+ _context4.next = 22;
282
+ break;
283
+ }
284
+ return _context4.delegateYield(_loop3(), "t1", 20);
285
+ case 20:
286
+ _context4.next = 18;
287
+ break;
288
+ case 22:
289
+ _context4.next = 27;
290
+ break;
291
+ case 24:
292
+ _context4.prev = 24;
293
+ _context4.t2 = _context4["catch"](15);
294
+ _iterator.e(_context4.t2);
295
+ case 27:
296
+ _context4.prev = 27;
297
+ _iterator.f();
298
+ return _context4.finish(27);
299
+ case 30:
220
300
  case "end":
221
- return _context3.stop();
301
+ return _context4.stop();
222
302
  }
223
- }, _loop);
303
+ }, _loop, null, [[15, 24, 27, 30]]);
224
304
  });
225
305
  i = 0;
226
- case 14:
306
+ case 15:
227
307
  if (!(i < wallMockupDivaNrs.length)) {
228
- _context4.next = 19;
308
+ _context5.next = 20;
229
309
  break;
230
310
  }
231
- return _context4.delegateYield(_loop(), "t0", 16);
232
- case 16:
311
+ return _context5.delegateYield(_loop(), "t0", 17);
312
+ case 17:
233
313
  i++;
234
- _context4.next = 14;
314
+ _context5.next = 15;
235
315
  break;
236
- case 19:
237
- return _context4.abrupt("return", media);
238
316
  case 20:
317
+ return _context5.abrupt("return", media);
318
+ case 21:
239
319
  case "end":
240
- return _context4.stop();
320
+ return _context5.stop();
241
321
  }
242
322
  }, _callee2);
243
323
  }));
244
324
  return _getWallMockups.apply(this, arguments);
245
325
  }
326
+ function hasMatchingOrderLine(orderSet, targetOPT, targetOPV) {
327
+ return orderSet.OrderLines.some(function (line) {
328
+ return line.VariantBasketDatas.some(function (variant) {
329
+ return 'OPT' + variant.OPT === targetOPT && 'OPV' + variant.OPV === targetOPV;
330
+ });
331
+ });
332
+ }
246
333
  function getSimilarProductMedia(_x3, _x4, _x5) {
247
334
  return _getSimilarProductMedia.apply(this, arguments);
248
335
  }
249
336
  function _getSimilarProductMedia() {
250
337
  _getSimilarProductMedia = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(product, mediaFunctionType, description) {
251
- var _product$customData3;
338
+ var _product$customData4;
252
339
  var similarProductsDivaNr, similarProducts, media, i, _similarProduct$media, _similarProduct$media2, similarProduct, mediaUrl, desc, _similarProduct$descr;
253
- return _regeneratorRuntime.wrap(function _callee4$(_context6) {
254
- while (1) switch (_context6.prev = _context6.next) {
340
+ return _regeneratorRuntime.wrap(function _callee4$(_context7) {
341
+ while (1) switch (_context7.prev = _context7.next) {
255
342
  case 0:
256
- similarProductsDivaNr = (_product$customData3 = product.customData) === null || _product$customData3 === void 0 || (_product$customData3 = _product$customData3['SIMILAR_PRODUCTS_DIVANRS']) === null || _product$customData3 === void 0 ? void 0 : _product$customData3.value;
343
+ similarProductsDivaNr = (_product$customData4 = product.customData) === null || _product$customData4 === void 0 || (_product$customData4 = _product$customData4['SIMILAR_PRODUCTS_DIVANRS']) === null || _product$customData4 === void 0 ? void 0 : _product$customData4.value;
257
344
  if (!(!Array.isArray(similarProductsDivaNr) || similarProductsDivaNr.length === 0)) {
258
- _context6.next = 3;
345
+ _context7.next = 3;
259
346
  break;
260
347
  }
261
- return _context6.abrupt("return", []);
348
+ return _context7.abrupt("return", []);
262
349
  case 3:
263
- _context6.next = 5;
350
+ _context7.next = 5;
264
351
  return Promise.all(similarProductsDivaNr.map(/*#__PURE__*/function () {
265
352
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(divaNr) {
266
353
  var _divaNrParts$;
267
354
  var divaNrParts;
268
- return _regeneratorRuntime.wrap(function _callee3$(_context5) {
269
- while (1) switch (_context5.prev = _context5.next) {
355
+ return _regeneratorRuntime.wrap(function _callee3$(_context6) {
356
+ while (1) switch (_context6.prev = _context6.next) {
270
357
  case 0:
271
358
  divaNrParts = divaNr.split('-');
272
- _context5.next = 3;
359
+ _context6.next = 3;
273
360
  return getProductByDivaNrAndVariantId('DIVA-' + divaNrParts[1], (_divaNrParts$ = divaNrParts[2]) !== null && _divaNrParts$ !== void 0 ? _divaNrParts$ : undefined);
274
361
  case 3:
275
- return _context5.abrupt("return", _context5.sent);
362
+ return _context6.abrupt("return", _context6.sent);
276
363
  case 4:
277
364
  case "end":
278
- return _context5.stop();
365
+ return _context6.stop();
279
366
  }
280
367
  }, _callee3);
281
368
  }));
@@ -284,11 +371,11 @@ function useImageCarousel(_ref) {
284
371
  };
285
372
  }()));
286
373
  case 5:
287
- similarProducts = _context6.sent;
374
+ similarProducts = _context7.sent;
288
375
  media = [];
289
376
  for (i = 0; i < similarProducts.length; i++) {
290
377
  similarProduct = similarProducts[i].data[0];
291
- setProductCache(similarProduct._id, similarProduct);
378
+ setProductCache('SIMILAR_PRODUCTS_' + similarProduct._id, similarProduct);
292
379
  mediaUrl = (_similarProduct$media = similarProduct === null || similarProduct === void 0 || (_similarProduct$media2 = similarProduct.media) === null || _similarProduct$media2 === void 0 || (_similarProduct$media2 = _similarProduct$media2.find(function (m) {
293
380
  return m.functionType === mediaFunctionType;
294
381
  })) === null || _similarProduct$media2 === void 0 ? void 0 : _similarProduct$media2.url) !== null && _similarProduct$media !== void 0 ? _similarProduct$media : similarProduct.image;
@@ -304,10 +391,10 @@ function useImageCarousel(_ref) {
304
391
  });
305
392
  }
306
393
  }
307
- return _context6.abrupt("return", media);
394
+ return _context7.abrupt("return", media);
308
395
  case 9:
309
396
  case "end":
310
- return _context6.stop();
397
+ return _context7.stop();
311
398
  }
312
399
  }, _callee4);
313
400
  }));
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { WithDivaMock } from '@crystaldesign/diva-core';
3
+ import { ImageCarouselProps } from '../../types';
4
+ declare const meta: Meta<WithDivaMock<ImageCarouselProps>>;
5
+ export default meta;
6
+ type Story = StoryObj<WithDivaMock<ImageCarouselProps>>;
7
+ export declare const ImageCarousel: Story;
8
+ //# sourceMappingURL=kirchner-prod.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kirchner-prod.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/stories/WallMockup/kirchner-prod.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAqB,MAAM,0BAA0B,CAAC;AAG3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAIjD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAmBhD,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAuCxD,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAC"}
@@ -9,5 +9,6 @@ export interface Configuration extends BaseConfiguration {
9
9
  mediaFunctionType?: string;
10
10
  description?: string;
11
11
  sliderProp?: SwiperProps;
12
+ disableScrollToTop?: boolean;
12
13
  }
13
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,aAAa,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACtD,IAAI,EAAE,cAAc,GAAG,kBAAkB,CAAC;IAC1C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,WAAW,CAAC;CAC1B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,aAAa,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACtD,IAAI,EAAE,cAAc,GAAG,kBAAkB,CAAC;IAC1C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B"}
@@ -8,7 +8,7 @@ export declare function useImageCarousel({ productId, settings }: ImageCarouselP
8
8
  media: Media[];
9
9
  error: Error | undefined;
10
10
  loading: boolean;
11
- setSelectedProductId: (productId: string) => Promise<void>;
11
+ setSelectedProductId: (productId: string) => void;
12
12
  };
13
13
  export {};
14
14
  //# sourceMappingURL=useImageCarousel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useImageCarousel.d.ts","sourceRoot":"","sources":["../../../../src/useImageCarousel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAM7C,UAAU,KAAK;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,kBAAkB;;;;;EAkI3E"}
1
+ {"version":3,"file":"useImageCarousel.d.ts","sourceRoot":"","sources":["../../../../src/useImageCarousel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAM7C,UAAU,KAAK;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,kBAAkB;;;;sCAa5D,MAAM;EA6JrB"}