@orangelogic/design-system 2.60.0 → 2.61.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 (248) hide show
  1. package/library/apps/cortex/src/types.d.ts +2 -0
  2. package/library/chunks/_baseRest.ClTMQtN1.js +67 -0
  3. package/library/chunks/{_baseUniq.BUihBa8c.js → _baseUniq.Df-fLIBx.js} +53 -56
  4. package/library/chunks/{amazon_s3.DeaMdPPn.js → amazon_s3.BEMtqafk.js} +1 -1
  5. package/library/chunks/animate.El-MpOws.js +37 -0
  6. package/library/chunks/animation-registry.HmpwNuGH.js +34 -0
  7. package/library/chunks/{animation.B7d72NVK.js → animation.DfUHRQry.js} +10 -8
  8. package/library/chunks/array.DCtvHiLS.js +81 -0
  9. package/library/chunks/asset.CG_yXtWK.js +288 -0
  10. package/library/chunks/{browser.Va59Ix3P.js → browser.BHOCIF_A.js} +18 -16
  11. package/library/chunks/{button.CtCSNRB3.js → button.P71VJ5xh.js} +75 -74
  12. package/library/chunks/{button.styles.C8AIO8fd.js → button.styles.Dl5IQLHU.js} +1 -1
  13. package/library/chunks/{capitalize.CNStXZBq.js → capitalize.WSkCXkNE.js} +1 -1
  14. package/library/chunks/{chatbot.sm4Rph1v.js → chatbot.BmpIu59L.js} +2 -2
  15. package/library/chunks/{class-map.CoZTSvbM.js → class-map.BiVq-cVR.js} +1 -1
  16. package/library/chunks/{color-swatch-group.qJevXs50.js → color-swatch-group.DlLmydlB.js} +116 -127
  17. package/library/chunks/color-swatch.Bpb_hW2H.js +407 -0
  18. package/library/chunks/color.vLD2sNTs.js +164 -0
  19. package/library/chunks/{component.styles.CI-v8BZa.js → component.styles.DMSLciL5.js} +1 -1
  20. package/library/chunks/{confirm-popover.D2TF1x6K.js → confirm-popover.C1uA36JR.js} +15 -13
  21. package/library/chunks/{content-builder.WranV3P4.js → content-builder.Bf7kqzDI.js} +1 -1
  22. package/library/chunks/converters.DkDtLstb.js +11 -0
  23. package/library/chunks/{cropper.aA0v16xS.js → cropper.BraEEykE.js} +5004 -5024
  24. package/library/chunks/custom-element.L4WJXn1j.js +14 -0
  25. package/library/chunks/debounce.DaHuiSGU.js +15 -0
  26. package/library/chunks/{default-value.CIKAvD5l.js → default-value.COZopaet.js} +1 -1
  27. package/library/chunks/{dialog.B1TORO6S.js → dialog.C_75RVVz.js} +52 -49
  28. package/library/chunks/{directive-helpers.DBHob-_L.js → directive-helpers.Dm4rc594.js} +1 -1
  29. package/library/chunks/dom.CZrJ64Dm.js +92 -0
  30. package/library/chunks/{dot-pagination.8f2oX_ge.js → dot-pagination.CoCIJsHC.js} +24 -22
  31. package/library/chunks/{endpoints.BgyupJys.js → endpoints.B7lcoc1N.js} +1 -3
  32. package/library/chunks/{file-on-demand.Cwgabdyw.js → file-on-demand.B2jNilAj.js} +1829 -1544
  33. package/library/chunks/{folder-select.DiWCwR-T.js → folder-select.CSEQxIXF.js} +380 -255
  34. package/library/chunks/{form-control.styles.NE2Q-quE.js → form-control.styles.CUGhvlfT.js} +1 -1
  35. package/library/chunks/{form.B8u0ywni.js → form.CO12-VK0.js} +1 -1
  36. package/library/chunks/{guard.BDP4A85K.js → guard.D4axKaMo.js} +1 -1
  37. package/library/chunks/{header.B_FD8uLt.js → header.Bd3G0-oA.js} +11 -9
  38. package/library/chunks/{hub-connection.CxfaT11o.js → hub-connection.BxT2b7Nq.js} +4 -3
  39. package/library/chunks/{i18n.BP2FRO1v.js → i18n.DrzK7TPf.js} +54 -7
  40. package/library/chunks/identity.ByMq8VxU.js +6 -0
  41. package/library/chunks/{if-defined.MfEgpxEN.js → if-defined.BRoBj_Rp.js} +1 -1
  42. package/library/chunks/{iframe.DZm7FiCl.js → iframe.UCj6Ze2A.js} +18 -16
  43. package/library/chunks/{image.Ycf8RudS.js → image.DZCRhE3G.js} +82 -79
  44. package/library/chunks/image.mbpyiQpQ.js +82 -0
  45. package/library/chunks/index.S0wy3rzm.js +373 -0
  46. package/library/chunks/isObjectLike.D3cpZO39.js +81 -0
  47. package/library/chunks/{isSymbol.L0C2ND_U.js → isSymbol.huJ_Cvxt.js} +1 -1
  48. package/library/chunks/lib-cortex-element.CVMmyPMC.js +146 -0
  49. package/library/chunks/{list-editor.COkw5JKG.js → list-editor.CrLntuM7.js} +75 -79
  50. package/library/chunks/{custom-element.vnXBMQxc.js → lit-element.jLBm65_O.js} +123 -277
  51. package/library/chunks/{live.LdB9xEhp.js → live.SCz6M8Gs.js} +2 -2
  52. package/library/chunks/{mailchimp.BjbPJfd-.js → mailchimp.Bs6uJVsf.js} +1 -1
  53. package/library/chunks/{modal.BqNLxgs1.js → modal.U1QltQKe.js} +25 -19
  54. package/library/chunks/{option.D9KJhzHs.js → option.D1u5-cTt.js} +21 -19
  55. package/library/chunks/{orangelogic.BgbQXkBv.js → orangelogic.TdFfoPUN.js} +1 -1
  56. package/library/chunks/{overlayscrollbars.aFuRG5Rs.js → overlayscrollbars.XhGWx9Zk.js} +1 -1
  57. package/library/chunks/{pagination.C2FN4fmO.js → pagination.BI3LONVU.js} +17 -15
  58. package/library/chunks/{ref.BaCjlzLO.js → ref.bzeTdX0K.js} +2 -2
  59. package/library/chunks/{repeat.CauKaXyy.js → repeat.DbF2p5ae.js} +2 -2
  60. package/library/chunks/responsive.CA6dcNiM.js +17 -0
  61. package/library/chunks/{scroll.DwPiX2Ox.js → scroll.xtO5yojm.js} +3 -2
  62. package/library/chunks/{slot.DJLm4Dig.js → slot.j5oheLJC.js} +12 -4
  63. package/library/chunks/{state.Cw55xXlb.js → state.CSDxrqLd.js} +1 -1
  64. package/library/chunks/{static.BjNkqt7_.js → static.UA3G1Deq.js} +1 -1
  65. package/library/chunks/string.Cp_XNbnV.js +160 -0
  66. package/library/chunks/{style-map.CZovMmo_.js → style-map.llVFPd__.js} +1 -1
  67. package/library/chunks/{tab-group.5fLnWflv.js → tab-group.DxSlcWK0.js} +20 -18
  68. package/library/chunks/{table.BAr8KKc6.js → table.CY-iMTWV.js} +457 -505
  69. package/library/chunks/template.CsJd8Pb_.js +20 -0
  70. package/library/chunks/time.D_uFZqqe.js +118 -0
  71. package/library/chunks/{toString.CL_lYXbK.js → toString.CRT5zqEU.js} +3 -3
  72. package/library/chunks/toast.BXNbwZV8.js +25 -0
  73. package/library/chunks/{tree.CUfvIDyA.js → tree.CNbrP8cY.js} +33 -36
  74. package/library/chunks/{typography.BFpl0WMA.js → typography.oDzoLbZS.js} +16 -14
  75. package/library/chunks/{unsafe-html.DyO9_Rsq.js → unsafe-html.Dff7-rCx.js} +1 -1
  76. package/library/chunks/url.LjsR2sB5.js +15 -0
  77. package/library/chunks/user-agent.D9aPuOyL.js +4 -0
  78. package/library/chunks/watch.q1sEjPWL.js +501 -0
  79. package/library/components/alert.js +38 -35
  80. package/library/components/animated-image.js +25 -23
  81. package/library/components/animation.js +7 -5
  82. package/library/components/array-line-clamp.d.ts +3 -0
  83. package/library/components/array-line-clamp.js +195 -0
  84. package/library/components/asset-link-format.js +223 -212
  85. package/library/components/atoms.js +164 -162
  86. package/library/components/avatar.js +28 -26
  87. package/library/components/badge.js +10 -8
  88. package/library/components/bicolor-picker.js +21 -19
  89. package/library/components/border-input-group.js +11 -9
  90. package/library/components/breadcrumb-item.js +14 -12
  91. package/library/components/breadcrumb.js +24 -22
  92. package/library/components/button-group.js +26 -24
  93. package/library/components/button.js +14 -13
  94. package/library/components/card.js +28 -19
  95. package/library/components/checkbox.js +29 -23
  96. package/library/components/color-picker.js +19 -17
  97. package/library/components/color-swatch-group.js +20 -17
  98. package/library/components/color-swatch.js +16 -13
  99. package/library/components/confirm-popover.js +11 -9
  100. package/library/components/copy-button.js +15 -13
  101. package/library/components/corner-position-input-group.js +13 -11
  102. package/library/components/cortex-element.d.ts +3 -0
  103. package/library/components/cortex-element.js +5 -0
  104. package/library/components/cropper.js +7 -5
  105. package/library/components/details.js +23 -20
  106. package/library/components/dialog.js +19 -16
  107. package/library/components/divider.js +13 -11
  108. package/library/components/dot-pagination.js +11 -9
  109. package/library/components/dot-status.js +10 -8
  110. package/library/components/drawer.js +63 -51
  111. package/library/components/dropdown.js +29 -26
  112. package/library/components/dynamic-select.js +12 -10
  113. package/library/components/element-clamp.js +28 -25
  114. package/library/components/file-on-demand.js +21 -20
  115. package/library/components/folder-select.js +12 -10
  116. package/library/components/format-bytes.js +11 -10
  117. package/library/components/format-date.js +11 -9
  118. package/library/components/format-number.js +16 -15
  119. package/library/components/format-time.js +118 -9
  120. package/library/components/grid-item.js +48 -46
  121. package/library/components/grid.js +31 -29
  122. package/library/components/header.js +10 -9
  123. package/library/components/hub-connection.js +6 -5
  124. package/library/components/icon-button.js +20 -18
  125. package/library/components/icon.js +17 -15
  126. package/library/components/iframe.js +10 -8
  127. package/library/components/image-comparer.js +27 -25
  128. package/library/components/image.js +14 -11
  129. package/library/components/include.js +26 -24
  130. package/library/components/input-group.js +15 -13
  131. package/library/components/input.js +23 -21
  132. package/library/components/line-clamp.js +12 -10
  133. package/library/components/list-editor.js +17 -15
  134. package/library/components/markdown.js +80 -78
  135. package/library/components/masonry.js +46 -44
  136. package/library/components/menu-item.js +151 -136
  137. package/library/components/menu-label.js +15 -13
  138. package/library/components/menu-section.js +18 -16
  139. package/library/components/menu.js +10 -8
  140. package/library/components/molecules.js +5 -5
  141. package/library/components/mutation-observer.js +12 -10
  142. package/library/components/option.js +10 -8
  143. package/library/components/organisms.js +2 -2
  144. package/library/components/padding-input-group.js +30 -28
  145. package/library/components/pagination.js +14 -12
  146. package/library/components/popup.js +3296 -9
  147. package/library/components/position-picker.js +12 -10
  148. package/library/components/progress-bar.js +13 -11
  149. package/library/components/progress-ring.js +15 -13
  150. package/library/components/qr-code.js +54 -52
  151. package/library/components/radio-button.js +19 -17
  152. package/library/components/radio-card.js +14 -12
  153. package/library/components/radio-group.js +20 -18
  154. package/library/components/radio.js +15 -13
  155. package/library/components/range.js +25 -23
  156. package/library/components/rating.js +17 -15
  157. package/library/components/relative-time.js +16 -14
  158. package/library/components/resize-observer.js +21 -19
  159. package/library/components/select.js +1442 -25
  160. package/library/components/shadow-input-group.js +19 -17
  161. package/library/components/share-option-list.js +20 -18
  162. package/library/components/sidebar.js +14 -12
  163. package/library/components/size-input-group.js +35 -33
  164. package/library/components/skeleton.js +12 -10
  165. package/library/components/space.js +12 -10
  166. package/library/components/spinner.js +17 -15
  167. package/library/components/split-panel.js +15 -13
  168. package/library/components/step.js +18 -16
  169. package/library/components/stepper-wizard.js +11 -9
  170. package/library/components/stepper.js +13 -11
  171. package/library/components/switch.js +21 -19
  172. package/library/components/tab-group.js +15 -13
  173. package/library/components/tab-panel.js +20 -18
  174. package/library/components/tab.js +18 -16
  175. package/library/components/table.js +69 -67
  176. package/library/components/tag.js +11 -9
  177. package/library/components/textarea.js +20 -18
  178. package/library/components/timecode.js +98 -8
  179. package/library/components/tooltip.js +24 -21
  180. package/library/components/tree-item.js +14 -11
  181. package/library/components/tree.js +12 -10
  182. package/library/components/typeface.js +13 -11
  183. package/library/components/types.js +15487 -15444
  184. package/library/components/typography.js +6 -4
  185. package/library/components/video.js +13 -11
  186. package/library/components/visually-hidden.js +15 -13
  187. package/library/events.d.ts +1 -0
  188. package/library/events.js +1 -0
  189. package/library/package.json +11 -2
  190. package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.d.ts +45 -0
  191. package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.styles.d.ts +2 -0
  192. package/library/packages/atoms/src/components/checkbox/checkbox.d.ts +2 -0
  193. package/library/packages/atoms/src/components/drawer/drawer.d.ts +7 -1
  194. package/library/packages/atoms/src/components/include/include.d.ts +1 -0
  195. package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +2 -0
  196. package/library/packages/atoms/src/components/tree/tree.d.ts +0 -4
  197. package/library/packages/atoms/src/index.d.ts +1 -0
  198. package/library/packages/events/src/cx-file-on-demand-load-more.d.ts +8 -0
  199. package/library/packages/events/src/cx-file-on-demand-pin.d.ts +8 -0
  200. package/library/packages/events/src/cx-file-on-demand-unpin.d.ts +8 -0
  201. package/library/packages/events/src/cx-folder-select-search-term-change.d.ts +8 -0
  202. package/library/packages/events/src/cx-share-option-list-item-selected.d.ts +8 -0
  203. package/library/packages/events/src/events.d.ts +6 -2
  204. package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +2 -0
  205. package/library/packages/molecules/src/cropper/cropper.d.ts +1 -0
  206. package/library/packages/molecules/src/cropper/react/Cropper.d.ts +1 -0
  207. package/library/packages/molecules/src/download-format-picker/download-format-picker.d.ts +1 -0
  208. package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +8 -0
  209. package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +1 -0
  210. package/library/packages/molecules/src/folder-select/folder-select.d.ts +6 -1
  211. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +3 -7
  212. package/library/packages/organisms/src/content-builder/styleController.d.ts +8 -8
  213. package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.d.ts +80 -0
  214. package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.styles.d.ts +2 -0
  215. package/library/packages/organisms/src/file-on-demand/components/file-on-demand-pinned-status.ts/file-on-demand-pinned-status.d.ts +44 -0
  216. package/library/packages/organisms/src/file-on-demand/file-on-demand.constants.d.ts +1 -0
  217. package/library/packages/organisms/src/file-on-demand/file-on-demand.d.ts +11 -18
  218. package/library/packages/organisms/src/file-on-demand/file-on-demand.utils.d.ts +6 -0
  219. package/library/packages/services/src/api/folder/folder.d.ts +4 -8
  220. package/library/packages/services/src/api/folder/folder.types.d.ts +2 -1
  221. package/library/packages/types/src/file-on-demand.d.ts +4 -0
  222. package/library/packages/types/src/folder-select.d.ts +9 -2
  223. package/library/packages/utils/src/custom-element/i18n.d.ts +40 -2
  224. package/library/packages/utils/src/drag-scroll/drag-scroll.d.ts +22 -0
  225. package/library/packages/utils/src/drag-scroll/index.d.ts +1 -0
  226. package/library/packages/utils/src/font/font.d.ts +26 -0
  227. package/library/packages/utils/src/font/index.d.ts +1 -0
  228. package/library/packages/utils/src/history-manager/history-manager.d.ts +13 -0
  229. package/library/packages/utils/src/history-manager/index.d.ts +1 -0
  230. package/library/packages/utils/src/index.d.ts +45 -0
  231. package/library/packages/utils/src/template/index.d.ts +1 -0
  232. package/library/packages/utils/src/template/template.d.ts +3 -0
  233. package/library/react-web-component.d.ts +418 -360
  234. package/library/utils.d.ts +1 -0
  235. package/library/utils.js +180 -0
  236. package/package.json +11 -2
  237. package/library/chunks/animation-registry.DavRkTTr.js +0 -69
  238. package/library/chunks/asset.Ba-CxnNM.js +0 -309
  239. package/library/chunks/color-swatch.DUe3iLLo.js +0 -558
  240. package/library/chunks/dom.C0OFx7ND.js +0 -78
  241. package/library/chunks/format-time.BW6-ZWCX.js +0 -226
  242. package/library/chunks/isObjectLike.z36Fu426.js +0 -34
  243. package/library/chunks/popup._w5T7x8f.js +0 -3307
  244. package/library/chunks/select.DfO4de04.js +0 -1441
  245. package/library/chunks/string.BCk3SmdZ.js +0 -144
  246. package/library/chunks/timecode.D7XTiQ_3.js +0 -105
  247. package/library/chunks/watch.BCJD77bD.js +0 -547
  248. package/library/packages/events/src/cx-load-more.d.ts +0 -8
@@ -1,16 +1,19 @@
1
- import { C as Le, n as c, x as T, i as se, E as Re, c as He } from "./custom-element.vnXBMQxc.js";
2
- import { r as H } from "./state.Cw55xXlb.js";
1
+ import { x as T, i as se, E as Le } from "./lit-element.jLBm65_O.js";
2
+ import { C as Re, n as m } from "./lib-cortex-element.CVMmyPMC.js";
3
+ import { r as H } from "./state.CSDxrqLd.js";
3
4
  import { e as X } from "./query.BBf1UFkC.js";
4
- import { E as $e, b as de, a as We } from "./index.Cpamj0jB.js";
5
- import { c as Ae } from "./component.styles.CI-v8BZa.js";
6
- import { C as Oe, d as Me } from "./popup._w5T7x8f.js";
7
- import { L as De } from "./i18n.BP2FRO1v.js";
8
- import { w as q } from "./watch.BCJD77bD.js";
9
- import { e as j } from "./class-map.CoZTSvbM.js";
10
- import { o as je } from "./if-defined.MfEgpxEN.js";
11
- import { o as Te } from "./style-map.CZovMmo_.js";
5
+ import { E as He, b as de, a as $e } from "./index.Cpamj0jB.js";
6
+ import { c as We } from "./component.styles.DMSLciL5.js";
7
+ import { c as Ae } from "./custom-element.L4WJXn1j.js";
8
+ import { d as Oe } from "./debounce.DaHuiSGU.js";
9
+ import { L as Me } from "./i18n.DrzK7TPf.js";
10
+ import { w as q } from "./watch.q1sEjPWL.js";
11
+ import { e as j } from "./class-map.BiVq-cVR.js";
12
+ import { o as De } from "./if-defined.BRoBj_Rp.js";
13
+ import { o as je } from "./style-map.llVFPd__.js";
12
14
  import { n as V } from "./when.Dr1es41R.js";
13
- import Be from "../components/icon.js";
15
+ import Te from "../components/icon.js";
16
+ import Be from "../components/popup.js";
14
17
  import Ze from "../components/resize-observer.js";
15
18
  import Ie from "../components/skeleton.js";
16
19
  import Ne from "../components/space.js";
@@ -19,9 +22,9 @@ var Pe = /* @__PURE__ */ ((e) => (e.Bottom = "bottom", e.BottomCenter = "bottom-
19
22
  (p = e[g]) && (r = p(t, o, r) || r);
20
23
  return r && Ve(t, o, r), r;
21
24
  };
22
- class S extends Le {
25
+ class S extends Re {
23
26
  constructor() {
24
- super(...arguments), this.hasEvent = !1, this.easing = $e.Linear, this.highlightBorder = !1, this.highlightColorOverlay = !1, this.highlightDropShadow = !1, this.highlightBackground = !1, this.highlightOpacity = !1, this.effect = Y.None, this.textRevealStyle = ue.Slide, this.zoomStyle = ge.WithinBorders, this.hasSlotContent = !1, this.isCustomSlot = !1, this.isHovering = !1;
27
+ super(...arguments), this.hasEvent = !1, this.easing = He.Linear, this.highlightBorder = !1, this.highlightColorOverlay = !1, this.highlightDropShadow = !1, this.highlightBackground = !1, this.highlightOpacity = !1, this.effect = Y.None, this.textRevealStyle = ue.Slide, this.zoomStyle = ge.WithinBorders, this.hasSlotContent = !1, this.isCustomSlot = !1, this.isHovering = !1;
25
28
  }
26
29
  get easeCSSVariable() {
27
30
  return de[this.easing] || de.linear;
@@ -55,46 +58,46 @@ E([
55
58
  X("slot")
56
59
  ], S.prototype, "slotEl");
57
60
  E([
58
- c({ attribute: "has-event", reflect: !0, type: Boolean })
61
+ m({ attribute: "has-event", reflect: !0, type: Boolean })
59
62
  ], S.prototype, "hasEvent");
60
63
  E([
61
- c({ reflect: !0, type: String })
64
+ m({ reflect: !0, type: String })
62
65
  ], S.prototype, "easing");
63
66
  E([
64
- c({ attribute: "highlight-border", reflect: !0, type: Boolean })
67
+ m({ attribute: "highlight-border", reflect: !0, type: Boolean })
65
68
  ], S.prototype, "highlightBorder");
66
69
  E([
67
- c({
70
+ m({
68
71
  attribute: "highlight-color-overlay",
69
72
  reflect: !0,
70
73
  type: Boolean
71
74
  })
72
75
  ], S.prototype, "highlightColorOverlay");
73
76
  E([
74
- c({
77
+ m({
75
78
  attribute: "highlight-drop-shadow",
76
79
  reflect: !0,
77
80
  type: Boolean
78
81
  })
79
82
  ], S.prototype, "highlightDropShadow");
80
83
  E([
81
- c({ attribute: "highlight-background", reflect: !0, type: Boolean })
84
+ m({ attribute: "highlight-background", reflect: !0, type: Boolean })
82
85
  ], S.prototype, "highlightBackground");
83
86
  E([
84
- c({ attribute: "highlight-opacity", reflect: !0, type: Boolean })
87
+ m({ attribute: "highlight-opacity", reflect: !0, type: Boolean })
85
88
  ], S.prototype, "highlightOpacity");
86
89
  E([
87
- c({ attribute: "effect", reflect: !0, type: String })
90
+ m({ attribute: "effect", reflect: !0, type: String })
88
91
  ], S.prototype, "effect");
89
92
  E([
90
- c({
93
+ m({
91
94
  attribute: "text-reveal-style",
92
95
  reflect: !0,
93
96
  type: String
94
97
  })
95
98
  ], S.prototype, "textRevealStyle");
96
99
  E([
97
- c({
100
+ m({
98
101
  attribute: "zoom-style",
99
102
  reflect: !0,
100
103
  type: String
@@ -250,19 +253,19 @@ O([
250
253
  X('[part="base"]')
251
254
  ], A.prototype, "containingElement");
252
255
  O([
253
- c({ reflect: !0, type: String })
256
+ m({ reflect: !0, type: String })
254
257
  ], A.prototype, "width");
255
258
  O([
256
- c({ reflect: !0, type: String })
259
+ m({ reflect: !0, type: String })
257
260
  ], A.prototype, "height");
258
261
  O([
259
- c({ type: Boolean })
262
+ m({ type: Boolean })
260
263
  ], A.prototype, "resizable");
261
264
  O([
262
- c({ attribute: "height-mode", reflect: !0, type: String })
265
+ m({ attribute: "height-mode", reflect: !0, type: String })
263
266
  ], A.prototype, "heightMode");
264
267
  O([
265
- c({ attribute: "no-limit", reflect: !0, type: Boolean })
268
+ m({ attribute: "no-limit", reflect: !0, type: Boolean })
266
269
  ], A.prototype, "noLimit");
267
270
  O([
268
271
  H()
@@ -321,10 +324,10 @@ var B = Object.assign || function(e) {
321
324
  return NodeList.prototype.isPrototypeOf(t);
322
325
  }, ee = function(t) {
323
326
  return t && t.nodeType === 1;
324
- }, ce = function(t) {
327
+ }, me = function(t) {
325
328
  var o = t.currentSrc || t.src;
326
329
  return o.substr(-4).toLowerCase() === ".svg";
327
- }, me = function(t) {
330
+ }, ce = function(t) {
328
331
  try {
329
332
  return Array.isArray(t) ? t.filter(Q) : Ue(t) ? [].slice.call(t).filter(Q) : ee(t) ? [t].filter(Q) : typeof t == "string" ? [].slice.call(document.querySelectorAll(t)).filter(Q) : [];
330
333
  } catch {
@@ -386,7 +389,7 @@ See: https://github.com/francoischalifour/medium-zoom`);
386
389
  for (var a = arguments.length, n = Array(a), u = 0; u < a; u++)
387
390
  n[u] = arguments[u];
388
391
  var z = n.reduce(function(s, w) {
389
- return [].concat(s, me(w));
392
+ return [].concat(s, ce(w));
390
393
  }, []);
391
394
  return z.filter(function(s) {
392
395
  return L.indexOf(s) === -1;
@@ -403,7 +406,7 @@ See: https://github.com/francoischalifour/medium-zoom`);
403
406
  n[u] = arguments[u];
404
407
  i.zoomed && y();
405
408
  var z = n.length > 0 ? n.reduce(function(s, w) {
406
- return [].concat(s, me(w));
409
+ return [].concat(s, ce(w));
407
410
  }, []) : L;
408
411
  return z.forEach(function(s) {
409
412
  s.classList.remove("medium-zoom-image"), s.dispatchEvent(F("medium-zoom:detach", {
@@ -447,7 +450,7 @@ See: https://github.com/francoischalifour/medium-zoom`);
447
450
  });
448
451
  }
449
452
  w = w || s.width - d.margin * 2, W = W || s.height - d.margin * 2;
450
- var _ = i.zoomedHd || i.original, ye = ce(_) ? w : _.naturalWidth || w, be = ce(_) ? W : _.naturalHeight || W, G = _.getBoundingClientRect(), xe = G.top, we = G.left, oe = G.width, re = G.height, Se = Math.min(Math.max(oe, ye), w) / oe, Ee = Math.min(Math.max(re, be), W) / re, ae = Math.min(Se, Ee), Ce = (-we + (w - oe) / 2 + d.margin + s.left) / ae, ke = (-xe + (W - re) / 2 + d.margin + s.top) / ae, le = "scale(" + ae + ") translate3d(" + Ce + "px, " + ke + "px, 0)";
453
+ var _ = i.zoomedHd || i.original, ye = me(_) ? w : _.naturalWidth || w, be = me(_) ? W : _.naturalHeight || W, G = _.getBoundingClientRect(), xe = G.top, we = G.left, oe = G.width, re = G.height, Se = Math.min(Math.max(oe, ye), w) / oe, Ee = Math.min(Math.max(re, be), W) / re, ae = Math.min(Se, Ee), Ce = (-we + (w - oe) / 2 + d.margin + s.left) / ae, ke = (-xe + (W - re) / 2 + d.margin + s.top) / ae, le = "scale(" + ae + ") translate3d(" + Ce + "px, " + ke + "px, 0)";
451
454
  i.zoomed.style.transform = le, i.zoomedHd && (i.zoomedHd.style.transform = le);
452
455
  };
453
456
  return new h(function(z) {
@@ -930,14 +933,14 @@ const Ge = se`
930
933
  --font-size: var(--cx-font-size-4x-large);
931
934
  }
932
935
  `;
933
- var et = Object.defineProperty, tt = Object.getOwnPropertyDescriptor, m = (e, t, o, h) => {
936
+ var et = Object.defineProperty, tt = Object.getOwnPropertyDescriptor, c = (e, t, o, h) => {
934
937
  for (var r = h > 1 ? void 0 : h ? tt(t, o) : t, g = e.length - 1, p; g >= 0; g--)
935
938
  (p = e[g]) && (r = (h ? p(t, o, r) : p(r)) || r);
936
939
  return h && r && et(t, o, r), r;
937
940
  };
938
941
  let l = class extends A {
939
942
  constructor() {
940
- super(...arguments), this.localize = new De(this), this.isLoaded = !1, this.isError = !1, this.src = "", this.placeholder = "", this.alt = "", this.objectFit = We.Fill, this.skeleton = !1, this.fallback = !1, this.canZoom = !1, this.loading = !1, this.block = !1, this.htmlLoading = "lazy", this.clickHandlerType = U.Automatic, this.isZoomed = !1, this.imageRatio = 1, this.parsedAlt = "", this.parsedAltDarkMode = "", this.zoom = null, this.lastPatchedWidth = null;
943
+ super(...arguments), this.localize = new Me(this), this.isLoaded = !1, this.isError = !1, this.src = "", this.placeholder = "", this.alt = "", this.objectFit = $e.Fill, this.skeleton = !1, this.fallback = !1, this.canZoom = !1, this.loading = !1, this.block = !1, this.htmlLoading = "lazy", this.clickHandlerType = U.Automatic, this.isZoomed = !1, this.imageRatio = 1, this.parsedAlt = "", this.parsedAltDarkMode = "", this.zoom = null, this.lastPatchedWidth = null;
941
944
  }
942
945
  get currentAltValue() {
943
946
  return this.alt;
@@ -1093,7 +1096,7 @@ let l = class extends A {
1093
1096
  "container--loading": this.loading,
1094
1097
  "container--resizing": this.resizable && this.isResizeActive
1095
1098
  })}
1096
- style=${Te({
1099
+ style=${je({
1097
1100
  "--easing": this.easeCSSVariable
1098
1101
  })}
1099
1102
  data-empty-label=${this.localize.term("emptyImage")}
@@ -1103,7 +1106,7 @@ let l = class extends A {
1103
1106
  <cx-resize-observer @cx-resize=${this.handleResize}>
1104
1107
  <div
1105
1108
  part="highlighter"
1106
- tabindex=${je(this.highlighterTabindex)}
1109
+ tabindex=${De(this.highlighterTabindex)}
1107
1110
  role=${this.highlighterRole}
1108
1111
  aria-label=${t}
1109
1112
  aria-roledescription=${this.localize.term("image")}
@@ -1115,7 +1118,7 @@ let l = class extends A {
1115
1118
  >
1116
1119
  ${V(
1117
1120
  o,
1118
- () => Re,
1121
+ () => Le,
1119
1122
  () => V(
1120
1123
  this.effect === Y.Jump || this.effect === Y.Zoom,
1121
1124
  () => T`
@@ -1182,90 +1185,90 @@ let l = class extends A {
1182
1185
  </div>`;
1183
1186
  }
1184
1187
  };
1185
- l.styles = [Ae, _e, Qe];
1188
+ l.styles = [We, _e, Qe];
1186
1189
  l.dependencies = {
1187
- "cx-icon": Be,
1188
- "cx-popup": Oe,
1190
+ "cx-icon": Te,
1191
+ "cx-popup": Be,
1189
1192
  "cx-resize-observer": Ze,
1190
1193
  "cx-skeleton": Ie,
1191
1194
  "cx-space": Ne
1192
1195
  };
1193
- m([
1196
+ c([
1194
1197
  X(".image")
1195
1198
  ], l.prototype, "imageElement", 2);
1196
- m([
1199
+ c([
1197
1200
  X(".zoom-image")
1198
1201
  ], l.prototype, "zoomImageElement", 2);
1199
- m([
1202
+ c([
1200
1203
  X(".highlighter")
1201
1204
  ], l.prototype, "highlighterElement", 2);
1202
- m([
1205
+ c([
1203
1206
  H()
1204
1207
  ], l.prototype, "isLoaded", 2);
1205
- m([
1208
+ c([
1206
1209
  H()
1207
1210
  ], l.prototype, "isError", 2);
1208
- m([
1209
- c({ reflect: !0, type: String })
1211
+ c([
1212
+ m({ reflect: !0, type: String })
1210
1213
  ], l.prototype, "src", 2);
1211
- m([
1212
- c({ reflect: !0, type: String })
1214
+ c([
1215
+ m({ reflect: !0, type: String })
1213
1216
  ], l.prototype, "placeholder", 2);
1214
- m([
1215
- c({ reflect: !0, type: String })
1217
+ c([
1218
+ m({ reflect: !0, type: String })
1216
1219
  ], l.prototype, "alt", 2);
1217
- m([
1218
- c({ attribute: "object-fit", reflect: !0 })
1220
+ c([
1221
+ m({ attribute: "object-fit", reflect: !0 })
1219
1222
  ], l.prototype, "objectFit", 2);
1220
- m([
1221
- c({ reflect: !0, type: Boolean })
1223
+ c([
1224
+ m({ reflect: !0, type: Boolean })
1222
1225
  ], l.prototype, "skeleton", 2);
1223
- m([
1224
- c({ reflect: !0, type: Boolean })
1226
+ c([
1227
+ m({ reflect: !0, type: Boolean })
1225
1228
  ], l.prototype, "fallback", 2);
1226
- m([
1227
- c({ attribute: "can-zoom", reflect: !0, type: Boolean })
1229
+ c([
1230
+ m({ attribute: "can-zoom", reflect: !0, type: Boolean })
1228
1231
  ], l.prototype, "canZoom", 2);
1229
- m([
1230
- c({ reflect: !0, type: Boolean })
1232
+ c([
1233
+ m({ reflect: !0, type: Boolean })
1231
1234
  ], l.prototype, "loading", 2);
1232
- m([
1233
- c({ reflect: !0, type: Boolean })
1235
+ c([
1236
+ m({ reflect: !0, type: Boolean })
1234
1237
  ], l.prototype, "block", 2);
1235
- m([
1236
- c({ attribute: "html-loading", reflect: !0, type: String })
1238
+ c([
1239
+ m({ attribute: "html-loading", reflect: !0, type: String })
1237
1240
  ], l.prototype, "htmlLoading", 2);
1238
- m([
1239
- c({ attribute: "click-handler-type", reflect: !0, type: String })
1241
+ c([
1242
+ m({ attribute: "click-handler-type", reflect: !0, type: String })
1240
1243
  ], l.prototype, "clickHandlerType", 2);
1241
- m([
1244
+ c([
1242
1245
  H()
1243
1246
  ], l.prototype, "isZoomed", 2);
1244
- m([
1247
+ c([
1245
1248
  H()
1246
1249
  ], l.prototype, "imageRatio", 2);
1247
- m([
1250
+ c([
1248
1251
  H()
1249
1252
  ], l.prototype, "parsedAlt", 2);
1250
- m([
1253
+ c([
1251
1254
  H()
1252
1255
  ], l.prototype, "parsedAltDarkMode", 2);
1253
- m([
1256
+ c([
1254
1257
  q("isLoaded"),
1255
1258
  q("canZoom", { waitUntilFirstUpdate: !0 })
1256
1259
  ], l.prototype, "handleCanZoomChange", 1);
1257
- m([
1260
+ c([
1258
1261
  q("objectFit", { waitUntilFirstUpdate: !0 })
1259
1262
  ], l.prototype, "handleObjectFitChange", 1);
1260
- m([
1263
+ c([
1261
1264
  q("src"),
1262
1265
  q("srcDarkMode")
1263
1266
  ], l.prototype, "handleSrcChange", 1);
1264
- m([
1265
- Me(100)
1267
+ c([
1268
+ Oe(100)
1266
1269
  ], l.prototype, "updateLastPatchedWidth", 1);
1267
- l = m([
1268
- He("cx-image")
1270
+ l = c([
1271
+ Ae("cx-image")
1269
1272
  ], l);
1270
1273
  export {
1271
1274
  l as C,
@@ -0,0 +1,82 @@
1
+ import { r as u } from "./number.CjNxU7Xs.js";
2
+ const w = (t, e, a, i) => {
3
+ const r = t / e, o = a / i;
4
+ let c = t, n = e;
5
+ return r > o ? c = Math.round(n * o) : n = Math.round(c / o), {
6
+ height: n,
7
+ width: c
8
+ };
9
+ };
10
+ function m(t, e, a, i, r) {
11
+ const o = new Image();
12
+ return o.src = t, o.crossOrigin = "anonymous", new Promise((c) => {
13
+ o.onload = () => {
14
+ const n = document.createElement("canvas");
15
+ if (e > i || a > r) {
16
+ const d = i / e, l = r / a, s = Math.max(d, l);
17
+ n.width = e * s, n.height = a * s;
18
+ } else
19
+ n.width = e, n.height = a;
20
+ const h = n.getContext("2d");
21
+ h ? (h.drawImage(o, 0, 0, n.width, n.height), c({
22
+ height: n.height,
23
+ url: n.toDataURL("image/jpeg"),
24
+ width: n.width
25
+ })) : c({
26
+ height: a,
27
+ url: t,
28
+ width: e
29
+ });
30
+ }, o.onerror = () => {
31
+ c({
32
+ height: a,
33
+ url: t,
34
+ width: e
35
+ });
36
+ };
37
+ });
38
+ }
39
+ function f(t, e) {
40
+ const a = new Image();
41
+ return a.src = t.url, a.crossOrigin = "anonymous", new Promise((i) => {
42
+ a.onload = () => {
43
+ const r = document.createElement("canvas");
44
+ r.width = e.width, r.height = e.height;
45
+ const o = r.getContext("2d");
46
+ o ? (o.drawImage(a, -e.x, -e.y, t.width, t.height), i(r.toDataURL("image/jpeg"))) : i(t.url);
47
+ }, a.onerror = () => {
48
+ i(t.url);
49
+ };
50
+ });
51
+ }
52
+ function I(t, e) {
53
+ const a = new Image();
54
+ return a.src = t.url, a.crossOrigin = "anonymous", new Promise((i) => {
55
+ a.onload = () => {
56
+ const { height: r, width: o } = u(t.width, t.height, e), c = document.createElement("canvas");
57
+ c.width = o, c.height = r;
58
+ const n = c.getContext("2d");
59
+ n ? (n.fillStyle = "white", n.fillRect(0, 0, o, r), n.translate(o / 2, r / 2), n.rotate(e * Math.PI / 180), n.drawImage(
60
+ a,
61
+ -t.width / 2,
62
+ -t.height / 2,
63
+ t.width,
64
+ t.height
65
+ ), n.rotate(-(e * Math.PI) / 180), n.translate(-o / 2, -r / 2), i(c.toDataURL("image/jpeg"))) : i(t.url);
66
+ }, a.onerror = () => {
67
+ i(t.url);
68
+ };
69
+ });
70
+ }
71
+ function R(t) {
72
+ const e = t.getBoundingClientRect(), a = e.width / e.height, i = t.naturalWidth / t.naturalHeight;
73
+ let r, o;
74
+ return i > a ? (r = e.width, o = e.width / i) : (o = e.height, r = e.height * i), { height: o, width: r };
75
+ }
76
+ export {
77
+ I as a,
78
+ f as b,
79
+ w as c,
80
+ R as g,
81
+ m as r
82
+ };