@orangelogic/design-system 2.141.0 → 2.143.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 (227) hide show
  1. package/library/chunks/{AxisLabelRadial.C4AH2ZWx.js → AxisLabelRadial.D-dnNhId.js} +1 -1
  2. package/library/chunks/{BaseColumnSeries.BV8sY1Da.js → BaseColumnSeries.DuJGGHnE.js} +1 -1
  3. package/library/chunks/{CandlestickSeries.C8BE8OT-.js → CandlestickSeries.Dvk4WnlG.js} +2 -2
  4. package/library/chunks/{Circle.BaJWdg6Z.js → Circle.CSPkPGZR.js} +1 -1
  5. package/library/chunks/{ColumnSeries.BGUw3nLY.js → ColumnSeries.BgqnNaWx.js} +2 -2
  6. package/library/chunks/{EditableAxisLabel.CsgqEVmA.js → EditableAxisLabel.htXPpq9V.js} +2 -2
  7. package/library/chunks/{EditableLabel.gd9mjKfA.js → EditableLabel.BVdITrjV.js} +1 -1
  8. package/library/chunks/{Gradient.Sa3COx_2.js → Gradient.Bw8LaBZS.js} +1 -1
  9. package/library/chunks/{LinearGradient.BM0pPmvI.js → LinearGradient.DryVGwkQ.js} +2 -2
  10. package/library/chunks/{Picture.DVyGQOmS.js → Picture.GEGxHvQB.js} +1 -1
  11. package/library/chunks/{Polygon.Du2DRvxU.js → Polygon.B7Vu5sIv.js} +1 -1
  12. package/library/chunks/{ProgressPie.D3FRfVo5.js → ProgressPie.C2sMNGxC.js} +5 -5
  13. package/library/chunks/{RadialLabel.Dgipjivh.js → RadialLabel.DCE1UsLn.js} +1 -1
  14. package/library/chunks/{Scrollbar.BDbLJ_xZ.js → Scrollbar.DoQ3emzl.js} +1 -1
  15. package/library/chunks/{Slice.BIXpM75a.js → Slice.BtEmJlKG.js} +1 -1
  16. package/library/chunks/{Slider.BZNFS2HS.js → Slider.BkWEJjkG.js} +1 -1
  17. package/library/chunks/{SpriteResizer.awVrrc-n.js → SpriteResizer.CkJ6wMt2.js} +1 -1
  18. package/library/chunks/{Triangle.DW7bUiPK.js → Triangle.DRbqqwUv.js} +1 -1
  19. package/library/chunks/{ZoomTools.CSBkRpSo.js → ZoomTools.B2lVZ7om.js} +1 -1
  20. package/library/chunks/{_baseIteratee.DpzDid58.js → _baseIteratee.Dhw-0WrS.js} +12 -12
  21. package/library/chunks/{_baseUniq.HFKneygy.js → _baseUniq.DP9Qak6V.js} +1 -1
  22. package/library/chunks/_baseXor.DY_sP7af.js +116 -0
  23. package/library/chunks/{am-chart.sBfZlJdc.js → am-chart.DaqbO8CU.js} +252 -252
  24. package/library/chunks/{animation.hpY88RxG.js → animation.DYTPen16.js} +1 -1
  25. package/library/chunks/{asset-link-format.BDuHqEN5.js → asset-link-format.BVoE-GrD.js} +246 -222
  26. package/library/chunks/{button.C6-GrLyD.js → button.Bja8HrmJ.js} +4 -4
  27. package/library/chunks/button.styles.CATjjP1T.js +5 -0
  28. package/library/chunks/{capitalize.i-sHIcnm.js → capitalize.WZm6pIpy.js} +1 -1
  29. package/library/chunks/{checkbox.i5dgRvaf.js → checkbox.kdSMUgR1.js} +2 -2
  30. package/library/chunks/{color-swatch-group.BqJHjmG5.js → color-swatch-group.CwHdAKQv.js} +5444 -4076
  31. package/library/chunks/{color-swatch.DimFgBSf.js → color-swatch.DCePblYs.js} +34 -34
  32. package/library/chunks/{colorPicker.r8zsh6Oj.js → colorPicker.B1c_VK97.js} +5 -5
  33. package/library/chunks/{confirm-popover.CTdjw4Mi.js → confirm-popover.CQm_rVIt.js} +4 -4
  34. package/library/chunks/{content-builder.BGzxZUgi.js → content-builder.D-_Ou8sw.js} +14 -12
  35. package/library/chunks/dialog.0TzzxNXE.js +1820 -0
  36. package/library/chunks/{document-viewer.BqZzhJyR.js → document-viewer.Bb1M9uJ-.js} +9 -9
  37. package/library/chunks/{dot-pagination.CoG0XmAq.js → dot-pagination.BwSugdZk.js} +2 -2
  38. package/library/chunks/{endpoints.BlywT4Gl.js → endpoints.Bn_YviaU.js} +89 -88
  39. package/library/chunks/{exporting.B3VErmmW.js → exporting.C47Rlm_F.js} +2 -2
  40. package/library/chunks/{flow.gWPD-GN_.js → flow.DhXYaDTn.js} +5 -5
  41. package/library/chunks/{folder-select.CpK1RX9O.js → folder-select.5f4e8jqB.js} +7 -7
  42. package/library/chunks/{gantt.D_6T9w75.js → gantt.B-KoNU00.js} +8 -8
  43. package/library/chunks/{header.zCbb-t6m.js → header.BZKaF_-o.js} +35 -35
  44. package/library/chunks/{hierarchy.BeJLXp9N.js → hierarchy.DZcTzpNv.js} +5 -5
  45. package/library/chunks/{hub-connection.Dri0ZNfh.js → hub-connection.C9j9Ce_a.js} +1 -1
  46. package/library/chunks/{i18n.DeUAP8n2.js → i18n.C4wPyPTR.js} +10 -0
  47. package/library/chunks/{icon-button.LhIEmHNF.js → icon-button.Ce2tPGuf.js} +2 -2
  48. package/library/chunks/{icon.DnBh6-56.js → icon.-k4fR0bD.js} +1 -1
  49. package/library/chunks/{iframe.c0IPEUiJ.js → iframe.CnG8EcG1.js} +2 -2
  50. package/library/chunks/{image.u2nQNoZ8.js → image.C2acLx6g.js} +4 -4
  51. package/library/chunks/{index.CnBD7_1u.js → index.B7KpCL4Q.js} +17 -17
  52. package/library/chunks/{input.ClJ4MEsk.js → input.BAvin1Qu.js} +3 -3
  53. package/library/chunks/{json.BTCD_bjV.js → json.CYp1GBUl.js} +3 -3
  54. package/library/chunks/{map.HWubaOh9.js → map.DCp6R-yn.js} +2 -2
  55. package/library/chunks/{option.n6PDuSs1.js → option.DT-6HmoC.js} +4 -4
  56. package/library/chunks/{pagination.CNeaChqP.js → pagination.KvDdhXZL.js} +7 -7
  57. package/library/chunks/{percent.0CeOGNP1.js → percent.C253sJzT.js} +3 -3
  58. package/library/chunks/{radar.CDUzjkcg.js → radar.Bh033jVx.js} +4 -4
  59. package/library/chunks/{sliceGrouper.nPe6eWIh.js → sliceGrouper.BOB7t0KC.js} +1 -1
  60. package/library/chunks/{stock.CmWtnkxv.js → stock.rKM7Pn6U.js} +9 -9
  61. package/library/chunks/{tab-group.COQGzlw4.js → tab-group.DyInpwMz.js} +4 -4
  62. package/library/chunks/{timeline.DDCHQ84a.js → timeline.8Dbc5Mzg.js} +5 -5
  63. package/library/chunks/{toString.CAY8lys2.js → toString.BDhOhZPZ.js} +1 -1
  64. package/library/chunks/{toast.Bz-j7zP2.js → toast.BYVF5TVe.js} +4 -4
  65. package/library/chunks/{tree.DeIv5gWv.js → tree.BpSudcAI.js} +4 -4
  66. package/library/chunks/typography.IqHbnd3C.js +52 -0
  67. package/library/chunks/{venn.BZgn9wxo.js → venn.9MIxwncF.js} +1 -1
  68. package/library/chunks/{watch.CThbualB.js → watch.CkGTlwIo.js} +10 -10
  69. package/library/chunks/{wc.BUEDSaz-.js → wc.s24RZyr1.js} +1 -1
  70. package/library/chunks/{xy.Wbux-yPv.js → xy.QPSrxL0Q.js} +10 -10
  71. package/library/components/alert.js +3 -3
  72. package/library/components/am-chart.js +2 -2
  73. package/library/components/animated-image.js +2 -2
  74. package/library/components/animation.js +2 -2
  75. package/library/components/array-line-clamp.js +1 -1
  76. package/library/components/asset-link-format.js +5 -5
  77. package/library/components/atoms.js +21 -21
  78. package/library/components/audio.js +4 -4
  79. package/library/components/avatar.js +2 -2
  80. package/library/components/border-input-group.js +2 -2
  81. package/library/components/breadcrumb-item.js +1 -1
  82. package/library/components/breadcrumb.js +2 -2
  83. package/library/components/button.js +5 -5
  84. package/library/components/checkbox.js +3 -3
  85. package/library/components/color-picker.js +79 -72
  86. package/library/components/color-swatch-group.js +7 -7
  87. package/library/components/color-swatch.js +4 -4
  88. package/library/components/confirm-popover.js +5 -5
  89. package/library/components/copy-button.js +3 -3
  90. package/library/components/corner-position-input-group.js +3 -3
  91. package/library/components/date-calendar.js +1 -1
  92. package/library/components/details.js +32 -32
  93. package/library/components/dialog.js +5 -6
  94. package/library/components/diff.js +1 -1
  95. package/library/components/divider.js +1 -1
  96. package/library/components/document-viewer.js +5 -5
  97. package/library/components/dot-pagination.js +3 -3
  98. package/library/components/drawer.js +4 -4
  99. package/library/components/dropdown.js +3 -3
  100. package/library/components/dynamic-select.js +7 -7
  101. package/library/components/e-chart.js +2 -2
  102. package/library/components/element-clamp.js +3 -3
  103. package/library/components/file-on-demand.js +1872 -36
  104. package/library/components/folder-select.js +7 -7
  105. package/library/components/format-bytes.js +1 -1
  106. package/library/components/format-date.js +1 -1
  107. package/library/components/format-number.js +1 -1
  108. package/library/components/format-time.js +2 -2
  109. package/library/components/grid-item.js +1 -1
  110. package/library/components/header.js +3 -3
  111. package/library/components/hub-connection.js +2 -2
  112. package/library/components/icon-button.js +3 -3
  113. package/library/components/icon.js +2 -2
  114. package/library/components/iframe.js +3 -3
  115. package/library/components/image-comparer.js +3 -3
  116. package/library/components/image.js +4 -4
  117. package/library/components/include.js +1 -1
  118. package/library/components/input.js +4 -4
  119. package/library/components/line-clamp.js +1 -1
  120. package/library/components/markdown.js +1 -1
  121. package/library/components/masonry.js +3 -3
  122. package/library/components/menu-item.js +3 -3
  123. package/library/components/menu.js +1 -1
  124. package/library/components/molecules.js +3 -3
  125. package/library/components/mutation-observer.js +1 -1
  126. package/library/components/option.js +4 -4
  127. package/library/components/organisms.js +6 -6
  128. package/library/components/padding-input-group.js +1 -1
  129. package/library/components/pagination.js +8 -8
  130. package/library/components/popup.js +1 -1
  131. package/library/components/position-picker.js +1 -1
  132. package/library/components/progress-bar.js +1 -1
  133. package/library/components/progress-ring.js +1 -1
  134. package/library/components/qr-code.js +1 -1
  135. package/library/components/radio-button.js +2 -2
  136. package/library/components/radio-card.js +1 -1
  137. package/library/components/radio-group.js +1 -1
  138. package/library/components/radio.js +2 -2
  139. package/library/components/range.js +2 -2
  140. package/library/components/rating.js +3 -3
  141. package/library/components/relative-time.js +1 -1
  142. package/library/components/resize-observer.js +1 -1
  143. package/library/components/select.js +5 -5
  144. package/library/components/shadow-input-group.js +1 -1
  145. package/library/components/share-option-list.js +4 -4
  146. package/library/components/sidebar.js +3 -3
  147. package/library/components/size-input-group.js +4 -4
  148. package/library/components/spinner.js +1 -1
  149. package/library/components/split-panel.js +2 -2
  150. package/library/components/step.js +1 -1
  151. package/library/components/stepper-wizard.js +1 -1
  152. package/library/components/stepper.js +1 -1
  153. package/library/components/switch.js +1 -1
  154. package/library/components/tab-group.js +5 -5
  155. package/library/components/tab-panel.js +1 -1
  156. package/library/components/tab.js +6 -6
  157. package/library/components/tag.js +2 -2
  158. package/library/components/textarea.js +1 -1
  159. package/library/components/timecode.js +2 -2
  160. package/library/components/tooltip.js +2 -2
  161. package/library/components/tree-item.js +5 -5
  162. package/library/components/tree.js +3 -3
  163. package/library/components/typeface.js +4 -4
  164. package/library/components/types.js +27465 -27792
  165. package/library/components/typography.js +1 -1
  166. package/library/components/video.js +3 -3
  167. package/library/package.json +1 -1
  168. package/library/packages/atoms/src/components/color-picker/color-picker.d.ts +1 -0
  169. package/library/packages/atoms/src/components/header/header.d.ts +1 -1
  170. package/library/packages/events/src/cx-board-change.d.ts +12 -0
  171. package/library/packages/events/src/cx-board-selected-change.d.ts +10 -0
  172. package/library/packages/events/src/cx-font-picker-change.d.ts +9 -0
  173. package/library/packages/events/src/cx-multi-select-change.d.ts +11 -0
  174. package/library/packages/events/src/cx-multi-select-configure.d.ts +8 -0
  175. package/library/packages/events/src/cx-table-column-editor-apply.d.ts +8 -0
  176. package/library/packages/events/src/cx-table-column-editor-cancel.d.ts +6 -0
  177. package/library/packages/events/src/cx-table-column-visibility-change.d.ts +9 -0
  178. package/library/packages/events/src/cx-table-columns-change.d.ts +8 -0
  179. package/library/packages/events/src/cx-table-edit-columns.d.ts +8 -0
  180. package/library/packages/events/src/cx-table-header-menu-close.d.ts +6 -0
  181. package/library/packages/events/src/cx-table-header-menu-select.d.ts +11 -0
  182. package/library/packages/events/src/events.d.ts +12 -0
  183. package/library/packages/hybrid/table-core/src/table/components/index.d.ts +2 -0
  184. package/library/packages/hybrid/table-core/src/table/components/table-column-editor/table-column-editor.d.ts +45 -0
  185. package/library/packages/hybrid/table-core/src/table/components/table-column-editor/table-column-editor.styles.d.ts +2 -0
  186. package/library/packages/hybrid/table-core/src/table/components/table-header-menu/table-header-menu.d.ts +55 -0
  187. package/library/packages/hybrid/table-core/src/table/components/table-header-menu/table-header-menu.styles.d.ts +2 -0
  188. package/library/packages/hybrid/table-core/src/table/table.d.ts +41 -1
  189. package/library/packages/molecules/src/asset-format-picker/asset-format-picker.d.ts +1 -0
  190. package/library/packages/molecules/src/font-picker/font-picker.d.ts +74 -0
  191. package/library/packages/molecules/src/font-picker/font-picker.styles.d.ts +2 -0
  192. package/library/packages/molecules/src/index.d.ts +1 -0
  193. package/library/packages/molecules/src/multi-select/components/board/board.d.ts +39 -14
  194. package/library/packages/molecules/src/multi-select/components/board-list-item/board-list-item.d.ts +1 -10
  195. package/library/packages/molecules/src/multi-select/multi-select.d.ts +7 -15
  196. package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +2 -1
  197. package/library/packages/organisms/src/content-builder/components/config-form/config-form-controller.d.ts +2 -0
  198. package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +2 -1
  199. package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +5 -0
  200. package/library/packages/organisms/src/content-builder/configs/accordion.d.ts +2 -2
  201. package/library/packages/organisms/src/content-builder/configs/button.d.ts +2 -2
  202. package/library/packages/organisms/src/content-builder/configs/color-swatches.d.ts +3 -2
  203. package/library/packages/organisms/src/content-builder/configs/font-kit.d.ts +2 -2
  204. package/library/packages/organisms/src/content-builder/configs/header.d.ts +4 -4
  205. package/library/packages/organisms/src/content-builder/configs/image.d.ts +1 -0
  206. package/library/packages/organisms/src/content-builder/configs/text.d.ts +2 -2
  207. package/library/packages/organisms/src/content-builder/configs-controller.d.ts +5 -2
  208. package/library/packages/organisms/src/content-builder/content-builder.d.ts +6 -0
  209. package/library/packages/organisms/src/content-builder/content-builder.utils.d.ts +26 -0
  210. package/library/packages/organisms/src/content-builder/styleController.d.ts +21 -2
  211. package/library/packages/services/src/api/asset/asset.d.ts +2 -1
  212. package/library/packages/services/src/api/endpoints.d.ts +4 -0
  213. package/library/packages/services/src/api/teamspace/teamspace.d.ts +2 -0
  214. package/library/packages/types/src/content-builder.d.ts +14 -1
  215. package/library/packages/types/src/font-picker.d.ts +21 -0
  216. package/library/packages/types/src/table-column-editor.d.ts +12 -0
  217. package/library/packages/types/src/table.d.ts +5 -0
  218. package/library/packages/utils/src/custom-element/i18n.d.ts +10 -0
  219. package/library/packages/utils/src/font/font.d.ts +16 -0
  220. package/library/react-web-component.d.ts +71 -5
  221. package/library/utils.js +258 -242
  222. package/package.json +1 -1
  223. package/library/chunks/button.styles.Cz4EELcL.js +0 -5
  224. package/library/chunks/dialog.C79Kd2S4.js +0 -379
  225. package/library/chunks/file-on-demand.Bxq3-Dk1.js +0 -1985
  226. package/library/chunks/overlayscrollbars.BMav4RQ4.js +0 -1445
  227. package/library/chunks/typography.DJC_UXgs.js +0 -52
@@ -1,47 +1,47 @@
1
1
  import "../components/cropper.js";
2
- import { C as j } from "./button.C6-GrLyD.js";
2
+ import { C as V } from "./button.Bja8HrmJ.js";
3
3
  import D from "../components/space.js";
4
- import { C as T } from "./typography.DJC_UXgs.js";
4
+ import { C as T } from "./typography.IqHbnd3C.js";
5
5
  import { n as h, C as N } from "./lib-cortex-element.CVMmyPMC.js";
6
- import { h as P, a as Et, C as Ht, S as Nt, b as Lt, c as Ot } from "./endpoints.BlywT4Gl.js";
7
- import { M as bt, U as o, T as c } from "./asset-link-format.QzzboHHE.js";
6
+ import { h as P, a as Et, C as It, S as Nt, b as Ot, c as Lt, d as Ut } from "./endpoints.Bn_YviaU.js";
7
+ import { M as At, U as o, T as c } from "./asset-link-format.QzzboHHE.js";
8
8
  import "./browser.BHOCIF_A.js";
9
- import { i as L, x as b, E as Ut } from "./lit-element.jLBm65_O.js";
9
+ import { i as O, x as A, E as qt } from "./lit-element.jLBm65_O.js";
10
10
  import "./form.BSqXLytJ.js";
11
- import { L as O } from "./i18n.DeUAP8n2.js";
12
- import { a as qt } from "./string.BmBJ_BLT.js";
11
+ import { L } from "./i18n.C4wPyPTR.js";
12
+ import { a as jt } from "./string.BmBJ_BLT.js";
13
13
  import "./date-picker.DTUICGb9.js";
14
- import "./content-builder.BGzxZUgi.js";
14
+ import "./content-builder.D-_Ou8sw.js";
15
15
  import "./unsafe-html.Dff7-rCx.js";
16
- import { b as Bt } from "./_baseUniq.HFKneygy.js";
16
+ import { b as Bt } from "./_baseUniq.DP9Qak6V.js";
17
17
  import { c as U } from "./component.styles.CRO4Odto.js";
18
18
  import { c as q } from "./custom-element.L4WJXn1j.js";
19
- import { w as R } from "./watch.CThbualB.js";
20
- import { s as wt, c as et } from "./number.B4PQLJIg.js";
19
+ import { w as R } from "./watch.CkGTlwIo.js";
20
+ import { s as zt, c as et } from "./number.B4PQLJIg.js";
21
21
  import { b as it } from "./transformation.c-RS37zA.js";
22
22
  import { r as v } from "./state.CSDxrqLd.js";
23
23
  import { n as E } from "./when.Dr1es41R.js";
24
24
  import Z from "../components/details.js";
25
25
  import Vt from "../components/divider.js";
26
- import { C as Y } from "./icon.DnBh6-56.js";
27
- import { C as mt } from "./icon-button.LhIEmHNF.js";
28
- import { C as ft } from "./input.ClJ4MEsk.js";
29
- import { C as nt } from "./option.n6PDuSs1.js";
26
+ import { C as Y } from "./icon.-k4fR0bD.js";
27
+ import { C as mt } from "./icon-button.Ce2tPGuf.js";
28
+ import { C as ft } from "./input.BAvin1Qu.js";
29
+ import { C as nt } from "./option.DT-6HmoC.js";
30
30
  import ht from "../components/select.js";
31
- import { c as jt } from "./image.BzmclWBR.js";
31
+ import { c as Gt } from "./image.BzmclWBR.js";
32
32
  import { e as J } from "./query.BBf1UFkC.js";
33
33
  import { c as tt } from "./repeat.CFjcER6_.js";
34
- import { o as H } from "./style-map.llVFPd__.js";
35
- import It from "../components/tooltip.js";
36
- import Gt from "../components/button-group.js";
37
- import { C as Qt } from "./checkbox.i5dgRvaf.js";
38
- function Kt(t) {
34
+ import { o as I } from "./style-map.llVFPd__.js";
35
+ import Ht from "../components/tooltip.js";
36
+ import Qt from "../components/button-group.js";
37
+ import { C as Kt } from "./checkbox.kdSMUgR1.js";
38
+ function Xt(t) {
39
39
  return t && t.length ? Bt(t) : [];
40
40
  }
41
- function Xt(t) {
41
+ function Zt(t) {
42
42
  return typeof t == "object" && t !== null && "URI" in t;
43
43
  }
44
- const Zt = {
44
+ const Yt = {
45
45
  artist: "Artist",
46
46
  color: "Color",
47
47
  createDate: "CreateDate",
@@ -63,18 +63,18 @@ const Zt = {
63
63
  systemIdentifier: "SystemIdentifier",
64
64
  text: "Text",
65
65
  title: "Title"
66
- }, Yt = /* @__PURE__ */ new Set(["mediaDate", "createDate", "editDate"]);
66
+ }, Jt = /* @__PURE__ */ new Set(["mediaDate", "createDate", "editDate"]);
67
67
  function dt(t) {
68
68
  return !/[\s&+/*"\\:(),'<>~|[\]{}]/.test(t) && !/^(?:OR|AND|NOT)$/.test(t) ? t : `"${t.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
69
69
  }
70
- function zt(t, e) {
70
+ function wt(t, e) {
71
71
  const s = (Array.isArray(e) ? e : [e]).map((a) => `${t}:${dt(a)}`);
72
72
  return s.length > 1 ? `(${s.join(" OR ")})` : s[0] ?? "";
73
73
  }
74
- function Jt(t, e) {
74
+ function te(t, e) {
75
75
  return (Array.isArray(e) ? e : [e]).map((s) => `${t}${s.operator}${s.value}`).join(" AND ");
76
76
  }
77
- function te(t) {
77
+ function ee(t) {
78
78
  const e = [];
79
79
  for (const i of Object.keys(t)) {
80
80
  const s = i, a = t[s];
@@ -84,14 +84,14 @@ function te(t) {
84
84
  for (const [n, l] of Object.entries(
85
85
  a
86
86
  ))
87
- e.push(zt(n, l));
87
+ e.push(wt(n, l));
88
88
  continue;
89
89
  }
90
- const r = Zt[s];
90
+ const r = Yt[s];
91
91
  if (r) {
92
- if (Yt.has(s)) {
92
+ if (Jt.has(s)) {
93
93
  e.push(
94
- Jt(r, a)
94
+ te(r, a)
95
95
  );
96
96
  continue;
97
97
  }
@@ -110,7 +110,7 @@ function te(t) {
110
110
  e.push(`(${l.join(" OR ")})`);
111
111
  continue;
112
112
  }
113
- e.push(zt(r, a));
113
+ e.push(wt(r, a));
114
114
  }
115
115
  }
116
116
  return e.join(" AND ");
@@ -126,9 +126,9 @@ function st(t) {
126
126
  const e = st(t.not);
127
127
  return e ? `NOT (${e})` : "";
128
128
  }
129
- return te(t);
129
+ return ee(t);
130
130
  }
131
- const ut = "CoreField.LargeSizePreview", vt = "CoreField.DocType", ee = "Document.Title", ie = "Document.CaptionLong", kt = "Document.FileExtension", Ct = "CoreField.FileSize", Rt = "CoreField.Identifier", $t = "CoreField.Keywords", Pt = "CoreField.MaxHeight", _t = "CoreField.MaxWidth", at = "Document.RecordID", Mt = "CoreField.DocSubType", Wt = "CoreField.TitleWithFallback", ot = "CoreField.OriginalFileName", rt = "CoreField.UpdatedFileName", X = "CoreField.OriginalPreview", pt = {
131
+ const ut = "CoreField.LargeSizePreview", vt = "CoreField.DocType", ie = "Document.Title", se = "Document.CaptionLong", kt = "Document.FileExtension", Ct = "CoreField.FileSize", Rt = "CoreField.Identifier", $t = "CoreField.Keywords", Pt = "CoreField.MaxHeight", _t = "CoreField.MaxWidth", at = "Document.RecordID", Mt = "CoreField.DocSubType", Wt = "CoreField.TitleWithFallback", ot = "CoreField.OriginalFileName", rt = "CoreField.UpdatedFileName", X = "CoreField.OriginalPreview", pt = {
132
132
  DEFAULT_VIEW_SIZE: "Document.LargeSizePreview",
133
133
  FIELD_TITLE_WITH_FALLBACK: "Document.TitleWithFallback",
134
134
  ORIGINAL_VIEW_SIZE: "Document.OriginalPreview"
@@ -136,19 +136,19 @@ const ut = "CoreField.LargeSizePreview", vt = "CoreField.DocType", ee = "Documen
136
136
  [ut]: pt.DEFAULT_VIEW_SIZE,
137
137
  [Wt]: pt.FIELD_TITLE_WITH_FALLBACK,
138
138
  [X]: pt.ORIGINAL_VIEW_SIZE
139
- }, se = Object.fromEntries(
139
+ }, ae = Object.fromEntries(
140
140
  Object.entries(Dt).map(([t, e]) => [
141
141
  e,
142
142
  t
143
143
  ])
144
144
  );
145
- function ae(t) {
145
+ function oe(t) {
146
146
  return Dt[t] ?? t;
147
147
  }
148
148
  function Ft(t) {
149
149
  const e = {};
150
150
  for (const [i, s] of Object.entries(t)) {
151
- const a = se[i] ?? i;
151
+ const a = ae[i] ?? i;
152
152
  e[a] = s;
153
153
  }
154
154
  return e;
@@ -166,7 +166,7 @@ async function Tt({
166
166
  token: y,
167
167
  useSession: m
168
168
  }) {
169
- const S = e?.map(ae);
169
+ const S = e?.map(oe);
170
170
  try {
171
171
  return (await P.request({
172
172
  baseURL: l,
@@ -174,7 +174,7 @@ async function Tt({
174
174
  method: "GET",
175
175
  params: {
176
176
  CountPerPage: t,
177
- Fields: Kt(S),
177
+ Fields: Xt(S),
178
178
  Format: "json",
179
179
  GetPermanentAssetsPaths: i || void 0,
180
180
  PageNumber: a,
@@ -197,13 +197,13 @@ async function Tt({
197
197
  totalCount: u.APIResponse?.GlobalInfo?.TotalCount ?? 0
198
198
  })
199
199
  ],
200
- url: s ? Ht.SEARCH_ASSETS : Nt["4.0"]
200
+ url: s ? It.SEARCH_ASSETS : Nt["4.0"]
201
201
  })).data;
202
202
  } catch {
203
203
  return { items: [], sort: "", totalCount: 0 };
204
204
  }
205
205
  }
206
- async function oe({
206
+ async function re({
207
207
  assetId: t,
208
208
  extension: e,
209
209
  format: i,
@@ -219,7 +219,7 @@ async function oe({
219
219
  params: {
220
220
  SourceAssetFormat: i,
221
221
  SourceAssetRecordID: t,
222
- TargetExtension: qt(e),
222
+ TargetExtension: jt(e),
223
223
  Token: a || void 0,
224
224
  Transformations: r,
225
225
  UseSession: n || void 0
@@ -235,14 +235,14 @@ async function oe({
235
235
  return null;
236
236
  }
237
237
  }
238
- const re = 50;
239
- function ne(t, e) {
238
+ const ne = 50;
239
+ function he(t, e) {
240
240
  const i = [];
241
241
  for (let s = 0; s < t.length; s += e)
242
242
  i.push(t.slice(s, s + e));
243
243
  return i;
244
244
  }
245
- async function gi({
245
+ async function xi({
246
246
  extraFields: t,
247
247
  getPermanentAssetsPaths: e,
248
248
  isSiteBuilder: i,
@@ -257,10 +257,10 @@ async function gi({
257
257
  X,
258
258
  rt,
259
259
  ot,
260
- ee,
261
260
  ie,
261
+ se,
262
262
  at
263
- ], f = ne(s, re), y = await Promise.all(
263
+ ], f = he(s, ne), y = await Promise.all(
264
264
  f.map(
265
265
  (u) => Tt({
266
266
  countPerPage: u.length,
@@ -274,13 +274,13 @@ async function gi({
274
274
  })
275
275
  )
276
276
  ), m = new Map(s.map((u, $) => [u, $])), S = y.flatMap((u) => u.items).map((u) => {
277
- let $ = z(u, rt);
278
- return $ === "" && ($ = z(u, ot)), {
277
+ let $ = w(u, rt);
278
+ return $ === "" && ($ = w(u, ot)), {
279
279
  name: $,
280
- originalUrl: z(u, X),
281
- recordId: z(u, at),
280
+ originalUrl: w(u, X),
281
+ recordId: w(u, at),
282
282
  ...n.reduce(
283
- (Q, A) => (Q[A] = z(u, A), Q),
283
+ (Q, b) => (Q[b] = w(u, b), Q),
284
284
  {}
285
285
  )
286
286
  };
@@ -292,11 +292,11 @@ async function gi({
292
292
  );
293
293
  return { facets: [], items: S, totalCount: C };
294
294
  }
295
- function z(t, e) {
295
+ function w(t, e) {
296
296
  const i = t[e];
297
- return i == null ? "" : typeof i == "string" ? i : typeof i == "number" || typeof i == "boolean" ? String(i) : Xt(i) ? i.URI : "";
297
+ return i == null ? "" : typeof i == "string" ? i : typeof i == "number" || typeof i == "boolean" ? String(i) : Zt(i) ? i.URI : "";
298
298
  }
299
- async function xi({
299
+ async function yi({
300
300
  countPerPage: t,
301
301
  directParentFolderIdentifier: e,
302
302
  extraFields: i,
@@ -312,10 +312,10 @@ async function xi({
312
312
  }) {
313
313
  if (!e && !l)
314
314
  return { facets: [], items: [], totalCount: 0 };
315
- const C = (i?.filter((A) => A && typeof A == "string") ?? []).map((A) => A.replace("%20", " ")), u = {
315
+ const C = (i?.filter((b) => b && typeof b == "string") ?? []).map((b) => b.replace("%20", " ")), u = {
316
316
  directParentFolderIdentifier: e,
317
317
  parentFolderIdentifier: l,
318
- ...r.length > 0 ? { docType: [bt.Image, bt.Audio] } : {}
318
+ ...r.length > 0 ? { docType: [At.Image, At.Audio] } : {}
319
319
  }, $ = await Tt({
320
320
  countPerPage: t,
321
321
  fields: [
@@ -342,26 +342,26 @@ async function xi({
342
342
  securityByPassToken: y,
343
343
  sort: void 0,
344
344
  token: S
345
- }), Q = $.items.map((A) => {
346
- let K = z(A, kt), ct = z(A, rt), xt = z(A, ut);
347
- K && !K.startsWith(".") && (K = "." + K), ct === "" && (ct = z(A, ot)), K.toLowerCase() === ".gif" && (xt = z(A, X));
348
- const yt = z(A, at);
345
+ }), Q = $.items.map((b) => {
346
+ let K = w(b, kt), ct = w(b, rt), xt = w(b, ut);
347
+ K && !K.startsWith(".") && (K = "." + K), ct === "" && (ct = w(b, ot)), K.toLowerCase() === ".gif" && (xt = w(b, X));
348
+ const yt = w(b, at);
349
349
  return {
350
- docSubType: z(A, Mt),
351
- docType: z(A, vt) || "",
350
+ docSubType: w(b, Mt),
351
+ docType: w(b, vt) || "",
352
352
  extension: K,
353
- height: z(A, Pt) || "0",
353
+ height: w(b, Pt) || "0",
354
354
  id: yt,
355
- identifier: z(A, Rt),
355
+ identifier: w(b, Rt),
356
356
  imageUrl: xt,
357
357
  name: ct,
358
- originalUrl: z(A, X),
358
+ originalUrl: w(b, X),
359
359
  recordId: yt,
360
- size: z(A, Ct) || "0 MB",
361
- tags: z(A, $t),
362
- width: z(A, _t) || "0",
360
+ size: w(b, Ct) || "0 MB",
361
+ tags: w(b, $t),
362
+ width: w(b, _t) || "0",
363
363
  ...C.reduce(
364
- (St, At) => (St[At] = z(A, At), St),
364
+ (St, bt) => (St[bt] = w(b, bt), St),
365
365
  {}
366
366
  )
367
367
  };
@@ -372,7 +372,7 @@ async function xi({
372
372
  totalCount: $.totalCount
373
373
  };
374
374
  }
375
- async function he({
375
+ async function le({
376
376
  autoCropMode: t,
377
377
  cropHeight: e,
378
378
  cropWidth: i,
@@ -407,7 +407,7 @@ async function he({
407
407
  return null;
408
408
  }
409
409
  }
410
- async function yi({
410
+ async function Si({
411
411
  assetRecordId: t,
412
412
  isSiteBuilder: e,
413
413
  siteUrl: i,
@@ -438,13 +438,13 @@ async function yi({
438
438
  width: l.width
439
439
  })) ?? []
440
440
  ],
441
- url: e ? Ht.GET_AVAILABLE_PROXIES : Ot
441
+ url: e ? It.GET_AVAILABLE_PROXIES : Ut
442
442
  })).data;
443
443
  } catch {
444
444
  return [];
445
445
  }
446
446
  }
447
- async function Si({
447
+ async function bi({
448
448
  siteUrl: t
449
449
  } = {}) {
450
450
  try {
@@ -465,21 +465,44 @@ async function Si({
465
465
  formatsByDocType: i.formatsByDocType ?? {}
466
466
  }
467
467
  ],
468
- url: Lt
468
+ url: Ot
469
469
  })).data;
470
470
  } catch {
471
471
  return { formatsByDocType: {} };
472
472
  }
473
473
  }
474
- const le = L`.asset-link-format__details{--header-padding:var(--cx-spacing-small) var(--cx-spacing-medium)}.asset-link-format__details::part(icon){width:var(--cx-font-size-3x-large);height:var(--cx-font-size-3x-large);background-color:var(--cx-color-neutral-100);border-radius:var(--cx-border-radius-large);color:var(--cx-color-neutral-600);font-size:var(--cx-font-size-large);justify-content:center;align-items:center;display:flex}.asset-link-format__details::part(input-label){color:var(--cx-color-neutral-400);margin-inline-start:var(--cx-spacing-small)}.asset-link-format__header{padding:var(--cx-spacing-medium)}.asset-link-format__section-header{padding:0 var(--cx-spacing-medium);border-top:var(--section-header-border-width,1px) solid var(--cx-color-neutral-200);background-color:var(--cx-color-neutral-50)}.asset-link-format__undo,.asset-link-format__reset{--color:var(--cx-color-primary);--background-color:transparent}`, ce = L`cx-details::part(base){border-bottom-width:0}cx-space{width:100%}cx-space cx-input{flex:1}.crop__unit-select{width:120px}.crop__input-group{flex:1;display:flex}`;
475
- var pe = Object.defineProperty, de = Object.getOwnPropertyDescriptor, x = (t, e, i, s) => {
476
- for (var a = s > 1 ? void 0 : s ? de(e, i) : e, r = t.length - 1, n; r >= 0; r--)
474
+ async function Ai({
475
+ recordIds: t,
476
+ rightsToCheck: e
477
+ }) {
478
+ const i = {
479
+ authorizedObjects: [],
480
+ forbiddenObjectsOfReadPermission: [],
481
+ forbiddenObjectsOfRequestedPermission: [],
482
+ invalidObjects: []
483
+ };
484
+ try {
485
+ const { data: s } = await P.request({
486
+ method: "GET",
487
+ params: { RecordIDs: t, RightsToCheck: e },
488
+ paramsSerializer: { indexes: null },
489
+ responseType: "json",
490
+ url: Lt.GET_AUTHORIZED_OBJECTS
491
+ });
492
+ return s;
493
+ } catch {
494
+ return i;
495
+ }
496
+ }
497
+ const ce = O`.asset-link-format__details{--header-padding:var(--cx-spacing-small) var(--cx-spacing-medium)}.asset-link-format__details::part(icon){width:var(--cx-font-size-3x-large);height:var(--cx-font-size-3x-large);background-color:var(--cx-color-neutral-100);border-radius:var(--cx-border-radius-large);color:var(--cx-color-neutral-600);font-size:var(--cx-font-size-large);justify-content:center;align-items:center;display:flex}.asset-link-format__details::part(input-label){color:var(--cx-color-neutral-400);margin-inline-start:var(--cx-spacing-small)}.asset-link-format__header{padding:var(--cx-spacing-medium)}.asset-link-format__section-header{padding:0 var(--cx-spacing-medium);border-top:var(--section-header-border-width,1px) solid var(--cx-color-neutral-200);background-color:var(--cx-color-neutral-50)}.asset-link-format__undo,.asset-link-format__reset{--color:var(--cx-color-primary);--background-color:transparent}`, pe = O`cx-details::part(base){border-bottom-width:0}cx-space{width:100%}cx-space cx-input{flex:1}.crop__unit-select{width:120px}.crop__input-group{flex:1;display:flex}`;
498
+ var de = Object.defineProperty, ue = Object.getOwnPropertyDescriptor, x = (t, e, i, s) => {
499
+ for (var a = s > 1 ? void 0 : s ? ue(e, i) : e, r = t.length - 1, n; r >= 0; r--)
477
500
  (n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
478
- return s && a && pe(e, i, a), a;
501
+ return s && a && de(e, i, a), a;
479
502
  };
480
503
  let g = class extends N {
481
504
  constructor() {
482
- super(...arguments), this.localize = new O(this), this.open = !1, this.width = 0, this.height = 0, this.maxWidth = 0, this.maxHeight = 0, this.ratioWidth = 1, this.ratioHeight = 1, this.percentageWidth = 0, this.percentageHeight = 0, this.unit = o.Pixel, this.disabledApply = !1, this.lastAppliedSetting = {
505
+ super(...arguments), this.localize = new L(this), this.open = !1, this.width = 0, this.height = 0, this.maxWidth = 0, this.maxHeight = 0, this.ratioWidth = 1, this.ratioHeight = 1, this.percentageWidth = 0, this.percentageHeight = 0, this.unit = o.Pixel, this.disabledApply = !1, this.lastAppliedSetting = {
483
506
  [o.Pixel]: {
484
507
  height: 0,
485
508
  percentageHeight: 100,
@@ -588,7 +611,7 @@ let g = class extends N {
588
611
  const [s, a] = e.split(":").map(Number);
589
612
  if (this.unit === o.Pixel) {
590
613
  let r = s, n = a;
591
- Number.isFinite(this.maxWidth) && Number.isFinite(this.maxHeight) && ({ height: n, width: r } = jt(
614
+ Number.isFinite(this.maxWidth) && Number.isFinite(this.maxHeight) && ({ height: n, width: r } = Gt(
592
615
  this.maxWidth,
593
616
  this.maxHeight,
594
617
  s,
@@ -698,44 +721,44 @@ let g = class extends N {
698
721
  }
699
722
  render() {
700
723
  const t = this.cropModes.filter((i) => !i.auto), e = this.cropModes.filter((i) => i.auto);
701
- return b`<cx-details class="details" ?open=${this.open} @cx-show=${this.onShowDetails} @cx-hide=${this.onHideDetails}><cx-space slot="summary" align-items="center"><div part="icon"><cx-icon name="crop"></cx-icon></div><cx-typography variant="body2">${this.localize.term("crop")}</cx-typography></cx-space><cx-space direction="vertical" spacing="small"><cx-select data-testid="cx-asset-link-format-crop-mode" value=${this.cropMode} hoist style=${H({
724
+ return A`<cx-details class="details" ?open=${this.open} @cx-show=${this.onShowDetails} @cx-hide=${this.onHideDetails}><cx-space slot="summary" align-items="center"><div part="icon"><cx-icon name="crop"></cx-icon></div><cx-typography variant="body2">${this.localize.term("crop")}</cx-typography></cx-space><cx-space direction="vertical" spacing="small"><cx-select data-testid="cx-asset-link-format-crop-mode" value=${this.cropMode} hoist style=${I({
702
725
  width: "100%"
703
726
  })} @cx-change=${this.onCropModeChange} ?disabled=${this.loading}>${tt(
704
727
  t,
705
728
  (i) => i.value,
706
- ({ label: i, value: s }) => b`<cx-option value=${s}>${i}</cx-option>`
729
+ ({ label: i, value: s }) => A`<cx-option value=${s}>${i}</cx-option>`
707
730
  )}
708
731
  ${E(
709
732
  e.length > 0,
710
- () => b`<cx-divider></cx-divider><small>${this.localize.term("autoCropping")}</small>`
733
+ () => A`<cx-divider></cx-divider><small>${this.localize.term("autoCropping")}</small>`
711
734
  )}
712
735
  ${tt(
713
736
  e,
714
737
  (i) => i.value,
715
- ({ label: i, value: s }) => b`<cx-option value=${s}>${i}</cx-option>`
738
+ ({ label: i, value: s }) => A`<cx-option value=${s}>${i}</cx-option>`
716
739
  )}</cx-select><cx-space spacing="small"><div class="crop__input-group"><cx-input data-testid="cx-asset-link-format-crop-width" placeholder=${this.localize.term("width")} mask="num" .maskBlocks=${{ num: { mask: Number, min: 1 } }} value=${this.unit === o.Pixel ? this.width.toString() : this.ratioWidth.toString()} @cx-change=${this.handleInputChange} @cx-input=${this.handleWidthChange} required ?disabled=${this.loading}><cx-typography slot="prefix" variant="body3" part="input-label">
717
740
  W
718
- </cx-typography></cx-input><cx-icon-button data-testid="cx-asset-link-format-crop-aspect-ratio" name=${this.keepAspectRatio ? "insert_link" : "link_off"} @click=${this.handleAspectRatioClick} style=${H({
741
+ </cx-typography></cx-input><cx-icon-button data-testid="cx-asset-link-format-crop-aspect-ratio" name=${this.keepAspectRatio ? "insert_link" : "link_off"} @click=${this.handleAspectRatioClick} style=${I({
719
742
  color: this.keepAspectRatio ? "var(--cx-color-primary)" : void 0
720
743
  })} ?disabled=${this.loading}></cx-icon-button><cx-input data-testid="cx-asset-link-format-crop-height" placeholder=${this.localize.term("height")} mask="num" .maskBlocks=${{ num: { mask: Number, min: 1 } }} value=${this.unit === o.Pixel ? this.height.toString() : this.ratioHeight.toString()} ?disabled=${this.loading} @cx-change=${this.handleInputChange} @cx-input=${this.handleHeightChange} required><cx-typography slot="prefix" variant="body3" part="input-label">
721
744
  H
722
745
  </cx-typography></cx-input></div><cx-select data-testid="cx-asset-link-format-crop-unit" value=${this.unit} hoist class="crop__unit-select" ?disabled=${this.loading} @cx-change=${this.onUnitChange}><cx-option value=${o.Pixel}>${this.localize.term("pixels")}</cx-option><cx-option value=${o.AspectRatio}>${this.localize.term("aspectRatio")}</cx-option></cx-select></cx-space>${E(
723
746
  this.focusModes.length > 0,
724
- () => b`<cx-select data-testid="cx-asset-link-format-crop-focus-mode" value=${this.focusMode} hoist style=${H({
747
+ () => A`<cx-select data-testid="cx-asset-link-format-crop-focus-mode" value=${this.focusMode} hoist style=${I({
725
748
  width: "100%"
726
749
  })} @cx-change=${this.onFocusModeChange} ?disabled=${this.loading || this.selectedMode?.disabledSize}>${tt(
727
750
  this.focusModes,
728
751
  (i) => i.value,
729
- ({ label: i, value: s }) => b`<cx-option value=${s}>${i}</cx-option>`
752
+ ({ label: i, value: s }) => A`<cx-option value=${s}>${i}</cx-option>`
730
753
  )}</cx-select>`
731
- )}<cx-button data-testid="cx-asset-link-format-crop-apply" variant="primary" ?disabled=${this.disabledApply || this.invalidHeight || this.invalidWidth} ?loading=${this.loading} style=${H({
754
+ )}<cx-button data-testid="cx-asset-link-format-crop-apply" variant="primary" ?disabled=${this.disabledApply || this.invalidHeight || this.invalidWidth} ?loading=${this.loading} style=${I({
732
755
  marginLeft: "auto"
733
756
  })} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
734
757
  }
735
758
  };
736
- g.styles = [U, ce];
759
+ g.styles = [U, pe];
737
760
  g.dependencies = {
738
- "cx-button": j,
761
+ "cx-button": V,
739
762
  "cx-details": Z,
740
763
  "cx-divider": Vt,
741
764
  "cx-icon": Y,
@@ -824,15 +847,15 @@ x([
824
847
  g = x([
825
848
  q("cx-asset-link-format-crop")
826
849
  ], g);
827
- const ue = L`.extension{padding:var(--cx-spacing-small) var(--cx-spacing-medium);border:solid 1px var(--cx-color-neutral-200);background-color:var(--cx-color-neutral-0);& cx-select{flex:1;width:100%}}`;
828
- var me = Object.defineProperty, fe = Object.getOwnPropertyDescriptor, gt = (t, e, i, s) => {
829
- for (var a = s > 1 ? void 0 : s ? fe(e, i) : e, r = t.length - 1, n; r >= 0; r--)
850
+ const me = O`.extension{padding:var(--cx-spacing-small) var(--cx-spacing-medium);border:solid 1px var(--cx-color-neutral-200);background-color:var(--cx-color-neutral-0);& cx-select{flex:1;width:100%}}`;
851
+ var fe = Object.defineProperty, ge = Object.getOwnPropertyDescriptor, gt = (t, e, i, s) => {
852
+ for (var a = s > 1 ? void 0 : s ? ge(e, i) : e, r = t.length - 1, n; r >= 0; r--)
830
853
  (n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
831
- return s && a && me(e, i, a), a;
854
+ return s && a && fe(e, i, a), a;
832
855
  };
833
- let V = class extends N {
856
+ let B = class extends N {
834
857
  constructor() {
835
- super(...arguments), this.localize = new O(this), this.value = "", this.items = [];
858
+ super(...arguments), this.localize = new L(this), this.value = "", this.items = [];
836
859
  }
837
860
  handleExtensionChange(t) {
838
861
  const e = t.target.value;
@@ -841,15 +864,15 @@ let V = class extends N {
841
864
  });
842
865
  }
843
866
  render() {
844
- return b`<cx-space direction="vertical" spacing="small" class="extension"><cx-typography variant="body2">${this.localize.term("extension")}</cx-typography><cx-select data-label=${this.localize.term("extension")} data-testid="cx-asset-link-format-extension-select" value=${this.value} hoist @cx-change=${this.handleExtensionChange}>${tt(
867
+ return A`<cx-space direction="vertical" spacing="small" class="extension"><cx-typography variant="body2">${this.localize.term("extension")}</cx-typography><cx-select data-label=${this.localize.term("extension")} data-testid="cx-asset-link-format-extension-select" value=${this.value} hoist @cx-change=${this.handleExtensionChange}>${tt(
845
868
  this.items,
846
869
  (t) => t.value,
847
- (t) => b`<cx-option value=${t.value}>${t.displayName}</cx-option>`
870
+ (t) => A`<cx-option value=${t.value}>${t.displayName}</cx-option>`
848
871
  )}</cx-select></cx-space>`;
849
872
  }
850
873
  };
851
- V.styles = [U, ue];
852
- V.dependencies = {
874
+ B.styles = [U, me];
875
+ B.dependencies = {
853
876
  "cx-option": nt,
854
877
  "cx-select": ht,
855
878
  "cx-space": D,
@@ -857,22 +880,22 @@ V.dependencies = {
857
880
  };
858
881
  gt([
859
882
  h({ reflect: !0, type: String })
860
- ], V.prototype, "value", 2);
883
+ ], B.prototype, "value", 2);
861
884
  gt([
862
885
  h({ reflect: !1, type: Array })
863
- ], V.prototype, "items", 2);
864
- V = gt([
886
+ ], B.prototype, "items", 2);
887
+ B = gt([
865
888
  q("cx-asset-link-format-extension")
866
- ], V);
867
- const ge = L`cx-details::part(base){border-bottom-width:0}`;
868
- var xe = Object.defineProperty, ye = Object.getOwnPropertyDescriptor, I = (t, e, i, s) => {
869
- for (var a = s > 1 ? void 0 : s ? ye(e, i) : e, r = t.length - 1, n; r >= 0; r--)
889
+ ], B);
890
+ const xe = O`cx-details::part(base){border-bottom-width:0}`;
891
+ var ye = Object.defineProperty, Se = Object.getOwnPropertyDescriptor, H = (t, e, i, s) => {
892
+ for (var a = s > 1 ? void 0 : s ? Se(e, i) : e, r = t.length - 1, n; r >= 0; r--)
870
893
  (n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
871
- return s && a && xe(e, i, a), a;
894
+ return s && a && ye(e, i, a), a;
872
895
  };
873
896
  let _ = class extends N {
874
897
  constructor() {
875
- super(...arguments), this.localize = new O(this), this.open = !1, this.value = "", this.items = [], this.loading = !1, this.scopedValue = "";
898
+ super(...arguments), this.localize = new L(this), this.open = !1, this.value = "", this.items = [], this.loading = !1, this.scopedValue = "";
876
899
  }
877
900
  handleValueChange() {
878
901
  this.scopedValue = this.value;
@@ -916,18 +939,18 @@ let _ = class extends N {
916
939
  t.target !== this.base && t.stopPropagation();
917
940
  }
918
941
  render() {
919
- return b`<cx-details class="details" ?open=${this.open} @cx-show=${this.onShowDetails} @cx-hide=${this.onHideDetails}><cx-space slot="summary" align-items="center"><div part="icon"><cx-icon name="photo_size_select_large"></cx-icon></div><cx-typography variant="body2">${this.localize.term("format")}</cx-typography></cx-space><cx-space direction="vertical" spacing="small" class="format"><cx-select data-label=${this.localize.term("imageFormat")} data-testid="cx-asset-link-format-proxy-select" value=${this.scopedValue} hoist @cx-change=${this.handleProxyChange} ?disabled=${this.loading}>${tt(
942
+ return A`<cx-details class="details" ?open=${this.open} @cx-show=${this.onShowDetails} @cx-hide=${this.onHideDetails}><cx-space slot="summary" align-items="center"><div part="icon"><cx-icon name="photo_size_select_large"></cx-icon></div><cx-typography variant="body2">${this.localize.term("format")}</cx-typography></cx-space><cx-space direction="vertical" spacing="small" class="format"><cx-select data-label=${this.localize.term("imageFormat")} data-testid="cx-asset-link-format-proxy-select" value=${this.scopedValue} hoist @cx-change=${this.handleProxyChange} ?disabled=${this.loading}>${tt(
920
943
  this.items,
921
944
  (t) => t.id,
922
- (t) => b`<cx-option value=${t.id}>${t.proxyLabel}</cx-option>`
923
- )}</cx-select><cx-button data-testid="cx-asset-link-format-proxy-apply" variant="primary" style=${H({
945
+ (t) => A`<cx-option value=${t.id}>${t.proxyLabel}</cx-option>`
946
+ )}</cx-select><cx-button data-testid="cx-asset-link-format-proxy-apply" variant="primary" style=${I({
924
947
  "margin-left": "auto"
925
948
  })} ?disabled=${this.scopedValue === this.value} ?loading=${this.loading} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
926
949
  }
927
950
  };
928
- _.styles = [U, ge];
951
+ _.styles = [U, xe];
929
952
  _.dependencies = {
930
- "cx-button": j,
953
+ "cx-button": V,
931
954
  "cx-details": Z,
932
955
  "cx-icon": Y,
933
956
  "cx-option": nt,
@@ -935,42 +958,42 @@ _.dependencies = {
935
958
  "cx-space": D,
936
959
  "cx-typography": T
937
960
  };
938
- I([
961
+ H([
939
962
  J(".details")
940
963
  ], _.prototype, "base", 2);
941
- I([
964
+ H([
942
965
  h({ reflect: !0, type: Boolean })
943
966
  ], _.prototype, "open", 2);
944
- I([
967
+ H([
945
968
  h({ reflect: !0, type: String })
946
969
  ], _.prototype, "value", 2);
947
- I([
970
+ H([
948
971
  h({ reflect: !1, type: Array })
949
972
  ], _.prototype, "items", 2);
950
- I([
973
+ H([
951
974
  h({ reflect: !0, type: Boolean })
952
975
  ], _.prototype, "loading", 2);
953
- I([
976
+ H([
954
977
  v()
955
978
  ], _.prototype, "scopedValue", 2);
956
- I([
979
+ H([
957
980
  R("value")
958
981
  ], _.prototype, "handleValueChange", 1);
959
- I([
982
+ H([
960
983
  R("open", { waitUntilFirstUpdate: !0 })
961
984
  ], _.prototype, "handleOpenChange", 1);
962
- _ = I([
985
+ _ = H([
963
986
  q("cx-asset-link-format-proxy")
964
987
  ], _);
965
- const Se = L`cx-details::part(base){border-bottom-width:0}`;
966
- var Ae = Object.defineProperty, be = Object.getOwnPropertyDescriptor, G = (t, e, i, s) => {
967
- for (var a = s > 1 ? void 0 : s ? be(e, i) : e, r = t.length - 1, n; r >= 0; r--)
988
+ const be = O`cx-details::part(base){border-bottom-width:0}`;
989
+ var Ae = Object.defineProperty, ze = Object.getOwnPropertyDescriptor, G = (t, e, i, s) => {
990
+ for (var a = s > 1 ? void 0 : s ? ze(e, i) : e, r = t.length - 1, n; r >= 0; r--)
968
991
  (n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
969
992
  return s && a && Ae(e, i, a), a;
970
993
  };
971
994
  let F = class extends N {
972
995
  constructor() {
973
- super(...arguments), this.localize = new O(this), this.open = !1, this.value = 100, this.loading = !1, this.scopedValue = 100;
996
+ super(...arguments), this.localize = new L(this), this.open = !1, this.value = 100, this.loading = !1, this.scopedValue = 100;
974
997
  }
975
998
  /**
976
999
  * A computed property that checks if the current quality value is invalid.
@@ -1014,19 +1037,19 @@ let F = class extends N {
1014
1037
  t.target !== this.base && t.stopPropagation();
1015
1038
  }
1016
1039
  render() {
1017
- return b`<cx-details class="details" ?open=${this.open} @cx-show=${this.onShowDetails} @cx-hide=${this.onHideDetails}><cx-space slot="summary" align-items="center"><div class="details__summary__icon"><div part="icon"><cx-icon name="blur_on"></cx-icon></div></div><cx-typography variant="body2">${this.localize.term("quality")}</cx-typography></cx-space><cx-space spacing="small"><cx-tooltip data-testid="cx-asset-link-format-quality-tooltip" content=${this.localize.term("qualityHelpText")} hoist><cx-input data-testid="cx-asset-link-format-quality" class="details__checkbox" mask="num" .maskBlocks=${{ num: { mask: Number, max: 100, min: 1 } }} value=${this.scopedValue.toString()} style=${H({
1040
+ return A`<cx-details class="details" ?open=${this.open} @cx-show=${this.onShowDetails} @cx-hide=${this.onHideDetails}><cx-space slot="summary" align-items="center"><div class="details__summary__icon"><div part="icon"><cx-icon name="blur_on"></cx-icon></div></div><cx-typography variant="body2">${this.localize.term("quality")}</cx-typography></cx-space><cx-space spacing="small"><cx-tooltip data-testid="cx-asset-link-format-quality-tooltip" content=${this.localize.term("qualityHelpText")} hoist><cx-input data-testid="cx-asset-link-format-quality" class="details__checkbox" mask="num" .maskBlocks=${{ num: { mask: Number, max: 100, min: 1 } }} value=${this.scopedValue.toString()} style=${I({
1018
1041
  flex: "1"
1019
1042
  })} @cx-input=${this.handleQualityChange}></cx-input></cx-tooltip><cx-button data-testid="cx-asset-link-format-quality-apply" variant="primary" ?disabled=${this.invalidValue} ?loading=${this.loading} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
1020
1043
  }
1021
1044
  };
1022
- F.styles = [U, Se];
1045
+ F.styles = [U, be];
1023
1046
  F.dependencies = {
1024
- "cx-button": j,
1047
+ "cx-button": V,
1025
1048
  "cx-details": Z,
1026
1049
  "cx-icon": Y,
1027
1050
  "cx-input": ft,
1028
1051
  "cx-space": D,
1029
- "cx-tooltip": It,
1052
+ "cx-tooltip": Ht,
1030
1053
  "cx-typography": T
1031
1054
  };
1032
1055
  G([
@@ -1050,15 +1073,15 @@ G([
1050
1073
  F = G([
1051
1074
  q("cx-asset-link-format-quality")
1052
1075
  ], F);
1053
- const we = L`cx-details::part(base){border-bottom-width:0}cx-space{width:100%}cx-space cx-input{flex:1}.resize__unit-select{width:120px}.resize__input-group{flex:1;display:flex}`;
1054
- var ze = Object.defineProperty, ve = Object.getOwnPropertyDescriptor, k = (t, e, i, s) => {
1055
- for (var a = s > 1 ? void 0 : s ? ve(e, i) : e, r = t.length - 1, n; r >= 0; r--)
1076
+ const we = O`cx-details::part(base){border-bottom-width:0}cx-space{width:100%}cx-space cx-input{flex:1}.resize__unit-select{width:120px}.resize__input-group{flex:1;display:flex}`;
1077
+ var ve = Object.defineProperty, ke = Object.getOwnPropertyDescriptor, k = (t, e, i, s) => {
1078
+ for (var a = s > 1 ? void 0 : s ? ke(e, i) : e, r = t.length - 1, n; r >= 0; r--)
1056
1079
  (n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
1057
- return s && a && ze(e, i, a), a;
1080
+ return s && a && ve(e, i, a), a;
1058
1081
  };
1059
- let w = class extends N {
1082
+ let z = class extends N {
1060
1083
  constructor() {
1061
- super(...arguments), this.localize = new O(this), this.open = !1, this.width = 0, this.height = 0, this.maxWidth = 0, this.maxHeight = 0, this.ratioWidth = 1, this.ratioHeight = 1, this.unit = o.Pixel, this.lastAppliedSetting = {
1084
+ super(...arguments), this.localize = new L(this), this.open = !1, this.width = 0, this.height = 0, this.maxWidth = 0, this.maxHeight = 0, this.ratioWidth = 1, this.ratioHeight = 1, this.unit = o.Pixel, this.lastAppliedSetting = {
1062
1085
  [o.Pixel]: { height: 0, width: 0 },
1063
1086
  [o.AspectRatio]: { height: 1, width: 1 }
1064
1087
  }, this.loading = !1, this.keepAspectRatio = !1, this.invalidWidth = !1, this.invalidHeight = !1, this.aspectRatio = 0;
@@ -1192,20 +1215,20 @@ let w = class extends N {
1192
1215
  });
1193
1216
  }
1194
1217
  render() {
1195
- return b`<cx-details class="details" ?open=${this.open} @cx-show=${this.onShowDetails} @cx-hide=${this.onHideDetails}><cx-space slot="summary" align-items="center"><div part="icon"><cx-icon name="aspect_ratio"></cx-icon></div><cx-typography variant="body2">${this.localize.term("resize")}</cx-typography></cx-space><cx-space direction="vertical" spacing="small"><cx-space spacing="small"><div class="resize__input-group"><cx-input data-testid="cx-asset-link-format-resize-width" placeholder=${this.localize.term("width")} mask="num" .maskBlocks=${{ num: { mask: Number, min: 1 } }} value=${this.unit === o.Pixel ? this.width.toString() : this.ratioWidth.toString()} @cx-input=${this.handleWidthChange} required ?disabled=${this.loading}><cx-typography slot="prefix" variant="body3" part="input-label">
1218
+ return A`<cx-details class="details" ?open=${this.open} @cx-show=${this.onShowDetails} @cx-hide=${this.onHideDetails}><cx-space slot="summary" align-items="center"><div part="icon"><cx-icon name="aspect_ratio"></cx-icon></div><cx-typography variant="body2">${this.localize.term("resize")}</cx-typography></cx-space><cx-space direction="vertical" spacing="small"><cx-space spacing="small"><div class="resize__input-group"><cx-input data-testid="cx-asset-link-format-resize-width" placeholder=${this.localize.term("width")} mask="num" .maskBlocks=${{ num: { mask: Number, min: 1 } }} value=${this.unit === o.Pixel ? this.width.toString() : this.ratioWidth.toString()} @cx-input=${this.handleWidthChange} required ?disabled=${this.loading}><cx-typography slot="prefix" variant="body3" part="input-label">
1196
1219
  W
1197
- </cx-typography></cx-input><cx-icon-button data-testid="cx-asset-link-format-resize-aspect-ratio" name=${this.keepAspectRatio ? "insert_link" : "link_off"} @click=${this.handleAspectRatioClick} style=${H({
1220
+ </cx-typography></cx-input><cx-icon-button data-testid="cx-asset-link-format-resize-aspect-ratio" name=${this.keepAspectRatio ? "insert_link" : "link_off"} @click=${this.handleAspectRatioClick} style=${I({
1198
1221
  color: this.keepAspectRatio ? "var(--cx-color-primary)" : void 0
1199
1222
  })} ?disabled=${this.loading}></cx-icon-button><cx-input data-testid="cx-asset-link-format-resize-height" placeholder=${this.localize.term("height")} mask="num" .maskBlocks=${{ num: { mask: Number, min: 1 } }} value=${this.unit === o.Pixel ? this.height.toString() : this.ratioHeight.toString()} @cx-input=${this.handleHeightChange} required ?disabled=${this.loading}><cx-typography slot="prefix" variant="body3" part="input-label">
1200
1223
  H
1201
- </cx-typography></cx-input></div><cx-select data-testid="cx-asset-link-format-resize-unit" value=${this.unit} hoist class="resize__unit-select" @cx-change=${this.onUnitChange}><cx-option value=${o.Pixel}>${this.localize.term("pixels")}</cx-option><cx-option value=${o.AspectRatio}>${this.localize.term("aspectRatio")}</cx-option></cx-select></cx-space><cx-button data-testid="cx-asset-link-format-resize-apply" variant="primary" ?disabled=${this.disabledApply || this.invalidHeight || this.invalidWidth} ?loading=${this.loading} style=${H({
1224
+ </cx-typography></cx-input></div><cx-select data-testid="cx-asset-link-format-resize-unit" value=${this.unit} hoist class="resize__unit-select" @cx-change=${this.onUnitChange}><cx-option value=${o.Pixel}>${this.localize.term("pixels")}</cx-option><cx-option value=${o.AspectRatio}>${this.localize.term("aspectRatio")}</cx-option></cx-select></cx-space><cx-button data-testid="cx-asset-link-format-resize-apply" variant="primary" ?disabled=${this.disabledApply || this.invalidHeight || this.invalidWidth} ?loading=${this.loading} style=${I({
1202
1225
  marginLeft: "auto"
1203
1226
  })} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
1204
1227
  }
1205
1228
  };
1206
- w.styles = [U, we];
1207
- w.dependencies = {
1208
- "cx-button": j,
1229
+ z.styles = [U, we];
1230
+ z.dependencies = {
1231
+ "cx-button": V,
1209
1232
  "cx-details": Z,
1210
1233
  "cx-icon": Y,
1211
1234
  "cx-icon-button": mt,
@@ -1217,70 +1240,70 @@ w.dependencies = {
1217
1240
  };
1218
1241
  k([
1219
1242
  J(".details")
1220
- ], w.prototype, "base", 2);
1243
+ ], z.prototype, "base", 2);
1221
1244
  k([
1222
1245
  h({ reflect: !0, type: Boolean })
1223
- ], w.prototype, "open", 2);
1246
+ ], z.prototype, "open", 2);
1224
1247
  k([
1225
1248
  h({ reflect: !0, type: Number })
1226
- ], w.prototype, "width", 2);
1249
+ ], z.prototype, "width", 2);
1227
1250
  k([
1228
1251
  h({ reflect: !0, type: Number })
1229
- ], w.prototype, "height", 2);
1252
+ ], z.prototype, "height", 2);
1230
1253
  k([
1231
1254
  h({ attribute: "max-width", reflect: !0, type: Number })
1232
- ], w.prototype, "maxWidth", 2);
1255
+ ], z.prototype, "maxWidth", 2);
1233
1256
  k([
1234
1257
  h({ attribute: "max-height", reflect: !0, type: Number })
1235
- ], w.prototype, "maxHeight", 2);
1258
+ ], z.prototype, "maxHeight", 2);
1236
1259
  k([
1237
1260
  h({ attribute: "ratio-width", reflect: !0, type: Number })
1238
- ], w.prototype, "ratioWidth", 2);
1261
+ ], z.prototype, "ratioWidth", 2);
1239
1262
  k([
1240
1263
  h({ attribute: "ratio-height", reflect: !0, type: Number })
1241
- ], w.prototype, "ratioHeight", 2);
1264
+ ], z.prototype, "ratioHeight", 2);
1242
1265
  k([
1243
1266
  h({ reflect: !0, type: String })
1244
- ], w.prototype, "unit", 2);
1267
+ ], z.prototype, "unit", 2);
1245
1268
  k([
1246
1269
  h({ attribute: "last-applied-setting", reflect: !1, type: Object })
1247
- ], w.prototype, "lastAppliedSetting", 2);
1270
+ ], z.prototype, "lastAppliedSetting", 2);
1248
1271
  k([
1249
1272
  h({ reflect: !0, type: Boolean })
1250
- ], w.prototype, "loading", 2);
1273
+ ], z.prototype, "loading", 2);
1251
1274
  k([
1252
1275
  h({ attribute: "keep-aspect-ratio", reflect: !0, type: Boolean })
1253
- ], w.prototype, "keepAspectRatio", 2);
1276
+ ], z.prototype, "keepAspectRatio", 2);
1254
1277
  k([
1255
1278
  v()
1256
- ], w.prototype, "invalidWidth", 2);
1279
+ ], z.prototype, "invalidWidth", 2);
1257
1280
  k([
1258
1281
  v()
1259
- ], w.prototype, "invalidHeight", 2);
1282
+ ], z.prototype, "invalidHeight", 2);
1260
1283
  k([
1261
1284
  v()
1262
- ], w.prototype, "aspectRatio", 2);
1285
+ ], z.prototype, "aspectRatio", 2);
1263
1286
  k([
1264
1287
  R("cropMode", { waitUntilFirstUpdate: !0 }),
1265
1288
  R("maxWidth", { waitUntilFirstUpdate: !0 }),
1266
1289
  R("maxHeight", { waitUntilFirstUpdate: !0 }),
1267
1290
  R("keepAspectRatio")
1268
- ], w.prototype, "handleCropModeChange", 1);
1291
+ ], z.prototype, "handleCropModeChange", 1);
1269
1292
  k([
1270
1293
  R("open")
1271
- ], w.prototype, "handleOpenChange", 1);
1272
- w = k([
1294
+ ], z.prototype, "handleOpenChange", 1);
1295
+ z = k([
1273
1296
  q("cx-asset-link-format-resize")
1274
- ], w);
1275
- const ke = L`cx-details::part(base){border-bottom-width:0}`;
1276
- var Ce = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, B = (t, e, i, s) => {
1277
- for (var a = s > 1 ? void 0 : s ? Re(e, i) : e, r = t.length - 1, n; r >= 0; r--)
1297
+ ], z);
1298
+ const Ce = O`cx-details::part(base){border-bottom-width:0}`;
1299
+ var Re = Object.defineProperty, $e = Object.getOwnPropertyDescriptor, j = (t, e, i, s) => {
1300
+ for (var a = s > 1 ? void 0 : s ? $e(e, i) : e, r = t.length - 1, n; r >= 0; r--)
1278
1301
  (n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
1279
- return s && a && Ce(e, i, a), a;
1302
+ return s && a && Re(e, i, a), a;
1280
1303
  };
1281
1304
  let M = class extends N {
1282
1305
  constructor() {
1283
- super(...arguments), this.localize = new O(this), this.open = !1, this.value = 0, this.defaultValue = 0, this.loading = !1, this.lastAppliedValue = 0;
1306
+ super(...arguments), this.localize = new L(this), this.open = !1, this.value = 0, this.defaultValue = 0, this.loading = !1, this.lastAppliedValue = 0;
1284
1307
  }
1285
1308
  handleOpenChange() {
1286
1309
  this.open || this.emit("cx-asset-link-format-rotation-change", {
@@ -1288,14 +1311,14 @@ let M = class extends N {
1288
1311
  });
1289
1312
  }
1290
1313
  handleRotationChange(t) {
1291
- const e = t.target.value, i = wt(Number(e));
1314
+ const e = t.target.value, i = zt(Number(e));
1292
1315
  (Number(e) > 360 || Number(e) < -360) && (t.target.value = i.toString()), this.emit("cx-asset-link-format-rotation-change", {
1293
1316
  detail: i
1294
1317
  });
1295
1318
  }
1296
1319
  handleButtonClick(t) {
1297
1320
  this.emit("cx-asset-link-format-rotation-change", {
1298
- detail: wt(t)
1321
+ detail: zt(t)
1299
1322
  });
1300
1323
  }
1301
1324
  handleClockwiseClick() {
@@ -1315,55 +1338,55 @@ let M = class extends N {
1315
1338
  });
1316
1339
  }
1317
1340
  render() {
1318
- return b`<cx-details class="details" ?open=${this.open}><cx-space slot="summary" align-items="center"><div part="icon"><cx-icon name="rotate_90_degrees_cw"></cx-icon></div><cx-typography variant="body2">Rotate</cx-typography></cx-space><cx-space spacing="small"><cx-button-group label=${this.localize.term("history")}><cx-icon-button data-testid="cx-asset-link-format-rotation-ccw" name="rotate_90_degrees_ccw" label=${this.localize.term("undo")} outline size="small" ?disabled=${this.loading || this.value === -360} @click=${this.handleCounterClockwiseClick}></cx-icon-button><cx-icon-button data-testid="cx-asset-link-format-rotation-cw" name="rotate_90_degrees_cw" label=${this.localize.term("redo")} outline size="small" ?disabled=${this.loading || this.value === 360} @click=${this.handleClockwiseClick}></cx-icon-button></cx-button-group><cx-input data-testid="cx-asset-link-format-rotation" value=${(this.value + this.defaultValue).toString()} placeholder="0" mask="num" .maskBlocks=${{ num: { mask: Number, max: 360, min: -360, signed: !0 } }} ?disabled=${this.loading} style=${H({
1341
+ return A`<cx-details class="details" ?open=${this.open}><cx-space slot="summary" align-items="center"><div part="icon"><cx-icon name="rotate_90_degrees_cw"></cx-icon></div><cx-typography variant="body2">Rotate</cx-typography></cx-space><cx-space spacing="small"><cx-button-group label=${this.localize.term("history")}><cx-icon-button data-testid="cx-asset-link-format-rotation-ccw" name="rotate_90_degrees_ccw" label=${this.localize.term("undo")} outline size="small" ?disabled=${this.loading || this.value === -360} @click=${this.handleCounterClockwiseClick}></cx-icon-button><cx-icon-button data-testid="cx-asset-link-format-rotation-cw" name="rotate_90_degrees_cw" label=${this.localize.term("redo")} outline size="small" ?disabled=${this.loading || this.value === 360} @click=${this.handleClockwiseClick}></cx-icon-button></cx-button-group><cx-input data-testid="cx-asset-link-format-rotation" value=${(this.value + this.defaultValue).toString()} placeholder="0" mask="num" .maskBlocks=${{ num: { mask: Number, max: 360, min: -360, signed: !0 } }} ?disabled=${this.loading} style=${I({
1319
1342
  flex: "none",
1320
1343
  width: "80px"
1321
1344
  })} @cx-input=${this.handleRotationChange}></cx-input><cx-button data-testid="cx-asset-link-format-rotation-apply" variant="primary" ?disabled=${this.value === this.lastAppliedValue} ?loading=${this.loading} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
1322
1345
  }
1323
1346
  };
1324
- M.styles = [U, ke];
1347
+ M.styles = [U, Ce];
1325
1348
  M.dependencies = {
1326
- "cx-button": j,
1327
- "cx-button-group": Gt,
1349
+ "cx-button": V,
1350
+ "cx-button-group": Qt,
1328
1351
  "cx-details": Z,
1329
1352
  "cx-icon": Y,
1330
1353
  "cx-icon-button": mt,
1331
1354
  "cx-space": D,
1332
1355
  "cx-typography": T
1333
1356
  };
1334
- B([
1357
+ j([
1335
1358
  J(".details")
1336
1359
  ], M.prototype, "base", 2);
1337
- B([
1360
+ j([
1338
1361
  h({ reflect: !0, type: Boolean })
1339
1362
  ], M.prototype, "open", 2);
1340
- B([
1363
+ j([
1341
1364
  h({ reflect: !0, type: Number })
1342
1365
  ], M.prototype, "value", 2);
1343
- B([
1366
+ j([
1344
1367
  h({ attribute: "default-value", reflect: !0, type: Number })
1345
1368
  ], M.prototype, "defaultValue", 2);
1346
- B([
1369
+ j([
1347
1370
  h({ reflect: !0, type: Boolean })
1348
1371
  ], M.prototype, "loading", 2);
1349
- B([
1372
+ j([
1350
1373
  h({ attribute: "last-applied-value", reflect: !0, type: Number })
1351
1374
  ], M.prototype, "lastAppliedValue", 2);
1352
- B([
1375
+ j([
1353
1376
  R("open", { waitUntilFirstUpdate: !0 })
1354
1377
  ], M.prototype, "handleOpenChange", 1);
1355
- M = B([
1378
+ M = j([
1356
1379
  q("cx-asset-link-format-rotation")
1357
1380
  ], M);
1358
- const $e = L`cx-details::part(base){border-bottom-width:0}`;
1359
- var Pe = Object.defineProperty, _e = Object.getOwnPropertyDescriptor, lt = (t, e, i, s) => {
1360
- for (var a = s > 1 ? void 0 : s ? _e(e, i) : e, r = t.length - 1, n; r >= 0; r--)
1381
+ const Pe = O`cx-details::part(base){border-bottom-width:0}`;
1382
+ var _e = Object.defineProperty, Me = Object.getOwnPropertyDescriptor, lt = (t, e, i, s) => {
1383
+ for (var a = s > 1 ? void 0 : s ? Me(e, i) : e, r = t.length - 1, n; r >= 0; r--)
1361
1384
  (n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
1362
- return s && a && Pe(e, i, a), a;
1385
+ return s && a && _e(e, i, a), a;
1363
1386
  };
1364
1387
  let W = class extends N {
1365
1388
  constructor() {
1366
- super(...arguments), this.localize = new O(this), this.open = !1, this.value = !1;
1389
+ super(...arguments), this.localize = new L(this), this.open = !1, this.value = !1;
1367
1390
  }
1368
1391
  handleApply(t) {
1369
1392
  this.emit("cx-asset-link-format-metadata-change", {
@@ -1387,17 +1410,17 @@ let W = class extends N {
1387
1410
  t.target !== this.base && t.stopPropagation();
1388
1411
  }
1389
1412
  render() {
1390
- return b`<cx-details class="details" ?open=${this.open} @cx-show=${this.onShowDetails} @cx-hide=${this.onHideDetails}><cx-space slot="summary" align-items="center"><div class="details__summary__icon"><div part="icon"><cx-icon name="short_text"></cx-icon></div></div><cx-typography variant="body2">${this.localize.term("metadata")}</cx-typography></cx-space><cx-space spacing="small"><cx-tooltip data-testid="cx-asset-link-format-metadata-tooltip" content=${this.localize.term("metadataHelpText")} hoist><cx-checkbox data-testid="cx-asset-link-format-metadata" class="details__checkbox" ?checked=${this.value} @cx-change=${this.handleApply}>${this.localize.term("preserveMetadata")}</cx-checkbox></cx-tooltip></cx-space></cx-details>`;
1413
+ return A`<cx-details class="details" ?open=${this.open} @cx-show=${this.onShowDetails} @cx-hide=${this.onHideDetails}><cx-space slot="summary" align-items="center"><div class="details__summary__icon"><div part="icon"><cx-icon name="short_text"></cx-icon></div></div><cx-typography variant="body2">${this.localize.term("metadata")}</cx-typography></cx-space><cx-space spacing="small"><cx-tooltip data-testid="cx-asset-link-format-metadata-tooltip" content=${this.localize.term("metadataHelpText")} hoist><cx-checkbox data-testid="cx-asset-link-format-metadata" class="details__checkbox" ?checked=${this.value} @cx-change=${this.handleApply}>${this.localize.term("preserveMetadata")}</cx-checkbox></cx-tooltip></cx-space></cx-details>`;
1391
1414
  }
1392
1415
  };
1393
- W.styles = [U, $e];
1416
+ W.styles = [U, Pe];
1394
1417
  W.dependencies = {
1395
- "cx-button": j,
1396
- "cx-checkbox": Qt,
1418
+ "cx-button": V,
1419
+ "cx-checkbox": Kt,
1397
1420
  "cx-details": Z,
1398
1421
  "cx-icon": Y,
1399
1422
  "cx-space": D,
1400
- "cx-tooltip": It,
1423
+ "cx-tooltip": Ht,
1401
1424
  "cx-typography": T
1402
1425
  };
1403
1426
  lt([
@@ -1412,14 +1435,14 @@ lt([
1412
1435
  W = lt([
1413
1436
  q("cx-asset-link-format-metadata")
1414
1437
  ], W);
1415
- var Me = Object.defineProperty, Fe = Object.getOwnPropertyDescriptor, d = (t, e, i, s) => {
1416
- for (var a = s > 1 ? void 0 : s ? Fe(e, i) : e, r = t.length - 1, n; r >= 0; r--)
1438
+ var Fe = Object.defineProperty, Ee = Object.getOwnPropertyDescriptor, d = (t, e, i, s) => {
1439
+ for (var a = s > 1 ? void 0 : s ? Ee(e, i) : e, r = t.length - 1, n; r >= 0; r--)
1417
1440
  (n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
1418
- return s && a && Me(e, i, a), a;
1441
+ return s && a && Fe(e, i, a), a;
1419
1442
  };
1420
1443
  let p = class extends N {
1421
1444
  constructor() {
1422
- super(), this.localize = new O(this), this.baseUrl = void 0, this.token = void 0, this.asset = void 0, this.cropModes = [
1445
+ super(), this.localize = new L(this), this.baseUrl = void 0, this.token = void 0, this.asset = void 0, this.cropModes = [
1423
1446
  {
1424
1447
  label: "Free",
1425
1448
  value: "free"
@@ -1504,7 +1527,7 @@ let p = class extends N {
1504
1527
  }, this.rotation = 0, this.defaultSize = {
1505
1528
  height: 0,
1506
1529
  width: 0
1507
- }, this.cropperElement = null, this.parameters = [], this.loading = !1, this.lastAction = void 0, this.frozenIndex = void 0, this.preResetTransformations = void 0, this.apiGetTransformAssetLink = oe, this.apiGetCropFocusMode = he, this.onCropComplete = this.onCropComplete.bind(this), this.onCropDragStart = this.onCropDragStart.bind(this);
1530
+ }, this.cropperElement = null, this.parameters = [], this.loading = !1, this.lastAction = void 0, this.frozenIndex = void 0, this.preResetTransformations = void 0, this.apiGetTransformAssetLink = re, this.apiGetCropFocusMode = le, this.onCropComplete = this.onCropComplete.bind(this), this.onCropDragStart = this.onCropDragStart.bind(this);
1508
1531
  }
1509
1532
  /** True when there are transformations beyond the frozen index (i.e. user has added new ones). */
1510
1533
  get hasUnfrozenTransformations() {
@@ -2502,46 +2525,46 @@ let p = class extends N {
2502
2525
  this.selectedProxy = t ? this.defaultProxy : this.selectedProxy || this.proxies?.[0]?.id || "", this.transformations = [], this.frozenIndex = -1, this.syncQuality();
2503
2526
  }
2504
2527
  render() {
2505
- return b`<div class="asset-link-format" @cx-show=${this.onDetailsShow} @cx-hide=${this.onDetailsHide}>${E(
2528
+ return A`<div class="asset-link-format" @cx-show=${this.onDetailsShow} @cx-hide=${this.onDetailsHide}>${E(
2506
2529
  !this.hideHeader,
2507
- () => b`<cx-space class="asset-link-format__section-header" direction="horizontal" spacing="small" align-items="center" justify-content="space-between"><cx-typography variant="body3">${this.localize.term("transformations")}</cx-typography><cx-space direction="horizontal" spacing="3x-small" align-items="center"><cx-button class="asset-link-format__undo" variant="custom" ?disabled=${!this.hasUnfrozenTransformations && this.preResetTransformations === void 0} @click=${this.handleUndo}>${this.localize.term("undo")}</cx-button>${E(this.canReset, () => b`<cx-button class="asset-link-format__reset" variant="custom" ?disabled=${this.transformations.length === 0} @click=${this.handleReset}>${this.localize.term("reset")}</cx-button>`)}</cx-space></cx-space>`,
2508
- () => Ut
2530
+ () => A`<cx-space class="asset-link-format__section-header" direction="horizontal" spacing="small" align-items="center" justify-content="space-between"><cx-typography variant="body3">${this.localize.term("transformations")}</cx-typography><cx-space direction="horizontal" spacing="3x-small" align-items="center"><cx-button class="asset-link-format__undo" variant="custom" ?disabled=${!this.hasUnfrozenTransformations && this.preResetTransformations === void 0} @click=${this.handleUndo}>${this.localize.term("undo")}</cx-button>${E(this.canReset, () => A`<cx-button class="asset-link-format__reset" variant="custom" ?disabled=${this.transformations.length === 0} @click=${this.handleReset}>${this.localize.term("reset")}</cx-button>`)}</cx-space></cx-space>`,
2531
+ () => qt
2509
2532
  )}
2510
2533
  ${E(
2511
2534
  !this.noFormat,
2512
- () => b`<cx-asset-link-format-proxy class="asset-link-format__details" value=${this.selectedProxy || this.proxies?.[0]?.id || ""} ?open=${this.activeSetting === "cx-asset-link-format-proxy"} .items=${this.formats} ?loading=${this.loading && this.lastAction === c.Proxy} @cx-asset-link-format-proxy-change=${this.onProxyChange}></cx-asset-link-format-proxy>`
2535
+ () => A`<cx-asset-link-format-proxy class="asset-link-format__details" value=${this.selectedProxy || this.proxies?.[0]?.id || ""} ?open=${this.activeSetting === "cx-asset-link-format-proxy"} .items=${this.formats} ?loading=${this.loading && this.lastAction === c.Proxy} @cx-asset-link-format-proxy-change=${this.onProxyChange}></cx-asset-link-format-proxy>`
2513
2536
  )}
2514
2537
  ${E(
2515
2538
  !this.noCrop,
2516
- () => b`<cx-asset-link-format-crop class="asset-link-format__details" ?open=${this.activeSetting === "cx-asset-link-format-crop"} ?disabled-apply=${this.disabledCropApply} ?loading=${this.loading && this.lastAction === c.Crop} ?keep-aspect-ratio=${this.cropSize.keepAspectRatio} focus-mode=${this.cropSize.focusMode} crop-mode=${this.cropSize.cropMode} width=${this.cropSize.width} height=${this.cropSize.height} max-width=${this.asset ? this.lastResizeSize[o.Pixel].width : 1 / 0} max-height=${this.asset ? this.lastResizeSize[o.Pixel].height : 1 / 0} percentage-width=${this.cropSize.percentageWidth} percentage-height=${this.cropSize.percentageHeight} ratio-width=${this.cropSize.ratioWidth} ratio-height=${this.cropSize.ratioHeight} unit=${this.cropSize.unit} .lastAppliedSetting=${this.lastCropSize} .cropModes=${this.cropModes} .focusModes=${this.focusModes} @cx-asset-link-format-crop-mode-change=${this.onCropModeChange} @cx-asset-link-format-crop-focus-mode-change=${this.onCropFocusModeChange} @cx-asset-link-format-crop-change=${this.onCropChange} @cx-asset-link-format-crop-changed=${this.onCropChanged} @cx-asset-link-format-crop-apply=${this.onCropApply}></cx-asset-link-format-crop>`
2539
+ () => A`<cx-asset-link-format-crop class="asset-link-format__details" ?open=${this.activeSetting === "cx-asset-link-format-crop"} ?disabled-apply=${this.disabledCropApply} ?loading=${this.loading && this.lastAction === c.Crop} ?keep-aspect-ratio=${this.cropSize.keepAspectRatio} focus-mode=${this.cropSize.focusMode} crop-mode=${this.cropSize.cropMode} width=${this.cropSize.width} height=${this.cropSize.height} max-width=${this.asset ? this.lastResizeSize[o.Pixel].width : 1 / 0} max-height=${this.asset ? this.lastResizeSize[o.Pixel].height : 1 / 0} percentage-width=${this.cropSize.percentageWidth} percentage-height=${this.cropSize.percentageHeight} ratio-width=${this.cropSize.ratioWidth} ratio-height=${this.cropSize.ratioHeight} unit=${this.cropSize.unit} .lastAppliedSetting=${this.lastCropSize} .cropModes=${this.cropModes} .focusModes=${this.focusModes} @cx-asset-link-format-crop-mode-change=${this.onCropModeChange} @cx-asset-link-format-crop-focus-mode-change=${this.onCropFocusModeChange} @cx-asset-link-format-crop-change=${this.onCropChange} @cx-asset-link-format-crop-changed=${this.onCropChanged} @cx-asset-link-format-crop-apply=${this.onCropApply}></cx-asset-link-format-crop>`
2517
2540
  )}
2518
2541
  ${E(
2519
2542
  !this.noResize,
2520
- () => b`<cx-asset-link-format-resize class="asset-link-format__details" ?open=${this.activeSetting === "cx-asset-link-format-resize"} ?loading=${this.loading && this.lastAction === c.Resize} ?keep-aspect-ratio=${this.resizeSize.keepAspectRatio} width=${this.resizeSize.width} height=${this.resizeSize.height} max-width=${this.asset ? this.imageSize.width : 1 / 0} max-height=${this.asset ? this.imageSize.height : 1 / 0} ratio-width=${this.resizeSize.ratioWidth} ratio-height=${this.resizeSize.ratioHeight} unit=${this.resizeSize.unit} .lastAppliedSetting=${this.lastResizeSize} @cx-asset-link-format-resize-change=${this.onResizeChange} @cx-asset-link-format-resize-apply=${this.onResizeApply}></cx-asset-link-format-resize>`
2543
+ () => A`<cx-asset-link-format-resize class="asset-link-format__details" ?open=${this.activeSetting === "cx-asset-link-format-resize"} ?loading=${this.loading && this.lastAction === c.Resize} ?keep-aspect-ratio=${this.resizeSize.keepAspectRatio} width=${this.resizeSize.width} height=${this.resizeSize.height} max-width=${this.asset ? this.imageSize.width : 1 / 0} max-height=${this.asset ? this.imageSize.height : 1 / 0} ratio-width=${this.resizeSize.ratioWidth} ratio-height=${this.resizeSize.ratioHeight} unit=${this.resizeSize.unit} .lastAppliedSetting=${this.lastResizeSize} @cx-asset-link-format-resize-change=${this.onResizeChange} @cx-asset-link-format-resize-apply=${this.onResizeApply}></cx-asset-link-format-resize>`
2521
2544
  )}
2522
2545
  ${E(
2523
2546
  !this.noRotate,
2524
- () => b`<cx-asset-link-format-rotation class="asset-link-format__details" ?loading=${this.loading && this.lastAction === c.Rotate} ?open=${this.activeSetting === "cx-asset-link-format-rotation"} default-value=${this.selectedFormat?.rotation ?? 0} last-applied-value=${this.lastRotation} value=${this.rotation} @cx-asset-link-format-rotation-change=${this.onRotationChange} @cx-asset-link-format-rotation-apply=${this.onRotationApply}></cx-asset-link-format-rotation>`
2547
+ () => A`<cx-asset-link-format-rotation class="asset-link-format__details" ?loading=${this.loading && this.lastAction === c.Rotate} ?open=${this.activeSetting === "cx-asset-link-format-rotation"} default-value=${this.selectedFormat?.rotation ?? 0} last-applied-value=${this.lastRotation} value=${this.rotation} @cx-asset-link-format-rotation-change=${this.onRotationChange} @cx-asset-link-format-rotation-apply=${this.onRotationApply}></cx-asset-link-format-rotation>`
2525
2548
  )}<cx-asset-link-format-quality class="asset-link-format__details" ?loading=${this.loading && this.lastAction === c.Quality} ?open=${this.activeSetting === "cx-asset-link-format-quality"} value=${this.selectedFormat?.quality ?? 100} @cx-asset-link-format-quality-change=${this.onQualityChange}></cx-asset-link-format-quality>${E(
2526
2549
  !this.noMetadata,
2527
- () => b`<cx-asset-link-format-metadata class="asset-link-format__details" ?open=${this.activeSetting === "cx-asset-link-format-metadata"} .value=${this.selectedFormat?.keepMetadata ?? !1} @cx-asset-link-format-metadata-change=${this.onMetadataChange}></cx-asset-link-format-metadata>`
2550
+ () => A`<cx-asset-link-format-metadata class="asset-link-format__details" ?open=${this.activeSetting === "cx-asset-link-format-metadata"} .value=${this.selectedFormat?.keepMetadata ?? !1} @cx-asset-link-format-metadata-change=${this.onMetadataChange}></cx-asset-link-format-metadata>`
2528
2551
  )}
2529
2552
  ${E(
2530
2553
  this.useCustomExtension,
2531
- () => b`<cx-asset-link-format-extension .items=${this.extensions} value=${this.selectedFormat?.extension ?? ""} @cx-asset-link-format-extension-change=${this.onExtensionChange}></cx-asset-link-format-extension>`
2554
+ () => A`<cx-asset-link-format-extension .items=${this.extensions} value=${this.selectedFormat?.extension ?? ""} @cx-asset-link-format-extension-change=${this.onExtensionChange}></cx-asset-link-format-extension>`
2532
2555
  )}</div>`;
2533
2556
  }
2534
2557
  };
2535
- p.styles = [U, le];
2558
+ p.styles = [U, ce];
2536
2559
  p.dependencies = {
2537
2560
  "cx-asset-link-format-crop": g,
2538
- "cx-asset-link-format-extension": V,
2561
+ "cx-asset-link-format-extension": B,
2539
2562
  "cx-asset-link-format-metadata": W,
2540
2563
  "cx-asset-link-format-proxy": _,
2541
2564
  "cx-asset-link-format-quality": F,
2542
- "cx-asset-link-format-resize": w,
2565
+ "cx-asset-link-format-resize": z,
2543
2566
  "cx-asset-link-format-rotation": M,
2544
- "cx-button": j,
2567
+ "cx-button": V,
2545
2568
  "cx-space": D,
2546
2569
  "cx-typography": T
2547
2570
  };
@@ -2664,20 +2687,21 @@ export {
2664
2687
  ut as D,
2665
2688
  Pt as F,
2666
2689
  X as O,
2667
- xi as a,
2690
+ yi as a,
2668
2691
  _t as b,
2669
2692
  vt as c,
2670
- gi as d,
2693
+ xi as d,
2671
2694
  kt as e,
2672
- ee as f,
2695
+ ie as f,
2673
2696
  Wt as g,
2674
- Si as h,
2675
- yi as i,
2676
- Tt as j,
2677
- at as k,
2678
- Ct as l,
2679
- Rt as m,
2680
- Mt as n,
2681
- Xt as o,
2682
- Kt as u
2697
+ bi as h,
2698
+ Ai as i,
2699
+ Si as j,
2700
+ Tt as k,
2701
+ at as l,
2702
+ Ct as m,
2703
+ Rt as n,
2704
+ Mt as o,
2705
+ Zt as p,
2706
+ Xt as u
2683
2707
  };