@orangelogic/design-system 2.192.0 → 2.194.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-link-format.CDd4iPA2.js → asset-link-format.CODyaNDa.js} +937 -916
- package/library/chunks/{color-swatch-group.NOcRP-23.js → color-swatch-group.D1p1ayBo.js} +1 -1
- package/library/chunks/{document-viewer.CRluR-_W.js → document-viewer.DnowPH70.js} +2 -2
- package/library/chunks/{image.CiQwSDfe.js → image.BSvc6eti.js} +10 -6
- package/library/chunks/transformation.JkkMVin_.js +334 -0
- package/library/components/asset-link-format.js +2 -2
- package/library/components/atoms.js +2 -2
- package/library/components/color-swatch-group.js +1 -1
- package/library/components/document-viewer.js +2 -2
- package/library/components/image.js +1 -1
- package/library/components/masonry.js +119 -111
- package/library/components/organisms.js +2 -2
- package/library/components/types.js +15193 -15150
- package/library/components/video.js +1 -1
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/image/image.d.ts +2 -0
- package/library/packages/molecules/src/masonry/masonry.d.ts +1 -1
- package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +8 -0
- package/library/packages/organisms/src/content-builder-viewer/content-builder-viewer.d.ts +5 -5
- package/library/packages/services/src/api/asset/asset.d.ts +11 -3
- package/library/packages/types/src/gallery-item.d.ts +1 -0
- package/library/packages/types/src/masonry.d.ts +2 -0
- package/library/packages/utils/src/transformation/transformation.d.ts +55 -11
- package/library/react-web-component.d.ts +4 -4
- package/library/utils.js +89 -86
- package/package.json +1 -1
- package/library/chunks/transformation.BfIEi4p4.js +0 -300
|
@@ -48,7 +48,7 @@ import "./form.DSsy3Fcy.js";
|
|
|
48
48
|
import "./purify.es.BIuh5IAZ.js";
|
|
49
49
|
import { D as Ur, a as sa, t as oa, b as Kr } from "./date-picker.BGHn6qg8.js";
|
|
50
50
|
import { D as Ti } from "./content-builder.BX4pHujE.js";
|
|
51
|
-
import "./transformation.
|
|
51
|
+
import "./transformation.JkkMVin_.js";
|
|
52
52
|
import { s as P, h as Bo, b as Ui, c as lo } from "./string.CfI2ejyR.js";
|
|
53
53
|
import { a as ra } from "./_commonjsHelpers.DQNKXVTB.js";
|
|
54
54
|
import { d as na } from "./debounce.Bv1rtE8D.js";
|
|
@@ -25,7 +25,7 @@ import { w as watch } from "./watch.DJF5K-8U.js";
|
|
|
25
25
|
import "./date-picker.BGHn6qg8.js";
|
|
26
26
|
import { f as fetchCortexApi } from "./content-builder.BX4pHujE.js";
|
|
27
27
|
import "./unsafe-html.Dff7-rCx.js";
|
|
28
|
-
import "./transformation.
|
|
28
|
+
import "./transformation.JkkMVin_.js";
|
|
29
29
|
import { r as reactExports, a as React, j as jsxRuntimeExports, w, R as ReactDOM } from "./jsx-runtime.CTpPVMxj.js";
|
|
30
30
|
import { a as getDefaultExportFromCjs, c as commonjsGlobal } from "./_commonjsHelpers.DQNKXVTB.js";
|
|
31
31
|
import { r as require$$0 } from "./___vite-browser-external_commonjs-proxy.C2tf3HsQ.js";
|
|
@@ -35,7 +35,7 @@ import { a as ObjectFit } from "./index.Cpamj0jB.js";
|
|
|
35
35
|
import { r as r$1 } from "./state.CSDxrqLd.js";
|
|
36
36
|
import { e } from "./class-map.BiVq-cVR.js";
|
|
37
37
|
import { n as n$1 } from "./when.Dr1es41R.js";
|
|
38
|
-
import { C as CxImage } from "./image.
|
|
38
|
+
import { C as CxImage } from "./image.BSvc6eti.js";
|
|
39
39
|
var BookReaderMode$1 = /* @__PURE__ */ ((l) => (l.Image = "Image", l.Pdf = "Pdf", l))(BookReaderMode$1 || {}), BookReaderViewMode = /* @__PURE__ */ ((l) => (l.FourPage = "FourPage", l.OnePage = "OnePage", l.TwoPage = "TwoPage", l))(BookReaderViewMode || {});
|
|
40
40
|
function commonjsRequire(l) {
|
|
41
41
|
throw new Error('Could not dynamically require "' + l + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
@@ -575,13 +575,17 @@ let n = class extends Re {
|
|
|
575
575
|
[`image--height-${this.heightMode}`]: !0,
|
|
576
576
|
"image--can-zoom": this.canZoom,
|
|
577
577
|
"image--has-action": this.hasZoomAction,
|
|
578
|
-
"image--hidden":
|
|
578
|
+
"image--hidden": this.isEmpty || this.isError || this.isRetrying
|
|
579
579
|
};
|
|
580
580
|
}
|
|
581
581
|
/** The crossorigin value for the `<img>`; `undefined` (attribute omitted) when `noCrossorigin` is set. */
|
|
582
582
|
get crossorigin() {
|
|
583
583
|
return this.noCrossorigin ? void 0 : "anonymous";
|
|
584
584
|
}
|
|
585
|
+
/** Whether there is nothing to display: no source and no placeholder to stand in for one. */
|
|
586
|
+
get isEmpty() {
|
|
587
|
+
return !this.currentSrc && !this.placeholder;
|
|
588
|
+
}
|
|
585
589
|
/**
|
|
586
590
|
* Whether to hold the box with a skeleton rather than the loaded image.
|
|
587
591
|
*
|
|
@@ -591,7 +595,7 @@ let n = class extends Re {
|
|
|
591
595
|
* which reads as a layout change on an image-heavy page.
|
|
592
596
|
*/
|
|
593
597
|
get showPlaceholderSkeleton() {
|
|
594
|
-
return this.isError ? !1 : this.skeleton && !this.isLoaded || this.loading || this.isRetrying;
|
|
598
|
+
return this.isError ? !1 : this.isEmpty ? this.loading : this.skeleton && !this.isLoaded || this.loading || this.isRetrying;
|
|
595
599
|
}
|
|
596
600
|
/**
|
|
597
601
|
* Whether the image have zoom action.
|
|
@@ -713,16 +717,16 @@ let n = class extends Re {
|
|
|
713
717
|
)}</div>`;
|
|
714
718
|
}
|
|
715
719
|
render() {
|
|
716
|
-
const i = this.hasZoomAction, t = this.currentAltValue
|
|
720
|
+
const i = this.hasZoomAction, t = this.currentAltValue;
|
|
717
721
|
return L`<div part="base" class=${S({
|
|
718
722
|
container: !0,
|
|
719
|
-
"container--empty":
|
|
723
|
+
"container--empty": this.isEmpty,
|
|
720
724
|
"container--loading": this.loading,
|
|
721
725
|
"container--resizing": this.resizable && this.isResizeActive
|
|
722
726
|
})} style=${Me({
|
|
723
727
|
"--easing": this.easeCSSVariable
|
|
724
|
-
})} data-empty-label=${this.localize.term("emptyImage")} @click=${this.startResizing} @keydown=${this.handleKeyDown}><cx-resize-observer @cx-resize=${this.handleResize}><div part="highlighter" tabindex=${R(this.highlighterTabindex)} role=${this.highlighterRole} aria-label=${t} aria-roledescription=${this.localize.term("image")} class=${S(
|
|
725
|
-
|
|
728
|
+
})} data-empty-label=${this.localize.term("emptyImage")} @click=${this.startResizing} @keydown=${this.handleKeyDown}><cx-resize-observer @cx-resize=${this.handleResize}><div part="highlighter" tabindex=${R(this.highlighterTabindex)} role=${this.highlighterRole} aria-label=${t} aria-roledescription=${this.localize.term("image")} class=${S(this.isEmpty ? {} : this.getHighlighterClass(this.isError))} @click=${this.handleClickAction} @mouseenter=${this.handleMouseEnter} @mouseleave=${this.handleMouseLeave} @blur=${this.handleBlur}>${A(
|
|
729
|
+
this.isEmpty,
|
|
726
730
|
() => X,
|
|
727
731
|
() => A(
|
|
728
732
|
this.effect === K.Jump || this.effect === K.Zoom,
|
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
import { C as y, T as $, U as A } from "./asset-link-format.ClaYu_v8.js";
|
|
2
|
+
import { P as g } from "./position-picker.DjnhxIKF.js";
|
|
3
|
+
const _ = "/AssetLink/", E = {
|
|
4
|
+
[g.BottomCenter]: y.South,
|
|
5
|
+
[g.BottomLeft]: y.Southwest,
|
|
6
|
+
[g.BottomRight]: y.Southeast,
|
|
7
|
+
[g.CenterCenter]: y.Center,
|
|
8
|
+
[g.CenterLeft]: y.West,
|
|
9
|
+
[g.CenterRight]: y.East,
|
|
10
|
+
[g.TopCenter]: y.North,
|
|
11
|
+
[g.TopLeft]: y.Northwest,
|
|
12
|
+
[g.TopRight]: y.Northeast
|
|
13
|
+
}, p = "/t/", S = [400, 800, 1200, 1600, 2400], F = 0.15;
|
|
14
|
+
function C({
|
|
15
|
+
asset: t,
|
|
16
|
+
baseUrl: n,
|
|
17
|
+
extension: i,
|
|
18
|
+
options: f,
|
|
19
|
+
parameters: c,
|
|
20
|
+
transformations: r,
|
|
21
|
+
useSession: l = ""
|
|
22
|
+
}) {
|
|
23
|
+
if (n == null)
|
|
24
|
+
return "";
|
|
25
|
+
let s = n;
|
|
26
|
+
const h = r?.findLast(
|
|
27
|
+
(u) => u.key === $.Quality
|
|
28
|
+
);
|
|
29
|
+
if (h && (r = [
|
|
30
|
+
...r?.filter(
|
|
31
|
+
(u) => u.key !== $.Quality
|
|
32
|
+
) || [],
|
|
33
|
+
h
|
|
34
|
+
]), r) {
|
|
35
|
+
const u = [];
|
|
36
|
+
for (let e = 0; e < r.length; e++) {
|
|
37
|
+
const d = r[e];
|
|
38
|
+
if (d.key === $.Rotate) {
|
|
39
|
+
let o = d.value.rotation ?? 0;
|
|
40
|
+
for (; r[e + 1]?.key === $.Rotate; )
|
|
41
|
+
e++, o += r[e].value.rotation ?? 0;
|
|
42
|
+
o !== 0 && u.push({ key: $.Rotate, value: { rotation: o } });
|
|
43
|
+
} else
|
|
44
|
+
u.push(d);
|
|
45
|
+
}
|
|
46
|
+
r = u;
|
|
47
|
+
}
|
|
48
|
+
r && r.length > 0 && (s += "/t/"), r?.forEach(({ key: u, value: e }) => {
|
|
49
|
+
if (u === $.Resize) {
|
|
50
|
+
if (e.unit === A.AspectRatio && e.ratioWidth && e.ratioHeight) {
|
|
51
|
+
s += `re_ar_${e.ratioWidth}:${e.ratioHeight}/`;
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
const d = [
|
|
55
|
+
...[
|
|
56
|
+
{
|
|
57
|
+
key: "re_w_",
|
|
58
|
+
value: Math.round(e.width ?? 0)
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
key: "re_h_",
|
|
62
|
+
value: Math.round(e.height ?? 0)
|
|
63
|
+
}
|
|
64
|
+
].filter((o) => o.value !== void 0).map((o) => ({
|
|
65
|
+
key: o.key,
|
|
66
|
+
value: Math.round(Number(o.value))
|
|
67
|
+
})),
|
|
68
|
+
{
|
|
69
|
+
key: "re_rm_",
|
|
70
|
+
value: "stretch"
|
|
71
|
+
}
|
|
72
|
+
];
|
|
73
|
+
d.forEach(({ key: o, value: m }, k) => {
|
|
74
|
+
s += `${o}${m}${k < d.length - 1 ? "," : ""}`;
|
|
75
|
+
}), s += "/";
|
|
76
|
+
}
|
|
77
|
+
if (u === $.Crop) {
|
|
78
|
+
const d = e.unit === A.AspectRatio && !!e.ratioWidth && !!e.ratioHeight, o = !e.disabledSize && !d, m = o && (e.x !== void 0 || e.y !== void 0), k = [
|
|
79
|
+
...[
|
|
80
|
+
{
|
|
81
|
+
key: "c_",
|
|
82
|
+
value: e.mode
|
|
83
|
+
},
|
|
84
|
+
...d ? [
|
|
85
|
+
{
|
|
86
|
+
key: "ar_",
|
|
87
|
+
value: `${e.ratioWidth}:${e.ratioHeight}`
|
|
88
|
+
}
|
|
89
|
+
] : [],
|
|
90
|
+
...o ? [
|
|
91
|
+
{
|
|
92
|
+
key: "c_w_",
|
|
93
|
+
value: Math.round(e.width ?? 0)
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
key: "c_h_",
|
|
97
|
+
value: Math.round(e.height ?? 0)
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
key: "c_x_",
|
|
101
|
+
value: Math.round(e.x ?? 0) === 0 && f?.omitZeroXY ? void 0 : Math.round(e.x ?? 0)
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
key: "c_y_",
|
|
105
|
+
value: Math.round(e.y ?? 0) === 0 && f?.omitZeroXY ? void 0 : Math.round(e.y ?? 0)
|
|
106
|
+
}
|
|
107
|
+
] : [],
|
|
108
|
+
...!m && e.focusMode && e.focusMode !== "manual" ? [
|
|
109
|
+
{
|
|
110
|
+
key: e.isFocusModeAuto ? "acm_" : "c_g_",
|
|
111
|
+
value: e.focusMode
|
|
112
|
+
}
|
|
113
|
+
] : [],
|
|
114
|
+
...!m && e.focusMode === "manual" && e.position ? [
|
|
115
|
+
{
|
|
116
|
+
key: "c_g_",
|
|
117
|
+
value: E[e.position]
|
|
118
|
+
}
|
|
119
|
+
] : []
|
|
120
|
+
].filter((T) => T.value !== void 0 && T.value !== null).map((T) => ({
|
|
121
|
+
key: T.key,
|
|
122
|
+
value: T.value
|
|
123
|
+
})),
|
|
124
|
+
...d ? [] : [
|
|
125
|
+
{
|
|
126
|
+
key: "c_whu_",
|
|
127
|
+
value: "pixel"
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
];
|
|
131
|
+
k.forEach(({ key: T, value: R }, N) => {
|
|
132
|
+
const O = ["c_w_", "c_h_", "c_x_", "c_y_"].includes(T);
|
|
133
|
+
s += `${T}${O ? Math.round(Number(R)) : R}${N < k.length - 1 ? "," : ""}`;
|
|
134
|
+
}), s += "/";
|
|
135
|
+
}
|
|
136
|
+
if (u === $.Rotate && ([
|
|
137
|
+
{
|
|
138
|
+
key: "r_a_",
|
|
139
|
+
value: e.rotation
|
|
140
|
+
}
|
|
141
|
+
].filter((o) => o.value !== void 0).map((o) => ({
|
|
142
|
+
key: o.key,
|
|
143
|
+
value: Math.round(Number(o.value))
|
|
144
|
+
})).forEach(({ key: o, value: m }) => {
|
|
145
|
+
s += `${o}${m}`;
|
|
146
|
+
}), s += "/"), u === $.Quality) {
|
|
147
|
+
const d = [
|
|
148
|
+
{
|
|
149
|
+
key: "q_level_",
|
|
150
|
+
value: e.quality
|
|
151
|
+
}
|
|
152
|
+
].filter((o) => o.value !== void 0).map((o) => ({
|
|
153
|
+
key: o.key,
|
|
154
|
+
value: Math.round(Number(o.value))
|
|
155
|
+
}));
|
|
156
|
+
d.forEach(({ key: o, value: m }, k) => {
|
|
157
|
+
s += `${o}${m}${k < d.length - 1 ? "," : ""}`;
|
|
158
|
+
}), s += "/";
|
|
159
|
+
}
|
|
160
|
+
if (u === $.Metadata) {
|
|
161
|
+
const d = [
|
|
162
|
+
{
|
|
163
|
+
key: "fl_keep_metadata",
|
|
164
|
+
value: e.keepMetadata
|
|
165
|
+
}
|
|
166
|
+
].filter((o) => o.value !== void 0).map((o) => ({ key: o.key, value: o.value }));
|
|
167
|
+
d.forEach(({ key: o }, m) => {
|
|
168
|
+
s += `${o}${m < d.length - 1 ? "," : ""}`;
|
|
169
|
+
}), s += "/";
|
|
170
|
+
}
|
|
171
|
+
}), i && (s += `${t?.identifier ?? crypto.randomUUID()}${i}`);
|
|
172
|
+
const a = [];
|
|
173
|
+
return c && c.length > 0 && c.forEach(({ key: u, value: e }) => {
|
|
174
|
+
a.push(
|
|
175
|
+
`${encodeURIComponent(u.trim())}=${encodeURIComponent(e.trim())}`
|
|
176
|
+
);
|
|
177
|
+
}), n && l && a.push(`UseSession=${encodeURIComponent(l)}`), a.length > 0 && (s += `?${a.join("&")}`), s.endsWith("/") && (s = s.slice(0, -1)), s;
|
|
178
|
+
}
|
|
179
|
+
function z(t, n) {
|
|
180
|
+
if (!t || !n?.length)
|
|
181
|
+
return t;
|
|
182
|
+
const i = C({ baseUrl: "", transformations: n }).replace(
|
|
183
|
+
/\/t\//g,
|
|
184
|
+
""
|
|
185
|
+
);
|
|
186
|
+
if (!i)
|
|
187
|
+
return t;
|
|
188
|
+
const f = t.indexOf(_);
|
|
189
|
+
if (f < 0)
|
|
190
|
+
return `${t}/t/${i}`;
|
|
191
|
+
const c = t.slice(0, f + _.length), r = t.slice(f + _.length), l = r.indexOf("/t/");
|
|
192
|
+
if (l >= 0) {
|
|
193
|
+
const h = r.slice(0, l);
|
|
194
|
+
return `${c}${h}/t/${i}`;
|
|
195
|
+
}
|
|
196
|
+
const s = r.indexOf("/");
|
|
197
|
+
if (s >= 0) {
|
|
198
|
+
const h = r.slice(0, s), a = r.slice(s);
|
|
199
|
+
return `${c}${h}/t/${i}${a}`;
|
|
200
|
+
}
|
|
201
|
+
return `${t}/t/${i}`;
|
|
202
|
+
}
|
|
203
|
+
function W(t) {
|
|
204
|
+
return `re_w_${Math.round(t)}`;
|
|
205
|
+
}
|
|
206
|
+
function w(t, n) {
|
|
207
|
+
if (!t || !Number.isFinite(n) || n <= 0)
|
|
208
|
+
return t;
|
|
209
|
+
const i = t.indexOf(_);
|
|
210
|
+
if (i < 0)
|
|
211
|
+
return t;
|
|
212
|
+
const f = W(n), c = t.slice(0, i + _.length), r = t.slice(i + _.length), l = r.indexOf(p);
|
|
213
|
+
if (l >= 0) {
|
|
214
|
+
const h = r.slice(0, l), a = r.slice(
|
|
215
|
+
l + p.length
|
|
216
|
+
);
|
|
217
|
+
return `${c}${h}${p}${f}/${a}`;
|
|
218
|
+
}
|
|
219
|
+
const s = r.indexOf("/");
|
|
220
|
+
if (s >= 0) {
|
|
221
|
+
const h = r.slice(0, s), a = r.slice(s);
|
|
222
|
+
return `${c}${h}${p}${f}${a}`;
|
|
223
|
+
}
|
|
224
|
+
return `${c}${r}${p}${f}`;
|
|
225
|
+
}
|
|
226
|
+
function L(t) {
|
|
227
|
+
const n = t.indexOf(_);
|
|
228
|
+
return n < 0 ? !1 : t.slice(n + _.length).includes(p);
|
|
229
|
+
}
|
|
230
|
+
const v = "TRX", M = "TR1", U = /* @__PURE__ */ new Set([
|
|
231
|
+
"avif",
|
|
232
|
+
"bmp",
|
|
233
|
+
"gif",
|
|
234
|
+
"ico",
|
|
235
|
+
"jpeg",
|
|
236
|
+
"jpg",
|
|
237
|
+
"png",
|
|
238
|
+
"svg",
|
|
239
|
+
"tif",
|
|
240
|
+
"tiff",
|
|
241
|
+
"webp"
|
|
242
|
+
]);
|
|
243
|
+
function I(t) {
|
|
244
|
+
if (!t)
|
|
245
|
+
return "";
|
|
246
|
+
const n = t.trim().toLowerCase();
|
|
247
|
+
return n.startsWith(".") ? n.slice(1) : n;
|
|
248
|
+
}
|
|
249
|
+
function b(t) {
|
|
250
|
+
return I(t) === "gif";
|
|
251
|
+
}
|
|
252
|
+
const G = 1e3 * 1024 * 1024, B = {
|
|
253
|
+
b: 1,
|
|
254
|
+
byte: 1,
|
|
255
|
+
bytes: 1,
|
|
256
|
+
gb: 1024 ** 3,
|
|
257
|
+
kb: 1024,
|
|
258
|
+
mb: 1024 ** 2,
|
|
259
|
+
tb: 1024 ** 4
|
|
260
|
+
};
|
|
261
|
+
function K(t) {
|
|
262
|
+
if (typeof t == "number")
|
|
263
|
+
return Number.isFinite(t) && t >= 0 ? t : void 0;
|
|
264
|
+
if (!t)
|
|
265
|
+
return;
|
|
266
|
+
const n = /^\s*([\d.,]+)\s*([a-z]*)\s*$/i.exec(t);
|
|
267
|
+
if (!n)
|
|
268
|
+
return;
|
|
269
|
+
const i = Number(n[1].replace(/,/g, ""));
|
|
270
|
+
if (!Number.isFinite(i) || i < 0)
|
|
271
|
+
return;
|
|
272
|
+
const f = n[2].toLowerCase();
|
|
273
|
+
if (!f)
|
|
274
|
+
return i;
|
|
275
|
+
const c = B[f];
|
|
276
|
+
return c === void 0 ? void 0 : i * c;
|
|
277
|
+
}
|
|
278
|
+
function D(t, n) {
|
|
279
|
+
if (t)
|
|
280
|
+
return;
|
|
281
|
+
const i = typeof n == "number" ? n : Number(n ?? "");
|
|
282
|
+
return Number.isFinite(i) && i > 0 ? i : void 0;
|
|
283
|
+
}
|
|
284
|
+
function Y(t, n) {
|
|
285
|
+
if (!U.has(I(t)))
|
|
286
|
+
return M;
|
|
287
|
+
const i = K(n);
|
|
288
|
+
return i !== void 0 && i > G ? M : v;
|
|
289
|
+
}
|
|
290
|
+
const x = ".auto";
|
|
291
|
+
function j(t, n = {}) {
|
|
292
|
+
const i = t ? t.indexOf(_) : -1;
|
|
293
|
+
if (i < 0 || n.format === v && b(n.extension))
|
|
294
|
+
return t;
|
|
295
|
+
const f = t.slice(i + _.length), c = f.slice(f.lastIndexOf("/") + 1);
|
|
296
|
+
return c === "" || c.endsWith(x) ? t : `${t}${x}`;
|
|
297
|
+
}
|
|
298
|
+
function H(t, n = {}) {
|
|
299
|
+
if (!t.includes(_) || L(t) || n.format === v && b(n.extension))
|
|
300
|
+
return "";
|
|
301
|
+
const { maxWidth: i, widths: f = S } = n, c = [...f].filter((a) => Number.isFinite(a) && a > 0).sort((a, u) => a - u);
|
|
302
|
+
if (c.length === 0)
|
|
303
|
+
return "";
|
|
304
|
+
let r = c;
|
|
305
|
+
if (i !== void 0 && Number.isFinite(i) && i > 0) {
|
|
306
|
+
const a = c.filter((u) => u <= i);
|
|
307
|
+
r = a.length > 0 ? a : [c[0]];
|
|
308
|
+
}
|
|
309
|
+
const l = i !== void 0 && Number.isFinite(i) && i > 0, h = (l ? r.filter(
|
|
310
|
+
(a) => i > a * (1 + F)
|
|
311
|
+
) : r).map(
|
|
312
|
+
(a) => `${w(t, a)} ${a}w`
|
|
313
|
+
);
|
|
314
|
+
return l && h.push(`${t} ${i}w`), h.join(", ");
|
|
315
|
+
}
|
|
316
|
+
function Q(t, n = 100) {
|
|
317
|
+
return !Number.isFinite(t) || t <= 0 ? "" : `${Math.ceil(t / n) * n}px`;
|
|
318
|
+
}
|
|
319
|
+
export {
|
|
320
|
+
M as A,
|
|
321
|
+
S,
|
|
322
|
+
j as a,
|
|
323
|
+
H as b,
|
|
324
|
+
D as c,
|
|
325
|
+
z as d,
|
|
326
|
+
C as e,
|
|
327
|
+
Q as f,
|
|
328
|
+
w as g,
|
|
329
|
+
L as h,
|
|
330
|
+
G as i,
|
|
331
|
+
x as j,
|
|
332
|
+
K as p,
|
|
333
|
+
Y as r
|
|
334
|
+
};
|
|
@@ -3,7 +3,7 @@ import "../chunks/button.BnkkUqiI.js";
|
|
|
3
3
|
import "./space.js";
|
|
4
4
|
import "../chunks/typography.IqHbnd3C.js";
|
|
5
5
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
6
|
-
import { C as h } from "../chunks/asset-link-format.
|
|
6
|
+
import { C as h } from "../chunks/asset-link-format.CODyaNDa.js";
|
|
7
7
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
8
8
|
import "../chunks/asset-link-format.ClaYu_v8.js";
|
|
9
9
|
import "../chunks/position-picker.DjnhxIKF.js";
|
|
@@ -11,7 +11,7 @@ import "../chunks/custom-element.L4WJXn1j.js";
|
|
|
11
11
|
import "../chunks/i18n.DbXTTLXx.js";
|
|
12
12
|
import "../chunks/watch.DJF5K-8U.js";
|
|
13
13
|
import "../chunks/number.Cx2ncfJJ.js";
|
|
14
|
-
import "../chunks/transformation.
|
|
14
|
+
import "../chunks/transformation.JkkMVin_.js";
|
|
15
15
|
import "../chunks/lit-element.jLBm65_O.js";
|
|
16
16
|
import "../chunks/state.CSDxrqLd.js";
|
|
17
17
|
import "../chunks/when.Dr1es41R.js";
|
|
@@ -20,7 +20,7 @@ import { default as W } from "./details.js";
|
|
|
20
20
|
import { default as Y } from "./diff.js";
|
|
21
21
|
import { C as _ } from "../chunks/dialog.B6hZ7fvn.js";
|
|
22
22
|
import { default as oe } from "./divider.js";
|
|
23
|
-
import { C as ae } from "../chunks/document-viewer.
|
|
23
|
+
import { C as ae } from "../chunks/document-viewer.DnowPH70.js";
|
|
24
24
|
import { C as xe } from "../chunks/dot-pagination.BqGFeFXK.js";
|
|
25
25
|
import { default as me } from "./dot-status.js";
|
|
26
26
|
import { default as pe } from "./drawer.js";
|
|
@@ -39,7 +39,7 @@ import { f } from "../chunks/icon.CpHbi8tH.js";
|
|
|
39
39
|
import { C as Fe } from "../chunks/icon.CpHbi8tH.js";
|
|
40
40
|
import { C as Oe } from "../chunks/icon-button.CVrxJcZq.js";
|
|
41
41
|
import { C as Ee } from "../chunks/iframe.-GCTFas1.js";
|
|
42
|
-
import { C as Le } from "../chunks/image.
|
|
42
|
+
import { C as Le } from "../chunks/image.BSvc6eti.js";
|
|
43
43
|
import { default as je } from "./image-comparer.js";
|
|
44
44
|
import { default as Qe } from "./include.js";
|
|
45
45
|
import { C as qe } from "../chunks/input.33UmFGqR.js";
|
|
@@ -3,7 +3,7 @@ import "../chunks/typography.IqHbnd3C.js";
|
|
|
3
3
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
4
4
|
import "../chunks/color-swatch.D6Gg5bpz.js";
|
|
5
5
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
6
|
-
import { C as v } from "../chunks/color-swatch-group.
|
|
6
|
+
import { C as v } from "../chunks/color-swatch-group.D1p1ayBo.js";
|
|
7
7
|
import "../chunks/content-builder.BX4pHujE.js";
|
|
8
8
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
9
9
|
import "../chunks/debounce.DaHuiSGU.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../chunks/resizable-component.styles.CAfXABBc.js";
|
|
2
|
-
import { C as b } from "../chunks/document-viewer.
|
|
2
|
+
import { C as b } from "../chunks/document-viewer.DnowPH70.js";
|
|
3
3
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
4
4
|
import "../chunks/index.Cpamj0jB.js";
|
|
5
5
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
@@ -10,7 +10,7 @@ import "../chunks/state.CSDxrqLd.js";
|
|
|
10
10
|
import "../chunks/class-map.BiVq-cVR.js";
|
|
11
11
|
import "../chunks/when.Dr1es41R.js";
|
|
12
12
|
import "../chunks/icon.CpHbi8tH.js";
|
|
13
|
-
import "../chunks/image.
|
|
13
|
+
import "../chunks/image.BSvc6eti.js";
|
|
14
14
|
import "../chunks/typography.IqHbnd3C.js";
|
|
15
15
|
export {
|
|
16
16
|
b as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../chunks/resizable-component.styles.CAfXABBc.js";
|
|
2
2
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import "../chunks/index.Cpamj0jB.js";
|
|
4
|
-
import { C as w } from "../chunks/image.
|
|
4
|
+
import { C as w } from "../chunks/image.BSvc6eti.js";
|
|
5
5
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
6
6
|
import "../chunks/debounce.DaHuiSGU.js";
|
|
7
7
|
import "../chunks/i18n.DbXTTLXx.js";
|