@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.
- package/library/chunks/{asset.CKtT9q4k.js → asset.CtL7ACp7.js} +1 -1
- package/library/chunks/{color-swatch-group.Cfn8EGfK.js → color-swatch-group.C6c53two.js} +3 -3
- package/library/chunks/{color-swatch.BUwHT5Cx.js → color-swatch.GsiCvj1n.js} +1 -1
- package/library/chunks/{confirm-popover.BMGnWZnC.js → confirm-popover.PiSCZY6-.js} +1 -1
- package/library/chunks/debounce.CIEhztrj.js +97 -0
- package/library/chunks/{dialog._xvAZqaE.js → dialog.BTU6B2_4.js} +9 -10
- package/library/chunks/event.BeKOsirN.js +46 -0
- package/library/chunks/{file-on-demand.CIjtKP0H.js → file-on-demand.DCxabV6T.js} +4 -4
- package/library/chunks/{folder-select.D4Ft0qRc.js → folder-select.BM7yeAsU.js} +2 -2
- package/library/chunks/{image.BnB-fJ8g.js → image.D207g003.js} +1 -1
- package/library/chunks/{list-editor.B_mnvgtZ.js → list-editor.CMakbQyU.js} +182 -184
- package/library/chunks/{table.D4HIzy47.js → table.Cm-ynClk.js} +977 -962
- package/library/chunks/transformation.Dir8s_wm.js +151 -0
- package/library/chunks/{tree.Hh8WCK7l.js → tree.DAiWVFiY.js} +91 -80
- package/library/components/alert.js +7 -8
- package/library/components/asset-link-format.js +867 -672
- package/library/components/atoms.js +4 -4
- package/library/components/color-picker.js +1 -1
- package/library/components/color-swatch-group.js +4 -4
- package/library/components/color-swatch.js +2 -2
- package/library/components/confirm-popover.js +2 -2
- package/library/components/details.js +1 -2
- package/library/components/dialog.js +3 -4
- package/library/components/drawer.js +83 -73
- package/library/components/dropdown.js +7 -8
- package/library/components/dynamic-select.js +1 -1
- package/library/components/element-clamp.js +1 -2
- package/library/components/file-on-demand.js +5 -5
- package/library/components/folder-select.js +2 -2
- package/library/components/image.js +2 -2
- package/library/components/line-clamp.js +4 -5
- package/library/components/list-editor.js +4 -4
- package/library/components/masonry.js +1 -1
- package/library/components/molecules.js +4 -4
- package/library/components/organisms.js +2 -2
- package/library/components/popup.js +73 -74
- package/library/components/range.js +1 -1
- package/library/components/select.js +1 -2
- package/library/components/share-option-list.js +1 -1
- package/library/components/sidebar.js +6 -6
- package/library/components/table.js +1 -1
- package/library/components/tag.js +44 -31
- package/library/components/tooltip.js +1 -2
- package/library/components/tree-item.js +4 -3
- package/library/components/tree.js +1 -1
- package/library/components/types.js +760 -765
- package/library/components/video.js +2 -2
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/drawer/drawer.d.ts +8 -0
- package/library/packages/atoms/src/components/table/components/table-toolbar/table-toolbar.d.ts +11 -1
- package/library/packages/atoms/src/components/tag/tag.d.ts +11 -1
- package/library/packages/atoms/src/components/tree-item/tree-item.d.ts +10 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +8 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +4 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-quality/asset-link-format-quality.d.ts +4 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-resize/asset-link-format-resize.d.ts +4 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-rotation/asset-link-format-rotation.d.ts +4 -0
- package/library/packages/organisms/src/content-builder/styleController.d.ts +2 -1
- package/library/packages/types/src/asset-link-format.d.ts +2 -0
- package/library/packages/types/src/content-builder.d.ts +5 -1
- package/library/packages/types/src/tag.d.ts +1 -0
- package/library/packages/utils/src/transformation/transformation.d.ts +4 -1
- package/library/react-web-component.d.ts +19 -3
- package/library/utils.js +138 -140
- package/package.json +1 -1
- package/library/chunks/animate.El-MpOws.js +0 -37
- package/library/chunks/browser.BHOCIF_A.js +0 -84
- package/library/chunks/debounce.DaHuiSGU.js +0 -15
- package/library/chunks/event.mFzZi4sr.js +0 -11
- 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 {
|
|
5
|
-
import { d as
|
|
6
|
-
import { a as
|
|
7
|
-
import { a as
|
|
8
|
-
import { t as
|
|
9
|
-
import { c as
|
|
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
|
|
16
|
-
import { L as
|
|
17
|
-
import { c as
|
|
18
|
-
import { g as
|
|
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
|
|
21
|
-
import { H as
|
|
22
|
-
import { g as
|
|
23
|
-
import { i as
|
|
24
|
-
import { w as
|
|
25
|
-
import { f as
|
|
26
|
-
import { c as
|
|
27
|
-
import { a as
|
|
28
|
-
import { s as
|
|
29
|
-
import { g as
|
|
30
|
-
import { c as
|
|
31
|
-
import { g as
|
|
32
|
-
import { c as
|
|
33
|
-
import { b as
|
|
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
|
-
|
|
356
|
-
|
|
353
|
+
kt as CMYK_VALIDATION_REGEX,
|
|
354
|
+
Ft as ColorType,
|
|
357
355
|
X as CortexPopupController,
|
|
358
356
|
P as DragScroll,
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
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
|
-
|
|
363
|
+
we as LocalizeController,
|
|
366
364
|
M as PRECISION,
|
|
367
365
|
st as RELATIVE_URL_REGEX,
|
|
368
|
-
|
|
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
|
-
|
|
370
|
+
qt as activeElements,
|
|
373
371
|
ct as adjustRelativeValues,
|
|
374
|
-
|
|
372
|
+
$t as animateTo,
|
|
375
373
|
D as appendProtocol,
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
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
|
-
|
|
395
|
-
|
|
396
|
-
|
|
392
|
+
ys as emptyToSpace,
|
|
393
|
+
_t as extractColor,
|
|
394
|
+
Ss as extractExtension,
|
|
397
395
|
Q as extractFrames,
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
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
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
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
|
-
|
|
419
|
-
|
|
420
|
-
|
|
416
|
+
Bt as getColorType,
|
|
417
|
+
rs as getContainedImageSize,
|
|
418
|
+
ve as getCortexPopupLayer,
|
|
421
419
|
x as getCurrentZIndex,
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
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
|
-
|
|
429
|
-
|
|
430
|
-
|
|
426
|
+
Ws as getHighlightedTitle,
|
|
427
|
+
zs as getHighlightedTitleHtml,
|
|
428
|
+
He as getInnerHTML,
|
|
431
429
|
K as getInterval,
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
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
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
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
|
-
|
|
454
|
-
|
|
455
|
-
|
|
451
|
+
Rs as isGalleryItemCardType,
|
|
452
|
+
It as isIOS,
|
|
453
|
+
Ne as isInElement,
|
|
456
454
|
_ as isModKey,
|
|
457
|
-
|
|
458
|
-
|
|
455
|
+
vt as isSafari,
|
|
456
|
+
as as isSaveSrcValid,
|
|
459
457
|
nt as isValidUrl,
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
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
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
468
|
+
Vs as padPath,
|
|
469
|
+
bs as parseBooleanString,
|
|
470
|
+
Gt as parseBorder,
|
|
471
|
+
Qt as parseDuration,
|
|
474
472
|
q as parseJsonString,
|
|
475
|
-
|
|
473
|
+
Yt as parseLightDark,
|
|
476
474
|
Z as parseListString,
|
|
477
|
-
|
|
475
|
+
Wt as parseShadow,
|
|
478
476
|
z as pick,
|
|
479
|
-
|
|
480
|
-
|
|
477
|
+
Rt as popoverSupported,
|
|
478
|
+
Kt as prefersReducedMotion,
|
|
481
479
|
j as readLocalStorageValue,
|
|
482
|
-
|
|
483
|
-
|
|
480
|
+
ks as reducePathToDirectChild,
|
|
481
|
+
xe as registerTranslation,
|
|
484
482
|
wt as removeAtIndex,
|
|
485
483
|
xt as removeMultipleAtIndex,
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
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
|
-
|
|
497
|
-
|
|
494
|
+
te as shimKeyframesHeightAuto,
|
|
495
|
+
Pe as sortByTopPosition,
|
|
498
496
|
T as sortTypefaceVariants,
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
497
|
+
Cs as splitBoxValues,
|
|
498
|
+
Xs as splitCamelCaseFormatted,
|
|
499
|
+
ee as stopAnimations,
|
|
500
|
+
Vt as supportHLS,
|
|
503
501
|
C as testFontAvailability,
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
502
|
+
oe as timecodeConverter,
|
|
503
|
+
Ps as toCamelCase,
|
|
504
|
+
_s as toKebabCase,
|
|
505
|
+
Bs as toPascalCase,
|
|
508
506
|
it as toRelativeUrl,
|
|
509
|
-
|
|
507
|
+
Hs as toTitleCase,
|
|
510
508
|
Ct as toast,
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
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,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,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
|
-
};
|