@orangelogic/design-system 2.161.0 → 2.162.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.
@@ -3,46 +3,46 @@ import { C as K } from "./button.8syoJXYs.js";
3
3
  import O from "../components/space.js";
4
4
  import { C as L } from "./typography.IqHbnd3C.js";
5
5
  import { n as l, C as U } from "./lib-cortex-element.CVMmyPMC.js";
6
- import { h as M, a as Wt, C as Dt, S as Bt, b as qt, c as jt, d as Vt } from "./endpoints.CwgTrs4A.js";
6
+ import { h as M, a as Dt, C as Nt, S as qt, b as jt, c as Vt, d as Gt } from "./endpoints.CwgTrs4A.js";
7
7
  import { M as Rt, U as o, T as u } from "./asset-link-format.QzzboHHE.js";
8
8
  import "./browser.BHOCIF_A.js";
9
- import { i as B, x as A, E as Gt } from "./lit-element.jLBm65_O.js";
9
+ import { i as B, x as A, E as Qt } from "./lit-element.jLBm65_O.js";
10
10
  import "./form.CP9KLGjF.js";
11
11
  import { L as q } from "./i18n.Bchq8v1d.js";
12
- import { a as Qt } from "./string.BhJ0Zogu.js";
12
+ import { a as Xt } from "./string.BhJ0Zogu.js";
13
13
  import "./date-picker.BGHn6qg8.js";
14
14
  import "./content-builder.BU8X7I6V.js";
15
15
  import "./unsafe-html.Dff7-rCx.js";
16
- import { b as Xt } from "./_baseUniq.je-HWbb3.js";
16
+ import { b as Kt } from "./_baseUniq.je-HWbb3.js";
17
17
  import { c as j } from "./component.styles.CRO4Odto.js";
18
- import { b as Y } from "./transformation.BDmd3kER.js";
19
- import { v as Kt } from "./v4.CKZ6klMF.js";
18
+ import { a as $t, b as ot } from "./transformation.D1alV_s4.js";
19
+ import { v as Zt } from "./v4.CKZ6klMF.js";
20
20
  import { c as V } from "./custom-element.L4WJXn1j.js";
21
21
  import { w as F } from "./watch.DOt4Mabe.js";
22
- import { s as $t, c as rt } from "./number.CtCaI0T_.js";
22
+ import { s as Pt, c as rt } from "./number.CtCaI0T_.js";
23
23
  import { r as k } from "./state.CSDxrqLd.js";
24
24
  import { n as _ } from "./when.Dr1es41R.js";
25
- import tt from "../components/details.js";
26
- import Zt from "../components/divider.js";
27
- import { C as et } from "./icon.mxNZ85k0.js";
25
+ import J from "../components/details.js";
26
+ import Yt from "../components/divider.js";
27
+ import { C as tt } from "./icon.mxNZ85k0.js";
28
28
  import { C as vt } from "./icon-button.DbVIFgu7.js";
29
29
  import { C as bt } from "./input.BcyLZUmv.js";
30
30
  import { C as ft } from "./option.qN3aaqVI.js";
31
31
  import gt from "../components/select.js";
32
- import { c as Yt } from "./image.QVlPFadX.js";
33
- import { e as it } from "./query.BBf1UFkC.js";
34
- import { c as ot } from "./repeat.CFjcER6_.js";
32
+ import { c as Jt } from "./image.QVlPFadX.js";
33
+ import { e as et } from "./query.BBf1UFkC.js";
34
+ import { c as at } from "./repeat.CFjcER6_.js";
35
35
  import { o as W } from "./style-map.llVFPd__.js";
36
- import Nt from "../components/tooltip.js";
37
- import Jt from "../components/button-group.js";
38
- import { C as te } from "./checkbox.3i2j3PHc.js";
39
- function ee(t) {
40
- return t && t.length ? Xt(t) : [];
41
- }
36
+ import Ot from "../components/tooltip.js";
37
+ import te from "../components/button-group.js";
38
+ import { C as ee } from "./checkbox.3i2j3PHc.js";
42
39
  function ie(t) {
40
+ return t && t.length ? Kt(t) : [];
41
+ }
42
+ function se(t) {
43
43
  return typeof t == "object" && t !== null && "URI" in t;
44
44
  }
45
- const se = {
45
+ const ae = {
46
46
  artist: "Artist",
47
47
  color: "Color",
48
48
  createDate: "CreateDate",
@@ -64,18 +64,18 @@ const se = {
64
64
  systemIdentifier: "SystemIdentifier",
65
65
  text: "Text",
66
66
  title: "Title"
67
- }, ae = /* @__PURE__ */ new Set(["mediaDate", "createDate", "editDate"]);
67
+ }, oe = /* @__PURE__ */ new Set(["mediaDate", "createDate", "editDate"]);
68
68
  function zt(t) {
69
69
  return !/[\s&+/*"\\:(),'<>~|[\]{}]/.test(t) && !/^(?:OR|AND|NOT)$/.test(t) ? t : `"${t.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
70
70
  }
71
- function Pt(t, e) {
71
+ function Ft(t, e) {
72
72
  const s = (Array.isArray(e) ? e : [e]).map((a) => `${t}:${zt(a)}`);
73
73
  return s.length > 1 ? `(${s.join(" OR ")})` : s[0] ?? "";
74
74
  }
75
- function oe(t, e) {
75
+ function re(t, e) {
76
76
  return (Array.isArray(e) ? e : [e]).map((s) => `${t}${s.operator}${s.value}`).join(" AND ");
77
77
  }
78
- function re(t) {
78
+ function he(t) {
79
79
  const e = [];
80
80
  for (const i of Object.keys(t)) {
81
81
  const s = i, a = t[s];
@@ -85,14 +85,14 @@ function re(t) {
85
85
  for (const [h, n] of Object.entries(
86
86
  a
87
87
  ))
88
- e.push(Pt(h, n));
88
+ e.push(Ft(h, n));
89
89
  continue;
90
90
  }
91
- const r = se[s];
91
+ const r = ae[s];
92
92
  if (r) {
93
- if (ae.has(s)) {
93
+ if (oe.has(s)) {
94
94
  e.push(
95
- oe(r, a)
95
+ re(r, a)
96
96
  );
97
97
  continue;
98
98
  }
@@ -111,7 +111,7 @@ function re(t) {
111
111
  e.push(`(${n.join(" OR ")})`);
112
112
  continue;
113
113
  }
114
- e.push(Pt(r, a));
114
+ e.push(Ft(r, a));
115
115
  }
116
116
  }
117
117
  return e.join(" AND ");
@@ -127,34 +127,34 @@ function ht(t) {
127
127
  const e = ht(t.not);
128
128
  return e ? `NOT (${e})` : "";
129
129
  }
130
- return re(t);
130
+ return he(t);
131
131
  }
132
- const wt = "CoreField.LargeSizePreview", nt = "CoreField.DocType", he = "Document.Title", ne = "Document.CaptionLong", lt = "Document.FileExtension", Ft = "CoreField.FileSize", Mt = "CoreField.Identifier", _t = "CoreField.Keywords", ct = "CoreField.MaxHeight", pt = "CoreField.MaxWidth", dt = "Document.RecordID", It = "CoreField.DocSubType", Ot = "CoreField.TitleWithFallback", ut = "CoreField.OriginalFileName", mt = "CoreField.UpdatedFileName", J = "CoreField.OriginalPreview", St = {
132
+ const wt = "CoreField.LargeSizePreview", nt = "CoreField.DocType", ne = "Document.Title", le = "Document.CaptionLong", lt = "Document.FileExtension", Mt = "CoreField.FileSize", _t = "CoreField.Identifier", It = "CoreField.Keywords", ct = "CoreField.MaxHeight", pt = "CoreField.MaxWidth", dt = "Document.RecordID", Et = "CoreField.DocSubType", Lt = "CoreField.TitleWithFallback", ut = "CoreField.OriginalFileName", mt = "CoreField.UpdatedFileName", Y = "CoreField.OriginalPreview", St = {
133
133
  DEFAULT_VIEW_SIZE: "Document.LargeSizePreview",
134
134
  FIELD_TITLE_WITH_FALLBACK: "Document.TitleWithFallback",
135
135
  ORIGINAL_VIEW_SIZE: "Document.OriginalPreview"
136
- }, Lt = {
136
+ }, Ut = {
137
137
  [wt]: St.DEFAULT_VIEW_SIZE,
138
- [Ot]: St.FIELD_TITLE_WITH_FALLBACK,
139
- [J]: St.ORIGINAL_VIEW_SIZE
140
- }, le = Object.fromEntries(
141
- Object.entries(Lt).map(([t, e]) => [
138
+ [Lt]: St.FIELD_TITLE_WITH_FALLBACK,
139
+ [Y]: St.ORIGINAL_VIEW_SIZE
140
+ }, ce = Object.fromEntries(
141
+ Object.entries(Ut).map(([t, e]) => [
142
142
  e,
143
143
  t
144
144
  ])
145
145
  );
146
- function ce(t) {
147
- return Lt[t] ?? t;
146
+ function pe(t) {
147
+ return Ut[t] ?? t;
148
148
  }
149
- function Et(t) {
149
+ function Ht(t) {
150
150
  const e = {};
151
151
  for (const [i, s] of Object.entries(t)) {
152
- const a = le[i] ?? i;
152
+ const a = ce[i] ?? i;
153
153
  e[a] = s;
154
154
  }
155
155
  return e;
156
156
  }
157
- async function Ut({
157
+ async function Bt({
158
158
  countPerPage: t,
159
159
  fields: e,
160
160
  getPermanentAssetsPaths: i,
@@ -167,7 +167,7 @@ async function Ut({
167
167
  token: m,
168
168
  useSession: c
169
169
  }) {
170
- const f = e?.map(ce);
170
+ const f = e?.map(pe);
171
171
  try {
172
172
  return (await M.request({
173
173
  baseURL: n,
@@ -175,7 +175,7 @@ async function Ut({
175
175
  method: "GET",
176
176
  params: {
177
177
  CountPerPage: t,
178
- Fields: ee(f),
178
+ Fields: ie(f),
179
179
  Format: "json",
180
180
  GetPermanentAssetsPaths: i || void 0,
181
181
  PageNumber: a,
@@ -189,22 +189,22 @@ async function Ut({
189
189
  transformResponse: [
190
190
  ...Array.isArray(M.defaults.transformResponse) ? M.defaults.transformResponse : [],
191
191
  s ? (p) => ({
192
- items: (p.results?.Items ?? []).map(Et),
192
+ items: (p.results?.Items ?? []).map(Ht),
193
193
  sort: p.results?.GlobalInfo?.Sort ?? "",
194
194
  totalCount: p.results?.GlobalInfo?.TotalCount ?? 0
195
195
  }) : (p) => ({
196
- items: (p.APIResponse?.Items ?? []).map(Et),
196
+ items: (p.APIResponse?.Items ?? []).map(Ht),
197
197
  sort: p.APIResponse?.GlobalInfo?.Sort ?? "",
198
198
  totalCount: p.APIResponse?.GlobalInfo?.TotalCount ?? 0
199
199
  })
200
200
  ],
201
- url: s ? Dt.SEARCH_ASSETS : Bt["4.0"]
201
+ url: s ? Nt.SEARCH_ASSETS : qt["4.0"]
202
202
  })).data;
203
203
  } catch {
204
204
  return { items: [], sort: "", totalCount: 0 };
205
205
  }
206
206
  }
207
- async function pe({
207
+ async function de({
208
208
  assetId: t,
209
209
  extension: e,
210
210
  format: i,
@@ -220,7 +220,7 @@ async function pe({
220
220
  params: {
221
221
  SourceAssetFormat: i,
222
222
  SourceAssetRecordID: t,
223
- TargetExtension: Qt(e),
223
+ TargetExtension: Xt(e),
224
224
  Token: a || void 0,
225
225
  Transformations: r,
226
226
  UseSession: h || void 0
@@ -230,20 +230,20 @@ async function pe({
230
230
  */
231
231
  timeout: 3e5,
232
232
  // 5 minutes
233
- url: Wt.GET_TRANSFORM_ASSET_LINK
233
+ url: Dt.GET_TRANSFORM_ASSET_LINK
234
234
  })).data;
235
235
  } catch {
236
236
  return null;
237
237
  }
238
238
  }
239
- const de = 50;
240
- function ue(t, e) {
239
+ const ue = 50;
240
+ function me(t, e) {
241
241
  const i = [];
242
242
  for (let s = 0; s < t.length; s += e)
243
243
  i.push(t.slice(s, s + e));
244
244
  return i;
245
245
  }
246
- async function me({
246
+ async function fe({
247
247
  extraFields: t,
248
248
  getPermanentAssetsPaths: e,
249
249
  isSiteBuilder: i,
@@ -255,15 +255,15 @@ async function me({
255
255
  return { facets: [], items: [], totalCount: 0 };
256
256
  const h = t?.filter((p) => p && typeof p == "string") ?? [], n = [
257
257
  ...h,
258
- J,
258
+ Y,
259
259
  mt,
260
260
  ut,
261
- he,
262
261
  ne,
262
+ le,
263
263
  dt
264
- ], d = ue(s, de), m = await Promise.all(
264
+ ], d = me(s, ue), m = await Promise.all(
265
265
  d.map(
266
- (p) => Ut({
266
+ (p) => Bt({
267
267
  countPerPage: p.length,
268
268
  fields: n,
269
269
  getPermanentAssetsPaths: e,
@@ -278,7 +278,7 @@ async function me({
278
278
  let w = C(p, mt);
279
279
  return w === "" && (w = C(p, ut)), {
280
280
  name: w,
281
- originalUrl: C(p, J),
281
+ originalUrl: C(p, Y),
282
282
  recordId: C(p, dt),
283
283
  ...h.reduce(
284
284
  (R, x) => (R[x] = C(p, x), R),
@@ -295,9 +295,9 @@ async function me({
295
295
  }
296
296
  function C(t, e) {
297
297
  const i = t[e];
298
- return i == null ? "" : typeof i == "string" ? i : typeof i == "number" || typeof i == "boolean" ? String(i) : ie(i) ? i.URI : "";
298
+ return i == null ? "" : typeof i == "string" ? i : typeof i == "number" || typeof i == "boolean" ? String(i) : se(i) ? i.URI : "";
299
299
  }
300
- async function fe({
300
+ async function ge({
301
301
  countPerPage: t,
302
302
  directParentFolderIdentifier: e,
303
303
  extraFields: i,
@@ -317,20 +317,20 @@ async function fe({
317
317
  directParentFolderIdentifier: e,
318
318
  parentFolderIdentifier: n,
319
319
  ...r.length > 0 ? { docType: [Rt.Image, Rt.Audio] } : {}
320
- }, w = await Ut({
320
+ }, w = await Bt({
321
321
  countPerPage: t,
322
322
  fields: [
323
323
  ...S,
324
- Ot,
324
+ Lt,
325
325
  wt,
326
- J,
327
- _t,
326
+ Y,
327
+ It,
328
328
  pt,
329
329
  ct,
330
- Ft,
331
- nt,
332
- It,
333
330
  Mt,
331
+ nt,
332
+ Et,
333
+ _t,
334
334
  lt,
335
335
  dt,
336
336
  ut,
@@ -344,25 +344,25 @@ async function fe({
344
344
  sort: void 0,
345
345
  token: f
346
346
  }), R = w.items.map((x) => {
347
- let E = C(x, lt), P = C(x, mt), st = C(x, wt);
348
- E && !E.startsWith(".") && (E = "." + E), P === "" && (P = C(x, ut)), E.toLowerCase() === ".gif" && (st = C(x, J));
347
+ let E = C(x, lt), P = C(x, mt), it = C(x, wt);
348
+ E && !E.startsWith(".") && (E = "." + E), P === "" && (P = C(x, ut)), E.toLowerCase() === ".gif" && (it = C(x, Y));
349
349
  const yt = C(x, dt);
350
350
  return {
351
- docSubType: C(x, It),
351
+ docSubType: C(x, Et),
352
352
  docType: C(x, nt) || "",
353
353
  extension: E,
354
354
  height: C(x, ct) || "0",
355
355
  id: yt,
356
- identifier: C(x, Mt),
357
- imageUrl: st,
356
+ identifier: C(x, _t),
357
+ imageUrl: it,
358
358
  name: P,
359
- originalUrl: C(x, J),
359
+ originalUrl: C(x, Y),
360
360
  recordId: yt,
361
- size: C(x, Ft) || "0 MB",
362
- tags: C(x, _t),
361
+ size: C(x, Mt) || "0 MB",
362
+ tags: C(x, It),
363
363
  width: C(x, pt) || "0",
364
364
  ...S.reduce(
365
- (Q, at) => (Q[at] = C(x, at), Q),
365
+ (Q, st) => (Q[st] = C(x, st), Q),
366
366
  {}
367
367
  )
368
368
  };
@@ -373,7 +373,7 @@ async function fe({
373
373
  totalCount: w.totalCount
374
374
  };
375
375
  }
376
- async function ge({
376
+ async function xe({
377
377
  autoCropMode: t,
378
378
  cropHeight: e,
379
379
  cropWidth: i,
@@ -402,13 +402,13 @@ async function ge({
402
402
  y: h.cropY
403
403
  })
404
404
  ],
405
- url: Wt.GET_CROP_ZONE_SUGGESTION
405
+ url: Dt.GET_CROP_ZONE_SUGGESTION
406
406
  })).data;
407
407
  } catch {
408
408
  return null;
409
409
  }
410
410
  }
411
- async function ki({
411
+ async function Ri({
412
412
  assetRecordId: t,
413
413
  isSiteBuilder: e,
414
414
  siteUrl: i,
@@ -439,13 +439,13 @@ async function ki({
439
439
  width: n.width
440
440
  })) ?? []
441
441
  ],
442
- url: e ? Dt.GET_AVAILABLE_PROXIES : Vt
442
+ url: e ? Nt.GET_AVAILABLE_PROXIES : Gt
443
443
  })).data;
444
444
  } catch {
445
445
  return [];
446
446
  }
447
447
  }
448
- async function Ri({
448
+ async function $i({
449
449
  siteUrl: t
450
450
  } = {}) {
451
451
  try {
@@ -466,13 +466,13 @@ async function Ri({
466
466
  formatsByDocType: i.formatsByDocType ?? {}
467
467
  }
468
468
  ],
469
- url: qt
469
+ url: jt
470
470
  })).data;
471
471
  } catch {
472
472
  return { formatsByDocType: {} };
473
473
  }
474
474
  }
475
- async function $i({
475
+ async function Pi({
476
476
  recordIds: t,
477
477
  rightsToCheck: e
478
478
  }) {
@@ -488,14 +488,14 @@ async function $i({
488
488
  params: { RecordIDs: t, RightsToCheck: e },
489
489
  paramsSerializer: { indexes: null },
490
490
  responseType: "json",
491
- url: jt.GET_AUTHORIZED_OBJECTS
491
+ url: Vt.GET_AUTHORIZED_OBJECTS
492
492
  });
493
493
  return s;
494
494
  } catch {
495
495
  return i;
496
496
  }
497
497
  }
498
- const Ht = 20, Tt = "TR1", xe = /* @__PURE__ */ new Set([
498
+ const Tt = 20, Wt = "TR1", ye = /* @__PURE__ */ new Set([
499
499
  ".avif",
500
500
  ".bmp",
501
501
  ".gif",
@@ -508,15 +508,15 @@ const Ht = 20, Tt = "TR1", xe = /* @__PURE__ */ new Set([
508
508
  ]);
509
509
  function At(t) {
510
510
  const e = t.toLowerCase(), i = e.startsWith(".") ? e : `.${e}`;
511
- return xe.has(i);
511
+ return ye.has(i);
512
512
  }
513
- class Pi {
513
+ class Fi {
514
514
  constructor(e, i) {
515
- this.data = [], this.folderId = "", this.fetchedPages = /* @__PURE__ */ new Set(), this.totalCount = 0, this.maxEnd = 1 / 0, this.pageSize = Ht, this.requestEpoch = 0, this.host = e, this.host.addController?.(this);
515
+ this.data = [], this.folderId = "", this.fetchedPages = /* @__PURE__ */ new Set(), this.totalCount = 0, this.maxEnd = 1 / 0, this.pageSize = Tt, this.requestEpoch = 0, this.host = e, this.host.addController?.(this);
516
516
  const s = i?.maxEnd;
517
517
  this.maxEnd = typeof s == "number" && Number.isFinite(s) && s >= 0 ? Math.floor(s) : 1 / 0;
518
518
  const a = i?.pageSize;
519
- this.pageSize = typeof a == "number" && Number.isFinite(a) && a >= 1 ? Math.floor(a) : Ht, this.authToken = i?.token, this.securityByPassToken = i?.securityByPassToken, this.isSiteBuilder = i?.isSiteBuilder ?? !1;
519
+ this.pageSize = typeof a == "number" && Number.isFinite(a) && a >= 1 ? Math.floor(a) : Tt, this.authToken = i?.token, this.securityByPassToken = i?.securityByPassToken, this.isSiteBuilder = i?.isSiteBuilder ?? !1;
520
520
  }
521
521
  get totalDataCount() {
522
522
  return this.totalCount;
@@ -538,11 +538,11 @@ class Pi {
538
538
  const h = this.requestEpoch;
539
539
  if (!this.folderId || h !== this.requestEpoch)
540
540
  return this.data;
541
- const n = s ? `path_${s}` : void 0, d = s === "TRX", m = `path_${Tt}`, c = n ? d && n !== m ? [n, m] : [n] : [], f = Math.floor(a / this.pageSize) + 1, S = Math.floor(e / this.pageSize) + 1;
541
+ const n = s ? `path_${s}` : void 0, d = s === "TRX", m = `path_${Wt}`, c = n ? d && n !== m ? [n, m] : [n] : [], f = Math.floor(a / this.pageSize) + 1, S = Math.floor(e / this.pageSize) + 1;
542
542
  for (let p = f; p <= S; p++) {
543
543
  if (this.fetchedPages.has(p))
544
544
  continue;
545
- const w = await fe({
545
+ const w = await ge({
546
546
  countPerPage: this.pageSize,
547
547
  directParentFolderIdentifier: this.folderId,
548
548
  extraFields: [...i, ...c],
@@ -561,7 +561,7 @@ class Pi {
561
561
  const x = Math.min(this.maxEnd, w.totalCount);
562
562
  this.totalCount = x, this.data = Array.from({ length: x }, () => ({
563
563
  alt: "",
564
- id: `temp-${Kt()}`,
564
+ id: `temp-${Zt()}`,
565
565
  name: "",
566
566
  src: ""
567
567
  }));
@@ -570,16 +570,16 @@ class Pi {
570
570
  for (let x = 0; x < w.items.length; x++) {
571
571
  const E = R + x;
572
572
  if (E < this.data.length) {
573
- const P = w.items[x], st = !P.extension || At(P.extension);
574
- let Q = n && (!d || st) && P[n] || d && !st && P[m] || P.imageUrl;
575
- Q && r && r.length > 0 && (Q = Y({ baseUrl: Q, transformations: r })), this.data[E] = {
573
+ const P = w.items[x], it = !P.extension || At(P.extension);
574
+ let Q = n && (!d || it) && P[n] || d && !it && P[m] || P.imageUrl;
575
+ Q && r && r.length > 0 && (Q = $t(Q, r)), this.data[E] = {
576
576
  alt: P.name,
577
577
  docType: P.docType,
578
578
  id: P.id,
579
579
  name: P.name,
580
580
  src: Q,
581
581
  ...i.reduce(
582
- (at, kt) => (at[kt] = P[kt] ?? "", at),
582
+ (st, kt) => (st[kt] = P[kt] ?? "", st),
583
583
  {}
584
584
  )
585
585
  };
@@ -629,13 +629,13 @@ class Pi {
629
629
  }) {
630
630
  if (s.length === 0)
631
631
  return [];
632
- const r = i ? `path_${i}` : void 0, h = i === "TRX", n = `path_${Tt}`, d = r ? h && r !== n ? [r, n] : [r] : [], m = h ? [lt] : [], c = [
632
+ const r = i ? `path_${i}` : void 0, h = i === "TRX", n = `path_${Wt}`, d = r ? h && r !== n ? [r, n] : [r] : [], m = h ? [lt] : [], c = [
633
633
  ...e,
634
634
  nt,
635
635
  ct,
636
636
  pt
637
637
  ];
638
- return (await me({
638
+ return (await fe({
639
639
  extraFields: [...c, ...d, ...m].filter((S) => S !== ""),
640
640
  getPermanentAssetsPaths: d.length > 0 || void 0,
641
641
  isSiteBuilder: this.isSiteBuilder,
@@ -645,7 +645,7 @@ class Pi {
645
645
  })).items.map((S) => {
646
646
  const p = h && S[lt] || "", w = !p || At(p);
647
647
  let x = r && (!h || w) && S[r] || h && !w && S[n] || S.originalUrl;
648
- return x && a && a.length > 0 && (x = Y({ baseUrl: x, transformations: a })), {
648
+ return x && a && a.length > 0 && (x = $t(x, a)), {
649
649
  alt: S.name,
650
650
  docType: S[nt],
651
651
  id: S.recordId,
@@ -728,11 +728,11 @@ class Pi {
728
728
  this.resetPageCache();
729
729
  }
730
730
  }
731
- const ye = B`.asset-link-format__details{--header-padding:var(--cx-spacing-small) var(--cx-spacing-medium)}.asset-link-format__details::part(icon){width:var(--cx-font-size-3x-large);height:var(--cx-font-size-3x-large);background-color:var(--cx-color-neutral-100);border-radius:var(--cx-border-radius-large);color:var(--cx-color-neutral-600);font-size:var(--cx-font-size-large);justify-content:center;align-items:center;display:flex}.asset-link-format__details::part(input-label){color:var(--cx-color-neutral-400);margin-inline-start:var(--cx-spacing-small)}.asset-link-format__header{padding:var(--cx-spacing-medium)}.asset-link-format__section-header{padding:0 var(--cx-spacing-medium);border-top:var(--section-header-border-width,1px) solid var(--cx-color-neutral-200);background-color:var(--cx-color-neutral-50)}.asset-link-format__undo,.asset-link-format__reset{--color:var(--cx-color-primary);--background-color:transparent}`, Se = B`cx-details::part(base){border-bottom-width:0}cx-space{width:100%}cx-space cx-input{flex:1}.crop__unit-select{width:120px}.crop__input-group{flex:1;display:flex}`;
732
- var ze = Object.defineProperty, we = Object.getOwnPropertyDescriptor, v = (t, e, i, s) => {
733
- for (var a = s > 1 ? void 0 : s ? we(e, i) : e, r = t.length - 1, h; r >= 0; r--)
731
+ const Se = B`.asset-link-format__details{--header-padding:var(--cx-spacing-small) var(--cx-spacing-medium)}.asset-link-format__details::part(icon){width:var(--cx-font-size-3x-large);height:var(--cx-font-size-3x-large);background-color:var(--cx-color-neutral-100);border-radius:var(--cx-border-radius-large);color:var(--cx-color-neutral-600);font-size:var(--cx-font-size-large);justify-content:center;align-items:center;display:flex}.asset-link-format__details::part(input-label){color:var(--cx-color-neutral-400);margin-inline-start:var(--cx-spacing-small)}.asset-link-format__header{padding:var(--cx-spacing-medium)}.asset-link-format__section-header{padding:0 var(--cx-spacing-medium);border-top:var(--section-header-border-width,1px) solid var(--cx-color-neutral-200);background-color:var(--cx-color-neutral-50)}.asset-link-format__undo,.asset-link-format__reset{--color:var(--cx-color-primary);--background-color:transparent}`, ze = B`cx-details::part(base){border-bottom-width:0}cx-space{width:100%}cx-space cx-input{flex:1}.crop__unit-select{width:120px}.crop__input-group{flex:1;display:flex}`;
732
+ var we = Object.defineProperty, Ae = Object.getOwnPropertyDescriptor, v = (t, e, i, s) => {
733
+ for (var a = s > 1 ? void 0 : s ? Ae(e, i) : e, r = t.length - 1, h; r >= 0; r--)
734
734
  (h = t[r]) && (a = (s ? h(e, i, a) : h(a)) || a);
735
- return s && a && ze(e, i, a), a;
735
+ return s && a && we(e, i, a), a;
736
736
  };
737
737
  let z = class extends U {
738
738
  constructor() {
@@ -848,7 +848,7 @@ let z = class extends U {
848
848
  const [s, a] = e.split(":").map(Number);
849
849
  if (this.unit === o.Pixel) {
850
850
  let r = s, h = a;
851
- Number.isFinite(this.maxWidth) && Number.isFinite(this.maxHeight) && ({ height: h, width: r } = Yt(
851
+ Number.isFinite(this.maxWidth) && Number.isFinite(this.maxHeight) && ({ height: h, width: r } = Jt(
852
852
  this.maxWidth,
853
853
  this.maxHeight,
854
854
  s,
@@ -962,7 +962,7 @@ let z = class extends U {
962
962
  !this.noRatioModes,
963
963
  () => A`<cx-select data-testid="cx-asset-link-format-crop-mode" value=${this.cropMode} hoist style=${W({
964
964
  width: "100%"
965
- })} @cx-change=${this.onCropModeChange} ?disabled=${this.loading}>${ot(
965
+ })} @cx-change=${this.onCropModeChange} ?disabled=${this.loading}>${at(
966
966
  t,
967
967
  (i) => i.value,
968
968
  ({ label: i, value: s }) => A`<cx-option value=${s}>${i}</cx-option>`
@@ -971,7 +971,7 @@ let z = class extends U {
971
971
  e.length > 0,
972
972
  () => A`<cx-divider></cx-divider><small>${this.localize.term("autoCropping")}</small>`
973
973
  )}
974
- ${ot(
974
+ ${at(
975
975
  e,
976
976
  (i) => i.value,
977
977
  ({ label: i, value: s }) => A`<cx-option value=${s}>${i}</cx-option>`
@@ -989,7 +989,7 @@ let z = class extends U {
989
989
  this.focusModes.length > 0,
990
990
  () => A`<cx-select data-testid="cx-asset-link-format-crop-focus-mode" value=${this.focusMode} hoist style=${W({
991
991
  width: "100%"
992
- })} @cx-change=${this.onFocusModeChange} ?disabled=${this.loading || this.selectedMode?.disabledSize}>${ot(
992
+ })} @cx-change=${this.onFocusModeChange} ?disabled=${this.loading || this.selectedMode?.disabledSize}>${at(
993
993
  this.focusModes,
994
994
  (i) => i.value,
995
995
  ({ label: i, value: s }) => A`<cx-option value=${s}>${i}</cx-option>`
@@ -999,12 +999,12 @@ let z = class extends U {
999
999
  })} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
1000
1000
  }
1001
1001
  };
1002
- z.styles = [j, Se];
1002
+ z.styles = [j, ze];
1003
1003
  z.dependencies = {
1004
1004
  "cx-button": K,
1005
- "cx-details": tt,
1006
- "cx-divider": Zt,
1007
- "cx-icon": et,
1005
+ "cx-details": J,
1006
+ "cx-divider": Yt,
1007
+ "cx-icon": tt,
1008
1008
  "cx-icon-button": vt,
1009
1009
  "cx-input": bt,
1010
1010
  "cx-option": ft,
@@ -1013,7 +1013,7 @@ z.dependencies = {
1013
1013
  "cx-typography": L
1014
1014
  };
1015
1015
  v([
1016
- it(".details")
1016
+ et(".details")
1017
1017
  ], z.prototype, "base", 2);
1018
1018
  v([
1019
1019
  l({ reflect: !0, type: Boolean })
@@ -1093,11 +1093,11 @@ v([
1093
1093
  z = v([
1094
1094
  V("cx-asset-link-format-crop")
1095
1095
  ], z);
1096
- const Ae = B`.extension{padding:var(--cx-spacing-small) var(--cx-spacing-medium);border:solid 1px var(--cx-color-neutral-200);background-color:var(--cx-color-neutral-0);& cx-select{flex:1;width:100%}}`;
1097
- var ve = Object.defineProperty, be = Object.getOwnPropertyDescriptor, Ct = (t, e, i, s) => {
1098
- for (var a = s > 1 ? void 0 : s ? be(e, i) : e, r = t.length - 1, h; r >= 0; r--)
1096
+ const ve = B`.extension{padding:var(--cx-spacing-small) var(--cx-spacing-medium);border:solid 1px var(--cx-color-neutral-200);background-color:var(--cx-color-neutral-0);& cx-select{flex:1;width:100%}}`;
1097
+ var be = Object.defineProperty, Ce = Object.getOwnPropertyDescriptor, Ct = (t, e, i, s) => {
1098
+ for (var a = s > 1 ? void 0 : s ? Ce(e, i) : e, r = t.length - 1, h; r >= 0; r--)
1099
1099
  (h = t[r]) && (a = (s ? h(e, i, a) : h(a)) || a);
1100
- return s && a && ve(e, i, a), a;
1100
+ return s && a && be(e, i, a), a;
1101
1101
  };
1102
1102
  let X = class extends U {
1103
1103
  constructor() {
@@ -1110,14 +1110,14 @@ let X = class extends U {
1110
1110
  });
1111
1111
  }
1112
1112
  render() {
1113
- return A`<cx-space direction="vertical" spacing="small" class="extension"><cx-typography variant="body2">${this.localize.term("extension")}</cx-typography><cx-select data-label=${this.localize.term("extension")} data-testid="cx-asset-link-format-extension-select" value=${this.value} hoist @cx-change=${this.handleExtensionChange}>${ot(
1113
+ return A`<cx-space direction="vertical" spacing="small" class="extension"><cx-typography variant="body2">${this.localize.term("extension")}</cx-typography><cx-select data-label=${this.localize.term("extension")} data-testid="cx-asset-link-format-extension-select" value=${this.value} hoist @cx-change=${this.handleExtensionChange}>${at(
1114
1114
  this.items,
1115
1115
  (t) => t.value,
1116
1116
  (t) => A`<cx-option value=${t.value}>${t.displayName}</cx-option>`
1117
1117
  )}</cx-select></cx-space>`;
1118
1118
  }
1119
1119
  };
1120
- X.styles = [j, Ae];
1120
+ X.styles = [j, ve];
1121
1121
  X.dependencies = {
1122
1122
  "cx-option": ft,
1123
1123
  "cx-select": gt,
@@ -1133,11 +1133,11 @@ Ct([
1133
1133
  X = Ct([
1134
1134
  V("cx-asset-link-format-extension")
1135
1135
  ], X);
1136
- const Ce = B`cx-details::part(base){border-bottom-width:0}`;
1137
- var ke = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, D = (t, e, i, s) => {
1138
- for (var a = s > 1 ? void 0 : s ? Re(e, i) : e, r = t.length - 1, h; r >= 0; r--)
1136
+ const ke = B`cx-details::part(base){border-bottom-width:0}`;
1137
+ var Re = Object.defineProperty, $e = Object.getOwnPropertyDescriptor, D = (t, e, i, s) => {
1138
+ for (var a = s > 1 ? void 0 : s ? $e(e, i) : e, r = t.length - 1, h; r >= 0; r--)
1139
1139
  (h = t[r]) && (a = (s ? h(e, i, a) : h(a)) || a);
1140
- return s && a && ke(e, i, a), a;
1140
+ return s && a && Re(e, i, a), a;
1141
1141
  };
1142
1142
  let I = class extends U {
1143
1143
  constructor() {
@@ -1185,7 +1185,7 @@ let I = class extends U {
1185
1185
  t.target !== this.base && t.stopPropagation();
1186
1186
  }
1187
1187
  render() {
1188
- return A`<cx-details class="details" ?open=${this.open} @cx-show=${this.onShowDetails} @cx-hide=${this.onHideDetails}><cx-space slot="summary" align-items="center"><div part="icon"><cx-icon name="photo_size_select_large"></cx-icon></div><cx-typography variant="body2">${this.localize.term("format")}</cx-typography></cx-space><cx-space direction="vertical" spacing="small" class="format"><cx-select data-label=${this.localize.term("imageFormat")} data-testid="cx-asset-link-format-proxy-select" value=${this.scopedValue} hoist @cx-change=${this.handleProxyChange} ?disabled=${this.loading}>${ot(
1188
+ return A`<cx-details class="details" ?open=${this.open} @cx-show=${this.onShowDetails} @cx-hide=${this.onHideDetails}><cx-space slot="summary" align-items="center"><div part="icon"><cx-icon name="photo_size_select_large"></cx-icon></div><cx-typography variant="body2">${this.localize.term("format")}</cx-typography></cx-space><cx-space direction="vertical" spacing="small" class="format"><cx-select data-label=${this.localize.term("imageFormat")} data-testid="cx-asset-link-format-proxy-select" value=${this.scopedValue} hoist @cx-change=${this.handleProxyChange} ?disabled=${this.loading}>${at(
1189
1189
  this.items,
1190
1190
  (t) => t.id,
1191
1191
  (t) => A`<cx-option value=${t.id}>${t.proxyLabel}</cx-option>`
@@ -1194,18 +1194,18 @@ let I = class extends U {
1194
1194
  })} ?disabled=${this.scopedValue === this.value} ?loading=${this.loading} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
1195
1195
  }
1196
1196
  };
1197
- I.styles = [j, Ce];
1197
+ I.styles = [j, ke];
1198
1198
  I.dependencies = {
1199
1199
  "cx-button": K,
1200
- "cx-details": tt,
1201
- "cx-icon": et,
1200
+ "cx-details": J,
1201
+ "cx-icon": tt,
1202
1202
  "cx-option": ft,
1203
1203
  "cx-select": gt,
1204
1204
  "cx-space": O,
1205
1205
  "cx-typography": L
1206
1206
  };
1207
1207
  D([
1208
- it(".details")
1208
+ et(".details")
1209
1209
  ], I.prototype, "base", 2);
1210
1210
  D([
1211
1211
  l({ reflect: !0, type: Boolean })
@@ -1231,11 +1231,11 @@ D([
1231
1231
  I = D([
1232
1232
  V("cx-asset-link-format-proxy")
1233
1233
  ], I);
1234
- const $e = B`cx-details::part(base){border-bottom-width:0}`;
1235
- var Pe = Object.defineProperty, Fe = Object.getOwnPropertyDescriptor, Z = (t, e, i, s) => {
1236
- for (var a = s > 1 ? void 0 : s ? Fe(e, i) : e, r = t.length - 1, h; r >= 0; r--)
1234
+ const Pe = B`cx-details::part(base){border-bottom-width:0}`;
1235
+ var Fe = Object.defineProperty, Me = Object.getOwnPropertyDescriptor, Z = (t, e, i, s) => {
1236
+ for (var a = s > 1 ? void 0 : s ? Me(e, i) : e, r = t.length - 1, h; r >= 0; r--)
1237
1237
  (h = t[r]) && (a = (s ? h(e, i, a) : h(a)) || a);
1238
- return s && a && Pe(e, i, a), a;
1238
+ return s && a && Fe(e, i, a), a;
1239
1239
  };
1240
1240
  let T = class extends U {
1241
1241
  constructor() {
@@ -1288,18 +1288,18 @@ let T = class extends U {
1288
1288
  })} @cx-input=${this.handleQualityChange}></cx-input></cx-tooltip><cx-button data-testid="cx-asset-link-format-quality-apply" variant="primary" ?disabled=${this.invalidValue} ?loading=${this.loading} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
1289
1289
  }
1290
1290
  };
1291
- T.styles = [j, $e];
1291
+ T.styles = [j, Pe];
1292
1292
  T.dependencies = {
1293
1293
  "cx-button": K,
1294
- "cx-details": tt,
1295
- "cx-icon": et,
1294
+ "cx-details": J,
1295
+ "cx-icon": tt,
1296
1296
  "cx-input": bt,
1297
1297
  "cx-space": O,
1298
- "cx-tooltip": Nt,
1298
+ "cx-tooltip": Ot,
1299
1299
  "cx-typography": L
1300
1300
  };
1301
1301
  Z([
1302
- it(".details")
1302
+ et(".details")
1303
1303
  ], T.prototype, "base", 2);
1304
1304
  Z([
1305
1305
  l({ reflect: !0, type: Boolean })
@@ -1319,11 +1319,11 @@ Z([
1319
1319
  T = Z([
1320
1320
  V("cx-asset-link-format-quality")
1321
1321
  ], T);
1322
- const Me = B`cx-details::part(base){border-bottom-width:0}cx-space{width:100%}cx-space cx-input{flex:1}.resize__unit-select{width:120px}.resize__input-group{flex:1;display:flex}`;
1323
- var _e = Object.defineProperty, Ie = Object.getOwnPropertyDescriptor, $ = (t, e, i, s) => {
1324
- for (var a = s > 1 ? void 0 : s ? Ie(e, i) : e, r = t.length - 1, h; r >= 0; r--)
1322
+ const _e = B`cx-details::part(base){border-bottom-width:0}cx-space{width:100%}cx-space cx-input{flex:1}.resize__unit-select{width:120px}.resize__input-group{flex:1;display:flex}`;
1323
+ var Ie = Object.defineProperty, Ee = Object.getOwnPropertyDescriptor, $ = (t, e, i, s) => {
1324
+ for (var a = s > 1 ? void 0 : s ? Ee(e, i) : e, r = t.length - 1, h; r >= 0; r--)
1325
1325
  (h = t[r]) && (a = (s ? h(e, i, a) : h(a)) || a);
1326
- return s && a && _e(e, i, a), a;
1326
+ return s && a && Ie(e, i, a), a;
1327
1327
  };
1328
1328
  let b = class extends U {
1329
1329
  constructor() {
@@ -1478,11 +1478,11 @@ let b = class extends U {
1478
1478
  })} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
1479
1479
  }
1480
1480
  };
1481
- b.styles = [j, Me];
1481
+ b.styles = [j, _e];
1482
1482
  b.dependencies = {
1483
1483
  "cx-button": K,
1484
- "cx-details": tt,
1485
- "cx-icon": et,
1484
+ "cx-details": J,
1485
+ "cx-icon": tt,
1486
1486
  "cx-icon-button": vt,
1487
1487
  "cx-input": bt,
1488
1488
  "cx-option": ft,
@@ -1491,7 +1491,7 @@ b.dependencies = {
1491
1491
  "cx-typography": L
1492
1492
  };
1493
1493
  $([
1494
- it(".details")
1494
+ et(".details")
1495
1495
  ], b.prototype, "base", 2);
1496
1496
  $([
1497
1497
  l({ reflect: !0, type: Boolean })
@@ -1550,11 +1550,11 @@ $([
1550
1550
  b = $([
1551
1551
  V("cx-asset-link-format-resize")
1552
1552
  ], b);
1553
- const Ee = B`cx-details::part(base){border-bottom-width:0}`;
1554
- var He = Object.defineProperty, Te = Object.getOwnPropertyDescriptor, G = (t, e, i, s) => {
1555
- for (var a = s > 1 ? void 0 : s ? Te(e, i) : e, r = t.length - 1, h; r >= 0; r--)
1553
+ const He = B`cx-details::part(base){border-bottom-width:0}`;
1554
+ var Te = Object.defineProperty, We = Object.getOwnPropertyDescriptor, G = (t, e, i, s) => {
1555
+ for (var a = s > 1 ? void 0 : s ? We(e, i) : e, r = t.length - 1, h; r >= 0; r--)
1556
1556
  (h = t[r]) && (a = (s ? h(e, i, a) : h(a)) || a);
1557
- return s && a && He(e, i, a), a;
1557
+ return s && a && Te(e, i, a), a;
1558
1558
  };
1559
1559
  let H = class extends U {
1560
1560
  constructor() {
@@ -1569,14 +1569,14 @@ let H = class extends U {
1569
1569
  const e = t.target.value, i = Number(e);
1570
1570
  if (Number.isNaN(i))
1571
1571
  return;
1572
- const s = $t(i);
1572
+ const s = Pt(i);
1573
1573
  (i > 360 || i < -360) && (t.target.value = s.toString()), this.emit("cx-asset-link-format-rotation-change", {
1574
1574
  detail: s
1575
1575
  });
1576
1576
  }
1577
1577
  handleButtonClick(t) {
1578
1578
  this.emit("cx-asset-link-format-rotation-change", {
1579
- detail: $t(t)
1579
+ detail: Pt(t)
1580
1580
  });
1581
1581
  }
1582
1582
  handleClockwiseClick() {
@@ -1602,18 +1602,18 @@ let H = class extends U {
1602
1602
  })} @cx-input=${this.handleRotationChange}></cx-input><cx-button data-testid="cx-asset-link-format-rotation-apply" variant="primary" ?disabled=${this.value === this.lastAppliedValue} ?loading=${this.loading} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
1603
1603
  }
1604
1604
  };
1605
- H.styles = [j, Ee];
1605
+ H.styles = [j, He];
1606
1606
  H.dependencies = {
1607
1607
  "cx-button": K,
1608
- "cx-button-group": Jt,
1609
- "cx-details": tt,
1610
- "cx-icon": et,
1608
+ "cx-button-group": te,
1609
+ "cx-details": J,
1610
+ "cx-icon": tt,
1611
1611
  "cx-icon-button": vt,
1612
1612
  "cx-space": O,
1613
1613
  "cx-typography": L
1614
1614
  };
1615
1615
  G([
1616
- it(".details")
1616
+ et(".details")
1617
1617
  ], H.prototype, "base", 2);
1618
1618
  G([
1619
1619
  l({ reflect: !0, type: Boolean })
@@ -1636,11 +1636,11 @@ G([
1636
1636
  H = G([
1637
1637
  V("cx-asset-link-format-rotation")
1638
1638
  ], H);
1639
- const We = B`cx-details::part(base){border-bottom-width:0}`;
1640
- var De = Object.defineProperty, Ne = Object.getOwnPropertyDescriptor, xt = (t, e, i, s) => {
1641
- for (var a = s > 1 ? void 0 : s ? Ne(e, i) : e, r = t.length - 1, h; r >= 0; r--)
1639
+ const De = B`cx-details::part(base){border-bottom-width:0}`;
1640
+ var Ne = Object.defineProperty, Oe = Object.getOwnPropertyDescriptor, xt = (t, e, i, s) => {
1641
+ for (var a = s > 1 ? void 0 : s ? Oe(e, i) : e, r = t.length - 1, h; r >= 0; r--)
1642
1642
  (h = t[r]) && (a = (s ? h(e, i, a) : h(a)) || a);
1643
- return s && a && De(e, i, a), a;
1643
+ return s && a && Ne(e, i, a), a;
1644
1644
  };
1645
1645
  let N = class extends U {
1646
1646
  constructor() {
@@ -1671,18 +1671,18 @@ let N = class extends U {
1671
1671
  return A`<cx-details class="details" ?open=${this.open} @cx-show=${this.onShowDetails} @cx-hide=${this.onHideDetails}><cx-space slot="summary" align-items="center"><div class="details__summary__icon"><div part="icon"><cx-icon name="short_text"></cx-icon></div></div><cx-typography variant="body2">${this.localize.term("metadata")}</cx-typography></cx-space><cx-space spacing="small"><cx-tooltip data-testid="cx-asset-link-format-metadata-tooltip" content=${this.localize.term("metadataHelpText")} hoist><cx-checkbox data-testid="cx-asset-link-format-metadata" class="details__checkbox" ?checked=${this.value} @cx-change=${this.handleApply}>${this.localize.term("preserveMetadata")}</cx-checkbox></cx-tooltip></cx-space></cx-details>`;
1672
1672
  }
1673
1673
  };
1674
- N.styles = [j, We];
1674
+ N.styles = [j, De];
1675
1675
  N.dependencies = {
1676
1676
  "cx-button": K,
1677
- "cx-checkbox": te,
1678
- "cx-details": tt,
1679
- "cx-icon": et,
1677
+ "cx-checkbox": ee,
1678
+ "cx-details": J,
1679
+ "cx-icon": tt,
1680
1680
  "cx-space": O,
1681
- "cx-tooltip": Nt,
1681
+ "cx-tooltip": Ot,
1682
1682
  "cx-typography": L
1683
1683
  };
1684
1684
  xt([
1685
- it(".details")
1685
+ et(".details")
1686
1686
  ], N.prototype, "base", 2);
1687
1687
  xt([
1688
1688
  l({ reflect: !0, type: Boolean })
@@ -1693,10 +1693,10 @@ xt([
1693
1693
  N = xt([
1694
1694
  V("cx-asset-link-format-metadata")
1695
1695
  ], N);
1696
- var Oe = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, y = (t, e, i, s) => {
1697
- for (var a = s > 1 ? void 0 : s ? Le(e, i) : e, r = t.length - 1, h; r >= 0; r--)
1696
+ var Le = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, y = (t, e, i, s) => {
1697
+ for (var a = s > 1 ? void 0 : s ? Ue(e, i) : e, r = t.length - 1, h; r >= 0; r--)
1698
1698
  (h = t[r]) && (a = (s ? h(e, i, a) : h(a)) || a);
1699
- return s && a && Oe(e, i, a), a;
1699
+ return s && a && Le(e, i, a), a;
1700
1700
  };
1701
1701
  let g = class extends U {
1702
1702
  constructor() {
@@ -1795,7 +1795,7 @@ let g = class extends U {
1795
1795
  }, this.rotation = 0, this.defaultSize = {
1796
1796
  height: 0,
1797
1797
  width: 0
1798
- }, this.cropperElement = null, this.parameters = [], this.loading = !1, this.lastAction = void 0, this.frozenIndex = void 0, this.preResetTransformations = void 0, this.apiGetTransformAssetLink = pe, this.apiGetCropFocusMode = ge, this.onCropComplete = this.onCropComplete.bind(this), this.onCropDragStart = this.onCropDragStart.bind(this);
1798
+ }, this.cropperElement = null, this.parameters = [], this.loading = !1, this.lastAction = void 0, this.frozenIndex = void 0, this.preResetTransformations = void 0, this.apiGetTransformAssetLink = de, this.apiGetCropFocusMode = xe, this.onCropComplete = this.onCropComplete.bind(this), this.onCropDragStart = this.onCropDragStart.bind(this);
1799
1799
  }
1800
1800
  /**
1801
1801
  * Transform requests must resolve to a web-displayable image (the browser renders the
@@ -2025,7 +2025,7 @@ let g = class extends U {
2025
2025
  * Returns the transformation string for the asset link.
2026
2026
  */
2027
2027
  get transformationString() {
2028
- return Y({
2028
+ return ot({
2029
2029
  asset: this.asset,
2030
2030
  baseUrl: "",
2031
2031
  parameters: this.parameters,
@@ -2080,7 +2080,7 @@ let g = class extends U {
2080
2080
  */
2081
2081
  });
2082
2082
  });
2083
- const i = Y({
2083
+ const i = ot({
2084
2084
  asset: this.asset,
2085
2085
  baseUrl: "",
2086
2086
  extension: this.selectedFormat.extension,
@@ -2113,7 +2113,7 @@ let g = class extends U {
2113
2113
  async handleTransformationsChange() {
2114
2114
  if (await this.updateComplete, !this.asset) {
2115
2115
  this.emit("cx-asset-link-format-change", {
2116
- detail: Y({
2116
+ detail: ot({
2117
2117
  asset: this.asset,
2118
2118
  baseUrl: "",
2119
2119
  options: {
@@ -2281,7 +2281,7 @@ let g = class extends U {
2281
2281
  * url: `${this.baseUrl}/${response.relativePath}`,
2282
2282
  */
2283
2283
  };
2284
- const a = Y({
2284
+ const a = ot({
2285
2285
  asset: this.asset,
2286
2286
  baseUrl: "",
2287
2287
  extension: this.selectedFormat.extension,
@@ -2891,7 +2891,7 @@ let g = class extends U {
2891
2891
  return A`<div class="asset-link-format" @cx-show=${this.onDetailsShow} @cx-hide=${this.onDetailsHide}>${_(
2892
2892
  !this.hideHeader,
2893
2893
  () => A`<cx-space class="asset-link-format__section-header" direction="horizontal" spacing="small" align-items="center" justify-content="space-between"><cx-typography variant="body3">${this.localize.term("transformations")}</cx-typography><cx-space direction="horizontal" spacing="3x-small" align-items="center"><cx-button class="asset-link-format__undo" variant="custom" ?disabled=${!this.hasUnfrozenTransformations && this.preResetTransformations === void 0} @click=${this.handleUndo}>${this.localize.term("undo")}</cx-button>${_(this.canReset, () => A`<cx-button class="asset-link-format__reset" variant="custom" ?disabled=${this.transformations.length === 0} @click=${this.handleReset}>${this.localize.term("reset")}</cx-button>`)}</cx-space></cx-space>`,
2894
- () => Gt
2894
+ () => Qt
2895
2895
  )}
2896
2896
  ${_(
2897
2897
  !this.noFormat,
@@ -2918,7 +2918,7 @@ let g = class extends U {
2918
2918
  )}</div>`;
2919
2919
  }
2920
2920
  };
2921
- g.styles = [j, ye];
2921
+ g.styles = [j, Se];
2922
2922
  g.dependencies = {
2923
2923
  "cx-asset-link-format-crop": z,
2924
2924
  "cx-asset-link-format-extension": X,
@@ -3049,23 +3049,23 @@ export {
3049
3049
  g as C,
3050
3050
  wt as D,
3051
3051
  lt as F,
3052
- J as O,
3053
- me as a,
3054
- he as b,
3055
- Ot as c,
3056
- Ri as d,
3057
- $i as e,
3058
- ki as f,
3059
- Ut as g,
3052
+ Y as O,
3053
+ fe as a,
3054
+ ne as b,
3055
+ Lt as c,
3056
+ $i as d,
3057
+ Pi as e,
3058
+ Ri as f,
3059
+ Bt as g,
3060
3060
  dt as h,
3061
3061
  At as i,
3062
3062
  nt as j,
3063
- Ft as k,
3064
- Mt as l,
3063
+ Mt as k,
3064
+ _t as l,
3065
3065
  ct as m,
3066
3066
  pt as n,
3067
- It as o,
3068
- Pi as p,
3069
- ie as q,
3070
- ee as u
3067
+ Et as o,
3068
+ Fi as p,
3069
+ se as q,
3070
+ ie as u
3071
3071
  };