@orangelogic/design-system 2.159.0 → 2.160.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.
@@ -34,7 +34,7 @@ import { a as ObjectFit } from "./index.Cpamj0jB.js";
34
34
  import { r as r$1 } from "./state.CSDxrqLd.js";
35
35
  import { e } from "./class-map.BiVq-cVR.js";
36
36
  import { n as n$1 } from "./when.Dr1es41R.js";
37
- import { C as CxImage } from "./image.BO6NWyIo.js";
37
+ import { C as CxImage } from "./image.5mhGPvMN.js";
38
38
  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 || {});
39
39
  function commonjsRequire(l) {
40
40
  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.');
@@ -5,7 +5,7 @@ import { c as Ae } from "./custom-element.L4WJXn1j.js";
5
5
  import { d as Oe } from "./debounce.DaHuiSGU.js";
6
6
  import { L as je } from "./i18n.Bchq8v1d.js";
7
7
  import { w as I } from "./watch.DOt4Mabe.js";
8
- import { a as Ze } from "./url.-WDYqplj.js";
8
+ import { a as Ze } from "./url.Bd5rq4G0.js";
9
9
  import { i as se, E as K, x as E } from "./lit-element.jLBm65_O.js";
10
10
  import { n as v } from "./lib-cortex-element.CVMmyPMC.js";
11
11
  import { r as k } from "./state.CSDxrqLd.js";
@@ -0,0 +1,48 @@
1
+ function R(a, e = globalThis.location.origin) {
2
+ if (a) {
3
+ try {
4
+ const t = new URL(a);
5
+ if (t.origin === e)
6
+ return t.pathname + t.search + t.hash || "/";
7
+ } catch {
8
+ }
9
+ return a;
10
+ }
11
+ }
12
+ function _(a, e = "https://", t = !1) {
13
+ return t && a.match(c) || a.match(/^[a-zA-Z][a-zA-Z\d+\-.]*:\/\//) ? a : `${e}${a}`;
14
+ }
15
+ function h(a, e, t) {
16
+ if (!a)
17
+ return a;
18
+ const s = a.indexOf("#"), n = s === -1 ? a : a.slice(0, s), d = s === -1 ? "" : a.slice(s), o = n.includes("?") ? "&" : "?";
19
+ return `${n}${o}${encodeURIComponent(e)}=${encodeURIComponent(t)}${d}`;
20
+ }
21
+ function p(a) {
22
+ return !!a && a.toLowerCase().includes("expire");
23
+ }
24
+ function A(a) {
25
+ try {
26
+ return new URL(a), new RegExp(r, "i").test(a);
27
+ } catch {
28
+ return !1;
29
+ }
30
+ }
31
+ const c = "^(?![a-zA-Z][a-zA-Z\\d+\\-.]*:\\/\\/)(?!([a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,}($|\\/))[^\\s]+$", r = "^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[^\\s]*)?$", z = "^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.){2,}[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[^\\s]*)?$", i = "^((https?:\\/\\/)?[a-z\\d]([a-z\\d-]*[a-z\\d])*\\.[a-z\\d]([a-z\\d-]*[a-z\\d])*|(https?:\\/\\/)[a-z\\d]([a-z\\d-]*[a-z\\d])*)(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[^\\s]*)?$";
32
+ function E(a) {
33
+ return new RegExp(z, "i").test(a) || new RegExp(i, "i").test(a);
34
+ }
35
+ const I = "^(https?:\\/\\/)((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[^\\s]*)?$";
36
+ export {
37
+ c as R,
38
+ r as U,
39
+ h as a,
40
+ _ as b,
41
+ E as c,
42
+ p as d,
43
+ z as e,
44
+ i as f,
45
+ I as g,
46
+ A as i,
47
+ R as t
48
+ };
@@ -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.Bzf4-IgH.js";
22
22
  import { default as oe } from "./divider.js";
23
- import { C as ae } from "../chunks/document-viewer.DXtjdvqe.js";
23
+ import { C as ae } from "../chunks/document-viewer.CGyOG1yw.js";
24
24
  import { C as xe } from "../chunks/dot-pagination.BdZc-K0r.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.mxNZ85k0.js";
39
39
  import { C as Fe } from "../chunks/icon.mxNZ85k0.js";
40
40
  import { C as Oe } from "../chunks/icon-button.DbVIFgu7.js";
41
41
  import { C as Ee } from "../chunks/iframe.DcHjOcLG.js";
42
- import { C as Le } from "../chunks/image.BO6NWyIo.js";
42
+ import { C as Le } from "../chunks/image.5mhGPvMN.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.BcyLZUmv.js";
@@ -1,5 +1,5 @@
1
1
  import "../chunks/resizable-component.styles.CAfXABBc.js";
2
- import { C as b } from "../chunks/document-viewer.DXtjdvqe.js";
2
+ import { C as b } from "../chunks/document-viewer.CGyOG1yw.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.mxNZ85k0.js";
13
- import "../chunks/image.BO6NWyIo.js";
13
+ import "../chunks/image.5mhGPvMN.js";
14
14
  import "../chunks/typography.IqHbnd3C.js";
15
15
  export {
16
16
  b as default
@@ -33,7 +33,7 @@ import { C as rt } from "../chunks/typography.IqHbnd3C.js";
33
33
  import { C as jt } from "../chunks/confirm-popover.C-eHPJaU.js";
34
34
  import { d as Mt } from "../chunks/debounce.DaHuiSGU.js";
35
35
  import { a as Z } from "../chunks/number.CtCaI0T_.js";
36
- import { i as X, b as pt } from "../chunks/url.-WDYqplj.js";
36
+ import { i as X, b as pt } from "../chunks/url.Bd5rq4G0.js";
37
37
  import { b as Vt, a as Ht, i as Wt } from "../chunks/_baseXor.VohG8cOH.js";
38
38
  import qt from "./progress-bar.js";
39
39
  import Gt from "./spinner.js";
@@ -1,12 +1,12 @@
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 y } from "../chunks/image.BO6NWyIo.js";
4
+ import { C as y } from "../chunks/image.5mhGPvMN.js";
5
5
  import "../chunks/custom-element.L4WJXn1j.js";
6
6
  import "../chunks/debounce.DaHuiSGU.js";
7
7
  import "../chunks/i18n.Bchq8v1d.js";
8
8
  import "../chunks/watch.DOt4Mabe.js";
9
- import "../chunks/url.-WDYqplj.js";
9
+ import "../chunks/url.Bd5rq4G0.js";
10
10
  import "../chunks/lit-element.jLBm65_O.js";
11
11
  import "../chunks/lib-cortex-element.CVMmyPMC.js";
12
12
  import "../chunks/state.CSDxrqLd.js";
@@ -1,7 +1,7 @@
1
1
  import _ from "./grid.js";
2
2
  import f from "./grid-item.js";
3
3
  import { C as v } from "../chunks/icon-button.DbVIFgu7.js";
4
- import { C as S } from "../chunks/image.BO6NWyIo.js";
4
+ import { C as S } from "../chunks/image.5mhGPvMN.js";
5
5
  import $ from "./space.js";
6
6
  import C from "./tooltip.js";
7
7
  import { n, C as w } from "../chunks/lib-cortex-element.CVMmyPMC.js";
@@ -20,8 +20,8 @@ import Qw from "./details.js";
20
20
  import { default as iYt } from "./diff.js";
21
21
  import { C as Da, D as gf, O as k$, a as HJ, H as VJ, z as UJ, o as qJ } from "../chunks/dialog.Bzf4-IgH.js";
22
22
  import Fs from "./divider.js";
23
- import { r as WJ, a as _$, b as GJ, c as KJ } from "../chunks/document-viewer.DXtjdvqe.js";
24
- import { C as rYt } from "../chunks/document-viewer.DXtjdvqe.js";
23
+ import { r as WJ, a as _$, b as GJ, c as KJ } from "../chunks/document-viewer.CGyOG1yw.js";
24
+ import { C as rYt } from "../chunks/document-viewer.CGyOG1yw.js";
25
25
  import { d as YJ, C as XJ } from "../chunks/dot-pagination.BdZc-K0r.js";
26
26
  import { default as aYt } from "./dot-status.js";
27
27
  import { default as lYt } from "./drawer.js";
@@ -40,7 +40,7 @@ import { C as gYt } from "../chunks/hub-connection.CA_wS_wh.js";
40
40
  import { C as _r } from "../chunks/icon.mxNZ85k0.js";
41
41
  import { C as Cr } from "../chunks/icon-button.DbVIFgu7.js";
42
42
  import { C as rZ, a as oZ } from "../chunks/iframe.DcHjOcLG.js";
43
- import { C as g4, a as aZ } from "../chunks/image.BO6NWyIo.js";
43
+ import { C as g4, a as aZ } from "../chunks/image.5mhGPvMN.js";
44
44
  import { default as fYt } from "./image-comparer.js";
45
45
  import { default as yYt } from "./include.js";
46
46
  import { C as Yr, I as mS } from "../chunks/input.BcyLZUmv.js";
@@ -168,20 +168,20 @@ import { default as jJt } from "./stepper-wizard.js";
168
168
  import { t as C4, a as $Q } from "../chunks/toString.Dcbz5jVT.js";
169
169
  import { default as VJt } from "./typeface.js";
170
170
  import { i as FQ } from "../chunks/user-agent.D9aPuOyL.js";
171
- import { b as nF, U as S4, t as zQ } from "../chunks/url.-WDYqplj.js";
172
- import { R as qJt, e as WJt, d as GJt, a as KJt, c as YJt, i as XJt } from "../chunks/url.-WDYqplj.js";
171
+ import { b as nF, c as S4, t as zQ } from "../chunks/url.Bd5rq4G0.js";
172
+ import { R as qJt, e as WJt, f as GJt, g as KJt, U as YJt, a as XJt, d as JJt, i as ZJt } from "../chunks/url.Bd5rq4G0.js";
173
173
  import { t as rF } from "../chunks/converters.DkDtLstb.js";
174
174
  import { i as RC } from "../chunks/guard.D4axKaMo.js";
175
175
  import { a as jQ } from "../chunks/tabbable.BwnZBHrm.js";
176
- import { g as ZJt } from "../chunks/tabbable.BwnZBHrm.js";
176
+ import { g as eZt } from "../chunks/tabbable.BwnZBHrm.js";
177
177
  import { r as sw } from "../chunks/choose.BTbF6BAn.js";
178
178
  import { t as T4 } from "../chunks/event-options.CYHYGOd8.js";
179
179
  import { i as oF, u as Jc } from "../chunks/static.UA3G1Deq.js";
180
180
  import { c as hp, q as HQ } from "../chunks/math.DuKzLacZ.js";
181
181
  import { c as R8, w as VQ } from "../chunks/event.BeKOsirN.js";
182
- import { a as eZt, p as tZt, b as iZt, s as nZt } from "../chunks/event.BeKOsirN.js";
182
+ import { a as iZt, p as nZt, b as rZt, s as oZt } from "../chunks/event.BeKOsirN.js";
183
183
  import { b as B8, e as UQ } from "../chunks/number.CtCaI0T_.js";
184
- import { a as oZt, c as aZt, d as sZt, f as lZt, g as cZt, r as dZt, s as uZt } from "../chunks/number.CtCaI0T_.js";
184
+ import { a as sZt, c as lZt, d as cZt, f as dZt, g as uZt, r as pZt, s as hZt } from "../chunks/number.CtCaI0T_.js";
185
185
  import { p as qQ } from "../chunks/purify.es.BIuh5IAZ.js";
186
186
  import { c as aF, t as WQ, a as GQ, h as KQ, b as sF } from "../chunks/_baseIteratee.BdKyHJ5i.js";
187
187
  import { a as $8, i as YQ, b as XQ } from "../chunks/isObjectLike.z36Fu426.js";
@@ -192,17 +192,17 @@ import { v as BC } from "../chunks/v4.CKZ6klMF.js";
192
192
  import { M as cF } from "../chunks/asset-link-format.QzzboHHE.js";
193
193
  import { d as eee } from "../chunks/default-value.COZopaet.js";
194
194
  import { d as tee } from "../chunks/drag.DXEXVXPv.js";
195
- import { default as hZt } from "./file-on-demand.js";
195
+ import { default as mZt } from "./file-on-demand.js";
196
196
  import { r as dF } from "../chunks/query-async.CTgXGyQ5.js";
197
197
  import { S as iee } from "../chunks/sortable.esm.oSzf6C5Q.js";
198
- import { a as mZt, g as fZt } from "../chunks/active-elements.jTVWtBDp.js";
199
- import { f as yZt } from "../chunks/focus-when-visible.jWSw9ks0.js";
200
- import { g as wZt } from "../chunks/modal.jdGhujoh.js";
201
- import { C as kZt } from "../chunks/calendar-grid.BWjcZL5W.js";
202
- import { c as CZt, f as SZt, e as TZt, b as EZt, g as AZt, d as OZt, i as DZt, r as IZt, a as MZt } from "../chunks/image.QVlPFadX.js";
203
- import { b as NZt, e as LZt } from "../chunks/waveform.1U9U_0rd.js";
204
- import { g as BZt, a as $Zt } from "../chunks/template.ClovJacp.js";
205
- import { b as zZt } from "../chunks/transformation.BDmd3kER.js";
198
+ import { a as vZt, g as yZt } from "../chunks/active-elements.jTVWtBDp.js";
199
+ import { f as wZt } from "../chunks/focus-when-visible.jWSw9ks0.js";
200
+ import { g as kZt } from "../chunks/modal.jdGhujoh.js";
201
+ import { C as CZt } from "../chunks/calendar-grid.BWjcZL5W.js";
202
+ import { c as TZt, f as EZt, e as AZt, b as OZt, g as DZt, d as IZt, i as MZt, r as PZt, a as NZt } from "../chunks/image.QVlPFadX.js";
203
+ import { b as RZt, e as BZt } from "../chunks/waveform.1U9U_0rd.js";
204
+ import { g as FZt, a as zZt } from "../chunks/template.ClovJacp.js";
205
+ import { b as HZt } from "../chunks/transformation.BDmd3kER.js";
206
206
  var MA = /* @__PURE__ */ ((i) => (i.Button = "button", i.Select = "select", i))(MA || {}), Xb = /* @__PURE__ */ ((i) => (i.Grid = "grid", i.Shadows = "shadows", i.Textures = "textures", i.Wireframe = "wireframe", i))(Xb || {}), ph = /* @__PURE__ */ ((i) => (i.Animation = "animation", i.Environment = "environment", i.Speed = "speed", i.Variant = "variant", i))(ph || {});
207
207
  const V8 = 30, nee = ["0.5", "1", "1.5", "2"], U8 = 100, ree = 0.01, oee = 0.01, aee = 200, see = 10, lee = 0.01, cee = 0.3, uF = "#2A2342";
208
208
  var ek = /* @__PURE__ */ ((i) => (i.Bridge = "https://downloads.orangelogic.com/3dviewer/static/environments/bridge.env", i.Church = "https://downloads.orangelogic.com/3dviewer/static/environments/church.env", i.Studio = "https://downloads.orangelogic.com/3dviewer/static/environments/studio.env", i))(ek || {}), Nd = /* @__PURE__ */ ((i) => (i.Babylon = "https://downloads.orangelogic.com/3dviewer/static/babylonjs/cdn/babylon.js", i.Fflate = "https://downloads.orangelogic.com/3dviewer/static/babylonjs/cdn/fflate.js", i.GlslangJs = "https://downloads.orangelogic.com/3dviewer/static/babylonjs/cdn/glslang.js", i.GlslangWasm = "https://downloads.orangelogic.com/3dviewer/static/babylonjs/cdn/glslang.wasm", i.Gui = "https://downloads.orangelogic.com/3dviewer/static/babylonjs/cdn/babylon.gui.min.js", i.Inspector = "https://downloads.orangelogic.com/3dviewer/static/babylonjs/cdn/babylon.inspector.bundle.js", i.Loaders = "https://downloads.orangelogic.com/3dviewer/static/babylonjs/cdn/babylonjs.loaders.min.js", i.Materials = "https://downloads.orangelogic.com/3dviewer/static/babylonjs/cdn/babylonjs.materials.js", i.Serializers = "https://downloads.orangelogic.com/3dviewer/static/babylonjs/cdn/babylonjs.serializers.min.js", i.TwgslJs = "https://downloads.orangelogic.com/3dviewer/static/babylonjs/cdn/twgsl.js", i.TwgslWasm = "https://downloads.orangelogic.com/3dviewer/static/babylonjs/cdn/twgsl.wasm", i))(Nd || {});
@@ -90700,7 +90700,7 @@ const L7t = {
90700
90700
  inputConfigs: {
90701
90701
  validation: (r) => {
90702
90702
  const o = r["click-link"];
90703
- return new RegExp(S4, "i").test(o) ? "" : i.term("urlValidationMessage");
90703
+ return S4(o) ? "" : i.term("urlValidationMessage");
90704
90704
  }
90705
90705
  },
90706
90706
  label: i.term("link"),
@@ -95873,7 +95873,7 @@ const pDt = {
95873
95873
  inputConfigs: {
95874
95874
  validation: (o) => {
95875
95875
  const a = o["click-link"];
95876
- return new RegExp(S4, "i").test(a) ? "" : i.term("urlValidationMessage");
95876
+ return S4(a) ? "" : i.term("urlValidationMessage");
95877
95877
  }
95878
95878
  },
95879
95879
  label: i.term("link"),
@@ -97575,7 +97575,7 @@ const pDt = {
97575
97575
  inputConfigs: {
97576
97576
  validation: (o) => {
97577
97577
  const a = o["click-link"];
97578
- return new RegExp(S4, "i").test(a) ? "" : i.term("urlValidationMessage");
97578
+ return S4(a) ? "" : i.term("urlValidationMessage");
97579
97579
  }
97580
97580
  },
97581
97581
  label: i.term("link"),
@@ -155443,7 +155443,7 @@ nr = wd([
155443
155443
  ], nr);
155444
155444
  export {
155445
155445
  OJt as CMYK_VALIDATION_REGEX,
155446
- kZt as CalendarGrid,
155446
+ CZt as CalendarGrid,
155447
155447
  lv as ColorType,
155448
155448
  YXt as CornerPosition,
155449
155449
  di as CortexElement,
@@ -155515,7 +155515,7 @@ export {
155515
155515
  il as CxFacetDateRange,
155516
155516
  TJt as CxFacetedFilter,
155517
155517
  Ka as CxFacetedFilterFacet,
155518
- hZt as CxFileOnDemand,
155518
+ mZt as CxFileOnDemand,
155519
155519
  rl as CxFindAndReplace,
155520
155520
  k4 as CxFolderSelect,
155521
155521
  sd as CxFontPicker,
@@ -155626,28 +155626,29 @@ export {
155626
155626
  qJt as RELATIVE_URL_REGEX,
155627
155627
  MJt as RGB_VALIDATION_REGEX,
155628
155628
  up as TransitionType,
155629
- S4 as URL_DOMAIN_VALIDATION_REGEX,
155630
- WJt as URL_PROTOCOL_VALIDATION_REGEX,
155631
- GJt as URL_VALIDATION_REGEX,
155632
- mZt as activeElements,
155629
+ WJt as URL_DOMAIN_VALIDATION_REGEX,
155630
+ GJt as URL_INTRANET_DOMAIN_VALIDATION_REGEX,
155631
+ KJt as URL_PROTOCOL_VALIDATION_REGEX,
155632
+ YJt as URL_VALIDATION_REGEX,
155633
+ vZt as activeElements,
155633
155634
  bJt as addMonths,
155634
155635
  JXt as adjustRelativeValues,
155635
- eZt as animateTo,
155636
+ iZt as animateTo,
155636
155637
  nF as appendProtocol,
155637
- KJt as appendQueryParam,
155638
- zZt as buildTransformationString,
155639
- NZt as buildWaveformPath,
155640
- CZt as calculateAspectRatioFit,
155638
+ XJt as appendQueryParam,
155639
+ HZt as buildTransformationString,
155640
+ RZt as buildWaveformPath,
155641
+ TZt as calculateAspectRatioFit,
155641
155642
  hp as clamp,
155642
- SZt as cleanImageFileName,
155643
+ EZt as cleanImageFileName,
155643
155644
  cJt as clearZeroDurationParts,
155644
155645
  ui as componentStyles,
155645
155646
  sv as convertColor,
155646
- oZt as convertDataUnits,
155647
+ sZt as convertDataUnits,
155647
155648
  B8 as convertDurationToMilliseconds,
155648
- aZt as convertPixelsToAspectRatio,
155649
- TZt as convertSrcToBlob,
155650
- EZt as cropImage,
155649
+ lZt as convertPixelsToAspectRatio,
155650
+ AZt as convertSrcToBlob,
155651
+ OZt as cropImage,
155651
155652
  r8 as cssValueToPx,
155652
155653
  Qt as customElement,
155653
155654
  gJt as customErrorValidityState,
@@ -155662,27 +155663,27 @@ export {
155662
155663
  RZ as extractFrames,
155663
155664
  LXt as extractRootData,
155664
155665
  UQ as extractValueAndUnit,
155665
- LZt as extractWaveformPeaks,
155666
+ BZt as extractWaveformPeaks,
155666
155667
  AC as fetchCortexApi,
155667
155668
  KYt as findAncestorWithBuggyStyle,
155668
155669
  YYt as findContainingBlock,
155669
155670
  XYt as findCuttingAncestor,
155670
155671
  l8 as findFrameByColAndRow,
155671
155672
  ZXt as findIndexByProp,
155672
- yZt as focusWhenVisible,
155673
+ wZt as focusWhenVisible,
155673
155674
  yZ as fontAwesomeIconNames,
155674
155675
  mJt as formCollections,
155675
- sZt as formatAspectRatioString,
155676
+ cZt as formatAspectRatioString,
155676
155677
  dJt as formatDurationPartsManually,
155677
155678
  O8 as formatIsoToDisplay,
155678
155679
  wJt as formatMonthYearLabel,
155679
- lZt as formatNumberWithGrouping,
155680
+ dZt as formatNumberWithGrouping,
155680
155681
  Mk as formatSecondsToTime,
155681
155682
  jZ as formatTimeToSeconds,
155682
155683
  uJt as formatWithIntlDurationFormat,
155683
- cZt as gcd,
155684
+ uZt as gcd,
155684
155685
  M$ as getActiveElement,
155685
- wZt as getActiveModals,
155686
+ kZt as getActiveModals,
155686
155687
  qYt as getAnimation,
155687
155688
  HYt as getAnimationNames,
155688
155689
  Y$ as getAssociatedForm,
@@ -155691,11 +155692,11 @@ export {
155691
155692
  YZ as getBreakpointsFromCSS,
155692
155693
  wXt as getBrowserFontVariants,
155693
155694
  NJt as getColorType,
155694
- AZt as getContainedImageSize,
155695
+ DZt as getContainedImageSize,
155695
155696
  sXt as getCortexPopupLayer,
155696
155697
  lXt as getCurrentZIndex,
155697
155698
  aQ as getDateMask,
155698
- fZt as getDeepestActiveElement,
155699
+ yZt as getDeepestActiveElement,
155699
155700
  C8 as getDeviceType,
155700
155701
  pJt as getDurationPartsByUnitsFormat,
155701
155702
  VYt as getEasingNames,
@@ -155704,19 +155705,19 @@ export {
155704
155705
  xJt as getFirstDayOfWeek,
155705
155706
  $m as getFontFamilyOptionValue,
155706
155707
  xXt as getFormControls,
155707
- BZt as getHighlightedTitle,
155708
- $Zt as getHighlightedTitleHtml,
155708
+ FZt as getHighlightedTitle,
155709
+ zZt as getHighlightedTitleHtml,
155709
155710
  WXt as getInnerHTML,
155710
155711
  J1 as getInterval,
155711
155712
  Q1 as getLightDarkCssString,
155712
- OZt as getNaturalWidthHeight,
155713
+ IZt as getNaturalWidthHeight,
155713
155714
  dXt as getNeededPaddingForBoxShadow,
155714
155715
  JYt as getNextAncestor,
155715
155716
  rXt as getOffset,
155716
155717
  fS as getRelativeClickPercentage,
155717
155718
  RXt as getRootIDString,
155718
155719
  jQ as getTabbableBoundary,
155719
- ZJt as getTabbableElements,
155720
+ eZt as getTabbableElements,
155720
155721
  GXt as getTextContent,
155721
155722
  kJt as getTodayIsoDate,
155722
155723
  Bm as getTypefaceOptionValue,
@@ -155729,7 +155730,7 @@ export {
155729
155730
  FQ as isCortexAdobePlugin,
155730
155731
  o8 as isDomElement,
155731
155732
  uXt as isElementInHorizontalView,
155732
- YJt as isExpiredAssetUrl,
155733
+ JJt as isExpiredAssetUrl,
155733
155734
  QYt as isFirefox,
155734
155735
  kXt as isFontFamilyAvailable,
155735
155736
  B$ as isFormInteracted,
@@ -155738,9 +155739,10 @@ export {
155738
155739
  P$ as isInElement,
155739
155740
  L$ as isModKey,
155740
155741
  eXt as isSafari,
155741
- DZt as isSaveSrcValid,
155742
+ MZt as isSaveSrcValid,
155743
+ S4 as isValidDomainOrIntranetUrl,
155742
155744
  D8 as isValidIsoDate,
155743
- XJt as isValidUrl,
155745
+ ZJt as isValidUrl,
155744
155746
  kS as isoToDate,
155745
155747
  NZ as isoWeekNumber,
155746
155748
  ym as loadScript,
@@ -155758,7 +155760,7 @@ export {
155758
155760
  $Xt as parseBooleanString,
155759
155761
  iF as parseBorder,
155760
155762
  oQ as parseDisplayToIso,
155761
- tZt as parseDuration,
155763
+ nZt as parseDuration,
155762
155764
  sQ as parseIsoDate,
155763
155765
  TXt as parseJsonString,
155764
155766
  tF as parseLightDark,
@@ -155773,24 +155775,24 @@ export {
155773
155775
  gXt as registerTranslation,
155774
155776
  rJt as removeAtIndex,
155775
155777
  oJt as removeMultipleAtIndex,
155776
- IZt as resizeImage,
155777
- dZt as rotateBox,
155778
- MZt as rotateImage,
155778
+ PZt as resizeImage,
155779
+ pZt as rotateBox,
155780
+ NZt as rotateImage,
155779
155781
  zXt as safeExtension,
155780
155782
  c8 as safeString,
155781
155783
  d8 as sanitizeHTML,
155782
- uZt as sanitizeRotation,
155784
+ hZt as sanitizeRotation,
155783
155785
  oXt as scrollIntoView,
155784
155786
  OXt as serialize,
155785
155787
  t8 as setAnimation,
155786
155788
  WYt as setDefaultAnimation,
155787
155789
  DXt as shareAsset,
155788
- iZt as shimKeyframesHeightAuto,
155790
+ rZt as shimKeyframesHeightAuto,
155789
155791
  pXt as sortByTopPosition,
155790
155792
  IXt as sortTypefaceVariants,
155791
155793
  lF as splitBoxValues,
155792
155794
  jXt as splitCamelCaseFormatted,
155793
- nZt as stopAnimations,
155795
+ oZt as stopAnimations,
155794
155796
  iXt as supportHLS,
155795
155797
  MXt as testFontAvailability,
155796
155798
  rF as timecodeConverter,
@@ -1,7 +1,7 @@
1
1
  import { _ as kd, a as Sa, b as Be, c as Je } from "../chunks/inheritsLoose.BuSn_CvZ.js";
2
2
  import { c as ps, a as Bn } from "../chunks/_commonjsHelpers.DQNKXVTB.js";
3
3
  import { r as Sb } from "../chunks/___vite-browser-external_commonjs-proxy.C2tf3HsQ.js";
4
- import { C as Cb } from "../chunks/image.BO6NWyIo.js";
4
+ import { C as Cb } from "../chunks/image.5mhGPvMN.js";
5
5
  import Mb from "./resize-observer.js";
6
6
  import { r as Db, R as Pb, a as Rp, b as Lb } from "../chunks/resizable-component.styles.CAfXABBc.js";
7
7
  import { c as Rb } from "../chunks/component.styles.CRO4Odto.js";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.159.0",
4
+ "version": "2.160.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -22,4 +22,11 @@ export declare function isValidUrl(urlString: string): boolean;
22
22
  export declare const RELATIVE_URL_REGEX: string;
23
23
  export declare const URL_VALIDATION_REGEX: string;
24
24
  export declare const URL_DOMAIN_VALIDATION_REGEX: string;
25
+ export declare const URL_INTRANET_DOMAIN_VALIDATION_REGEX: string;
26
+ /**
27
+ * Validates a URL against the public-domain pattern first, falling back to the
28
+ * 1-dot intranet hostname pattern so internal links without a public TLD
29
+ * (e.g. https://echonet.bnooaribas/fr) are also accepted.
30
+ */
31
+ export declare function isValidDomainOrIntranetUrl(urlString: string): boolean;
25
32
  export declare const URL_PROTOCOL_VALIDATION_REGEX: string;
package/library/utils.js CHANGED
@@ -1,40 +1,40 @@
1
- import { b as k } from "./chunks/url.-WDYqplj.js";
2
- import { R as Ct, U as xt, e as Mt, d as yt, a as St, c as Et, i as At, t as Lt } from "./chunks/url.-WDYqplj.js";
3
- import { j as vt, f as bt, b as Rt, c as Vt, g as Ft, e as kt, i as Ot, a as Yt, h as Nt, m as Ut, d as Pt, r as _t, t as Xt } from "./chunks/toast.TDU3wVhq.js";
4
- import { e as Wt, a as Bt, f as $t, g as Gt, d as zt, b as qt, c as Qt, i as Zt, p as jt, s as Jt } from "./chunks/browser.BHOCIF_A.js";
5
- import { d as te, C as ee, e as re, H as ae, R as se, c as oe, h as ne, f as ie, g as le, l as ce, a as ue, p as me, b as fe } from "./chunks/color.LzSGBy7o.js";
6
- import { a as ge, g as de } from "./chunks/active-elements.jTVWtBDp.js";
7
- import { a as De, p as Te, c as we, b as Ce, s as xe, w as Me } from "./chunks/event.BeKOsirN.js";
8
- import { t as Se } from "./chunks/converters.DkDtLstb.js";
9
- import { c as Ae } from "./chunks/custom-element.L4WJXn1j.js";
10
- import { d as Ie } from "./chunks/debounce.DaHuiSGU.js";
11
- import { d as be } from "./chunks/default-value.COZopaet.js";
12
- import { d as Ve } from "./chunks/drag.DXEXVXPv.js";
13
- import { f as ke } from "./chunks/focus-when-visible.jWSw9ks0.js";
14
- import { f as O } from "./chunks/form.CP9KLGjF.js";
15
- import { F as Ye, c as Ne, g as Ue, v as Pe, a as _e } from "./chunks/form.CP9KLGjF.js";
16
- import { L as He, r as We } from "./chunks/i18n.Bchq8v1d.js";
17
- import { c as $e, q as Ge } from "./chunks/math.DuKzLacZ.js";
18
- import { g as qe } from "./chunks/modal.jdGhujoh.js";
19
- import { g as Ze, l as je, s as Je, u as Ke } from "./chunks/scroll.xtO5yojm.js";
1
+ import { b as O } from "./chunks/url.Bd5rq4G0.js";
2
+ import { R as Ct, e as xt, f as Mt, g as yt, U as St, a as Et, d as At, c as It, i as Lt, t as vt } from "./chunks/url.Bd5rq4G0.js";
3
+ import { j as bt, f as Vt, b as Ft, c as Ot, g as kt, e as Yt, i as Nt, a as Ut, h as _t, m as Pt, d as Xt, r as Ht, t as Wt } from "./chunks/toast.TDU3wVhq.js";
4
+ import { e as $t, a as Gt, f as zt, g as qt, d as Qt, b as Zt, c as jt, i as Jt, p as Kt, s as te } from "./chunks/browser.BHOCIF_A.js";
5
+ import { d as re, C as ae, e as se, H as oe, R as ne, c as ie, h as le, f as ce, g as ue, l as me, a as fe, p as he, b as ge } from "./chunks/color.LzSGBy7o.js";
6
+ import { a as pe, g as De } from "./chunks/active-elements.jTVWtBDp.js";
7
+ import { a as we, p as Ce, c as xe, b as Me, s as ye, w as Se } from "./chunks/event.BeKOsirN.js";
8
+ import { t as Ae } from "./chunks/converters.DkDtLstb.js";
9
+ import { c as Le } from "./chunks/custom-element.L4WJXn1j.js";
10
+ import { d as Re } from "./chunks/debounce.DaHuiSGU.js";
11
+ import { d as Ve } from "./chunks/default-value.COZopaet.js";
12
+ import { d as Oe } from "./chunks/drag.DXEXVXPv.js";
13
+ import { f as Ye } from "./chunks/focus-when-visible.jWSw9ks0.js";
14
+ import { f as k } from "./chunks/form.CP9KLGjF.js";
15
+ import { F as Ue, c as _e, g as Pe, v as Xe, a as He } from "./chunks/form.CP9KLGjF.js";
16
+ import { L as Be, r as $e } from "./chunks/i18n.Bchq8v1d.js";
17
+ import { c as ze, q as qe } from "./chunks/math.DuKzLacZ.js";
18
+ import { g as Ze } from "./chunks/modal.jdGhujoh.js";
19
+ import { g as Je, l as Ke, s as tr, u as er } from "./chunks/scroll.xtO5yojm.js";
20
20
  import { k as y } from "./chunks/dom.C5aVLhKS.js";
21
- import { c as er, d as rr, h as ar, m as sr, a as or, g as nr, j as ir, b as lr, f as cr, i as ur, e as mr, l as fr, s as hr } from "./chunks/dom.C5aVLhKS.js";
22
- import { H as dr, a as pr, g as Dr } from "./chunks/slot.j5oheLJC.js";
23
- import { a as wr, g as Cr } from "./chunks/tabbable.BwnZBHrm.js";
24
- import { i as Mr } from "./chunks/user-agent.D9aPuOyL.js";
25
- import { w as Sr } from "./chunks/watch.DOt4Mabe.js";
26
- import { C as Ar } from "./chunks/calendar-grid.BWjcZL5W.js";
27
- import { b as Ir, c as vr, f as br, h as Rr, g as Vr, a as Fr, i as kr, d as Or, n as Yr, e as Nr, p as Ur, t as Pr } from "./chunks/date.iWq_pkIk.js";
21
+ import { c as ar, d as sr, h as or, m as nr, a as ir, g as lr, j as cr, b as ur, f as mr, i as fr, e as hr, l as gr, s as dr } from "./chunks/dom.C5aVLhKS.js";
22
+ import { H as Dr, a as Tr, g as wr } from "./chunks/slot.j5oheLJC.js";
23
+ import { a as xr, g as Mr } from "./chunks/tabbable.BwnZBHrm.js";
24
+ import { i as Sr } from "./chunks/user-agent.D9aPuOyL.js";
25
+ import { w as Ar } from "./chunks/watch.DOt4Mabe.js";
26
+ import { C as Lr } from "./chunks/calendar-grid.BWjcZL5W.js";
27
+ import { b as Rr, c as br, f as Vr, h as Fr, g as Or, a as kr, i as Yr, d as Nr, n as Ur, e as _r, p as Pr, t as Xr } from "./chunks/date.iWq_pkIk.js";
28
28
  import { f as c, a as u, D as m } from "./chunks/date-picker.BGHn6qg8.js";
29
- import { f as Xr } from "./chunks/content-builder.BU8X7I6V.js";
30
- import { c as Wr, f as Br, e as $r, b as Gr, g as zr, d as qr, i as Qr, r as Zr, a as jr } from "./chunks/image.QVlPFadX.js";
31
- import { b as Kr, e as ta } from "./chunks/waveform.1U9U_0rd.js";
32
- import { a as ra, b as aa, c as sa, e as oa, d as na, f as ia, g as la, r as ca, s as ua } from "./chunks/number.CtCaI0T_.js";
33
- import { s as fa } from "./chunks/parse.Cu5nBDTb.js";
34
- import { b as ga, o as da, d as pa, e as Da, f as Ta, m as wa, q as Ca, g as xa, h as Ma, l as ya, p as Sa, z as Ea, y as Aa, a as La, c as Ia, s as va, x as ba, v as Ra, t as Va, r as Fa, w as ka, i as Oa, n as Ya, u as Na } from "./chunks/string.BhJ0Zogu.js";
35
- import { g as Pa, a as _a } from "./chunks/template.ClovJacp.js";
36
- import { c as Ha, f as Wa, a as Ba, g as $a } from "./chunks/time.DWfbnPnM.js";
37
- import { b as za } from "./chunks/transformation.BDmd3kER.js";
29
+ import { f as Wr } from "./chunks/content-builder.BU8X7I6V.js";
30
+ import { c as $r, f as Gr, e as zr, b as qr, g as Qr, d as Zr, i as jr, r as Jr, a as Kr } from "./chunks/image.QVlPFadX.js";
31
+ import { b as ea, e as ra } from "./chunks/waveform.1U9U_0rd.js";
32
+ import { a as sa, b as oa, c as na, e as ia, d as la, f as ca, g as ua, r as ma, s as fa } from "./chunks/number.CtCaI0T_.js";
33
+ import { s as ga } from "./chunks/parse.Cu5nBDTb.js";
34
+ import { b as pa, o as Da, d as Ta, e as wa, f as Ca, m as xa, q as Ma, g as ya, h as Sa, l as Ea, p as Aa, z as Ia, y as La, a as va, c as Ra, s as ba, x as Va, v as Fa, t as Oa, r as ka, w as Ya, i as Na, n as Ua, u as _a } from "./chunks/string.BhJ0Zogu.js";
35
+ import { g as Xa, a as Ha } from "./chunks/template.ClovJacp.js";
36
+ import { c as Ba, f as $a, a as Ga, g as za } from "./chunks/time.DWfbnPnM.js";
37
+ import { b as Qa } from "./chunks/transformation.BDmd3kER.js";
38
38
  function n(t) {
39
39
  const e = t.getFullYear(), r = String(t.getMonth() + 1).padStart(2, "0"), s = String(t.getDate()).padStart(2, "0");
40
40
  return `${e}-${r}-${s}`;
@@ -53,10 +53,10 @@ function E(t) {
53
53
  function A(t) {
54
54
  return new Date(t.getFullYear(), t.getMonth(), 1);
55
55
  }
56
- function L(t) {
56
+ function I(t) {
57
57
  return new Date(t.getFullYear(), t.getMonth() + 1, 0);
58
58
  }
59
- function I(t) {
59
+ function L(t) {
60
60
  const e = Math.floor(t.getMonth() / 3) * 3;
61
61
  return new Date(t.getFullYear(), e, 1);
62
62
  }
@@ -64,11 +64,11 @@ function v(t) {
64
64
  const e = Math.floor(t.getMonth() / 3) * 3;
65
65
  return new Date(t.getFullYear(), e + 3, 0);
66
66
  }
67
- function b(t) {
67
+ function R(t) {
68
68
  const e = t.getMonth() < 6 ? 0 : 6;
69
69
  return new Date(t.getFullYear(), e, 1);
70
70
  }
71
- function R(t) {
71
+ function b(t) {
72
72
  const e = t.getMonth() < 6 ? 0 : 6;
73
73
  return new Date(t.getFullYear(), e + 6, 0);
74
74
  }
@@ -158,7 +158,7 @@ class G {
158
158
  return {
159
159
  fromDate: n(A(r)),
160
160
  fromTime: m,
161
- toDate: n(L(r)),
161
+ toDate: n(I(r)),
162
162
  toTime: u
163
163
  };
164
164
  case c.lastMonth: {
@@ -166,13 +166,13 @@ class G {
166
166
  return {
167
167
  fromDate: n(A(a)),
168
168
  fromTime: m,
169
- toDate: n(L(a)),
169
+ toDate: n(I(a)),
170
170
  toTime: u
171
171
  };
172
172
  }
173
173
  case c.thisQuarter:
174
174
  return {
175
- fromDate: n(I(r)),
175
+ fromDate: n(L(r)),
176
176
  fromTime: m,
177
177
  toDate: n(v(r)),
178
178
  toTime: u
@@ -184,7 +184,7 @@ class G {
184
184
  1
185
185
  );
186
186
  return {
187
- fromDate: n(I(a)),
187
+ fromDate: n(L(a)),
188
188
  fromTime: m,
189
189
  toDate: n(v(a)),
190
190
  toTime: u
@@ -192,17 +192,17 @@ class G {
192
192
  }
193
193
  case c.thisHalfYear:
194
194
  return {
195
- fromDate: n(b(r)),
195
+ fromDate: n(R(r)),
196
196
  fromTime: m,
197
- toDate: n(R(r)),
197
+ toDate: n(b(r)),
198
198
  toTime: u
199
199
  };
200
200
  case c.lastHalfYear: {
201
201
  const a = new Date(r.getFullYear(), r.getMonth() - 6, 1);
202
202
  return {
203
- fromDate: n(b(a)),
203
+ fromDate: n(R(a)),
204
204
  fromTime: m,
205
- toDate: n(R(a)),
205
+ toDate: n(b(a)),
206
206
  toTime: u
207
207
  };
208
208
  }
@@ -263,7 +263,7 @@ function Q(t) {
263
263
  }
264
264
  function Z(t, e = void 0) {
265
265
  !this.ownerDocument.defaultView?.Matrix3 || !t || this.ownerDocument.defaultView?.open(
266
- k(t, "https://", !0),
266
+ O(t, "https://", !0),
267
267
  e ?? "_blank"
268
268
  );
269
269
  }
@@ -394,7 +394,7 @@ function nt(t) {
394
394
  }), r;
395
395
  }
396
396
  function N(t) {
397
- const r = [...t.getRootNode().querySelectorAll("*")], s = [...t.elements], a = O.get(t), o = a ? Array.from(a) : [];
397
+ const r = [...t.getRootNode().querySelectorAll("*")], s = [...t.elements], a = k.get(t), o = a ? Array.from(a) : [];
398
398
  return [...s, ...o].sort(
399
399
  (i, l) => r.indexOf(i) < r.indexOf(l) ? -1 : r.indexOf(i) > r.indexOf(l) ? 1 : 0
400
400
  );
@@ -482,7 +482,7 @@ function ht(t, e) {
482
482
  function gt(t, e) {
483
483
  typeof Storage < "u" && localStorage.setItem(t, e.toString());
484
484
  }
485
- const P = 10;
485
+ const _ = 10;
486
486
  function dt(t, e) {
487
487
  let r = 0, s = t.length;
488
488
  for (; r < s; ) {
@@ -491,7 +491,7 @@ function dt(t, e) {
491
491
  }
492
492
  t.splice(r, 0, e);
493
493
  }
494
- function _(t, e, r) {
494
+ function P(t, e, r) {
495
495
  return t.find(
496
496
  (s) => s.col === e && s.row === r
497
497
  ) ?? null;
@@ -538,7 +538,7 @@ async function* pt({
538
538
  const T = g * i + d, D = T * s;
539
539
  if (D >= r)
540
540
  continue;
541
- const w = d * p, C = g * l, x = _(t[a] ?? [], d, g), M = d === i - 1 && g === f - 1 || D + s >= r;
541
+ const w = d * p, C = g * l, x = P(t[a] ?? [], d, g), M = d === i - 1 && g === f - 1 || D + s >= r;
542
542
  x ? yield { ...x, isLastFrame: M } : (await X(o, D, s), F.drawImage(
543
543
  o,
544
544
  w,
@@ -554,7 +554,7 @@ async function* pt({
554
554
  isLastFrame: M,
555
555
  row: g,
556
556
  rows: f,
557
- time: Number(D.toFixed(P)),
557
+ time: Number(D.toFixed(_)),
558
558
  x: w,
559
559
  y: C
560
560
  }), await new Promise(requestAnimationFrame);
@@ -572,197 +572,199 @@ function Dt({
572
572
  return a > t && (a = t / 2), a;
573
573
  }
574
574
  export {
575
- te as CMYK_VALIDATION_REGEX,
576
- Ar as CalendarGrid,
577
- ee as ColorType,
575
+ re as CMYK_VALIDATION_REGEX,
576
+ Lr as CalendarGrid,
577
+ ae as ColorType,
578
578
  K as CortexPopupController,
579
579
  G as DateRangePresets,
580
580
  tt as DragScroll,
581
- Ye as FormControlController,
582
- re as HEX_ALPHA_VALIDATION_REGEX,
583
- ae as HEX_VALIDATION_REGEX,
584
- dr as HasSlotController,
581
+ Ue as FormControlController,
582
+ se as HEX_ALPHA_VALIDATION_REGEX,
583
+ oe as HEX_VALIDATION_REGEX,
584
+ Dr as HasSlotController,
585
585
  lt as HistoryManager,
586
586
  U as KeyboardKey,
587
- He as LocalizeController,
588
- P as PRECISION,
587
+ Be as LocalizeController,
588
+ _ as PRECISION,
589
589
  Ct as RELATIVE_URL_REGEX,
590
- se as RGB_VALIDATION_REGEX,
590
+ ne as RGB_VALIDATION_REGEX,
591
591
  xt as URL_DOMAIN_VALIDATION_REGEX,
592
- Mt as URL_PROTOCOL_VALIDATION_REGEX,
593
- yt as URL_VALIDATION_REGEX,
594
- ge as activeElements,
595
- Ir as addMonths,
596
- vt as adjustRelativeValues,
597
- De as animateTo,
598
- k as appendProtocol,
599
- St as appendQueryParam,
600
- za as buildTransformationString,
601
- Kr as buildWaveformPath,
602
- Wr as calculateAspectRatioFit,
603
- $e as clamp,
604
- Br as cleanImageFileName,
605
- Ha as clearZeroDurationParts,
606
- oe as convertColor,
607
- ra as convertDataUnits,
608
- aa as convertDurationToMilliseconds,
609
- sa as convertPixelsToAspectRatio,
610
- $r as convertSrcToBlob,
611
- Gr as cropImage,
612
- er as cssValueToPx,
613
- Ae as customElement,
614
- Ne as customErrorValidityState,
615
- Ie as debounce,
616
- be as defaultValue,
592
+ Mt as URL_INTRANET_DOMAIN_VALIDATION_REGEX,
593
+ yt as URL_PROTOCOL_VALIDATION_REGEX,
594
+ St as URL_VALIDATION_REGEX,
595
+ pe as activeElements,
596
+ Rr as addMonths,
597
+ bt as adjustRelativeValues,
598
+ we as animateTo,
599
+ O as appendProtocol,
600
+ Et as appendQueryParam,
601
+ Qa as buildTransformationString,
602
+ ea as buildWaveformPath,
603
+ $r as calculateAspectRatioFit,
604
+ ze as clamp,
605
+ Gr as cleanImageFileName,
606
+ Ba as clearZeroDurationParts,
607
+ ie as convertColor,
608
+ sa as convertDataUnits,
609
+ oa as convertDurationToMilliseconds,
610
+ na as convertPixelsToAspectRatio,
611
+ zr as convertSrcToBlob,
612
+ qr as cropImage,
613
+ ar as cssValueToPx,
614
+ Le as customElement,
615
+ _e as customErrorValidityState,
616
+ Re as debounce,
617
+ Ve as defaultValue,
617
618
  J as downloadAsset,
618
- Ve as drag,
619
- ga as emptyToSpace,
620
- da as escapeXML,
621
- ne as extractColor,
622
- pa as extractExtension,
619
+ Oe as drag,
620
+ pa as emptyToSpace,
621
+ Da as escapeXML,
622
+ le as extractColor,
623
+ Ta as extractExtension,
623
624
  pt as extractFrames,
624
- Da as extractRootData,
625
- oa as extractValueAndUnit,
626
- ta as extractWaveformPeaks,
627
- Xr as fetchCortexApi,
628
- Wt as findAncestorWithBuggyStyle,
629
- Bt as findContainingBlock,
630
- $t as findCuttingAncestor,
631
- _ as findFrameByColAndRow,
632
- bt as findIndexByProp,
633
- ke as focusWhenVisible,
634
- O as formCollections,
635
- na as formatAspectRatioString,
636
- Wa as formatDurationPartsManually,
637
- vr as formatIsoToDisplay,
638
- br as formatMonthYearLabel,
639
- ia as formatNumberWithGrouping,
640
- Ta as formatSecondsToTime,
641
- wa as formatTimeToSeconds,
642
- Ba as formatWithIntlDurationFormat,
643
- la as gcd,
644
- rr as getActiveElement,
645
- qe as getActiveModals,
646
- Ue as getAssociatedForm,
647
- ar as getAttributes,
648
- Ca as getAttributesString,
649
- Rt as getBreakpointsFromCSS,
625
+ wa as extractRootData,
626
+ ia as extractValueAndUnit,
627
+ ra as extractWaveformPeaks,
628
+ Wr as fetchCortexApi,
629
+ $t as findAncestorWithBuggyStyle,
630
+ Gt as findContainingBlock,
631
+ zt as findCuttingAncestor,
632
+ P as findFrameByColAndRow,
633
+ Vt as findIndexByProp,
634
+ Ye as focusWhenVisible,
635
+ k as formCollections,
636
+ la as formatAspectRatioString,
637
+ $a as formatDurationPartsManually,
638
+ br as formatIsoToDisplay,
639
+ Vr as formatMonthYearLabel,
640
+ ca as formatNumberWithGrouping,
641
+ Ca as formatSecondsToTime,
642
+ xa as formatTimeToSeconds,
643
+ Ga as formatWithIntlDurationFormat,
644
+ ua as gcd,
645
+ sr as getActiveElement,
646
+ Ze as getActiveModals,
647
+ Pe as getAssociatedForm,
648
+ or as getAttributes,
649
+ Ma as getAttributesString,
650
+ Ft as getBreakpointsFromCSS,
650
651
  ot as getBrowserFontVariants,
651
- ie as getColorType,
652
- zr as getContainedImageSize,
653
- sr as getCortexPopupLayer,
652
+ ce as getColorType,
653
+ Qr as getContainedImageSize,
654
+ nr as getCortexPopupLayer,
654
655
  y as getCurrentZIndex,
655
- Rr as getDateMask,
656
- de as getDeepestActiveElement,
657
- Vt as getDeviceType,
658
- $a as getDurationPartsByUnitsFormat,
659
- or as getElementFromHTMLString,
660
- nr as getElementFromTemplate,
661
- Vr as getFirstDayOfWeek,
656
+ Fr as getDateMask,
657
+ De as getDeepestActiveElement,
658
+ Ot as getDeviceType,
659
+ za as getDurationPartsByUnitsFormat,
660
+ ir as getElementFromHTMLString,
661
+ lr as getElementFromTemplate,
662
+ Or as getFirstDayOfWeek,
662
663
  at as getFontFamilyOptionValue,
663
664
  N as getFormControls,
664
- Pa as getHighlightedTitle,
665
- _a as getHighlightedTitleHtml,
666
- pr as getInnerHTML,
665
+ Xa as getHighlightedTitle,
666
+ Ha as getHighlightedTitleHtml,
667
+ Tr as getInnerHTML,
667
668
  Dt as getInterval,
668
- le as getLightDarkCssString,
669
- qr as getNaturalWidthHeight,
670
- ir as getNeededPaddingForBoxShadow,
671
- Gt as getNextAncestor,
672
- Ze as getOffset,
673
- lr as getRelativeClickPercentage,
674
- xa as getRootIDString,
675
- wr as getTabbableBoundary,
676
- Cr as getTabbableElements,
677
- Dr as getTextContent,
678
- Fr as getTodayIsoDate,
669
+ ue as getLightDarkCssString,
670
+ Zr as getNaturalWidthHeight,
671
+ cr as getNeededPaddingForBoxShadow,
672
+ qt as getNextAncestor,
673
+ Je as getOffset,
674
+ ur as getRelativeClickPercentage,
675
+ ya as getRootIDString,
676
+ xr as getTabbableBoundary,
677
+ Mr as getTabbableElements,
678
+ wr as getTextContent,
679
+ kr as getTodayIsoDate,
679
680
  rt as getTypefaceOptionValue,
680
- Ft as groupBy,
681
- Ma as htmlToPlainText,
682
- kt as insertAtIndex,
681
+ kt as groupBy,
682
+ Sa as htmlToPlainText,
683
+ Yt as insertAtIndex,
683
684
  dt as insertFrameToCache,
684
- Ot as insertMultipleAtIndex,
685
- zt as isChrome,
686
- Mr as isCortexAdobePlugin,
687
- cr as isDomElement,
688
- ur as isElementInHorizontalView,
689
- Et as isExpiredAssetUrl,
690
- qt as isFirefox,
685
+ Nt as insertMultipleAtIndex,
686
+ Qt as isChrome,
687
+ Sr as isCortexAdobePlugin,
688
+ mr as isDomElement,
689
+ fr as isElementInHorizontalView,
690
+ At as isExpiredAssetUrl,
691
+ Zt as isFirefox,
691
692
  st as isFontFamilyAvailable,
692
693
  it as isFormInteracted,
693
- ya as isGalleryItemCardType,
694
- Qt as isIOS,
695
- mr as isInElement,
694
+ Ea as isGalleryItemCardType,
695
+ jt as isIOS,
696
+ hr as isInElement,
696
697
  et as isModKey,
697
- Zt as isSafari,
698
- Qr as isSaveSrcValid,
699
- kr as isValidIsoDate,
700
- At as isValidUrl,
701
- Or as isoToDate,
698
+ Jt as isSafari,
699
+ jr as isSaveSrcValid,
700
+ It as isValidDomainOrIntranetUrl,
701
+ Yr as isValidIsoDate,
702
+ Lt as isValidUrl,
703
+ Nr as isoToDate,
702
704
  z as isoWeekNumber,
703
- fr as loadScript,
704
- je as lockBodyScrolling,
705
- ce as luminanceTextColor,
706
- Yt as moveMultipleToIndex,
707
- Nt as moveToIndex,
708
- Ut as multiSelectTo,
709
- Yr as normalizeToIsoDate,
705
+ gr as loadScript,
706
+ Ke as lockBodyScrolling,
707
+ me as luminanceTextColor,
708
+ Ut as moveMultipleToIndex,
709
+ _t as moveToIndex,
710
+ Pt as multiSelectTo,
711
+ Ur as normalizeToIsoDate,
710
712
  ct as omit,
711
713
  q as openAssetOverview,
712
714
  Q as openFolderOverview,
713
715
  Z as openLink,
714
- Sa as padPath,
715
- Ea as parseBooleanString,
716
- ue as parseBorder,
717
- Nr as parseDisplayToIso,
718
- Te as parseDuration,
719
- Ur as parseIsoDate,
716
+ Aa as padPath,
717
+ Ia as parseBooleanString,
718
+ fe as parseBorder,
719
+ _r as parseDisplayToIso,
720
+ Ce as parseDuration,
721
+ Pr as parseIsoDate,
720
722
  mt as parseJsonString,
721
- me as parseLightDark,
723
+ he as parseLightDark,
722
724
  ft as parseListString,
723
- fe as parseShadow,
725
+ ge as parseShadow,
724
726
  ut as pick,
725
- jt as popoverSupported,
726
- we as prefersReducedMotion,
727
- Ge as quantizeLargestRemainder,
727
+ Kt as popoverSupported,
728
+ xe as prefersReducedMotion,
729
+ qe as quantizeLargestRemainder,
728
730
  ht as readLocalStorageValue,
729
- Aa as reducePathToDirectChild,
730
- We as registerTranslation,
731
- Pt as removeAtIndex,
732
- _t as removeMultipleAtIndex,
733
- Zr as resizeImage,
734
- ca as rotateBox,
735
- jr as rotateImage,
736
- La as safeExtension,
737
- Ia as safeString,
738
- va as sanitizeHTML,
739
- ua as sanitizeRotation,
740
- Je as scrollIntoView,
731
+ La as reducePathToDirectChild,
732
+ $e as registerTranslation,
733
+ Xt as removeAtIndex,
734
+ Ht as removeMultipleAtIndex,
735
+ Jr as resizeImage,
736
+ ma as rotateBox,
737
+ Kr as rotateImage,
738
+ va as safeExtension,
739
+ Ra as safeString,
740
+ ba as sanitizeHTML,
741
+ fa as sanitizeRotation,
742
+ tr as scrollIntoView,
741
743
  nt as serialize,
742
744
  j as shareAsset,
743
- Ce as shimKeyframesHeightAuto,
744
- hr as sortByTopPosition,
745
+ Me as shimKeyframesHeightAuto,
746
+ dr as sortByTopPosition,
745
747
  Y as sortTypefaceVariants,
746
- fa as splitBoxValues,
747
- ba as splitCamelCaseFormatted,
748
- xe as stopAnimations,
749
- Jt as supportHLS,
748
+ ga as splitBoxValues,
749
+ Va as splitCamelCaseFormatted,
750
+ ye as stopAnimations,
751
+ te as supportHLS,
750
752
  V as testFontAvailability,
751
- Se as timecodeConverter,
752
- Ra as toCamelCase,
753
- Pr as toIsoDate,
754
- Va as toKebabCase,
755
- Fa as toPascalCase,
756
- Lt as toRelativeUrl,
757
- ka as toTitleCase,
758
- Xt as toast,
759
- Oa as truncateTextMiddle,
760
- Ya as unescapeXML,
761
- Ke as unlockBodyScrolling,
762
- Na as upperFirst,
763
- Pe as validValidityState,
764
- _e as valueMissingValidityState,
765
- Me as waitForEvent,
766
- Sr as watch,
753
+ Ae as timecodeConverter,
754
+ Fa as toCamelCase,
755
+ Xr as toIsoDate,
756
+ Oa as toKebabCase,
757
+ ka as toPascalCase,
758
+ vt as toRelativeUrl,
759
+ Ya as toTitleCase,
760
+ Wt as toast,
761
+ Na as truncateTextMiddle,
762
+ Ua as unescapeXML,
763
+ er as unlockBodyScrolling,
764
+ _a as upperFirst,
765
+ Xe as validValidityState,
766
+ He as valueMissingValidityState,
767
+ Se as waitForEvent,
768
+ Ar as watch,
767
769
  gt as writeLocalStorageValue
768
770
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.159.0",
4
+ "version": "2.160.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -1,42 +0,0 @@
1
- function i(a, e = globalThis.location.origin) {
2
- if (a) {
3
- try {
4
- const t = new URL(a);
5
- if (t.origin === e)
6
- return t.pathname + t.search + t.hash || "/";
7
- } catch {
8
- }
9
- return a;
10
- }
11
- }
12
- function z(a, e = "https://", t = !1) {
13
- return t && a.match(c) || a.match(/^[a-zA-Z][a-zA-Z\d+\-.]*:\/\//) ? a : `${e}${a}`;
14
- }
15
- function h(a, e, t) {
16
- if (!a)
17
- return a;
18
- const s = a.indexOf("#"), n = s === -1 ? a : a.slice(0, s), o = s === -1 ? "" : a.slice(s), d = n.includes("?") ? "&" : "?";
19
- return `${n}${d}${encodeURIComponent(e)}=${encodeURIComponent(t)}${o}`;
20
- }
21
- function R(a) {
22
- return !!a && a.toLowerCase().includes("expire");
23
- }
24
- function _(a) {
25
- try {
26
- return new URL(a), new RegExp(r, "i").test(a);
27
- } catch {
28
- return !1;
29
- }
30
- }
31
- const c = "^(?![a-zA-Z][a-zA-Z\\d+\\-.]*:\\/\\/)(?!([a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,}($|\\/))[^\\s]+$", r = "^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[^\\s]*)?$", p = "^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.){2,}[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[^\\s]*)?$", A = "^(https?:\\/\\/)((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[^\\s]*)?$";
32
- export {
33
- c as R,
34
- p as U,
35
- h as a,
36
- z as b,
37
- R as c,
38
- r as d,
39
- A as e,
40
- _ as i,
41
- i as t
42
- };