@orangelogic/design-system 2.100.0 → 2.102.0

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 (70) hide show
  1. package/library/chunks/{asset.CKtT9q4k.js → asset.CtL7ACp7.js} +1 -1
  2. package/library/chunks/{color-swatch-group.Cfn8EGfK.js → color-swatch-group.C6c53two.js} +3 -3
  3. package/library/chunks/{color-swatch.BUwHT5Cx.js → color-swatch.GsiCvj1n.js} +1 -1
  4. package/library/chunks/{confirm-popover.BMGnWZnC.js → confirm-popover.PiSCZY6-.js} +1 -1
  5. package/library/chunks/debounce.CIEhztrj.js +97 -0
  6. package/library/chunks/{dialog._xvAZqaE.js → dialog.BTU6B2_4.js} +9 -10
  7. package/library/chunks/event.BeKOsirN.js +46 -0
  8. package/library/chunks/{file-on-demand.CIjtKP0H.js → file-on-demand.DCxabV6T.js} +4 -4
  9. package/library/chunks/{folder-select.D4Ft0qRc.js → folder-select.BM7yeAsU.js} +2 -2
  10. package/library/chunks/{image.BnB-fJ8g.js → image.D207g003.js} +1 -1
  11. package/library/chunks/{list-editor.B_mnvgtZ.js → list-editor.CMakbQyU.js} +182 -184
  12. package/library/chunks/{table.D4HIzy47.js → table.Cm-ynClk.js} +977 -962
  13. package/library/chunks/transformation.Dir8s_wm.js +151 -0
  14. package/library/chunks/{tree.Hh8WCK7l.js → tree.DAiWVFiY.js} +91 -80
  15. package/library/components/alert.js +7 -8
  16. package/library/components/asset-link-format.js +867 -672
  17. package/library/components/atoms.js +4 -4
  18. package/library/components/color-picker.js +1 -1
  19. package/library/components/color-swatch-group.js +4 -4
  20. package/library/components/color-swatch.js +2 -2
  21. package/library/components/confirm-popover.js +2 -2
  22. package/library/components/details.js +1 -2
  23. package/library/components/dialog.js +3 -4
  24. package/library/components/drawer.js +83 -73
  25. package/library/components/dropdown.js +7 -8
  26. package/library/components/dynamic-select.js +1 -1
  27. package/library/components/element-clamp.js +1 -2
  28. package/library/components/file-on-demand.js +5 -5
  29. package/library/components/folder-select.js +2 -2
  30. package/library/components/image.js +2 -2
  31. package/library/components/line-clamp.js +4 -5
  32. package/library/components/list-editor.js +4 -4
  33. package/library/components/masonry.js +1 -1
  34. package/library/components/molecules.js +4 -4
  35. package/library/components/organisms.js +2 -2
  36. package/library/components/popup.js +73 -74
  37. package/library/components/range.js +1 -1
  38. package/library/components/select.js +1 -2
  39. package/library/components/share-option-list.js +1 -1
  40. package/library/components/sidebar.js +6 -6
  41. package/library/components/table.js +1 -1
  42. package/library/components/tag.js +44 -31
  43. package/library/components/tooltip.js +1 -2
  44. package/library/components/tree-item.js +4 -3
  45. package/library/components/tree.js +1 -1
  46. package/library/components/types.js +760 -765
  47. package/library/components/video.js +2 -2
  48. package/library/package.json +1 -1
  49. package/library/packages/atoms/src/components/drawer/drawer.d.ts +8 -0
  50. package/library/packages/atoms/src/components/table/components/table-toolbar/table-toolbar.d.ts +11 -1
  51. package/library/packages/atoms/src/components/tag/tag.d.ts +11 -1
  52. package/library/packages/atoms/src/components/tree-item/tree-item.d.ts +10 -0
  53. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +8 -0
  54. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +4 -0
  55. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-quality/asset-link-format-quality.d.ts +4 -0
  56. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-resize/asset-link-format-resize.d.ts +4 -0
  57. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-rotation/asset-link-format-rotation.d.ts +4 -0
  58. package/library/packages/organisms/src/content-builder/styleController.d.ts +2 -1
  59. package/library/packages/types/src/asset-link-format.d.ts +2 -0
  60. package/library/packages/types/src/content-builder.d.ts +5 -1
  61. package/library/packages/types/src/tag.d.ts +1 -0
  62. package/library/packages/utils/src/transformation/transformation.d.ts +4 -1
  63. package/library/react-web-component.d.ts +19 -3
  64. package/library/utils.js +138 -140
  65. package/package.json +1 -1
  66. package/library/chunks/animate.El-MpOws.js +0 -37
  67. package/library/chunks/browser.BHOCIF_A.js +0 -84
  68. package/library/chunks/debounce.DaHuiSGU.js +0 -15
  69. package/library/chunks/event.mFzZi4sr.js +0 -11
  70. package/library/chunks/transformation.Cqz3hPaQ.js +0 -144
package/library/utils.js CHANGED
@@ -1,36 +1,34 @@
1
1
  import { a as D } from "./chunks/url.Cj9cIQXJ.js";
2
2
  import { R as st, U as rt, c as ot, b as at, i as nt, t as it } from "./chunks/url.Cj9cIQXJ.js";
3
3
  import { e as ct, f as ut, g as ft, c as ht, i as mt, a as dt, d as gt, m as pt, b as wt, r as xt, t as Ct } from "./chunks/toast.D3AW3RWv.js";
4
- import { e as Dt, a as At, f as Tt, g as yt, d as St, b as Mt, c as Lt, i as It, p as vt, s as Rt } from "./chunks/browser.BHOCIF_A.js";
5
- import { d as bt, C as kt, e as Ft, H as Ot, R as Nt, c as Xt, h as Pt, f as _t, g as Bt, l as Ht, p as Ut, a as Gt, b as Yt } from "./chunks/color.vLD2sNTs.js";
6
- import { a as zt, b as qt, g as Zt } from "./chunks/modal.U1QltQKe.js";
7
- import { a as Jt, p as $t, c as Qt, b as Kt, s as te } from "./chunks/animate.El-MpOws.js";
8
- import { t as se } from "./chunks/converters.DkDtLstb.js";
9
- import { c as oe } from "./chunks/custom-element.L4WJXn1j.js";
10
- import { d as ne } from "./chunks/debounce.DaHuiSGU.js";
4
+ import { d as Dt, h as At, a as Tt, f as yt, g as St, e as Mt, b as Lt, c as It, i as vt, p as Rt, s as Vt } from "./chunks/debounce.CIEhztrj.js";
5
+ import { d as kt, C as Ft, e as Ot, H as Nt, R as Xt, c as Pt, h as _t, f as Bt, g as Ht, l as Ut, p as Gt, a as Yt, b as Wt } from "./chunks/color.vLD2sNTs.js";
6
+ import { a as qt, b as Zt, g as jt } from "./chunks/modal.U1QltQKe.js";
7
+ import { a as $t, p as Qt, c as Kt, b as te, s as ee, w as se } from "./chunks/event.BeKOsirN.js";
8
+ import { t as oe } from "./chunks/converters.DkDtLstb.js";
9
+ import { c as ne } from "./chunks/custom-element.L4WJXn1j.js";
11
10
  import { d as le } from "./chunks/default-value.COZopaet.js";
12
11
  import { d as ue } from "./chunks/drag.DXEXVXPv.js";
13
- import { w as he } from "./chunks/event.mFzZi4sr.js";
14
12
  import { f as A } from "./chunks/form.Ch1cwYzO.js";
15
- import { F as de, c as ge, v as pe, a as we } from "./chunks/form.Ch1cwYzO.js";
16
- import { L as Ce, r as Ee } from "./chunks/i18n.DK1uYlJT.js";
17
- import { c as Ae } from "./chunks/math.DqTA6ya4.js";
18
- import { g as ye, l as Se, s as Me, u as Le } from "./chunks/scroll.xtO5yojm.js";
13
+ import { F as he, c as me, v as de, a as ge } from "./chunks/form.Ch1cwYzO.js";
14
+ import { L as we, r as xe } from "./chunks/i18n.DK1uYlJT.js";
15
+ import { c as Ee } from "./chunks/math.DqTA6ya4.js";
16
+ import { g as Ae, l as Te, s as ye, u as Se } from "./chunks/scroll.xtO5yojm.js";
19
17
  import { j as x } from "./chunks/dom.0RpWet6y.js";
20
- import { c as ve, d as Re, k as Ve, a as be, g as ke, h as Fe, b as Oe, f as Ne, i as Xe, e as Pe, l as _e, s as Be } from "./chunks/dom.0RpWet6y.js";
21
- import { H as Ue, a as Ge, g as Ye } from "./chunks/slot.j5oheLJC.js";
22
- import { g as ze, a as qe } from "./chunks/tabbable.CcMz3mIL.js";
23
- import { i as je } from "./chunks/user-agent.D9aPuOyL.js";
24
- import { w as $e } from "./chunks/watch.BCJD77bD.js";
25
- import { f as Ke } from "./chunks/content-builder.CcgZciZN.js";
26
- import { c as es, f as ss, e as rs, b as os, g as as, d as ns, i as is, r as ls, a as cs } from "./chunks/image.9qwbjGNb.js";
27
- import { a as fs, b as hs, c as ms, e as ds, d as gs, f as ps, g as ws, r as xs, s as Cs } from "./chunks/number.B4PQLJIg.js";
28
- import { s as Ds } from "./chunks/parse.Cu5nBDTb.js";
29
- import { g as Ts, a as ys } from "./chunks/responsive.Oz9HWjyQ.js";
30
- import { c as Ms, b as Ls, e as Is, f as vs, l as Rs, g as Vs, j as bs, p as ks, v as Fs, r as Os, a as Ns, d as Xs, s as Ps, k as _s, o as Bs, m as Hs, n as Us, q as Gs, t as Ys, u as Ws } from "./chunks/string.DUgD4c9f.js";
31
- import { g as qs, a as Zs } from "./chunks/template.ClovJacp.js";
32
- import { c as Js, a as $s, f as Qs, g as Ks } from "./chunks/time.BiQnh9wt.js";
33
- import { b as er } from "./chunks/transformation.Cqz3hPaQ.js";
18
+ import { c as Le, d as Ie, k as ve, a as Re, g as Ve, h as be, b as ke, f as Fe, i as Oe, e as Ne, l as Xe, s as Pe } from "./chunks/dom.0RpWet6y.js";
19
+ import { H as Be, a as He, g as Ue } from "./chunks/slot.j5oheLJC.js";
20
+ import { g as Ye, a as We } from "./chunks/tabbable.CcMz3mIL.js";
21
+ import { i as qe } from "./chunks/user-agent.D9aPuOyL.js";
22
+ import { w as je } from "./chunks/watch.BCJD77bD.js";
23
+ import { f as $e } from "./chunks/content-builder.CcgZciZN.js";
24
+ import { c as Ke, f as ts, e as es, b as ss, g as rs, d as os, i as as, r as ns, a as is } from "./chunks/image.9qwbjGNb.js";
25
+ import { a as cs, b as us, c as fs, e as hs, d as ms, f as ds, g as gs, r as ps, s as ws } from "./chunks/number.B4PQLJIg.js";
26
+ import { s as Cs } from "./chunks/parse.Cu5nBDTb.js";
27
+ import { g as Ds, a as As } from "./chunks/responsive.Oz9HWjyQ.js";
28
+ import { c as ys, b as Ss, e as Ms, f as Ls, l as Is, g as vs, j as Rs, p as Vs, v as bs, r as ks, a as Fs, d as Os, s as Ns, k as Xs, o as Ps, m as _s, n as Bs, q as Hs, t as Us, u as Gs } from "./chunks/string.DUgD4c9f.js";
29
+ import { g as Ws, a as zs } from "./chunks/template.ClovJacp.js";
30
+ import { c as Zs, a as js, f as Js, g as $s } from "./chunks/time.BiQnh9wt.js";
31
+ import { b as Ks } from "./chunks/transformation.Dir8s_wm.js";
34
32
  function b(t) {
35
33
  if (!this.ownerDocument.defaultView?.Matrix3 || !t)
36
34
  return;
@@ -352,114 +350,114 @@ function K({
352
350
  return o > t && (o = t / 2), o;
353
351
  }
354
352
  export {
355
- bt as CMYK_VALIDATION_REGEX,
356
- kt as ColorType,
353
+ kt as CMYK_VALIDATION_REGEX,
354
+ Ft as ColorType,
357
355
  X as CortexPopupController,
358
356
  P as DragScroll,
359
- de as FormControlController,
360
- Ft as HEX_ALPHA_VALIDATION_REGEX,
361
- Ot as HEX_VALIDATION_REGEX,
362
- Ue as HasSlotController,
357
+ he as FormControlController,
358
+ Ot as HEX_ALPHA_VALIDATION_REGEX,
359
+ Nt as HEX_VALIDATION_REGEX,
360
+ Be as HasSlotController,
363
361
  Y as HistoryManager,
364
362
  S as KeyboardKey,
365
- Ce as LocalizeController,
363
+ we as LocalizeController,
366
364
  M as PRECISION,
367
365
  st as RELATIVE_URL_REGEX,
368
- Nt as RGB_VALIDATION_REGEX,
366
+ Xt as RGB_VALIDATION_REGEX,
369
367
  rt as URL_DOMAIN_VALIDATION_REGEX,
370
368
  ot as URL_PROTOCOL_VALIDATION_REGEX,
371
369
  at as URL_VALIDATION_REGEX,
372
- zt as activeElements,
370
+ qt as activeElements,
373
371
  ct as adjustRelativeValues,
374
- Jt as animateTo,
372
+ $t as animateTo,
375
373
  D as appendProtocol,
376
- er as buildTransformationString,
377
- es as calculateAspectRatioFit,
378
- Ae as clamp,
379
- ss as cleanImageFileName,
380
- Js as clearZeroDurationParts,
381
- Xt as convertColor,
382
- fs as convertDataUnits,
383
- hs as convertDurationToMilliseconds,
384
- ms as convertPixelsToAspectRatio,
385
- rs as convertSrcToBlob,
386
- os as cropImage,
387
- ve as cssValueToPx,
388
- oe as customElement,
389
- ge as customErrorValidityState,
390
- ne as debounce,
374
+ Ks as buildTransformationString,
375
+ Ke as calculateAspectRatioFit,
376
+ Ee as clamp,
377
+ ts as cleanImageFileName,
378
+ Zs as clearZeroDurationParts,
379
+ Pt as convertColor,
380
+ cs as convertDataUnits,
381
+ us as convertDurationToMilliseconds,
382
+ fs as convertPixelsToAspectRatio,
383
+ es as convertSrcToBlob,
384
+ ss as cropImage,
385
+ Le as cssValueToPx,
386
+ ne as customElement,
387
+ me as customErrorValidityState,
388
+ Dt as debounce,
391
389
  le as defaultValue,
392
390
  N as downloadAsset,
393
391
  ue as drag,
394
- Ms as emptyToSpace,
395
- Pt as extractColor,
396
- Ls as extractExtension,
392
+ ys as emptyToSpace,
393
+ _t as extractColor,
394
+ Ss as extractExtension,
397
395
  Q as extractFrames,
398
- Is as extractRootData,
399
- ds as extractValueAndUnit,
400
- Ke as fetchCortexApi,
401
- Dt as findAncestorWithBuggyStyle,
402
- At as findContainingBlock,
403
- Tt as findCuttingAncestor,
396
+ Ms as extractRootData,
397
+ hs as extractValueAndUnit,
398
+ $e as fetchCortexApi,
399
+ At as findAncestorWithBuggyStyle,
400
+ Tt as findContainingBlock,
401
+ yt as findCuttingAncestor,
404
402
  L as findFrameByColAndRow,
405
403
  ut as findIndexByProp,
406
404
  A as formCollections,
407
- gs as formatAspectRatioString,
408
- $s as formatDurationPartsManually,
409
- ps as formatNumberWithGrouping,
410
- vs as formatSecondsToTime,
411
- Rs as formatTimeToSeconds,
412
- Qs as formatWithIntlDurationFormat,
413
- ws as gcd,
414
- Re as getActiveElement,
415
- qt as getActiveModals,
416
- Ts as getBreakpointsFromCSS,
405
+ ms as formatAspectRatioString,
406
+ js as formatDurationPartsManually,
407
+ ds as formatNumberWithGrouping,
408
+ Ls as formatSecondsToTime,
409
+ Is as formatTimeToSeconds,
410
+ Js as formatWithIntlDurationFormat,
411
+ gs as gcd,
412
+ Ie as getActiveElement,
413
+ Zt as getActiveModals,
414
+ Ds as getBreakpointsFromCSS,
417
415
  H as getBrowserFontVariants,
418
- _t as getColorType,
419
- as as getContainedImageSize,
420
- Ve as getCortexPopupLayer,
416
+ Bt as getColorType,
417
+ rs as getContainedImageSize,
418
+ ve as getCortexPopupLayer,
421
419
  x as getCurrentZIndex,
422
- Zt as getDeepestActiveElement,
423
- ys as getDeviceType,
424
- Ks as getDurationPartsByUnitsFormat,
425
- be as getElementFromHTMLString,
426
- ke as getElementFromTemplate,
420
+ jt as getDeepestActiveElement,
421
+ As as getDeviceType,
422
+ $s as getDurationPartsByUnitsFormat,
423
+ Re as getElementFromHTMLString,
424
+ Ve as getElementFromTemplate,
427
425
  y as getFormControls,
428
- qs as getHighlightedTitle,
429
- Zs as getHighlightedTitleHtml,
430
- Ge as getInnerHTML,
426
+ Ws as getHighlightedTitle,
427
+ zs as getHighlightedTitleHtml,
428
+ He as getInnerHTML,
431
429
  K as getInterval,
432
- Bt as getLightDarkCssString,
433
- ns as getNaturalWidthHeight,
434
- Fe as getNeededPaddingForBoxShadow,
435
- yt as getNextAncestor,
436
- ye as getOffset,
437
- Oe as getRelativeClickPercentage,
438
- Vs as getRootIDString,
439
- ze as getTabbableBoundary,
440
- qe as getTabbableElements,
441
- Ye as getTextContent,
430
+ Ht as getLightDarkCssString,
431
+ os as getNaturalWidthHeight,
432
+ be as getNeededPaddingForBoxShadow,
433
+ St as getNextAncestor,
434
+ Ae as getOffset,
435
+ ke as getRelativeClickPercentage,
436
+ vs as getRootIDString,
437
+ Ye as getTabbableBoundary,
438
+ We as getTabbableElements,
439
+ Ue as getTextContent,
442
440
  ft as groupBy,
443
441
  ht as insertAtIndex,
444
442
  $ as insertFrameToCache,
445
443
  mt as insertMultipleAtIndex,
446
- St as isChrome,
447
- je as isCortexAdobePlugin,
448
- Ne as isDomElement,
449
- Xe as isElementInHorizontalView,
450
- Mt as isFirefox,
444
+ Mt as isChrome,
445
+ qe as isCortexAdobePlugin,
446
+ Fe as isDomElement,
447
+ Oe as isElementInHorizontalView,
448
+ Lt as isFirefox,
451
449
  B as isFontFamilyAvailable,
452
450
  G as isFormInteracted,
453
- bs as isGalleryItemCardType,
454
- Lt as isIOS,
455
- Pe as isInElement,
451
+ Rs as isGalleryItemCardType,
452
+ It as isIOS,
453
+ Ne as isInElement,
456
454
  _ as isModKey,
457
- It as isSafari,
458
- is as isSaveSrcValid,
455
+ vt as isSafari,
456
+ as as isSaveSrcValid,
459
457
  nt as isValidUrl,
460
- _e as loadScript,
461
- Se as lockBodyScrolling,
462
- Ht as luminanceTextColor,
458
+ Xe as loadScript,
459
+ Te as lockBodyScrolling,
460
+ Ut as luminanceTextColor,
463
461
  dt as moveMultipleToIndex,
464
462
  gt as moveToIndex,
465
463
  pt as multiSelectTo,
@@ -467,53 +465,53 @@ export {
467
465
  b as openAssetOverview,
468
466
  k as openFolderOverview,
469
467
  F as openLink,
470
- ks as padPath,
471
- Fs as parseBooleanString,
472
- Ut as parseBorder,
473
- $t as parseDuration,
468
+ Vs as padPath,
469
+ bs as parseBooleanString,
470
+ Gt as parseBorder,
471
+ Qt as parseDuration,
474
472
  q as parseJsonString,
475
- Gt as parseLightDark,
473
+ Yt as parseLightDark,
476
474
  Z as parseListString,
477
- Yt as parseShadow,
475
+ Wt as parseShadow,
478
476
  z as pick,
479
- vt as popoverSupported,
480
- Qt as prefersReducedMotion,
477
+ Rt as popoverSupported,
478
+ Kt as prefersReducedMotion,
481
479
  j as readLocalStorageValue,
482
- Os as reducePathToDirectChild,
483
- Ee as registerTranslation,
480
+ ks as reducePathToDirectChild,
481
+ xe as registerTranslation,
484
482
  wt as removeAtIndex,
485
483
  xt as removeMultipleAtIndex,
486
- ls as resizeImage,
487
- xs as rotateBox,
488
- cs as rotateImage,
489
- Ns as safeExtension,
490
- Xs as safeString,
491
- Ps as sanitizeHTML,
492
- Cs as sanitizeRotation,
493
- Me as scrollIntoView,
484
+ ns as resizeImage,
485
+ ps as rotateBox,
486
+ is as rotateImage,
487
+ Fs as safeExtension,
488
+ Os as safeString,
489
+ Ns as sanitizeHTML,
490
+ ws as sanitizeRotation,
491
+ ye as scrollIntoView,
494
492
  U as serialize,
495
493
  O as shareAsset,
496
- Kt as shimKeyframesHeightAuto,
497
- Be as sortByTopPosition,
494
+ te as shimKeyframesHeightAuto,
495
+ Pe as sortByTopPosition,
498
496
  T as sortTypefaceVariants,
499
- Ds as splitBoxValues,
500
- _s as splitCamelCaseFormatted,
501
- te as stopAnimations,
502
- Rt as supportHLS,
497
+ Cs as splitBoxValues,
498
+ Xs as splitCamelCaseFormatted,
499
+ ee as stopAnimations,
500
+ Vt as supportHLS,
503
501
  C as testFontAvailability,
504
- se as timecodeConverter,
505
- Bs as toCamelCase,
506
- Hs as toKebabCase,
507
- Us as toPascalCase,
502
+ oe as timecodeConverter,
503
+ Ps as toCamelCase,
504
+ _s as toKebabCase,
505
+ Bs as toPascalCase,
508
506
  it as toRelativeUrl,
509
- Gs as toTitleCase,
507
+ Hs as toTitleCase,
510
508
  Ct as toast,
511
- Ys as truncateTextMiddle,
512
- Le as unlockBodyScrolling,
513
- Ws as upperFirst,
514
- pe as validValidityState,
515
- we as valueMissingValidityState,
516
- he as waitForEvent,
517
- $e as watch,
509
+ Us as truncateTextMiddle,
510
+ Se as unlockBodyScrolling,
511
+ Gs as upperFirst,
512
+ de as validValidityState,
513
+ ge as valueMissingValidityState,
514
+ se as waitForEvent,
515
+ je as watch,
518
516
  J as writeLocalStorageValue
519
517
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.100.0",
4
+ "version": "2.102.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -1,37 +0,0 @@
1
- function o(n, t, e) {
2
- return new Promise((r) => {
3
- if (e?.duration === 1 / 0)
4
- throw new Error("Promise-based animations must be finite.");
5
- const i = n.animate(t, {
6
- ...e,
7
- duration: a() ? 0 : e.duration
8
- });
9
- i.addEventListener("cancel", r, { once: !0 }), i.addEventListener("finish", r, { once: !0 });
10
- });
11
- }
12
- function s(n) {
13
- return n = n.toString().toLowerCase(), n.indexOf("ms") > -1 ? parseFloat(n) : n.indexOf("s") > -1 ? parseFloat(n) * 1e3 : parseFloat(n);
14
- }
15
- function a() {
16
- return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
17
- }
18
- function u(n) {
19
- return Promise.all(
20
- n.getAnimations().map((t) => new Promise((e) => {
21
- t.cancel(), requestAnimationFrame(e);
22
- }))
23
- );
24
- }
25
- function c(n, t) {
26
- return n.map((e) => ({
27
- ...e,
28
- height: e.height === "auto" ? `${t}px` : e.height
29
- }));
30
- }
31
- export {
32
- o as a,
33
- c as b,
34
- a as c,
35
- s as p,
36
- u as s
37
- };
@@ -1,84 +0,0 @@
1
- const y = () => {
2
- const t = window.navigator && window.navigator.userAgent || "";
3
- return /Firefox/i.test(t);
4
- }, w = () => navigator.userAgent.indexOf("Chrome") > -1, l = () => {
5
- const t = window.navigator && window.navigator.userAgent || "";
6
- return w() ? !1 : t.indexOf("Safari") > -1;
7
- }, C = !l() && "VideoEncoder" in window, A = "showPopover" in document.createElement("div");
8
- function c(t) {
9
- if (t.assignedSlot)
10
- return t.assignedSlot;
11
- if (t.parentElement)
12
- return t.parentElement;
13
- const o = t.getRootNode();
14
- return o instanceof ShadowRoot ? o.host : null;
15
- }
16
- function u(t, o) {
17
- if (!t)
18
- return null;
19
- let n = c(t);
20
- if (!n)
21
- return null;
22
- for (; n; ) {
23
- if (n === document.body)
24
- return;
25
- if (o(n))
26
- return n;
27
- n = c(n);
28
- }
29
- return n;
30
- }
31
- function b(t) {
32
- return u(t, (o) => {
33
- const n = window.getComputedStyle(o), e = n.clipPath !== "none" && n.clipPath !== "", i = o.hasAttribute(
34
- "data-overlayscrollbars-viewport"
35
- ), s = n.transform !== "none", a = ["auto", "scroll", "hidden"].includes(
36
- n.overflow
37
- );
38
- return !!(e || i || s && a);
39
- });
40
- }
41
- const m = [
42
- "transform",
43
- "translate",
44
- "scale",
45
- "rotate",
46
- "perspective"
47
- ], S = [
48
- "transform",
49
- "translate",
50
- "scale",
51
- "rotate",
52
- "perspective",
53
- "filter"
54
- ], v = ["paint", "layout", "strict", "content"];
55
- function E(t) {
56
- return u(
57
- t,
58
- (n) => {
59
- const e = window.getComputedStyle(n), i = m.some(
60
- (r) => e[r] ? e[r] !== "none" : !1
61
- ), s = e.backdropFilter, a = !!s && s !== "none", f = e.filter !== "none", d = e.containerType !== "normal", g = S.some(
62
- (r) => (e.willChange || "").includes(r)
63
- ), p = v.some(
64
- (r) => (e.contain || "").includes(r)
65
- ), h = e.contentVisibility === "auto";
66
- return l() && d ? !0 : i || g || p || a || h || f;
67
- }
68
- );
69
- }
70
- function P() {
71
- return /iPad|iPhone|iPod/.test(navigator.userAgent);
72
- }
73
- export {
74
- E as a,
75
- y as b,
76
- P as c,
77
- w as d,
78
- u as e,
79
- b as f,
80
- c as g,
81
- l as i,
82
- A as p,
83
- C as s
84
- };
@@ -1,15 +0,0 @@
1
- const c = (s, n = !1) => {
2
- const a = Symbol(), o = Symbol();
3
- return (u, d, t) => {
4
- const l = t.value;
5
- t.value = function(...i) {
6
- const e = this;
7
- clearTimeout(e[a]), n && !e[o] && (l.apply(this, i), e[o] = !0), e[a] = window.setTimeout(() => {
8
- n || l.apply(this, i), e[o] = !1;
9
- }, s);
10
- }, t.configurable === !1 && (t.configurable = !0);
11
- };
12
- };
13
- export {
14
- c as d
15
- };
@@ -1,11 +0,0 @@
1
- function o(n, t) {
2
- return new Promise((r) => {
3
- function e(i) {
4
- i.target === n && (n.removeEventListener(t, e), r());
5
- }
6
- n.addEventListener(t, e);
7
- });
8
- }
9
- export {
10
- o as w
11
- };
@@ -1,144 +0,0 @@
1
- import { T as n } from "./asset-link-format.BSRDqHg7.js";
2
- function p({
3
- asset: _,
4
- baseUrl: d,
5
- extension: y,
6
- parameters: c,
7
- transformations: o,
8
- useSession: v = ""
9
- }) {
10
- if (d == null)
11
- return "";
12
- let t = d;
13
- const f = o?.findLast(
14
- (i) => i.key === n.Quality
15
- );
16
- if (f && (o = [
17
- ...o?.filter(
18
- (i) => i.key !== n.Quality
19
- ) || [],
20
- f
21
- ]), o) {
22
- const i = [];
23
- for (let a = 0; a < o.length; a++) {
24
- const l = o[a];
25
- if (l.key === n.Rotate) {
26
- let e = l.value.rotation ?? 0;
27
- for (; o[a + 1]?.key === n.Rotate; )
28
- a++, e += o[a].value.rotation ?? 0;
29
- e !== 0 && i.push({ key: n.Rotate, value: { rotation: e } });
30
- } else
31
- i.push(l);
32
- }
33
- o = i;
34
- }
35
- o && o.length > 0 && (t += "/t/"), o?.forEach(({ key: i, value: a }) => {
36
- if (i === n.Resize) {
37
- const l = [
38
- ...[
39
- {
40
- key: "re_w_",
41
- value: Math.round(a.width ?? 0)
42
- },
43
- {
44
- key: "re_h_",
45
- value: Math.round(a.height ?? 0)
46
- }
47
- ].filter((e) => e.value !== void 0).map((e) => ({
48
- key: e.key,
49
- value: Math.round(Number(e.value))
50
- })),
51
- {
52
- key: "re_rm_",
53
- value: "stretch"
54
- }
55
- ];
56
- l.forEach(({ key: e, value: u }, r) => {
57
- t += `${e}${u}${r < l.length - 1 ? "," : ""}`;
58
- }), t += "/";
59
- }
60
- if (i === n.Crop) {
61
- const l = [
62
- ...[
63
- {
64
- key: "c_",
65
- value: a.mode
66
- },
67
- ...a.disabledSize ? [] : [
68
- {
69
- key: "c_w_",
70
- value: Math.round(a.width ?? 0)
71
- },
72
- {
73
- key: "c_h_",
74
- value: Math.round(a.height ?? 0)
75
- },
76
- {
77
- key: "c_x_",
78
- value: Math.round(a.x ?? 0)
79
- },
80
- {
81
- key: "c_y_",
82
- value: Math.round(a.y ?? 0)
83
- }
84
- ]
85
- ].filter((e) => e.value !== void 0 && e.value !== null).map((e) => ({
86
- key: e.key,
87
- value: e.value
88
- })),
89
- {
90
- key: "c_whu_",
91
- value: "pixel"
92
- }
93
- ];
94
- l.forEach(({ key: e, value: u }, r) => {
95
- const k = ["c_w_", "c_h_", "c_x_", "c_y_"].includes(e);
96
- t += `${e}${k ? Math.round(Number(u)) : u}${r < l.length - 1 ? "," : ""}`;
97
- }), t += "/";
98
- }
99
- if (i === n.Rotate && ([
100
- {
101
- key: "r_a_",
102
- value: a.rotation
103
- }
104
- ].filter((e) => e.value !== void 0).map((e) => ({
105
- key: e.key,
106
- value: Math.round(Number(e.value))
107
- })).forEach(({ key: e, value: u }) => {
108
- t += `${e}${u}`;
109
- }), t += "/"), i === n.Quality) {
110
- const l = [
111
- {
112
- key: "q_level_",
113
- value: a.quality
114
- }
115
- ].filter((e) => e.value !== void 0).map((e) => ({
116
- key: e.key,
117
- value: Math.round(Number(e.value))
118
- }));
119
- l.forEach(({ key: e, value: u }, r) => {
120
- t += `${e}${u}${r < l.length - 1 ? "," : ""}`;
121
- }), t += "/";
122
- }
123
- if (i === n.Metadata) {
124
- const l = [
125
- {
126
- key: "fl_keep_metadata",
127
- value: a.keepMetadata
128
- }
129
- ].filter((e) => e.value !== void 0).map((e) => ({ key: e.key, value: e.value }));
130
- l.forEach(({ key: e }, u) => {
131
- t += `${e}${u < l.length - 1 ? "," : ""}`;
132
- }), t += "/";
133
- }
134
- }), y && (t += `${_?.identifier ?? crypto.randomUUID()}${y}`);
135
- const h = [];
136
- return c && c.length > 0 && c.forEach(({ key: i, value: a }) => {
137
- h.push(
138
- `${encodeURIComponent(i.trim())}=${encodeURIComponent(a.trim())}`
139
- );
140
- }), d && v && h.push(`UseSession=${encodeURIComponent(v)}`), h.length > 0 && (t += `?${h.join("&")}`), t.endsWith("/") && (t = t.slice(0, -1)), t;
141
- }
142
- export {
143
- p as b
144
- };