@orangelogic/design-system 2.117.0 → 2.119.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/library/assets/diff.worker-ClilI1xm.js +1 -0
  2. package/library/chunks/{animation.8MjXJybe.js → animation.hpY88RxG.js} +106 -100
  3. package/library/chunks/{asset.CIWxY-Aw.js → asset.D_MQwP1C.js} +4 -4
  4. package/library/chunks/browser.BHOCIF_A.js +84 -0
  5. package/library/chunks/{button.DwJEeW2t.js → button.bufNNyTc.js} +1 -1
  6. package/library/chunks/{color-swatch-group.BvLicLI4.js → color-swatch-group.CeazdbIe.js} +6 -6
  7. package/library/chunks/{color-swatch.DVzEaNeL.js → color-swatch.LEvHo5G_.js} +2 -2
  8. package/library/chunks/{confirm-popover.BifwpSuf.js → confirm-popover.BLQFU6Hs.js} +3 -3
  9. package/library/chunks/{content-builder.OsUmm8Wu.js → content-builder.BGzxZUgi.js} +1 -1
  10. package/library/chunks/debounce.DaHuiSGU.js +15 -0
  11. package/library/chunks/{dialog.BYCWepBc.js → dialog.DdsJ_WqU.js} +2 -2
  12. package/library/chunks/{document-viewer.CKCX8ueu.js → document-viewer.B5VtBEEP.js} +7 -7
  13. package/library/chunks/{dot-pagination.C4l5vKor.js → dot-pagination.Bny2T6DA.js} +1 -1
  14. package/library/chunks/{endpoints.D4h8hp1m.js → endpoints.6E17hFiK.js} +385 -385
  15. package/library/chunks/{file-on-demand.AwMj4AfO.js → file-on-demand.DDuWnvmy.js} +10 -10
  16. package/library/chunks/{folder-select.CrWjwQcw.js → folder-select.D1jO1hB_.js} +295 -203
  17. package/library/chunks/{header.Cf9ujCpg.js → header.CfiA4TRu.js} +1 -1
  18. package/library/chunks/{i18n.CH-wak_P.js → i18n.DDj5y9px.js} +106 -11
  19. package/library/chunks/{icon-button.CQiBjznj.js → icon-button.DOrACmes.js} +1 -1
  20. package/library/chunks/{iframe.BQPVygBJ.js → iframe.qaVD1n1m.js} +1 -1
  21. package/library/chunks/{image.cT-FziNS.js → image.BugewF1g.js} +129 -146
  22. package/library/chunks/{input.CH4lKxPM.js → input.BYj6YXcM.js} +1 -1
  23. package/library/chunks/keyed.C0rkKrxH.js +22 -0
  24. package/library/chunks/{list-editor.BfpDIsU5.js → list-editor.D5szxqSM.js} +11 -11
  25. package/library/chunks/math.DuKzLacZ.js +26 -0
  26. package/library/chunks/{option.Bvh35v8S.js → option.CnxdM30G.js} +1 -1
  27. package/library/chunks/{pagination.zQ2FFtxB.js → pagination.Dxig0LoI.js} +6 -6
  28. package/library/chunks/{responsive.C8NCkfCG.js → responsive.Cf65FCWd.js} +1 -1
  29. package/library/chunks/{tab-group.DvMX02hY.js → tab-group.CGg9lPLP.js} +3 -3
  30. package/library/chunks/{table.GCs54Y2t.js → table.BkdcDorc.js} +1471 -1400
  31. package/library/chunks/{tree.Btf2Q4YZ.js → tree.yYbWIRnc.js} +3 -3
  32. package/library/components/alert.js +2 -2
  33. package/library/components/animation.js +1 -1
  34. package/library/components/asset-link-format.js +8 -8
  35. package/library/components/atoms.js +144 -142
  36. package/library/components/audio.js +2 -2
  37. package/library/components/border-input-group.js +2 -2
  38. package/library/components/breadcrumb.js +1 -1
  39. package/library/components/button.js +2 -2
  40. package/library/components/color-picker.js +5 -5
  41. package/library/components/color-swatch-group.js +7 -7
  42. package/library/components/color-swatch.js +3 -3
  43. package/library/components/confirm-popover.js +4 -4
  44. package/library/components/copy-button.js +1 -1
  45. package/library/components/corner-position-input-group.js +3 -3
  46. package/library/components/date-calendar.js +1 -1
  47. package/library/components/details.js +1 -1
  48. package/library/components/dialog.js +3 -3
  49. package/library/components/diff.d.ts +3 -0
  50. package/library/components/diff.js +104 -0
  51. package/library/components/document-viewer.js +3 -3
  52. package/library/components/dot-pagination.js +2 -2
  53. package/library/components/drawer.js +2 -2
  54. package/library/components/dropdown.js +2 -2
  55. package/library/components/dynamic-select.js +282 -211
  56. package/library/components/e-chart.js +1 -1
  57. package/library/components/element-clamp.js +2 -2
  58. package/library/components/file-on-demand.js +11 -11
  59. package/library/components/folder-select.js +5 -5
  60. package/library/components/format-bytes.js +1 -1
  61. package/library/components/format-date.js +1 -1
  62. package/library/components/format-number.js +1 -1
  63. package/library/components/format-time.js +1 -1
  64. package/library/components/header.js +2 -2
  65. package/library/components/icon-button.js +2 -2
  66. package/library/components/iframe.js +2 -2
  67. package/library/components/image-comparer.js +2 -2
  68. package/library/components/image.js +5 -4
  69. package/library/components/input.js +2 -2
  70. package/library/components/line-clamp.js +6 -5
  71. package/library/components/list-editor.js +8 -8
  72. package/library/components/masonry.js +2 -2
  73. package/library/components/menu-item.js +1 -1
  74. package/library/components/menu.js +1 -1
  75. package/library/components/molecules.js +4 -4
  76. package/library/components/option.js +2 -2
  77. package/library/components/organisms.js +2 -2
  78. package/library/components/padding-input-group.js +1 -1
  79. package/library/components/pagination.js +7 -7
  80. package/library/components/popup.js +76 -75
  81. package/library/components/position-picker.js +1 -1
  82. package/library/components/progress-bar.js +1 -1
  83. package/library/components/progress-ring.js +1 -1
  84. package/library/components/range.js +3 -3
  85. package/library/components/rating.js +2 -2
  86. package/library/components/relative-time.js +1 -1
  87. package/library/components/select.js +33 -32
  88. package/library/components/shadow-input-group.js +1 -1
  89. package/library/components/share-option-list.js +2 -2
  90. package/library/components/sidebar.js +1 -1
  91. package/library/components/size-input-group.js +3 -3
  92. package/library/components/spinner.js +1 -1
  93. package/library/components/split-panel.js +2 -2
  94. package/library/components/tab-group.js +4 -4
  95. package/library/components/tab.js +2 -2
  96. package/library/components/table.js +62 -60
  97. package/library/components/tag.js +2 -2
  98. package/library/components/tooltip.js +1 -1
  99. package/library/components/tree-item.js +2 -2
  100. package/library/components/tree.js +3 -3
  101. package/library/components/typeface.js +2 -2
  102. package/library/components/types.js +35403 -32971
  103. package/library/components/video.js +3 -3
  104. package/library/package.json +1 -1
  105. package/library/packages/atoms/src/animations/index.d.ts +2 -1
  106. package/library/packages/atoms/src/animations/rotating/rotate.d.ts +4 -0
  107. package/library/packages/atoms/src/components/diff/diff.d.ts +46 -0
  108. package/library/packages/atoms/src/components/diff/diff.styles.d.ts +2 -0
  109. package/library/packages/atoms/src/components/diff/utils/diff-worker-client.d.ts +10 -0
  110. package/library/packages/atoms/src/components/select/select.d.ts +9 -9
  111. package/library/packages/atoms/src/components/tab-group/tab-group.d.ts +1 -1
  112. package/library/packages/atoms/src/components/table/components/index.d.ts +1 -0
  113. package/library/packages/atoms/src/components/table/components/table-footer/table-footer.d.ts +25 -0
  114. package/library/packages/atoms/src/components/table/components/table-footer/table-footer.styles.d.ts +2 -0
  115. package/library/packages/atoms/src/components/table/components/table-toolbar/table-toolbar.d.ts +7 -1
  116. package/library/packages/atoms/src/components/table/table.d.ts +14 -3
  117. package/library/packages/atoms/src/index.d.ts +1 -0
  118. package/library/packages/events/src/cx-capacity-change.d.ts +20 -0
  119. package/library/packages/events/src/cx-capacity-week-bar.d.ts +26 -0
  120. package/library/packages/events/src/cx-folder-select-children-loaded.d.ts +10 -0
  121. package/library/packages/events/src/cx-list-editor-change.d.ts +1 -1
  122. package/library/packages/events/src/cx-sb-dam-view-config-change.d.ts +8 -0
  123. package/library/packages/events/src/events.d.ts +4 -0
  124. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters/diff.d.ts +5 -0
  125. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters.d.ts +2 -0
  126. package/library/packages/molecules/src/dynamic-select/dynamic-select.d.ts +19 -1
  127. package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +11 -0
  128. package/library/packages/organisms/src/capacity-planner/capacity-core.d.ts +81 -0
  129. package/library/packages/organisms/src/capacity-planner/capacity-planner.d.ts +194 -0
  130. package/library/packages/organisms/src/capacity-planner/capacity-planner.styles.d.ts +2 -0
  131. package/library/packages/organisms/src/capacity-planner/components/capacity-toolbar/capacity-toolbar.d.ts +35 -0
  132. package/library/packages/organisms/src/capacity-planner/components/capacity-toolbar/capacity-toolbar.styles.d.ts +2 -0
  133. package/library/packages/organisms/src/capacity-planner/components/capacity-week-bar/capacity-week-bar.d.ts +101 -0
  134. package/library/packages/organisms/src/capacity-planner/components/capacity-week-bar/capacity-week-bar.styles.d.ts +2 -0
  135. package/library/packages/organisms/src/chatbot/chatbot.d.ts +1 -1
  136. package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +12 -0
  137. package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +6 -0
  138. package/library/packages/organisms/src/content-builder/configs/dam-view.d.ts +66 -0
  139. package/library/packages/organisms/src/content-builder/configs/index.d.ts +1 -0
  140. package/library/packages/organisms/src/content-builder/configs-controller.d.ts +110 -0
  141. package/library/packages/organisms/src/content-builder/content-builder-config.d.ts +3 -0
  142. package/library/packages/organisms/src/content-builder/content-builder.d.ts +1 -0
  143. package/library/packages/organisms/src/content-builder/plugins/dam-view.d.ts +5 -0
  144. package/library/packages/organisms/src/content-builder/plugins/index.d.ts +1 -0
  145. package/library/packages/organisms/src/content-builder/styleController.d.ts +7 -3
  146. package/library/packages/organisms/src/dam-custom-toolbar-buttons-editor/dam-custom-toolbar-buttons-editor.d.ts +176 -0
  147. package/library/packages/organisms/src/dam-custom-toolbar-buttons-editor/dam-custom-toolbar-buttons-editor.styles.d.ts +2 -0
  148. package/library/packages/organisms/src/index.d.ts +2 -0
  149. package/library/packages/services/src/api/cms5/cms5.d.ts +17 -1
  150. package/library/packages/services/src/api/endpoints.d.ts +13 -1
  151. package/library/packages/services/src/api/metadata/index.d.ts +1 -0
  152. package/library/packages/services/src/api/metadata/metadata.d.ts +3 -1
  153. package/library/packages/services/src/api/metadata/metadata.types.d.ts +53 -0
  154. package/library/packages/styles/src/table-select.styles.d.ts +2 -0
  155. package/library/packages/types/src/content-builder.d.ts +13 -5
  156. package/library/packages/types/src/dam-view.d.ts +48 -0
  157. package/library/packages/types/src/table.d.ts +17 -1
  158. package/library/packages/utils/src/custom-element/i18n.d.ts +95 -0
  159. package/library/packages/utils/src/custom-element/math.d.ts +8 -0
  160. package/library/packages/utils/src/date/index.d.ts +1 -0
  161. package/library/packages/utils/src/date/iso-week-number.d.ts +9 -0
  162. package/library/react-web-component.d.ts +545 -438
  163. package/library/utils.js +267 -253
  164. package/package.json +1 -1
  165. package/library/chunks/debounce.CIEhztrj.js +0 -97
  166. package/library/chunks/math.DqTA6ya4.js +0 -7
@@ -1,107 +1,90 @@
1
- import { r as we, R as Ee, H as Y, a as ee, b as ke } from "./resizable-component.styles.DpK0TTP5.js";
1
+ import { r as xe, R as we, H as Y, a as ee, b as Ee } from "./resizable-component.styles.DpK0TTP5.js";
2
2
  import { c as Ce } from "./component.styles.CRO4Odto.js";
3
- import { a as Le } from "./index.Cpamj0jB.js";
4
- import { c as Se } from "./custom-element.L4WJXn1j.js";
5
- import { d as $e } from "./debounce.CIEhztrj.js";
6
- import { L as He } from "./i18n.CH-wak_P.js";
3
+ import { a as ke } from "./index.Cpamj0jB.js";
4
+ import { c as Le } from "./custom-element.L4WJXn1j.js";
5
+ import { d as Se } from "./debounce.DaHuiSGU.js";
6
+ import { L as He } from "./i18n.DDj5y9px.js";
7
7
  import { w as Z } from "./watch.CThbualB.js";
8
- import { E as oe, i as re, x as C } from "./lit-element.jLBm65_O.js";
8
+ import { i as oe, x as k, E as $e } from "./lit-element.jLBm65_O.js";
9
9
  import { n as y } from "./lib-cortex-element.CVMmyPMC.js";
10
- import { r as $ } from "./state.CSDxrqLd.js";
10
+ import { r as H } from "./state.CSDxrqLd.js";
11
11
  import { e as K } from "./query.BBf1UFkC.js";
12
12
  import { e as L } from "./class-map.BiVq-cVR.js";
13
13
  import { o as V } from "./if-defined.BRoBj_Rp.js";
14
- import { e as Re, i as Te } from "./directive.oAbCiebi.js";
15
- import { m as Ae } from "./directive-helpers.Dm4rc594.js";
16
- import { o as Oe } from "./style-map.llVFPd__.js";
14
+ import { i as Re } from "./keyed.C0rkKrxH.js";
15
+ import { o as Te } from "./style-map.llVFPd__.js";
17
16
  import { n as T } from "./when.Dr1es41R.js";
18
- import { C as je } from "./icon.DnBh6-56.js";
19
- import Ze from "../components/popup.js";
20
- import _e from "../components/resize-observer.js";
21
- import Ie from "../components/skeleton.js";
22
- import Me from "../components/space.js";
17
+ import { C as Ae } from "./icon.DnBh6-56.js";
18
+ import Oe from "../components/popup.js";
19
+ import je from "../components/resize-observer.js";
20
+ import Ze from "../components/skeleton.js";
21
+ import _e from "../components/space.js";
23
22
  var j = /* @__PURE__ */ ((i) => (i.Automatic = "automatic", i.Manual = "manual", i))(j || {});
24
- /**
25
- * @license
26
- * Copyright 2021 Google LLC
27
- * SPDX-License-Identifier: BSD-3-Clause
28
- */
29
- const Ne = Re(class extends Te {
30
- constructor() {
31
- super(...arguments), this.key = oe;
32
- }
33
- render(i, t) {
34
- return this.key = i, t;
35
- }
36
- update(i, [t, o]) {
37
- return t !== this.key && (Ae(i), this.key = t), o;
38
- }
39
- });
40
23
  /*! medium-zoom 1.1.0 | MIT License | https://github.com/francoischalifour/medium-zoom */
41
24
  var S = Object.assign || function(i) {
42
25
  for (var t = 1; t < arguments.length; t++) {
43
- var o = arguments[t];
44
- for (var s in o)
45
- Object.prototype.hasOwnProperty.call(o, s) && (i[s] = o[s]);
26
+ var r = arguments[t];
27
+ for (var s in r)
28
+ Object.prototype.hasOwnProperty.call(r, s) && (i[s] = r[s]);
46
29
  }
47
30
  return i;
48
31
  }, P = function(t) {
49
32
  return t.tagName === "IMG";
50
- }, Pe = function(t) {
33
+ }, Ie = function(t) {
51
34
  return NodeList.prototype.isPrototypeOf(t);
52
35
  }, F = function(t) {
53
36
  return t && t.nodeType === 1;
54
37
  }, te = function(t) {
55
- var o = t.currentSrc || t.src;
56
- return o.substr(-4).toLowerCase() === ".svg";
38
+ var r = t.currentSrc || t.src;
39
+ return r.substr(-4).toLowerCase() === ".svg";
57
40
  }, ie = function(t) {
58
41
  try {
59
- return Array.isArray(t) ? t.filter(P) : Pe(t) ? [].slice.call(t).filter(P) : F(t) ? [t].filter(P) : typeof t == "string" ? [].slice.call(document.querySelectorAll(t)).filter(P) : [];
42
+ return Array.isArray(t) ? t.filter(P) : Ie(t) ? [].slice.call(t).filter(P) : F(t) ? [t].filter(P) : typeof t == "string" ? [].slice.call(document.querySelectorAll(t)).filter(P) : [];
60
43
  } catch {
61
44
  throw new TypeError(`The provided selector is invalid.
62
45
  Expects a CSS selector, a Node element, a NodeList or an array.
63
46
  See: https://github.com/francoischalifour/medium-zoom`);
64
47
  }
65
- }, Fe = function(t) {
66
- var o = document.createElement("div");
67
- return o.classList.add("medium-zoom-overlay"), o.style.background = t, o;
68
- }, We = function(t) {
69
- var o = t.getBoundingClientRect(), s = o.top, c = o.left, E = o.width, k = o.height, b = t.cloneNode(), W = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, _ = window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0;
70
- return b.removeAttribute("id"), b.style.position = "absolute", b.style.top = s + W + "px", b.style.left = c + _ + "px", b.style.width = E + "px", b.style.height = k + "px", b.style.transform = "", b;
71
- }, A = function(t, o) {
48
+ }, Me = function(t) {
49
+ var r = document.createElement("div");
50
+ return r.classList.add("medium-zoom-overlay"), r.style.background = t, r;
51
+ }, Ne = function(t) {
52
+ var r = t.getBoundingClientRect(), s = r.top, c = r.left, E = r.width, C = r.height, b = t.cloneNode(), W = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, _ = window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0;
53
+ return b.removeAttribute("id"), b.style.position = "absolute", b.style.top = s + W + "px", b.style.left = c + _ + "px", b.style.width = E + "px", b.style.height = C + "px", b.style.transform = "", b;
54
+ }, A = function(t, r) {
72
55
  var s = S({
73
56
  bubbles: !1,
74
57
  cancelable: !1,
75
58
  detail: void 0
76
- }, o);
59
+ }, r);
77
60
  if (typeof window.CustomEvent == "function")
78
61
  return new CustomEvent(t, s);
79
62
  var c = document.createEvent("CustomEvent");
80
63
  return c.initCustomEvent(t, s.bubbles, s.cancelable, s.detail), c;
81
- }, Ue = function i(t) {
82
- var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = window.Promise || function(r) {
64
+ }, Pe = function i(t) {
65
+ var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = window.Promise || function(o) {
83
66
  function a() {
84
67
  }
85
- r(a, a);
86
- }, c = function(r) {
87
- var a = r.target;
68
+ o(a, a);
69
+ }, c = function(o) {
70
+ var a = o.target;
88
71
  if (a === M) {
89
72
  x();
90
73
  return;
91
74
  }
92
75
  v.indexOf(a) !== -1 && G({ target: a });
93
76
  }, E = function() {
94
- if (!(H || !e.original)) {
95
- var r = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
96
- Math.abs(J - r) > d.scrollOffset && setTimeout(x, 150);
77
+ if (!($ || !e.original)) {
78
+ var o = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
79
+ Math.abs(J - o) > d.scrollOffset && setTimeout(x, 150);
97
80
  }
98
- }, k = function(r) {
99
- var a = r.key || r.keyCode;
81
+ }, C = function(o) {
82
+ var a = o.key || o.keyCode;
100
83
  (a === "Escape" || a === "Esc" || a === 27) && x();
101
84
  }, b = function() {
102
- var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = r;
103
- if (r.background && (M.style.background = r.background), r.container && r.container instanceof Object && (a.container = S({}, d.container, r.container)), r.template) {
104
- var m = F(r.template) ? r.template : document.querySelector(r.template);
85
+ var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = o;
86
+ if (o.background && (M.style.background = o.background), o.container && o.container instanceof Object && (a.container = S({}, d.container, o.container)), o.template) {
87
+ var m = F(o.template) ? o.template : document.querySelector(o.template);
105
88
  a.template = m;
106
89
  }
107
90
  return d = S({}, d, a), v.forEach(function(g) {
@@ -110,10 +93,10 @@ See: https://github.com/francoischalifour/medium-zoom`);
110
93
  }));
111
94
  }), u;
112
95
  }, W = function() {
113
- var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
114
- return i(S({}, d, r));
96
+ var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
97
+ return i(S({}, d, o));
115
98
  }, _ = function() {
116
- for (var r = arguments.length, a = Array(r), m = 0; m < r; m++)
99
+ for (var o = arguments.length, a = Array(o), m = 0; m < o; m++)
117
100
  a[m] = arguments[m];
118
101
  var g = a.reduce(function(n, f) {
119
102
  return [].concat(n, ie(f));
@@ -128,8 +111,8 @@ See: https://github.com/francoischalifour/medium-zoom`);
128
111
  w.addEventListener(f, z, R);
129
112
  });
130
113
  }), u;
131
- }, ae = function() {
132
- for (var r = arguments.length, a = Array(r), m = 0; m < r; m++)
114
+ }, re = function() {
115
+ for (var o = arguments.length, a = Array(o), m = 0; m < o; m++)
133
116
  a[m] = arguments[m];
134
117
  e.zoomed && x();
135
118
  var g = a.length > 0 ? a.reduce(function(n, f) {
@@ -142,20 +125,20 @@ See: https://github.com/francoischalifour/medium-zoom`);
142
125
  }), v = v.filter(function(n) {
143
126
  return g.indexOf(n) === -1;
144
127
  }), u;
145
- }, ne = function(r, a) {
128
+ }, ae = function(o, a) {
146
129
  var m = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
147
130
  return v.forEach(function(g) {
148
- g.addEventListener("medium-zoom:" + r, a, m);
149
- }), I.push({ type: "medium-zoom:" + r, listener: a, options: m }), u;
150
- }, se = function(r, a) {
131
+ g.addEventListener("medium-zoom:" + o, a, m);
132
+ }), I.push({ type: "medium-zoom:" + o, listener: a, options: m }), u;
133
+ }, ne = function(o, a) {
151
134
  var m = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
152
135
  return v.forEach(function(g) {
153
- g.removeEventListener("medium-zoom:" + r, a, m);
136
+ g.removeEventListener("medium-zoom:" + o, a, m);
154
137
  }), I = I.filter(function(g) {
155
- return !(g.type === "medium-zoom:" + r && g.listener.toString() === a.toString());
138
+ return !(g.type === "medium-zoom:" + o && g.listener.toString() === a.toString());
156
139
  }), u;
157
140
  }, X = function() {
158
- var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = r.target, m = function() {
141
+ var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = o.target, m = function() {
159
142
  var n = {
160
143
  width: document.documentElement.clientWidth,
161
144
  height: document.documentElement.clientHeight,
@@ -168,16 +151,16 @@ See: https://github.com/francoischalifour/medium-zoom`);
168
151
  if (d.container instanceof Object)
169
152
  n = S({}, n, d.container), f = n.width - n.left - n.right - d.margin * 2, z = n.height - n.top - n.bottom - d.margin * 2;
170
153
  else {
171
- var R = F(d.container) ? d.container : document.querySelector(d.container), w = R.getBoundingClientRect(), U = w.width, ce = w.height, me = w.left, ge = w.top;
154
+ var R = F(d.container) ? d.container : document.querySelector(d.container), w = R.getBoundingClientRect(), U = w.width, de = w.height, ce = w.left, me = w.top;
172
155
  n = S({}, n, {
173
156
  width: U,
174
- height: ce,
175
- left: me,
176
- top: ge
157
+ height: de,
158
+ left: ce,
159
+ top: me
177
160
  });
178
161
  }
179
162
  f = f || n.width - d.margin * 2, z = z || n.height - d.margin * 2;
180
- var O = e.zoomedHd || e.original, ue = te(O) ? f : O.naturalWidth || f, pe = te(O) ? z : O.naturalHeight || z, N = O.getBoundingClientRect(), fe = N.top, ve = N.left, B = N.width, D = N.height, ye = Math.min(Math.max(B, ue), f) / B, ze = Math.min(Math.max(D, pe), z) / D, q = Math.min(ye, ze), be = (-ve + (f - B) / 2 + d.margin + n.left) / q, xe = (-fe + (z - D) / 2 + d.margin + n.top) / q, Q = "scale(" + q + ") translate3d(" + be + "px, " + xe + "px, 0)";
163
+ var O = e.zoomedHd || e.original, ge = te(O) ? f : O.naturalWidth || f, ue = te(O) ? z : O.naturalHeight || z, N = O.getBoundingClientRect(), pe = N.top, fe = N.left, B = N.width, D = N.height, ve = Math.min(Math.max(B, ge), f) / B, ye = Math.min(Math.max(D, ue), z) / D, q = Math.min(ve, ye), ze = (-fe + (f - B) / 2 + d.margin + n.left) / q, be = (-pe + (z - D) / 2 + d.margin + n.top) / q, Q = "scale(" + q + ") translate3d(" + ze + "px, " + be + "px, 0)";
181
164
  e.zoomed.style.transform = Q, e.zoomedHd && (e.zoomedHd.style.transform = Q);
182
165
  };
183
166
  return new s(function(g) {
@@ -186,7 +169,7 @@ See: https://github.com/francoischalifour/medium-zoom`);
186
169
  return;
187
170
  }
188
171
  var n = function U() {
189
- H = !1, e.zoomed.removeEventListener("transitionend", U), e.original.dispatchEvent(A("medium-zoom:opened", {
172
+ $ = !1, e.zoomed.removeEventListener("transitionend", U), e.original.dispatchEvent(A("medium-zoom:opened", {
190
173
  detail: { zoom: u }
191
174
  })), g(u);
192
175
  };
@@ -205,7 +188,7 @@ See: https://github.com/francoischalifour/medium-zoom`);
205
188
  }
206
189
  if (e.original.dispatchEvent(A("medium-zoom:open", {
207
190
  detail: { zoom: u }
208
- })), J = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, H = !0, e.zoomed = We(e.original), document.body.appendChild(M), d.template) {
191
+ })), J = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, $ = !0, e.zoomed = Ne(e.original), document.body.appendChild(M), d.template) {
209
192
  var z = F(d.template) ? d.template : document.querySelector(d.template);
210
193
  e.template = document.createElement("div"), e.template.appendChild(z.content.cloneNode(!0)), document.body.appendChild(e.template);
211
194
  }
@@ -227,30 +210,30 @@ See: https://github.com/francoischalifour/medium-zoom`);
227
210
  m();
228
211
  });
229
212
  }, x = function() {
230
- return new s(function(r) {
231
- if (H || !e.original) {
232
- r(u);
213
+ return new s(function(o) {
214
+ if ($ || !e.original) {
215
+ o(u);
233
216
  return;
234
217
  }
235
218
  var a = function m() {
236
- e.original.classList.remove("medium-zoom-image--hidden"), document.body.removeChild(e.zoomed), e.zoomedHd && document.body.removeChild(e.zoomedHd), document.body.removeChild(M), e.zoomed.classList.remove("medium-zoom-image--opened"), e.template && document.body.removeChild(e.template), H = !1, e.zoomed.removeEventListener("transitionend", m), e.original.dispatchEvent(A("medium-zoom:closed", {
219
+ e.original.classList.remove("medium-zoom-image--hidden"), document.body.removeChild(e.zoomed), e.zoomedHd && document.body.removeChild(e.zoomedHd), document.body.removeChild(M), e.zoomed.classList.remove("medium-zoom-image--opened"), e.template && document.body.removeChild(e.template), $ = !1, e.zoomed.removeEventListener("transitionend", m), e.original.dispatchEvent(A("medium-zoom:closed", {
237
220
  detail: { zoom: u }
238
- })), e.original = null, e.zoomed = null, e.zoomedHd = null, e.template = null, r(u);
221
+ })), e.original = null, e.zoomed = null, e.zoomedHd = null, e.template = null, o(u);
239
222
  };
240
- H = !0, document.body.classList.remove("medium-zoom--opened"), e.zoomed.style.transform = "", e.zoomedHd && (e.zoomedHd.style.transform = ""), e.template && (e.template.style.transition = "opacity 150ms", e.template.style.opacity = 0), e.original.dispatchEvent(A("medium-zoom:close", {
223
+ $ = !0, document.body.classList.remove("medium-zoom--opened"), e.zoomed.style.transform = "", e.zoomedHd && (e.zoomedHd.style.transform = ""), e.template && (e.template.style.transition = "opacity 150ms", e.template.style.opacity = 0), e.original.dispatchEvent(A("medium-zoom:close", {
241
224
  detail: { zoom: u }
242
225
  })), e.zoomed.addEventListener("transitionend", a);
243
226
  });
244
227
  }, G = function() {
245
- var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = r.target;
228
+ var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = o.target;
246
229
  return e.original ? x() : X({ target: a });
247
- }, le = function() {
230
+ }, se = function() {
248
231
  return d;
249
- }, he = function() {
232
+ }, le = function() {
250
233
  return v;
251
- }, de = function() {
234
+ }, he = function() {
252
235
  return e.original;
253
- }, v = [], I = [], H = !1, J = 0, d = o, e = {
236
+ }, v = [], I = [], $ = !1, J = 0, d = r, e = {
254
237
  original: null,
255
238
  zoomed: null,
256
239
  zoomedHd: null,
@@ -264,8 +247,8 @@ See: https://github.com/francoischalifour/medium-zoom`);
264
247
  container: null,
265
248
  template: null
266
249
  }, d);
267
- var M = Fe(d.background);
268
- document.addEventListener("click", c), document.addEventListener("keyup", k), document.addEventListener("scroll", E), window.addEventListener("resize", x);
250
+ var M = Me(d.background);
251
+ document.addEventListener("click", c), document.addEventListener("keyup", C), document.addEventListener("scroll", E), window.addEventListener("resize", x);
269
252
  var u = {
270
253
  open: X,
271
254
  close: x,
@@ -273,26 +256,26 @@ See: https://github.com/francoischalifour/medium-zoom`);
273
256
  update: b,
274
257
  clone: W,
275
258
  attach: _,
276
- detach: ae,
277
- on: ne,
278
- off: se,
279
- getOptions: le,
280
- getImages: he,
281
- getZoomedImage: de
259
+ detach: re,
260
+ on: ae,
261
+ off: ne,
262
+ getOptions: se,
263
+ getImages: le,
264
+ getZoomedImage: he
282
265
  };
283
266
  return u;
284
267
  };
285
- function Be(i, t) {
268
+ function Fe(i, t) {
286
269
  t === void 0 && (t = {});
287
- var o = t.insertAt;
270
+ var r = t.insertAt;
288
271
  if (!(typeof document > "u")) {
289
272
  var s = document.head || document.getElementsByTagName("head")[0], c = document.createElement("style");
290
- c.type = "text/css", o === "top" && s.firstChild ? s.insertBefore(c, s.firstChild) : s.appendChild(c), c.styleSheet ? c.styleSheet.cssText = i : c.appendChild(document.createTextNode(i));
273
+ c.type = "text/css", r === "top" && s.firstChild ? s.insertBefore(c, s.firstChild) : s.appendChild(c), c.styleSheet ? c.styleSheet.cssText = i : c.appendChild(document.createTextNode(i));
291
274
  }
292
275
  }
293
- var De = ".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";
294
- Be(De);
295
- const qe = re`:host([effect=jump]) .container,:host([effect=text-reveal]) .container,:host([effect=zoom]) .container{overflow:initial}:host([effect=jump]) .highlighter{transition:all var(--transition-duration,.5s) var(--easing,linear), transform var(--transition-transform-duration,.5s) var(--easing,linear)}:host([effect=jump]) .highlighter:hover{transform:translateY(calc(var(--highlightable-item-effect-jump-distance,0) * -1))}.highlighter--effect-text-reveal,:host([effect=zoom]) .highlighter--zoom-style-within-borders{overflow:hidden}:host([effect=zoom][zoom-style=pop-out]) .highlighter:hover{z-index:3;animation:none}:host([effect=zoom][zoom-style=pop-out]) .highlighter:not(:hover){animation:drop-z var(--transition-transform-duration) forwards}@keyframes drop-z{0%{z-index:2}99%{z-index:2}to{z-index:0}}.highlighter--can-hover:hover:after,.highlighter--selected:after,.highlighter--color-overlay:after{content:"";pointer-events:none;width:100%;height:100%;transition:all var(--transition-duration,.5s) var(--easing,linear);position:absolute;top:0;left:0}.highlighter--can-hover:hover:after,.highlighter--selected:after{outline:2px solid var(--cx-color-primary)}.highlighter--border:hover .image{border-color:var(--highlightable-item-highlight-border-color,var(--cx-color-primary))}.highlighter--color-overlay:after{border-radius:var(--border-radius,none)}.highlighter--color-overlay:hover:after{background-color:var(--highlightable-item-highlight-color-overlay-color,transparent)}.highlighter--drop-shadow:hover .image{box-shadow:var(--highlightable-item-highlight-drop-shadow,none)}.highlighter--background:hover .highlightable-item{--content-background-color:var(--highlightable-item-highlight-background,transparent);--highlightable-item-background-color:var(--highlightable-item-highlight-background,transparent)}.highlighter--opacity{opacity:var(--highlightable-item-highlight-opacity,1)}:host([effect=zoom][zoom-style=within-borders]) .highlighter .image,:host([effect=zoom][zoom-style=pop-out]) .highlighter{transition:transform var(--transition-transform-duration,.5s) var(--easing,linear)}:host([effect=zoom][zoom-style=within-borders]) .highlighter:hover .image,:host([effect=zoom][zoom-style=pop-out]) .highlighter:hover{transform:scale(var(--highlightable-item-effect-zoom-scale,1))}.highlightable-item{transition:background-color var(--transition-duration,.5s) var(--easing,linear), border-color var(--transition-duration,.5s) var(--easing,linear), box-shadow var(--transition-duration,.5s) var(--easing,linear), opacity var(--transition-duration,.5s) var(--easing,linear), transform var(--transition-transform-duration,.5s) var(--easing,linear), visibility var(--transition-duration,.5s) var(--easing,linear)}`, Ye = re`
276
+ var We = ".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";
277
+ Fe(We);
278
+ const Ue = oe`:host([effect=jump]) .container,:host([effect=text-reveal]) .container,:host([effect=zoom]) .container{overflow:initial}:host([effect=jump]) .highlighter{transition:all var(--transition-duration,.5s) var(--easing,linear), transform var(--transition-transform-duration,.5s) var(--easing,linear)}:host([effect=jump]) .highlighter:hover{transform:translateY(calc(var(--highlightable-item-effect-jump-distance,0) * -1))}.highlighter--effect-text-reveal,:host([effect=zoom]) .highlighter--zoom-style-within-borders{overflow:hidden}:host([effect=zoom][zoom-style=pop-out]) .highlighter:hover{z-index:3;animation:none}:host([effect=zoom][zoom-style=pop-out]) .highlighter:not(:hover){animation:drop-z var(--transition-transform-duration) forwards}@keyframes drop-z{0%{z-index:2}99%{z-index:2}to{z-index:0}}.highlighter--can-hover:hover:after,.highlighter--selected:after,.highlighter--color-overlay:after{content:"";pointer-events:none;width:100%;height:100%;transition:all var(--transition-duration,.5s) var(--easing,linear);position:absolute;top:0;left:0}.highlighter--can-hover:hover:after,.highlighter--selected:after{outline:2px solid var(--cx-color-primary)}.highlighter--border:hover .image{border-color:var(--highlightable-item-highlight-border-color,var(--cx-color-primary))}.highlighter--color-overlay:after{border-radius:var(--border-radius,none)}.highlighter--color-overlay:hover:after{background-color:var(--highlightable-item-highlight-color-overlay-color,transparent)}.highlighter--drop-shadow:hover .image{box-shadow:var(--highlightable-item-highlight-drop-shadow,none)}.highlighter--background:hover .highlightable-item{--content-background-color:var(--highlightable-item-highlight-background,transparent);--highlightable-item-background-color:var(--highlightable-item-highlight-background,transparent)}.highlighter--opacity{opacity:var(--highlightable-item-highlight-opacity,1)}:host([effect=zoom][zoom-style=within-borders]) .highlighter .image,:host([effect=zoom][zoom-style=pop-out]) .highlighter{transition:transform var(--transition-transform-duration,.5s) var(--easing,linear)}:host([effect=zoom][zoom-style=within-borders]) .highlighter:hover .image,:host([effect=zoom][zoom-style=pop-out]) .highlighter:hover{transform:scale(var(--highlightable-item-effect-zoom-scale,1))}.highlightable-item{transition:background-color var(--transition-duration,.5s) var(--easing,linear), border-color var(--transition-duration,.5s) var(--easing,linear), box-shadow var(--transition-duration,.5s) var(--easing,linear), opacity var(--transition-duration,.5s) var(--easing,linear), transform var(--transition-transform-duration,.5s) var(--easing,linear), visibility var(--transition-duration,.5s) var(--easing,linear)}`, Be = oe`
296
279
  :host {
297
280
  --justify-content: flex-start;
298
281
  --border-radius: 0px;
@@ -345,7 +328,7 @@ const qe = re`:host([effect=jump]) .container,:host([effect=text-reveal]) .conta
345
328
  max-height: 100%;
346
329
  }
347
330
 
348
- ${qe}
331
+ ${Ue}
349
332
 
350
333
  :host([block]) {
351
334
  width: 100%;
@@ -538,14 +521,14 @@ const qe = re`:host([effect=jump]) .container,:host([effect=text-reveal]) .conta
538
521
  --font-size: var(--cx-font-size-4x-large);
539
522
  }
540
523
  `;
541
- var Ve = Object.defineProperty, Ke = Object.getOwnPropertyDescriptor, h = (i, t, o, s) => {
542
- for (var c = s > 1 ? void 0 : s ? Ke(t, o) : t, E = i.length - 1, k; E >= 0; E--)
543
- (k = i[E]) && (c = (s ? k(t, o, c) : k(c)) || c);
544
- return s && c && Ve(t, o, c), c;
524
+ var De = Object.defineProperty, qe = Object.getOwnPropertyDescriptor, h = (i, t, r, s) => {
525
+ for (var c = s > 1 ? void 0 : s ? qe(t, r) : t, E = i.length - 1, C; E >= 0; E--)
526
+ (C = i[E]) && (c = (s ? C(t, r, c) : C(c)) || c);
527
+ return s && c && De(t, r, c), c;
545
528
  };
546
- let l = class extends Ee {
529
+ let l = class extends we {
547
530
  constructor() {
548
- super(...arguments), this.localize = new He(this), this._retryCount = 0, this._retryTimer = null, this.isLoaded = !1, this.isError = !1, this._retryIndex = 0, this.src = "", this.placeholder = "", this.alt = "", this.objectFit = Le.Fill, this.skeleton = !1, this.fallback = !1, this.canZoom = !1, this.loading = !1, this.block = !1, this.htmlLoading = "lazy", this.clickHandlerType = j.Automatic, this.retryOnError = !1, this.maxRetries = 3, this.isZoomed = !1, this.imageRatio = 1, this.parsedAlt = "", this.parsedAltDarkMode = "", this.zoom = null, this.lastPatchedWidth = null;
531
+ super(...arguments), this.localize = new He(this), this._retryCount = 0, this._retryTimer = null, this.isLoaded = !1, this.isError = !1, this._retryIndex = 0, this.src = "", this.placeholder = "", this.alt = "", this.objectFit = ke.Fill, this.skeleton = !1, this.fallback = !1, this.canZoom = !1, this.loading = !1, this.block = !1, this.htmlLoading = "lazy", this.clickHandlerType = j.Automatic, this.retryOnError = !1, this.maxRetries = 3, this.isZoomed = !1, this.imageRatio = 1, this.parsedAlt = "", this.parsedAltDarkMode = "", this.zoom = null, this.lastPatchedWidth = null;
549
532
  }
550
533
  get currentAltValue() {
551
534
  return this.alt;
@@ -568,7 +551,7 @@ let l = class extends Ee {
568
551
  }
569
552
  get imageClass() {
570
553
  let i = "landscape", t = this.ratio;
571
- const o = this.width.endsWith("%") ? this.clientWidth : Number.parseFloat(this.width), s = this.isResizing ? this.resizeSize.width : o, c = this.isResizing ? this.resizeSize.height : Number.parseFloat(this.height);
554
+ const r = this.width.endsWith("%") ? this.clientWidth : Number.parseFloat(this.width), s = this.isResizing ? this.resizeSize.width : r, c = this.isResizing ? this.resizeSize.height : Number.parseFloat(this.height);
572
555
  return s && c && (t = s / c), t > this.imageRatio && (i = "portrait"), {
573
556
  image: !0,
574
557
  [`image--${this.objectFit}`]: !0,
@@ -637,7 +620,7 @@ let l = class extends Ee {
637
620
  }, i);
638
621
  }
639
622
  async initZoom() {
640
- this.zoomImageElement && !this.zoom && this.isLoaded && (this.zoom = Ue(this.zoomImageElement, {
623
+ this.zoomImageElement && !this.zoom && this.isLoaded && (this.zoom = Pe(this.zoomImageElement, {
641
624
  background: "light-dark(rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0.8))",
642
625
  margin: 0,
643
626
  scrollOffset: 0
@@ -651,8 +634,8 @@ let l = class extends Ee {
651
634
  const t = i?.currentTarget ?? this.imageElement;
652
635
  if (!t)
653
636
  return;
654
- const { naturalHeight: o, naturalWidth: s } = t;
655
- this.imageRatio = s / o, this.isLoaded || (this.emit("cx-load"), this.isLoaded = !0, this.isError = !1);
637
+ const { naturalHeight: r, naturalWidth: s } = t;
638
+ this.imageRatio = s / r, this.isLoaded || (this.emit("cx-load"), this.isLoaded = !0, this.isError = !1);
656
639
  }
657
640
  handleError() {
658
641
  if (this.retryOnError && this._retryCount < this.maxRetries) {
@@ -662,13 +645,13 @@ let l = class extends Ee {
662
645
  this.emit("cx-error"), this.isLoaded = !0, this.isError = !0;
663
646
  }
664
647
  handleSizeChange() {
665
- const i = this.resizeDirection !== ee.Vertical, t = this.resizeDirection !== ee.Horizontal, o = this.isResizing ? `${this.resizeSize.width}px` : this.width, s = this.isResizing ? `${this.resizeSize.height}px` : this.height;
666
- i && (this.width || this.isResizing ? this.style.setProperty("--width", o) : this.style.removeProperty("--width")), t && (this.heightMode !== ke.Auto && (this.height || this.isResizing) ? this.style.setProperty("--height", s) : this.style.removeProperty("--height"));
648
+ const i = this.resizeDirection !== ee.Vertical, t = this.resizeDirection !== ee.Horizontal, r = this.isResizing ? `${this.resizeSize.width}px` : this.width, s = this.isResizing ? `${this.resizeSize.height}px` : this.height;
649
+ i && (this.width || this.isResizing ? this.style.setProperty("--width", r) : this.style.removeProperty("--width")), t && (this.heightMode !== Ee.Auto && (this.height || this.isResizing) ? this.style.setProperty("--height", s) : this.style.removeProperty("--height"));
667
650
  }
668
651
  handleResize(i) {
669
652
  const { entries: t } = i.detail;
670
- for (const o of t)
671
- o.target === this.highlighterElement && this.width.endsWith("%") && !this.isResizing && Math.abs(o.contentRect.width - (this.lastPatchedWidth ?? 0)) > 1 && this.updateLastPatchedWidth(o.contentRect.width);
653
+ for (const r of t)
654
+ r.target === this.highlighterElement && this.width.endsWith("%") && !this.isResizing && Math.abs(r.contentRect.width - (this.lastPatchedWidth ?? 0)) > 1 && this.updateLastPatchedWidth(r.contentRect.width);
672
655
  }
673
656
  updateLastPatchedWidth(i) {
674
657
  this.lastPatchedWidth = i, this.requestUpdate();
@@ -687,50 +670,50 @@ let l = class extends Ee {
687
670
  }
688
671
  renderContent() {
689
672
  const i = this.currentSrc, t = this.currentAltValue;
690
- return C`<div part="content" slot="anchor" class=${L(this.highlighterClass)}>${Ne(
673
+ return k`<div part="content" slot="anchor" class=${L(this.highlighterClass)}>${Re(
691
674
  this._retryIndex,
692
- C`<img part="image" class=${L(this.imageClass)} src=${i || this.placeholder} alt=${t} aria-label=${t} crossorigin=${V(this.crossorigin)} @load=${this.handleLoad} @error=${this.handleError} loading=${this.htmlLoading}>`
675
+ k`<img part="image" class=${L(this.imageClass)} src=${i || this.placeholder} alt=${t} aria-label=${t} crossorigin=${V(this.crossorigin)} @load=${this.handleLoad} @error=${this.handleError} loading=${this.htmlLoading}>`
693
676
  )}</div>`;
694
677
  }
695
678
  render() {
696
- const i = this.hasZoomAction, t = this.currentAltValue, o = !this.currentSrc && !this.placeholder;
697
- return C`<div part="base" class=${L({
679
+ const i = this.hasZoomAction, t = this.currentAltValue, r = !this.currentSrc && !this.placeholder;
680
+ return k`<div part="base" class=${L({
698
681
  container: !0,
699
- "container--empty": o,
682
+ "container--empty": r,
700
683
  "container--loading": this.loading,
701
684
  "container--resizing": this.resizable && this.isResizeActive
702
- })} style=${Oe({
685
+ })} style=${Te({
703
686
  "--easing": this.easeCSSVariable
704
- })} data-empty-label=${this.localize.term("emptyImage")} @click=${this.startResizing} @keydown=${this.handleKeyDown}><cx-resize-observer @cx-resize=${this.handleResize}><div part="highlighter" tabindex=${V(this.highlighterTabindex)} role=${this.highlighterRole} aria-label=${t} aria-roledescription=${this.localize.term("image")} class=${L(o ? {} : this.getHighlighterClass())} @click=${this.handleClickAction} @mouseenter=${this.handleMouseEnter} @mouseleave=${this.handleMouseLeave} @blur=${this.handleBlur}>${T(
705
- o,
706
- () => oe,
687
+ })} data-empty-label=${this.localize.term("emptyImage")} @click=${this.startResizing} @keydown=${this.handleKeyDown}><cx-resize-observer @cx-resize=${this.handleResize}><div part="highlighter" tabindex=${V(this.highlighterTabindex)} role=${this.highlighterRole} aria-label=${t} aria-roledescription=${this.localize.term("image")} class=${L(r ? {} : this.getHighlighterClass())} @click=${this.handleClickAction} @mouseenter=${this.handleMouseEnter} @mouseleave=${this.handleMouseLeave} @blur=${this.handleBlur}>${T(
688
+ r,
689
+ () => $e,
707
690
  () => T(
708
691
  this.effect === Y.Jump || this.effect === Y.Zoom,
709
- () => C`<cx-popup class="popup-container" strategy="absolute" active placement="center" sync="both">${this.renderContent()}</cx-popup>`,
692
+ () => k`<cx-popup class="popup-container" strategy="absolute" active placement="center" sync="both">${this.renderContent()}</cx-popup>`,
710
693
  () => this.renderContent()
711
694
  )
712
695
  )}<div class="zoom-image-container">${T(
713
696
  i,
714
- () => C`<img part="zoom-image" class=${L({
697
+ () => k`<img part="zoom-image" class=${L({
715
698
  "zoom-image": !0,
716
699
  "zoom-image--hidden": !this.isZoomed
717
700
  })} src=${this.currentSrc || this.placeholder} alt="" aria-hidden="true" decoding="async" draggable="false" crossorigin=${V(this.crossorigin)}>`
718
701
  )}</div>${T(
719
702
  this.skeleton && !this.isLoaded && !this.isError || this.loading,
720
- () => C`<slot name="skeleton" part="skeleton"><div class=${L({
703
+ () => k`<slot name="skeleton" part="skeleton"><div class=${L({
721
704
  skeleton: !0
722
705
  })}><cx-skeleton effect="sheen"></cx-skeleton></div></slot>`
723
706
  )}
724
- ${T(this.isError && this.fallback, () => C`<slot name="fallback" part="fallback"><cx-space class=${L({ fallback: !0 })} direction="column" align-items="center" justify-content="center"><cx-icon name="hide_image" part="fallback-icon"> </cx-icon></cx-space></slot>`)}</div></cx-resize-observer>${T(this.resizable && this.isResizeActive, () => this.renderResizer())}</div>`;
707
+ ${T(this.isError && this.fallback, () => k`<slot name="fallback" part="fallback"><cx-space class=${L({ fallback: !0 })} direction="column" align-items="center" justify-content="center"><cx-icon name="hide_image" part="fallback-icon"> </cx-icon></cx-space></slot>`)}</div></cx-resize-observer>${T(this.resizable && this.isResizeActive, () => this.renderResizer())}</div>`;
725
708
  }
726
709
  };
727
- l.styles = [Ce, we, Ye];
710
+ l.styles = [Ce, xe, Be];
728
711
  l.dependencies = {
729
- "cx-icon": je,
730
- "cx-popup": Ze,
731
- "cx-resize-observer": _e,
732
- "cx-skeleton": Ie,
733
- "cx-space": Me
712
+ "cx-icon": Ae,
713
+ "cx-popup": Oe,
714
+ "cx-resize-observer": je,
715
+ "cx-skeleton": Ze,
716
+ "cx-space": _e
734
717
  };
735
718
  h([
736
719
  K(".image")
@@ -742,13 +725,13 @@ h([
742
725
  K(".highlighter")
743
726
  ], l.prototype, "highlighterElement", 2);
744
727
  h([
745
- $()
728
+ H()
746
729
  ], l.prototype, "isLoaded", 2);
747
730
  h([
748
- $()
731
+ H()
749
732
  ], l.prototype, "isError", 2);
750
733
  h([
751
- $()
734
+ H()
752
735
  ], l.prototype, "_retryIndex", 2);
753
736
  h([
754
737
  y({ reflect: !0, type: String })
@@ -790,16 +773,16 @@ h([
790
773
  y({ attribute: "max-retries", type: Number })
791
774
  ], l.prototype, "maxRetries", 2);
792
775
  h([
793
- $()
776
+ H()
794
777
  ], l.prototype, "isZoomed", 2);
795
778
  h([
796
- $()
779
+ H()
797
780
  ], l.prototype, "imageRatio", 2);
798
781
  h([
799
- $()
782
+ H()
800
783
  ], l.prototype, "parsedAlt", 2);
801
784
  h([
802
- $()
785
+ H()
803
786
  ], l.prototype, "parsedAltDarkMode", 2);
804
787
  h([
805
788
  Z("isLoaded"),
@@ -813,10 +796,10 @@ h([
813
796
  Z("srcDarkMode")
814
797
  ], l.prototype, "handleSrcChange", 1);
815
798
  h([
816
- $e(100)
799
+ Se(100)
817
800
  ], l.prototype, "updateLastPatchedWidth", 1);
818
801
  l = h([
819
- Se("cx-image")
802
+ Le("cx-image")
820
803
  ], l);
821
804
  export {
822
805
  l as C,
@@ -4,7 +4,7 @@ import { f as ot } from "./form-control.styles.CaGWmeAS.js";
4
4
  import { c as lt } from "./custom-element.L4WJXn1j.js";
5
5
  import { d as ht } from "./default-value.COZopaet.js";
6
6
  import { F as pt } from "./form.B-5nQJva.js";
7
- import { L as ct } from "./i18n.CH-wak_P.js";
7
+ import { L as ct } from "./i18n.DDj5y9px.js";
8
8
  import { H as dt } from "./slot.j5oheLJC.js";
9
9
  import { w as V } from "./watch.CThbualB.js";
10
10
  import { i as ft, x as E } from "./lit-element.jLBm65_O.js";
@@ -0,0 +1,22 @@
1
+ import { E as s } from "./lit-element.jLBm65_O.js";
2
+ import { e as i, i as o } from "./directive.oAbCiebi.js";
3
+ import { m } from "./directive-helpers.Dm4rc594.js";
4
+ /**
5
+ * @license
6
+ * Copyright 2021 Google LLC
7
+ * SPDX-License-Identifier: BSD-3-Clause
8
+ */
9
+ const a = i(class extends o {
10
+ constructor() {
11
+ super(...arguments), this.key = s;
12
+ }
13
+ render(e, r) {
14
+ return this.key = e, r;
15
+ }
16
+ update(e, [r, t]) {
17
+ return r !== this.key && (m(e), this.key = r), t;
18
+ }
19
+ });
20
+ export {
21
+ a as i
22
+ };
@@ -1,22 +1,22 @@
1
- import { C as k } from "./button.DwJEeW2t.js";
2
- import { C as R, D as j } from "./dialog.BYCWepBc.js";
1
+ import { C as k } from "./button.bufNNyTc.js";
2
+ import { C as R, D as j } from "./dialog.DdsJ_WqU.js";
3
3
  import B from "../components/grid.js";
4
4
  import F from "../components/grid-item.js";
5
- import { C as E } from "./input.CH4lKxPM.js";
5
+ import { C as E } from "./input.BYj6YXcM.js";
6
6
  import P from "../components/line-clamp.js";
7
- import { C as K } from "./option.Bvh35v8S.js";
7
+ import { C as K } from "./option.CnxdM30G.js";
8
8
  import U from "../components/radio.js";
9
9
  import H from "../components/radio-group.js";
10
10
  import V from "../components/select.js";
11
11
  import T from "../components/space.js";
12
- import { C as W, H as J } from "./table.GCs54Y2t.js";
12
+ import { C as W, H as J } from "./table.BkdcDorc.js";
13
13
  import { C as L } from "./typography.DJC_UXgs.js";
14
14
  import { n as o, C as D } from "./lib-cortex-element.CVMmyPMC.js";
15
15
  import X from "../components/dynamic-select.js";
16
16
  import { c as M } from "./component.styles.CRO4Odto.js";
17
17
  import { c as z } from "./custom-element.L4WJXn1j.js";
18
- import { d as Y } from "./debounce.CIEhztrj.js";
19
- import { L as O } from "./i18n.CH-wak_P.js";
18
+ import { d as Y } from "./debounce.DaHuiSGU.js";
19
+ import { L as O } from "./i18n.DDj5y9px.js";
20
20
  import { w as v } from "./watch.CThbualB.js";
21
21
  import { a as Z } from "./_commonjsHelpers.DQNKXVTB.js";
22
22
  import { i as q, x as l } from "./lit-element.jLBm65_O.js";
@@ -28,11 +28,11 @@ import { o as te } from "./map.D8heArFD.js";
28
28
  import { c as x } from "./repeat.DbF2p5ae.js";
29
29
  import { n as b } from "./when.Dr1es41R.js";
30
30
  import { t as ae } from "./toString.CAY8lys2.js";
31
- import { C as ie } from "./icon-button.CQiBjznj.js";
32
- import { C as ne } from "./image.cT-FziNS.js";
33
- import { a as se, F as I, b as w } from "./asset.CIWxY-Aw.js";
31
+ import { C as ie } from "./icon-button.DOrACmes.js";
32
+ import { C as ne } from "./image.BugewF1g.js";
33
+ import { a as se, F as I, b as w } from "./asset.D_MQwP1C.js";
34
34
  import { a as re } from "./index.Cpamj0jB.js";
35
- import { A as g } from "./content-builder.OsUmm8Wu.js";
35
+ import { A as g } from "./content-builder.BGzxZUgi.js";
36
36
  import { b as oe, t as $ } from "./string.DUgD4c9f.js";
37
37
  import { t as le } from "./toast.D3AW3RWv.js";
38
38
  var C, _;