@orangelogic/design-system 3.20.0 → 3.21.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 (237) hide show
  1. package/library/chunks/{_baseXor.DixEm6JQ.js → _baseXor.BCxbgizO.js} +2 -2
  2. package/library/chunks/{asset-link-format.BnE0FbUH.js → asset-link-format.DjxLUjGN.js} +619 -611
  3. package/library/chunks/{button.D1YIxtv-.js → button.CklW2xIt.js} +3 -3
  4. package/library/chunks/button.styles.D3GdfF7I.js +5 -0
  5. package/library/chunks/{color-swatch-group.GEu5gVrg.js → color-swatch-group.B_eqaBlU.js} +3354 -2925
  6. package/library/chunks/color.CIHdfM_a.js +187 -0
  7. package/library/chunks/{confirm-popover.CJXyEa5A.js → confirm-popover.T7M1IynK.js} +4 -4
  8. package/library/chunks/content-builder.CBBdfVOl.js +55 -0
  9. package/library/chunks/{dialog.BbQ4Du0M.js → dialog.ATeOYqwC.js} +2 -2
  10. package/library/chunks/{document-viewer.Bkf3JbWk.js → document-viewer.DcR3RRh7.js} +10 -9
  11. package/library/chunks/{dom.DL-cNKsj.js → dom.D0lSUoEI.js} +1 -1
  12. package/library/chunks/{dot-pagination.CJRAtM51.js → dot-pagination.BrDTro_E.js} +1 -1
  13. package/library/chunks/{folder-select.D8_6pC8Y.js → folder-select.ChVr6nVx.js} +5 -5
  14. package/library/chunks/{form.DN2v7-DH.js → form.LpappO1d.js} +1 -1
  15. package/library/chunks/{header.BioJzPlg.js → header.BeRkHwrR.js} +132 -90
  16. package/library/chunks/{i18n.rtxrs1c1.js → i18n.CcvOGKg6.js} +85 -5
  17. package/library/chunks/{icon-button.CbUddcgI.js → icon-button.CXELPgXm.js} +1 -1
  18. package/library/chunks/{iframe.y7iCAVZP.js → iframe.CT5jmGYk.js} +1 -1
  19. package/library/chunks/{image.A2hE1WoV.js → image.CqTbFbtg.js} +322 -222
  20. package/library/chunks/index.DgCcXGmO.js +1126 -0
  21. package/library/chunks/{input.D1FFprPl.js → input.DRdoQJOD.js} +2 -2
  22. package/library/chunks/{markdown.Dd_GFJK8.js → markdown.BF9bqmMv.js} +3 -3
  23. package/library/chunks/{menu-item.0TbnDEDp.js → menu-item.C0sQ8KjF.js} +1 -1
  24. package/library/chunks/{option.CyorNG0S.js → option.mXqrZbpB.js} +1 -1
  25. package/library/chunks/{pagination.D0BeaEIi.js → pagination.C5DtaMQU.js} +36 -32
  26. package/library/chunks/{position-picker.DjnhxIKF.js → position-picker.qkbJlboF.js} +12 -0
  27. package/library/chunks/responsive.BmBJSzC4.js +17 -0
  28. package/library/chunks/{string.Demn8Xmk.js → string.CfI2ejyR.js} +3 -3
  29. package/library/chunks/{tab-group.C98CWzEH.js → tab-group.OEwvRv7m.js} +312 -310
  30. package/library/chunks/toast.D3AW3RWv.js +94 -0
  31. package/library/chunks/transformation.BwQ_H-4q.js +351 -0
  32. package/library/chunks/{tree.DB-QLic1.js → tree.DlO3BFjn.js} +1 -1
  33. package/library/chunks/{types.DrJgdbwu.js → types.VFIFor5z.js} +57968 -35404
  34. package/library/chunks/typography.BLYdTF0n.js +102 -0
  35. package/library/components/alert.js +2 -2
  36. package/library/components/asset-link-format.js +6 -6
  37. package/library/components/atoms.js +161 -159
  38. package/library/components/audio.js +3 -3
  39. package/library/components/bicolor-picker.js +2 -2
  40. package/library/components/border-input-group.js +2 -2
  41. package/library/components/box.d.ts +3 -0
  42. package/library/components/box.js +22 -0
  43. package/library/components/breadcrumb.js +1 -1
  44. package/library/components/button.js +4 -4
  45. package/library/components/card.js +7 -7
  46. package/library/components/checkbox.js +1 -1
  47. package/library/components/color-picker.js +36 -32
  48. package/library/components/color-swatch-group.js +8 -7
  49. package/library/components/color-swatch.js +246 -22
  50. package/library/components/confirm-popover.js +5 -5
  51. package/library/components/copy-button.js +2 -2
  52. package/library/components/corner-position-input-group.js +3 -3
  53. package/library/components/date-calendar.js +1 -1
  54. package/library/components/details.js +19 -19
  55. package/library/components/dialog.js +3 -3
  56. package/library/components/diff.js +1 -1
  57. package/library/components/document-viewer.js +4 -4
  58. package/library/components/dot-pagination.js +2 -2
  59. package/library/components/drawer.js +2 -2
  60. package/library/components/dropdown.js +2 -2
  61. package/library/components/dynamic-select.js +95 -92
  62. package/library/components/e-chart.js +1 -1
  63. package/library/components/element-clamp.js +2 -2
  64. package/library/components/file-on-demand.js +12 -12
  65. package/library/components/folder-select.js +5 -5
  66. package/library/components/format-bytes.js +1 -1
  67. package/library/components/format-date.js +1 -1
  68. package/library/components/format-number.js +1 -1
  69. package/library/components/format-time.js +1 -1
  70. package/library/components/header.js +6 -3
  71. package/library/components/icon-button.js +2 -2
  72. package/library/components/iframe.js +2 -2
  73. package/library/components/image-comparer.js +1 -1
  74. package/library/components/image.js +4 -3
  75. package/library/components/input.js +3 -3
  76. package/library/components/line-clamp.js +1 -1
  77. package/library/components/markdown.js +4 -4
  78. package/library/components/masonry.js +70 -56
  79. package/library/components/menu-item.js +2 -2
  80. package/library/components/menu.js +2 -2
  81. package/library/components/molecules.js +4 -4
  82. package/library/components/mutation-observer.js +26 -24
  83. package/library/components/option.js +2 -2
  84. package/library/components/organisms.js +2 -2
  85. package/library/components/padding-input-group.js +1 -1
  86. package/library/components/pagination.js +7 -7
  87. package/library/components/popup.js +1 -1
  88. package/library/components/position-picker.js +2 -2
  89. package/library/components/progress-bar.js +1 -1
  90. package/library/components/progress-ring.js +1 -1
  91. package/library/components/radio-button.js +1 -1
  92. package/library/components/radio-card.js +1 -1
  93. package/library/components/radio-group.js +1 -1
  94. package/library/components/range.js +2 -2
  95. package/library/components/rating.js +1 -1
  96. package/library/components/relative-time.js +1 -1
  97. package/library/components/select.js +4 -4
  98. package/library/components/shadow-input-group.js +1 -1
  99. package/library/components/share-option-list.js +3 -3
  100. package/library/components/sidebar.js +1 -1
  101. package/library/components/size-input-group.js +3 -3
  102. package/library/components/spinner.js +1 -1
  103. package/library/components/split-panel.js +1 -1
  104. package/library/components/switch.js +1 -1
  105. package/library/components/tab-group.js +6 -6
  106. package/library/components/tab-panel.js +1 -1
  107. package/library/components/tab.js +16 -16
  108. package/library/components/tag.js +2 -2
  109. package/library/components/textarea.js +1 -1
  110. package/library/components/timecode.js +2 -2
  111. package/library/components/tooltip.js +1 -1
  112. package/library/components/tree-item.js +2 -2
  113. package/library/components/tree.js +2 -2
  114. package/library/components/typeface.js +3 -3
  115. package/library/components/types.js +496 -487
  116. package/library/components/typography.js +3 -2
  117. package/library/components/video.js +4231 -4210
  118. package/library/package.json +1 -1
  119. package/library/packages/atoms/src/components/box/box.d.ts +26 -0
  120. package/library/packages/atoms/src/components/box/box.styles.d.ts +7 -0
  121. package/library/packages/atoms/src/components/button/button.d.ts +4 -0
  122. package/library/packages/atoms/src/components/card/card.d.ts +1 -0
  123. package/library/packages/atoms/src/components/color-picker/color-picker.d.ts +11 -0
  124. package/library/packages/atoms/src/components/copy-button/copy-button.d.ts +1 -0
  125. package/library/packages/atoms/src/components/details/details.d.ts +6 -1
  126. package/library/packages/atoms/src/components/header/header.d.ts +38 -2
  127. package/library/packages/atoms/src/components/image/image.d.ts +14 -0
  128. package/library/packages/atoms/src/components/mutation-observer/mutation-observer.d.ts +1 -1
  129. package/library/packages/atoms/src/components/radio-card/radio-card.d.ts +1 -0
  130. package/library/packages/atoms/src/components/tab/tab.d.ts +17 -0
  131. package/library/packages/atoms/src/components/typography/typography.d.ts +31 -0
  132. package/library/packages/atoms/src/components/video/video.d.ts +18 -0
  133. package/library/packages/atoms/src/index.d.ts +1 -0
  134. package/library/packages/events/src/cx-color-swatch-picker-columns-change.d.ts +15 -0
  135. package/library/packages/events/src/events.d.ts +1 -0
  136. package/library/packages/hybrid/table-core/src/table/components/table-toolbar/table-dropdown-filter.d.ts +2 -0
  137. package/library/packages/hybrid/table-core/src/table/table.d.ts +45 -5
  138. package/library/packages/molecules/src/color-swatch/color-swatch.d.ts +35 -1
  139. package/library/packages/molecules/src/data-tab-group/data-tab-group.d.ts +30 -1
  140. package/library/packages/molecules/src/details-group/details-group.d.ts +105 -3
  141. package/library/packages/molecules/src/dynamic-select/dynamic-select.d.ts +5 -0
  142. package/library/packages/molecules/src/font-picker/font-picker.d.ts +3 -0
  143. package/library/packages/molecules/src/gallery-item/gallery-item.d.ts +10 -0
  144. package/library/packages/molecules/src/index.d.ts +0 -1
  145. package/library/packages/molecules/src/masonry/masonry.d.ts +5 -0
  146. package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +32 -11
  147. package/library/packages/organisms/src/color-swatch-group/color-swatch-group.constants.d.ts +37 -45
  148. package/library/packages/organisms/src/color-swatch-group/color-swatch-group.d.ts +210 -10
  149. package/library/packages/organisms/src/content-builder/blocks/font-kit-advanced/font-kit-advanced.utils.d.ts +85 -0
  150. package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +22 -6
  151. package/library/packages/organisms/src/content-builder/components/block-picker/block-picker.d.ts +24 -8
  152. package/library/packages/organisms/src/content-builder/components/color-swatch-picker/color-swatch-picker.d.ts +70 -1
  153. package/library/packages/organisms/src/content-builder/components/config-form/config-form-controller.d.ts +1 -22
  154. package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +7 -0
  155. package/library/packages/organisms/src/content-builder/components/gallery-config/gallery-config.d.ts +6 -0
  156. package/library/packages/organisms/src/content-builder/components/gallery-picker/gallery-picker.d.ts +1 -0
  157. package/library/packages/organisms/src/content-builder/configs/accordion.d.ts +7 -0
  158. package/library/packages/organisms/src/content-builder/configs/audio.d.ts +1 -0
  159. package/library/packages/organisms/src/content-builder/configs/button.d.ts +2 -1
  160. package/library/packages/organisms/src/content-builder/configs/carousel.d.ts +11 -1
  161. package/library/packages/organisms/src/content-builder/configs/color-swatches.d.ts +19 -1
  162. package/library/packages/organisms/src/content-builder/configs/column-group.d.ts +11 -2
  163. package/library/packages/organisms/src/content-builder/configs/column.d.ts +13 -3
  164. package/library/packages/organisms/src/content-builder/configs/dam-view.d.ts +1 -0
  165. package/library/packages/organisms/src/content-builder/configs/divider.d.ts +1 -0
  166. package/library/packages/organisms/src/content-builder/configs/document-viewer.d.ts +1 -0
  167. package/library/packages/organisms/src/content-builder/configs/font-kit-advanced.d.ts +19 -0
  168. package/library/packages/organisms/src/content-builder/configs/font-kit.d.ts +2 -0
  169. package/library/packages/organisms/src/content-builder/configs/gallery.d.ts +15 -1
  170. package/library/packages/organisms/src/content-builder/configs/header.d.ts +2 -0
  171. package/library/packages/organisms/src/content-builder/configs/image.d.ts +2 -0
  172. package/library/packages/organisms/src/content-builder/configs/index.d.ts +1 -0
  173. package/library/packages/organisms/src/content-builder/configs/search-box.d.ts +5 -1
  174. package/library/packages/organisms/src/content-builder/configs/tab-group.d.ts +7 -4
  175. package/library/packages/organisms/src/content-builder/configs/timeline.d.ts +1 -0
  176. package/library/packages/organisms/src/content-builder/configs/video.d.ts +3 -0
  177. package/library/packages/organisms/src/content-builder/configs-controller.d.ts +155 -13
  178. package/library/packages/organisms/src/content-builder/content-builder-config.d.ts +60 -0
  179. package/library/packages/organisms/src/content-builder/content-builder-constants.d.ts +27 -0
  180. package/library/packages/organisms/src/content-builder/content-builder.d.ts +122 -2
  181. package/library/packages/organisms/src/content-builder/content-builder.sections.utils.d.ts +78 -0
  182. package/library/packages/organisms/src/content-builder/content-builder.utils.d.ts +33 -2
  183. package/library/packages/organisms/src/content-builder/plugins/font-kit-advanced.d.ts +5 -0
  184. package/library/packages/organisms/src/content-builder/plugins/gallery.d.ts +6 -0
  185. package/library/packages/organisms/src/content-builder/plugins/header.d.ts +7 -1
  186. package/library/packages/organisms/src/content-builder/plugins/index.d.ts +2 -1
  187. package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-bubble-menu/rte-bubble-menu.d.ts +21 -1
  188. package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/index.d.ts +2 -0
  189. package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/rte-configs.d.ts +14 -0
  190. package/library/packages/organisms/src/content-builder/plugins/sections/section-fragment-component.d.ts +22 -0
  191. package/library/packages/organisms/src/content-builder/plugins/sections/section-host-mounting.d.ts +15 -0
  192. package/library/packages/organisms/src/content-builder/plugins/sections/sections-canvas-patches.d.ts +20 -0
  193. package/library/packages/organisms/src/content-builder/plugins/sections/sections-plugin.d.ts +7 -0
  194. package/library/packages/organisms/src/content-builder/plugins/toolbar.d.ts +10 -1
  195. package/library/packages/organisms/src/content-builder/plugins/utils/block-width.d.ts +20 -0
  196. package/library/packages/organisms/src/content-builder/styleController.d.ts +9 -5
  197. package/library/packages/organisms/src/content-builder-viewer/content-builder-viewer.d.ts +1 -0
  198. package/library/packages/organisms/src/form/control-renderer/control-renderer.d.ts +170 -0
  199. package/library/packages/organisms/src/form/control-renderer/control-renderer.styles.d.ts +9 -0
  200. package/library/packages/organisms/src/list-editor/list-editor.d.ts +181 -6
  201. package/library/packages/tools/src/fetch-image/fetch-image.d.ts +12 -0
  202. package/library/packages/tools/src/tiptap/extensions/metafield/index.d.ts +12 -0
  203. package/library/packages/tools/src/tiptap/utils/md/schema.d.ts +1 -1
  204. package/library/packages/types/src/asset-link-format.d.ts +0 -1
  205. package/library/packages/types/src/button.d.ts +1 -1
  206. package/library/packages/types/src/color-swatch-group.d.ts +56 -0
  207. package/library/packages/types/src/color-swatch.d.ts +22 -0
  208. package/library/packages/types/src/column.d.ts +13 -0
  209. package/library/packages/types/src/content-builder.d.ts +69 -4
  210. package/library/packages/types/src/details-group.d.ts +80 -0
  211. package/library/packages/types/src/font-kit-advanced.d.ts +28 -0
  212. package/library/packages/types/src/font-kit.d.ts +19 -0
  213. package/library/packages/types/src/font-picker.d.ts +2 -0
  214. package/library/packages/types/src/gallery-item.d.ts +3 -1
  215. package/library/packages/types/src/gallery.d.ts +2 -1
  216. package/library/packages/types/src/index.d.ts +1 -0
  217. package/library/packages/types/src/masonry.d.ts +1 -0
  218. package/library/packages/types/src/position-picker.d.ts +6 -0
  219. package/library/packages/types/src/sb-button.d.ts +7 -0
  220. package/library/packages/types/src/search-box.d.ts +4 -0
  221. package/library/packages/utils/src/color/color.d.ts +27 -3
  222. package/library/packages/utils/src/custom-element/i18n.d.ts +86 -2
  223. package/library/packages/utils/src/font/font.d.ts +12 -0
  224. package/library/packages/utils/src/transformation/transformation.d.ts +11 -3
  225. package/library/react-web-component.d.ts +510 -156
  226. package/library/utils.js +417 -397
  227. package/package.json +1 -1
  228. package/library/chunks/button.styles.BWgHrfLD.js +0 -5
  229. package/library/chunks/color-swatch.DdsUysbF.js +0 -223
  230. package/library/chunks/color.LzSGBy7o.js +0 -164
  231. package/library/chunks/index.Ct-dh3Y5.js +0 -20122
  232. package/library/chunks/toast.CGIDPKV8.js +0 -109
  233. package/library/chunks/transformation.OaRYixzE.js +0 -385
  234. package/library/chunks/typography.T72DuoCa.js +0 -52
  235. package/library/packages/molecules/src/search-box/search-box.d.ts +0 -114
  236. package/library/packages/organisms/src/content-builder/plugins/wrapper-container.d.ts +0 -4
  237. /package/library/packages/{molecules/src/search-box/search-box.styles.d.ts → organisms/src/content-builder-viewer/content-builder-viewer.styles.d.ts} +0 -0
@@ -1,49 +1,50 @@
1
1
  import "../components/cropper.js";
2
- import { C as K } from "./button.D1YIxtv-.js";
2
+ import { C as Y } from "./button.CklW2xIt.js";
3
3
  import U from "../components/space.js";
4
- import { C as B } from "./typography.T72DuoCa.js";
4
+ import { C as B } from "./typography.BLYdTF0n.js";
5
5
  import { n as h, C as q } from "./lib-cortex-element.CVMmyPMC.js";
6
- import { h as E, a as Dt, C as Nt, S as Yt, b as Jt, c as te, d as ee } from "./endpoints.mJ5S-tIs.js";
6
+ import { h as E, a as Dt, C as Nt, S as Jt, b as te, c as ee, d as ie } from "./endpoints.mJ5S-tIs.js";
7
7
  import "./browser.BHOCIF_A.js";
8
8
  import { i as j, x as C, E as Ot } from "./lit-element.jLBm65_O.js";
9
- import "./form.DN2v7-DH.js";
10
- import { L as V } from "./i18n.rtxrs1c1.js";
11
- import { a as ie } from "./string.Demn8Xmk.js";
9
+ import "./form.LpappO1d.js";
10
+ import { L as V } from "./i18n.CcvOGKg6.js";
11
+ import { a as se } from "./string.CfI2ejyR.js";
12
12
  import "./date-picker.BGHn6qg8.js";
13
- import { a as bt, r as Lt, b as se, c as ae, d as lt } from "./transformation.OaRYixzE.js";
13
+ import { a as bt, r as Lt, b as ae, c as oe, d as dt } from "./transformation.BwQ_H-4q.js";
14
+ import "./content-builder.CBBdfVOl.js";
14
15
  import "./unsafe-html.Dff7-rCx.js";
15
- import { b as oe } from "./_baseUniq.lwMgmtt2.js";
16
+ import { b as re } from "./_baseUniq.lwMgmtt2.js";
16
17
  import { c as G } from "./component.styles.CAS3c9pM.js";
17
- import { M as ct, U as o, T as m } from "./asset-link-format.ClaYu_v8.js";
18
- import { v as re } from "./v4.CKZ6klMF.js";
19
- import { P as N } from "./position-picker.DjnhxIKF.js";
18
+ import { M as rt, U as o, T as f } from "./asset-link-format.ClaYu_v8.js";
19
+ import { v as ne } from "./v4.CKZ6klMF.js";
20
+ import { P as N } from "./position-picker.qkbJlboF.js";
20
21
  import { c as Q } from "./custom-element.L4WJXn1j.js";
21
22
  import { w as _ } from "./watch.DJF5K-8U.js";
22
- import { s as Mt, a as pt } from "./number.Cx2ncfJJ.js";
23
+ import { s as Mt, a as ut } from "./number.Cx2ncfJJ.js";
23
24
  import { r as $ } from "./state.CSDxrqLd.js";
24
25
  import { n as M } from "./when.Dr1es41R.js";
25
26
  import at from "../components/details.js";
26
27
  import Ut from "../components/divider.js";
27
28
  import { C as ot } from "./icon.BLXWp6CU.js";
28
- import { C as Ct } from "./icon-button.CbUddcgI.js";
29
- import { C as kt } from "./input.D1FFprPl.js";
30
- import { C as yt } from "./option.CyorNG0S.js";
29
+ import { C as Ct } from "./icon-button.CXELPgXm.js";
30
+ import { C as kt } from "./input.DRdoQJOD.js";
31
+ import { C as yt } from "./option.mXqrZbpB.js";
31
32
  import St from "../components/select.js";
32
- import ne from "../components/position-picker.js";
33
- import { c as he } from "./image.Y5c_hFx8.js";
34
- import { e as Y } from "./query.BBf1UFkC.js";
35
- import { c as rt } from "./repeat.CFjcER6_.js";
33
+ import he from "../components/position-picker.js";
34
+ import { c as le } from "./image.Y5c_hFx8.js";
35
+ import { e as J } from "./query.BBf1UFkC.js";
36
+ import { c as nt } from "./repeat.CFjcER6_.js";
36
37
  import { o as O } from "./style-map.llVFPd__.js";
37
38
  import Bt from "../components/tooltip.js";
38
- import le from "../components/button-group.js";
39
- import ce from "../components/checkbox.js";
40
- function pe(t) {
41
- return t && t.length ? oe(t) : [];
39
+ import ce from "../components/button-group.js";
40
+ import pe from "../components/checkbox.js";
41
+ function de(t) {
42
+ return t && t.length ? re(t) : [];
42
43
  }
43
44
  function qt(t) {
44
45
  return typeof t == "object" && t !== null && "URI" in t;
45
46
  }
46
- const de = {
47
+ const ue = {
47
48
  artist: "Artist",
48
49
  color: "Color",
49
50
  createDate: "CreateDate",
@@ -65,7 +66,7 @@ const de = {
65
66
  systemIdentifier: "SystemIdentifier",
66
67
  text: "Text",
67
68
  title: "Title"
68
- }, ue = /* @__PURE__ */ new Set(["mediaDate", "createDate", "editDate"]);
69
+ }, me = /* @__PURE__ */ new Set(["mediaDate", "createDate", "editDate"]);
69
70
  function wt(t) {
70
71
  return !/[\s&+/*"\\:(),'<>~|[\]{}]/.test(t) && !/^(?:OR|AND|NOT)$/.test(t) ? t : `"${t.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
71
72
  }
@@ -73,10 +74,10 @@ function It(t, e) {
73
74
  const s = (Array.isArray(e) ? e : [e]).map((a) => `${t}:${wt(a)}`);
74
75
  return s.length > 1 ? `(${s.join(" OR ")})` : s[0] ?? "";
75
76
  }
76
- function me(t, e) {
77
+ function fe(t, e) {
77
78
  return (Array.isArray(e) ? e : [e]).map((s) => `${t}${s.operator}${s.value}`).join(" AND ");
78
79
  }
79
- function fe(t) {
80
+ function ge(t) {
80
81
  const e = [];
81
82
  for (const i of Object.keys(t)) {
82
83
  const s = i, a = t[s];
@@ -89,11 +90,11 @@ function fe(t) {
89
90
  e.push(It(n, l));
90
91
  continue;
91
92
  }
92
- const r = de[s];
93
+ const r = ue[s];
93
94
  if (r) {
94
- if (ue.has(s)) {
95
+ if (me.has(s)) {
95
96
  e.push(
96
- me(r, a)
97
+ fe(r, a)
97
98
  );
98
99
  continue;
99
100
  }
@@ -117,41 +118,41 @@ function fe(t) {
117
118
  }
118
119
  return e.join(" AND ");
119
120
  }
120
- function dt(t) {
121
+ function mt(t) {
121
122
  if ("and" in t)
122
- return t.and.map(dt).filter(Boolean).join(" AND ");
123
+ return t.and.map(mt).filter(Boolean).join(" AND ");
123
124
  if ("or" in t) {
124
- const e = t.or.map(dt).filter(Boolean);
125
+ const e = t.or.map(mt).filter(Boolean);
125
126
  return e.length > 1 ? `(${e.join(" OR ")})` : e[0] ?? "";
126
127
  }
127
128
  if ("not" in t) {
128
- const e = dt(t.not);
129
+ const e = mt(t.not);
129
130
  return e ? `NOT (${e})` : "";
130
131
  }
131
- return fe(t);
132
+ return ge(t);
132
133
  }
133
- const ge = "CoreField.LargeSizePreview", ut = "CoreField.DocType", Rt = "Document.Title", xe = "Document.CaptionLong", nt = "Document.FileExtension", mt = "CoreField.FileSize", Et = "CoreField.Identifier", Ui = "CoreField.MaxHeight", Bi = "CoreField.MaxWidth", ft = "Document.RecordID", Ht = "CoreField.DocSubType", gt = "CoreField.TitleWithFallback", st = "CoreField.OriginalFileName", jt = "__width", Vt = "__height", ye = "CoreField.OriginalPreview", qi = "Document.DocSubType", ji = "Document.InPoint", Vi = "Document.OutPoint", Tt = {
134
+ const xe = "CoreField.LargeSizePreview", ht = "CoreField.DocType", Rt = "Document.Title", ye = "Document.CaptionLong", lt = "Document.FileExtension", ft = "CoreField.FileSize", Et = "CoreField.Identifier", qi = "CoreField.MaxHeight", ji = "CoreField.MaxWidth", gt = "Document.RecordID", Ht = "CoreField.DocSubType", xt = "CoreField.TitleWithFallback", st = "CoreField.OriginalFileName", jt = "__width", Vt = "__height", Se = "CoreField.OriginalPreview", Vi = "Document.DocSubType", Gi = "Document.InPoint", Qi = "Document.OutPoint", Tt = {
134
135
  DEFAULT_VIEW_SIZE: "Document.LargeSizePreview",
135
136
  ORIGINAL_VIEW_SIZE: "Document.OriginalPreview"
136
137
  }, Gt = {
137
- [ge]: Tt.DEFAULT_VIEW_SIZE,
138
- [ye]: Tt.ORIGINAL_VIEW_SIZE
139
- }, Se = Object.fromEntries(
138
+ [xe]: Tt.DEFAULT_VIEW_SIZE,
139
+ [Se]: Tt.ORIGINAL_VIEW_SIZE
140
+ }, Ae = Object.fromEntries(
140
141
  Object.entries(Gt).map(([t, e]) => [
141
142
  e,
142
143
  t
143
144
  ])
144
145
  );
145
- function Ae(t) {
146
- return Gt[t] ?? t;
147
- }
148
146
  function ve(t) {
149
- return t === gt ? [Rt, st] : [Ae(t)];
147
+ return Gt[t] ?? t;
150
148
  }
151
149
  function ze(t) {
150
+ return t === xt ? [Rt, st] : [ve(t)];
151
+ }
152
+ function be(t) {
152
153
  const e = {};
153
154
  for (const [i, s] of Object.entries(t)) {
154
- const a = Se[i] ?? i;
155
+ const a = Ae[i] ?? i;
155
156
  e[a] = s;
156
157
  }
157
158
  return e;
@@ -161,7 +162,7 @@ function Qt(t, e, i) {
161
162
  const s = e[i];
162
163
  return s != null && qt(s) && (typeof s.Width == "number" && s.Width > 0 && (t[`${i}${jt}`] = String(s.Width)), typeof s.Height == "number" && s.Height > 0 && (t[`${i}${Vt}`] = String(s.Height))), t;
163
164
  }
164
- function be(t) {
165
+ function we(t) {
165
166
  const e = new URLSearchParams();
166
167
  for (const [i, s] of Object.entries(t))
167
168
  s != null && (Array.isArray(s) ? s.forEach((a) => e.append(i, String(a))) : e.append(i, String(s)));
@@ -177,14 +178,14 @@ async function Xt({
177
178
  pageNumber: n,
178
179
  query: l,
179
180
  securityByPassToken: p,
180
- siteUrl: g,
181
+ siteUrl: x,
181
182
  sort: c,
182
- token: f,
183
- useSession: S
183
+ token: u,
184
+ useSession: y
184
185
  }) {
185
- const x = i?.flatMap(ve), d = i?.includes(gt) ?? !1, v = (P) => {
186
- const w = ze(P);
187
- return d && (w[gt] = H(w, Rt) || H(w, st)), w;
186
+ const S = i?.flatMap(ze), d = i?.includes(xt) ?? !1, A = (F) => {
187
+ const z = be(F);
188
+ return d && (z[xt] = H(z, Rt) || H(z, st)), z;
188
189
  }, k = {
189
190
  /*
190
191
  * Opt-in only, never inferred from `isSiteBuilder`: that flag picks the endpoint, and callers set
@@ -194,43 +195,43 @@ async function Xt({
194
195
  */
195
196
  Consistency: t || void 0,
196
197
  CountPerPage: e,
197
- Fields: pe(x),
198
+ Fields: de(S),
198
199
  Format: "json",
199
200
  GetPermanentAssetsPaths: s || void 0,
200
201
  PageNumber: n,
201
- Query: dt(l),
202
+ Query: mt(l),
202
203
  SecurityByPassToken: p || void 0,
203
204
  Sort: c || void 0,
204
- UseSession: S || void 0
205
- }, z = a === "POST";
205
+ UseSession: y || void 0
206
+ }, b = a === "POST";
206
207
  try {
207
208
  return (await E.request({
208
- baseURL: g,
209
- headers: f ? { Authorization: `Bearer ${f}` } : void 0,
209
+ baseURL: x,
210
+ headers: u ? { Authorization: `Bearer ${u}` } : void 0,
210
211
  method: a,
211
212
  // POST large RecordID queries as a urlencoded body to dodge the ~2KB URL cap;
212
213
  // GET keeps the same fields on the query string.
213
- ...z ? { data: be(k) } : { params: k, paramsSerializer: { indexes: null } },
214
+ ...b ? { data: we(k) } : { params: k, paramsSerializer: { indexes: null } },
214
215
  responseType: "json",
215
216
  transformResponse: [
216
217
  ...Array.isArray(E.defaults.transformResponse) ? E.defaults.transformResponse : [],
217
- r ? (w) => ({
218
- items: (w.results?.Items ?? []).map(v),
219
- sort: w.results?.GlobalInfo?.Sort ?? "",
220
- totalCount: w.results?.GlobalInfo?.TotalCount ?? 0
221
- }) : (w) => ({
222
- items: (w.APIResponse?.Items ?? []).map(v),
223
- sort: w.APIResponse?.GlobalInfo?.Sort ?? "",
224
- totalCount: w.APIResponse?.GlobalInfo?.TotalCount ?? 0
218
+ r ? (z) => ({
219
+ items: (z.results?.Items ?? []).map(A),
220
+ sort: z.results?.GlobalInfo?.Sort ?? "",
221
+ totalCount: z.results?.GlobalInfo?.TotalCount ?? 0
222
+ }) : (z) => ({
223
+ items: (z.APIResponse?.Items ?? []).map(A),
224
+ sort: z.APIResponse?.GlobalInfo?.Sort ?? "",
225
+ totalCount: z.APIResponse?.GlobalInfo?.TotalCount ?? 0
225
226
  })
226
227
  ],
227
- url: r ? Nt.SEARCH_ASSETS : Yt["4.0"]
228
+ url: r ? Nt.SEARCH_ASSETS : Jt["4.0"]
228
229
  })).data;
229
230
  } catch {
230
231
  return { items: [], sort: "", totalCount: 0 };
231
232
  }
232
233
  }
233
- async function we({
234
+ async function Ce({
234
235
  assetId: t,
235
236
  extension: e,
236
237
  format: i,
@@ -246,7 +247,7 @@ async function we({
246
247
  params: {
247
248
  SourceAssetFormat: i,
248
249
  SourceAssetRecordID: t,
249
- TargetExtension: ie(e),
250
+ TargetExtension: se(e),
250
251
  Token: a || void 0,
251
252
  Transformations: r,
252
253
  UseSession: n || void 0
@@ -262,14 +263,14 @@ async function we({
262
263
  return null;
263
264
  }
264
265
  }
265
- const Ce = 50;
266
- function ke(t, e) {
266
+ const ke = 50;
267
+ function Re(t, e) {
267
268
  const i = [];
268
269
  for (let s = 0; s < t.length; s += e)
269
270
  i.push(t.slice(s, s + e));
270
271
  return i;
271
272
  }
272
- async function Re({
273
+ async function $e({
273
274
  consistency: t,
274
275
  extraFields: e,
275
276
  getPermanentAssetsPaths: i,
@@ -284,10 +285,10 @@ async function Re({
284
285
  ...l,
285
286
  st,
286
287
  Rt,
287
- xe,
288
- ft
289
- ], g = ke(a, Ce), c = await Promise.all(
290
- g.map(
288
+ ye,
289
+ gt
290
+ ], x = Re(a, ke), c = await Promise.all(
291
+ x.map(
291
292
  (d) => Xt({
292
293
  consistency: t,
293
294
  countPerPage: d.length,
@@ -301,26 +302,26 @@ async function Re({
301
302
  token: n
302
303
  })
303
304
  )
304
- ), f = new Map(a.map((d, v) => [d, v])), S = c.flatMap((d) => d.items).map((d) => ({
305
+ ), u = new Map(a.map((d, A) => [d, A])), y = c.flatMap((d) => d.items).map((d) => ({
305
306
  name: H(d, st),
306
- recordId: H(d, ft),
307
+ recordId: H(d, gt),
307
308
  ...l.reduce(
308
- (v, k) => Qt(v, d, k),
309
+ (A, k) => Qt(A, d, k),
309
310
  {}
310
311
  )
311
312
  })).sort(
312
- (d, v) => (f.get(d.recordId) ?? 1 / 0) - (f.get(v.recordId) ?? 1 / 0)
313
- ), x = c.reduce(
314
- (d, v) => d + v.totalCount,
313
+ (d, A) => (u.get(d.recordId) ?? 1 / 0) - (u.get(A.recordId) ?? 1 / 0)
314
+ ), S = c.reduce(
315
+ (d, A) => d + A.totalCount,
315
316
  0
316
317
  );
317
- return { facets: [], items: S, totalCount: x };
318
+ return { facets: [], items: y, totalCount: S };
318
319
  }
319
320
  function H(t, e) {
320
321
  const i = t[e];
321
322
  return i == null ? "" : typeof i == "string" ? i : typeof i == "number" || typeof i == "boolean" ? String(i) : qt(i) ? i.URI : "";
322
323
  }
323
- async function $e({
324
+ async function Pe({
324
325
  consistency: t,
325
326
  countPerPage: e,
326
327
  directParentFolderIdentifier: i,
@@ -330,29 +331,29 @@ async function $e({
330
331
  limitedDocTypes: n,
331
332
  pageNumber: l,
332
333
  parentFolderIdentifier: p,
333
- searchTerm: g,
334
+ searchTerm: x,
334
335
  securityByPassToken: c,
335
- sortOrder: f,
336
- token: S
336
+ sortOrder: u,
337
+ token: y
337
338
  }) {
338
339
  if (!i && !p)
339
340
  return { facets: [], items: [], totalCount: 0 };
340
- const x = (s?.filter((z) => z && typeof z == "string") ?? []).map((z) => z.replace("%20", " ")), d = {
341
+ const S = (s?.filter((b) => b && typeof b == "string") ?? []).map((b) => b.replace("%20", " ")), d = {
341
342
  directParentFolderIdentifier: i,
342
343
  parentFolderIdentifier: p,
343
344
  ...n && n.length > 0 ? { docType: n } : {}
344
- }, v = await Xt({
345
+ }, A = await Xt({
345
346
  consistency: t,
346
347
  countPerPage: e,
347
348
  fields: [
348
- ...x,
349
- gt,
350
- mt,
351
- ut,
349
+ ...S,
350
+ xt,
351
+ ft,
352
+ ht,
352
353
  Ht,
353
354
  Et,
354
- nt,
355
- ft,
355
+ lt,
356
+ gt,
356
357
  st
357
358
  ],
358
359
  getPermanentAssetsPaths: a,
@@ -361,22 +362,22 @@ async function $e({
361
362
  query: d,
362
363
  securityByPassToken: c,
363
364
  sort: void 0,
364
- token: S
365
- }), k = v.items.map((z) => {
366
- let P = H(z, nt);
367
- P && !P.startsWith(".") && (P = "." + P);
368
- const w = H(z, ft);
365
+ token: y
366
+ }), k = A.items.map((b) => {
367
+ let F = H(b, lt);
368
+ F && !F.startsWith(".") && (F = "." + F);
369
+ const z = H(b, gt);
369
370
  return {
370
- docSubType: H(z, Ht),
371
- docType: H(z, ut) || "",
372
- extension: P,
373
- id: w,
374
- identifier: H(z, Et),
375
- name: H(z, st),
376
- recordId: w,
377
- size: H(z, mt) || "0 MB",
378
- ...x.reduce(
379
- (tt, et) => Qt(tt, z, et),
371
+ docSubType: H(b, Ht),
372
+ docType: H(b, ht) || "",
373
+ extension: F,
374
+ id: z,
375
+ identifier: H(b, Et),
376
+ name: H(b, st),
377
+ recordId: z,
378
+ size: H(b, ft) || "0 MB",
379
+ ...S.reduce(
380
+ (et, it) => Qt(et, b, it),
380
381
  {}
381
382
  )
382
383
  };
@@ -384,10 +385,10 @@ async function $e({
384
385
  return {
385
386
  facets: [],
386
387
  items: k,
387
- totalCount: v.totalCount
388
+ totalCount: A.totalCount
388
389
  };
389
390
  }
390
- async function Pe({
391
+ async function Fe({
391
392
  autoCropMode: t,
392
393
  cropHeight: e,
393
394
  cropWidth: i,
@@ -422,7 +423,7 @@ async function Pe({
422
423
  return null;
423
424
  }
424
425
  }
425
- async function Gi({
426
+ async function Xi({
426
427
  assetRecordId: t,
427
428
  isSiteBuilder: e,
428
429
  siteUrl: i,
@@ -453,13 +454,13 @@ async function Gi({
453
454
  width: l.width
454
455
  })) ?? []
455
456
  ],
456
- url: e ? Nt.GET_AVAILABLE_PROXIES : ee
457
+ url: e ? Nt.GET_AVAILABLE_PROXIES : ie
457
458
  })).data;
458
459
  } catch {
459
460
  return [];
460
461
  }
461
462
  }
462
- async function Qi({
463
+ async function Zi({
463
464
  siteUrl: t
464
465
  } = {}) {
465
466
  try {
@@ -480,13 +481,13 @@ async function Qi({
480
481
  formatsByDocType: i.formatsByDocType ?? {}
481
482
  }
482
483
  ],
483
- url: Jt
484
+ url: te
484
485
  })).data;
485
486
  } catch {
486
487
  return { formatsByDocType: {} };
487
488
  }
488
489
  }
489
- async function Xi({
490
+ async function Ki({
490
491
  recordIds: t,
491
492
  rightsToCheck: e
492
493
  }) {
@@ -502,14 +503,14 @@ async function Xi({
502
503
  params: { RecordIDs: t, RightsToCheck: e },
503
504
  paramsSerializer: { indexes: null },
504
505
  responseType: "json",
505
- url: te.GET_AUTHORIZED_OBJECTS
506
+ url: ee.GET_AUTHORIZED_OBJECTS
506
507
  });
507
508
  return s;
508
509
  } catch {
509
510
  return i;
510
511
  }
511
512
  }
512
- const vt = 20, it = "TR1", xt = "TRX", Fe = /* @__PURE__ */ new Set([".gif"]), _e = /* @__PURE__ */ new Set([
513
+ const vt = 20, Z = "TR1", ct = "TRX", _e = /* @__PURE__ */ new Set([".gif"]), Me = /* @__PURE__ */ new Set([
513
514
  ".avif",
514
515
  ".bmp",
515
516
  ".gif",
@@ -520,47 +521,51 @@ const vt = 20, it = "TR1", xt = "TRX", Fe = /* @__PURE__ */ new Set([".gif"]), _
520
521
  ".svg",
521
522
  ".webp"
522
523
  ]);
523
- function Me(t) {
524
+ function Zt(t) {
524
525
  const e = t.toLowerCase(), i = e.startsWith(".") ? e : `.${e}`;
525
- return _e.has(i);
526
+ return Me.has(i);
527
+ }
528
+ function Ie(t, e) {
529
+ return t !== void 0 && t !== "" && t !== rt.Image ? !1 : !e || Zt(e);
526
530
  }
527
531
  function Wt({
528
532
  autoFormat: t,
529
533
  buildSrcset: e,
530
- extension: i,
531
- format: s,
532
- item: a,
533
- manualFormat: r,
534
- size: n
534
+ docType: i,
535
+ extension: s,
536
+ format: a,
537
+ item: r,
538
+ manualFormat: n,
539
+ size: l
535
540
  }) {
536
- const l = i?.toLowerCase() ?? "", p = l.startsWith(".") ? l : `.${l}`, g = `path_${it}`, c = (x, d) => {
537
- const v = a[x];
538
- if (!v)
541
+ const p = s?.toLowerCase() ?? "", x = p.startsWith(".") ? p : `.${p}`, c = `path_${Z}`, u = (d, A) => {
542
+ const k = r[d];
543
+ if (!k)
539
544
  return;
540
- const k = a[`${x}${jt}`], z = a[`${x}${Vt}`], P = t ? bt(v, [], {
541
- autoFormat: !r,
542
- extension: l,
543
- format: d
544
- }) : v;
545
+ const b = r[`${d}${jt}`], F = r[`${d}${Vt}`], z = t ? bt(k, [], {
546
+ autoFormat: !n,
547
+ extension: p,
548
+ format: A
549
+ }) : k;
545
550
  return {
546
- maxHeight: z,
547
- maxWidth: k,
548
- src: P,
549
- srcset: e ? se(P, {
550
- extension: l,
551
- format: d,
552
- maxWidth: ae(r, k)
551
+ maxHeight: F,
552
+ maxWidth: b,
553
+ src: z,
554
+ srcset: e ? ae(z, {
555
+ extension: p,
556
+ format: A,
557
+ maxWidth: oe(n, b)
553
558
  }) : ""
554
559
  };
555
560
  };
556
- if (!r) {
557
- const x = Lt(l, n), d = `path_${x}`;
558
- return c(d, x) ?? c(g, it) ?? {};
561
+ if (!n) {
562
+ const d = Lt(p, l), A = `path_${d}`;
563
+ return u(A, d) ?? u(c, Z) ?? {};
559
564
  }
560
- const f = s ? `path_${s}` : void 0;
561
- return f && a[f] ? c(f, s) ?? {} : !!l && Fe.has(p) ? c(`path_${xt}`, xt) ?? c(g, it) ?? {} : c(g, it) ?? {};
565
+ const y = a ? `path_${a}` : void 0;
566
+ return y && r[y] ? a !== ct || Ie(i, p) ? u(y, a) ?? {} : u(c, Z) ?? {} : !!p && _e.has(x) ? u(`path_${ct}`, ct) ?? u(c, Z) ?? {} : u(c, Z) ?? {};
562
567
  }
563
- class Zi {
568
+ class Yi {
564
569
  constructor(e, i) {
565
570
  this.data = [], this.folderId = "", this.fetchedPages = /* @__PURE__ */ new Set(), this.totalCount = 0, this.maxEnd = 1 / 0, this.pageSize = vt, this.requestEpoch = 0, this.host = e, this.host.addController?.(this);
566
571
  const s = i?.maxEnd;
@@ -605,24 +610,24 @@ class Zi {
605
610
  const l = this.requestEpoch;
606
611
  if (!this.folderId || l !== this.requestEpoch)
607
612
  return this.data;
608
- const p = s ? `path_${s}` : void 0, g = `path_${it}`, c = `path_${xt}`, f = [
613
+ const p = s ? `path_${s}` : void 0, x = `path_${Z}`, c = `path_${ct}`, u = [
609
614
  ...new Set(
610
- [p, g, c].filter(
615
+ [p, x, c].filter(
611
616
  (d) => !!d
612
617
  )
613
618
  )
614
- ], S = Math.floor(r / this.pageSize) + 1, x = Math.floor(e / this.pageSize) + 1;
615
- for (let d = S; d <= x; d++) {
619
+ ], y = Math.floor(r / this.pageSize) + 1, S = Math.floor(e / this.pageSize) + 1;
620
+ for (let d = y; d <= S; d++) {
616
621
  if (this.fetchedPages.has(d))
617
622
  continue;
618
- const v = await $e({
623
+ const A = await Pe({
619
624
  consistency: this.consistency,
620
625
  countPerPage: this.pageSize,
621
626
  directParentFolderIdentifier: this.folderId,
622
- extraFields: [...i, ...f],
627
+ extraFields: [...i, ...u],
623
628
  getPermanentAssetsPaths: !0,
624
629
  isSiteBuilder: this.isSiteBuilder,
625
- limitedDocTypes: [ct.Image, ct.Audio, ct.Video, ct.Multimedia],
630
+ limitedDocTypes: [rt.Image, rt.Audio, rt.Video, rt.Multimedia],
626
631
  pageNumber: d,
627
632
  searchTerm: "",
628
633
  securityByPassToken: this.securityByPassToken,
@@ -631,46 +636,47 @@ class Zi {
631
636
  });
632
637
  if (l !== this.requestEpoch)
633
638
  return this.data;
634
- if (this.fetchedPages.add(d), !this.totalCount && v.totalCount) {
635
- const z = Math.min(this.maxEnd, v.totalCount);
636
- this.totalCount = z, this.data = Array.from({ length: z }, () => ({
639
+ if (this.fetchedPages.add(d), !this.totalCount && A.totalCount) {
640
+ const b = Math.min(this.maxEnd, A.totalCount);
641
+ this.totalCount = b, this.data = Array.from({ length: b }, () => ({
637
642
  alt: "",
638
- id: `temp-${re()}`,
643
+ id: `temp-${ne()}`,
639
644
  name: "",
640
645
  src: ""
641
646
  }));
642
647
  }
643
648
  const k = (d - 1) * this.pageSize;
644
- for (let z = 0; z < v.items.length; z++) {
645
- const P = k + z;
646
- if (P < this.data.length) {
647
- const w = v.items[z], {
648
- maxHeight: tt,
649
- maxWidth: et,
650
- src: Zt,
651
- srcset: Kt
649
+ for (let b = 0; b < A.items.length; b++) {
650
+ const F = k + b;
651
+ if (F < this.data.length) {
652
+ const z = A.items[b], {
653
+ maxHeight: et,
654
+ maxWidth: it,
655
+ src: Kt,
656
+ srcset: Yt
652
657
  } = Wt({
653
658
  autoFormat: this.autoFormat,
654
659
  buildSrcset: this.buildSrcset,
655
- extension: w.extension,
660
+ docType: z.docType,
661
+ extension: z.extension,
656
662
  format: s,
657
- item: w,
663
+ item: z,
658
664
  manualFormat: a,
659
- size: w.size
665
+ size: z.size
660
666
  });
661
- let ht = Zt, Pt = Kt;
662
- ht && n && n.length > 0 && (ht = bt(ht, n), Pt = ""), this.data[P] = {
663
- alt: w.name,
664
- docType: w.docType,
665
- extension: w.extension,
666
- id: w.id,
667
- maxHeight: tt,
668
- maxWidth: et,
669
- name: w.name,
670
- src: ht,
667
+ let pt = Kt, Pt = Yt;
668
+ pt && n && n.length > 0 && (pt = bt(pt, n), Pt = ""), this.data[F] = {
669
+ alt: z.name,
670
+ docType: z.docType,
671
+ extension: z.extension,
672
+ id: z.id,
673
+ maxHeight: et,
674
+ maxWidth: it,
675
+ name: z.name,
676
+ src: pt,
671
677
  srcset: Pt,
672
678
  ...i.reduce(
673
- (Ft, _t) => (Ft[_t] = w[_t] ?? "", Ft),
679
+ (Ft, _t) => (Ft[_t] = z[_t] ?? "", Ft),
674
680
  {}
675
681
  )
676
682
  };
@@ -687,28 +693,28 @@ class Zi {
687
693
  manualFormat: n = !0,
688
694
  minLimit: l = 5,
689
695
  noPlaceholders: p = !1,
690
- transformations: g
696
+ transformations: x
691
697
  }) {
692
698
  (!this.folderId || this.folderId !== s) && (this.folderId = s, this.resetFolderState()), a && this.resetPageCache();
693
- const c = Math.max(5, l), f = e, S = e + c, x = [...i];
699
+ const c = Math.max(5, l), u = e, y = e + c, S = [...i];
694
700
  await this.fetchImages({
695
- end: S,
696
- extraFields: x.filter((k) => k !== ""),
701
+ end: y,
702
+ extraFields: S.filter((k) => k !== ""),
697
703
  format: r,
698
704
  manualFormat: n,
699
- start: f,
700
- transformations: g
705
+ start: u,
706
+ transformations: x
701
707
  });
702
708
  let d = e - c;
703
709
  d < 0 && (this.totalCount === 0 ? d = 0 : d = Math.max(0, this.totalCount + d));
704
- const v = d + c;
710
+ const A = d + c;
705
711
  return await this.fetchImages({
706
- end: v,
707
- extraFields: x.filter((k) => k !== ""),
712
+ end: A,
713
+ extraFields: S.filter((k) => k !== ""),
708
714
  format: r,
709
715
  manualFormat: n,
710
716
  start: d,
711
- transformations: g
717
+ transformations: x
712
718
  }), p ? this.data.filter((k) => k.id && !k.id.startsWith("temp-")) : this.data;
713
719
  }
714
720
  async fetchImagesByIDs({
@@ -720,49 +726,50 @@ class Zi {
720
726
  }) {
721
727
  if (a.length === 0)
722
728
  return [];
723
- const n = i ? `path_${i}` : void 0, l = `path_${it}`, p = `path_${xt}`, g = [
729
+ const n = i ? `path_${i}` : void 0, l = `path_${Z}`, p = `path_${ct}`, x = [
724
730
  ...new Set(
725
731
  [n, l, p].filter(
726
- (x) => !!x
732
+ (S) => !!S
727
733
  )
728
734
  )
729
- ], c = [nt, mt], f = [...e, ut];
730
- return (await Re({
735
+ ], c = [lt, ft], u = [...e, ht];
736
+ return (await $e({
731
737
  consistency: this.consistency,
732
- extraFields: [...f, ...g, ...c].filter((x) => x !== ""),
738
+ extraFields: [...u, ...x, ...c].filter((S) => S !== ""),
733
739
  getPermanentAssetsPaths: !0,
734
740
  isSiteBuilder: this.isSiteBuilder,
735
741
  recordIds: a,
736
742
  securityByPassToken: this.securityByPassToken,
737
743
  token: this.authToken
738
- })).items.map((x) => {
744
+ })).items.map((S) => {
739
745
  const {
740
746
  maxHeight: d,
741
- maxWidth: v,
747
+ maxWidth: A,
742
748
  src: k,
743
- srcset: z
749
+ srcset: b
744
750
  } = Wt({
745
751
  autoFormat: this.autoFormat,
746
752
  buildSrcset: this.buildSrcset,
747
- extension: x[nt],
753
+ docType: S[ht],
754
+ extension: S[lt],
748
755
  format: i,
749
- item: x,
756
+ item: S,
750
757
  manualFormat: s,
751
- size: x[mt]
758
+ size: S[ft]
752
759
  });
753
- let P = k, w = z;
754
- return P && r && r.length > 0 && (P = bt(P, r), w = ""), {
755
- alt: x.name,
756
- docType: x[ut],
757
- extension: x[nt] || "",
758
- id: x.recordId,
760
+ let F = k, z = b;
761
+ return F && r && r.length > 0 && (F = bt(F, r), z = ""), {
762
+ alt: S.name,
763
+ docType: S[ht],
764
+ extension: S[lt] || "",
765
+ id: S.recordId,
759
766
  maxHeight: d,
760
- maxWidth: v,
761
- name: x.name,
762
- src: P,
763
- srcset: w,
764
- ...f.reduce(
765
- (tt, et) => (tt[et] = x[et] ?? "", tt),
767
+ maxWidth: A,
768
+ name: S.name,
769
+ src: F,
770
+ srcset: z,
771
+ ...u.reduce(
772
+ (et, it) => (et[it] = S[it] ?? "", et),
766
773
  {}
767
774
  )
768
775
  };
@@ -777,18 +784,18 @@ class Zi {
777
784
  noPlaceholders: n = !1,
778
785
  page: l,
779
786
  pageSize: p = 10,
780
- transformations: g
787
+ transformations: x
781
788
  }) {
782
789
  (!this.folderId || this.folderId !== i) && (this.folderId = i, this.resetFolderState()), s && this.resetPageCache();
783
- const c = l * p, f = c + p - 1;
790
+ const c = l * p, u = c + p - 1;
784
791
  return await this.fetchImages({
785
- end: f,
792
+ end: u,
786
793
  extraFields: e,
787
794
  format: a,
788
795
  manualFormat: r,
789
796
  start: c,
790
- transformations: g
791
- }), n ? this.data.filter((S) => S.id && !S.id.startsWith("temp-")) : this.data;
797
+ transformations: x
798
+ }), n ? this.data.filter((y) => y.id && !y.id.startsWith("temp-")) : this.data;
792
799
  }
793
800
  async *fetchImagesInFolderByChunk({
794
801
  chunkSize: e = 10,
@@ -799,7 +806,7 @@ class Zi {
799
806
  format: n,
800
807
  manualFormat: l = !0,
801
808
  start: p = 0,
802
- transformations: g
809
+ transformations: x
803
810
  }) {
804
811
  const c = Math.max(1, e);
805
812
  if ((!this.folderId || this.folderId !== a) && (this.folderId = a, this.resetFolderState()), r && this.resetPageCache(), i !== -1) {
@@ -809,27 +816,27 @@ class Zi {
809
816
  format: n,
810
817
  manualFormat: l,
811
818
  start: p,
812
- transformations: g
819
+ transformations: x
813
820
  }), yield this.data;
814
821
  return;
815
822
  }
816
- let f = p, S = p + c;
823
+ let u = p, y = p + c;
817
824
  if (await this.fetchImages({
818
- end: S,
825
+ end: y,
819
826
  extraFields: s,
820
827
  format: n,
821
828
  manualFormat: l,
822
- start: f,
823
- transformations: g
824
- }), yield this.data, !(!this.totalCount || this.totalCount <= S))
825
- for (; S < this.totalCount; )
826
- f = S, S = Math.min(S + c, this.totalCount), await this.fetchImages({
827
- end: S,
829
+ start: u,
830
+ transformations: x
831
+ }), yield this.data, !(!this.totalCount || this.totalCount <= y))
832
+ for (; y < this.totalCount; )
833
+ u = y, y = Math.min(y + c, this.totalCount), await this.fetchImages({
834
+ end: y,
828
835
  extraFields: s,
829
836
  format: n,
830
837
  manualFormat: l,
831
- start: f,
832
- transformations: g
838
+ start: u,
839
+ transformations: x
833
840
  }), yield this.data;
834
841
  }
835
842
  hostConnected() {
@@ -844,13 +851,13 @@ class Zi {
844
851
  this.resetPageCache();
845
852
  }
846
853
  }
847
- const Ie = j`.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}`, Ee = j`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}`;
848
- var He = Object.defineProperty, Te = Object.getOwnPropertyDescriptor, b = (t, e, i, s) => {
849
- for (var a = s > 1 ? void 0 : s ? Te(e, i) : e, r = t.length - 1, n; r >= 0; r--)
854
+ const Ee = j`.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}`, He = j`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}`;
855
+ var Te = Object.defineProperty, We = Object.getOwnPropertyDescriptor, w = (t, e, i, s) => {
856
+ for (var a = s > 1 ? void 0 : s ? We(e, i) : e, r = t.length - 1, n; r >= 0; r--)
850
857
  (n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
851
- return s && a && He(e, i, a), a;
858
+ return s && a && Te(e, i, a), a;
852
859
  };
853
- let A = class extends q {
860
+ let v = class extends q {
854
861
  constructor() {
855
862
  super(...arguments), this.localize = new V(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.noRatioModes = !1, this.showPositionPicker = !1, this.lastAppliedSetting = {
856
863
  [o.Pixel]: {
@@ -964,7 +971,7 @@ let A = class extends q {
964
971
  const [s, a] = e.split(":").map(Number);
965
972
  if (this.unit === o.Pixel) {
966
973
  let r = s, n = a;
967
- Number.isFinite(this.maxWidth) && Number.isFinite(this.maxHeight) && ({ height: n, width: r } = he(
974
+ Number.isFinite(this.maxWidth) && Number.isFinite(this.maxHeight) && ({ height: n, width: r } = le(
968
975
  this.maxWidth,
969
976
  this.maxHeight,
970
977
  s,
@@ -1086,7 +1093,7 @@ let A = class extends q {
1086
1093
  !this.noRatioModes,
1087
1094
  () => C`<cx-select data-testid="cx-asset-link-format-crop-mode" value=${this.cropMode} hoist style=${O({
1088
1095
  width: "100%"
1089
- })} @cx-change=${this.onCropModeChange} ?disabled=${this.loading}>${rt(
1096
+ })} @cx-change=${this.onCropModeChange} ?disabled=${this.loading}>${nt(
1090
1097
  t,
1091
1098
  (i) => i.value,
1092
1099
  ({ label: i, value: s }) => C`<cx-option value=${s}>${i}</cx-option>`
@@ -1095,7 +1102,7 @@ let A = class extends q {
1095
1102
  e.length > 0,
1096
1103
  () => C`<cx-divider></cx-divider><small>${this.localize.term("autoCropping")}</small>`
1097
1104
  )}
1098
- ${rt(
1105
+ ${nt(
1099
1106
  e,
1100
1107
  (i) => i.value,
1101
1108
  ({ label: i, value: s }) => C`<cx-option value=${s}>${i}</cx-option>`
@@ -1113,7 +1120,7 @@ let A = class extends q {
1113
1120
  this.focusModes.length > 0,
1114
1121
  () => C`<cx-select data-testid="cx-asset-link-format-crop-focus-mode" value=${this.focusMode} hoist style=${O({
1115
1122
  width: "100%"
1116
- })} @cx-change=${this.onFocusModeChange} ?disabled=${this.loading || this.selectedMode?.disabledSize}>${rt(
1123
+ })} @cx-change=${this.onFocusModeChange} ?disabled=${this.loading || this.selectedMode?.disabledSize}>${nt(
1117
1124
  this.focusModes,
1118
1125
  (i) => i.value,
1119
1126
  ({ label: i, value: s }) => C`<cx-option value=${s}>${i}</cx-option>`
@@ -1127,117 +1134,117 @@ let A = class extends q {
1127
1134
  })} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
1128
1135
  }
1129
1136
  };
1130
- A.styles = [G, Ee];
1131
- A.dependencies = {
1132
- "cx-button": K,
1137
+ v.styles = [G, He];
1138
+ v.dependencies = {
1139
+ "cx-button": Y,
1133
1140
  "cx-details": at,
1134
1141
  "cx-divider": Ut,
1135
1142
  "cx-icon": ot,
1136
1143
  "cx-icon-button": Ct,
1137
1144
  "cx-input": kt,
1138
1145
  "cx-option": yt,
1139
- "cx-position-picker": ne,
1146
+ "cx-position-picker": he,
1140
1147
  "cx-select": St,
1141
1148
  "cx-space": U,
1142
1149
  "cx-typography": B
1143
1150
  };
1144
- b([
1145
- Y(".details")
1146
- ], A.prototype, "base", 2);
1147
- b([
1148
- Y("cx-position-picker")
1149
- ], A.prototype, "positionPicker", 2);
1150
- b([
1151
+ w([
1152
+ J(".details")
1153
+ ], v.prototype, "base", 2);
1154
+ w([
1155
+ J("cx-position-picker")
1156
+ ], v.prototype, "positionPicker", 2);
1157
+ w([
1151
1158
  h({ reflect: !0, type: Boolean })
1152
- ], A.prototype, "open", 2);
1153
- b([
1159
+ ], v.prototype, "open", 2);
1160
+ w([
1154
1161
  h({ reflect: !0, type: Number })
1155
- ], A.prototype, "width", 2);
1156
- b([
1162
+ ], v.prototype, "width", 2);
1163
+ w([
1157
1164
  h({ reflect: !0, type: Number })
1158
- ], A.prototype, "height", 2);
1159
- b([
1165
+ ], v.prototype, "height", 2);
1166
+ w([
1160
1167
  h({ attribute: "max-width", reflect: !0, type: Number })
1161
- ], A.prototype, "maxWidth", 2);
1162
- b([
1168
+ ], v.prototype, "maxWidth", 2);
1169
+ w([
1163
1170
  h({ attribute: "max-height", reflect: !0, type: Number })
1164
- ], A.prototype, "maxHeight", 2);
1165
- b([
1171
+ ], v.prototype, "maxHeight", 2);
1172
+ w([
1166
1173
  h({ attribute: "ratio-width", reflect: !0, type: Number })
1167
- ], A.prototype, "ratioWidth", 2);
1168
- b([
1174
+ ], v.prototype, "ratioWidth", 2);
1175
+ w([
1169
1176
  h({ attribute: "ratio-height", reflect: !0, type: Number })
1170
- ], A.prototype, "ratioHeight", 2);
1171
- b([
1177
+ ], v.prototype, "ratioHeight", 2);
1178
+ w([
1172
1179
  h({ attribute: "percentage-width", reflect: !0, type: Number })
1173
- ], A.prototype, "percentageWidth", 2);
1174
- b([
1180
+ ], v.prototype, "percentageWidth", 2);
1181
+ w([
1175
1182
  h({ attribute: "percentage-height", reflect: !0, type: Number })
1176
- ], A.prototype, "percentageHeight", 2);
1177
- b([
1183
+ ], v.prototype, "percentageHeight", 2);
1184
+ w([
1178
1185
  h({ reflect: !0, type: String })
1179
- ], A.prototype, "unit", 2);
1180
- b([
1186
+ ], v.prototype, "unit", 2);
1187
+ w([
1181
1188
  h({ attribute: "disabled-apply", reflect: !0, type: Boolean })
1182
- ], A.prototype, "disabledApply", 2);
1183
- b([
1189
+ ], v.prototype, "disabledApply", 2);
1190
+ w([
1184
1191
  h({ attribute: "no-ratio-modes", reflect: !0, type: Boolean })
1185
- ], A.prototype, "noRatioModes", 2);
1186
- b([
1192
+ ], v.prototype, "noRatioModes", 2);
1193
+ w([
1187
1194
  h({ attribute: "show-position-picker", reflect: !0, type: Boolean })
1188
- ], A.prototype, "showPositionPicker", 2);
1189
- b([
1195
+ ], v.prototype, "showPositionPicker", 2);
1196
+ w([
1190
1197
  h({ attribute: "last-applied-setting", reflect: !1, type: Object })
1191
- ], A.prototype, "lastAppliedSetting", 2);
1192
- b([
1198
+ ], v.prototype, "lastAppliedSetting", 2);
1199
+ w([
1193
1200
  h({ reflect: !0, type: Boolean })
1194
- ], A.prototype, "loading", 2);
1195
- b([
1201
+ ], v.prototype, "loading", 2);
1202
+ w([
1196
1203
  h({ attribute: "crop-modes", reflect: !1, type: Array })
1197
- ], A.prototype, "cropModes", 2);
1198
- b([
1204
+ ], v.prototype, "cropModes", 2);
1205
+ w([
1199
1206
  h({ attribute: "focus-modes", reflect: !1, type: Object })
1200
- ], A.prototype, "focusModes", 2);
1201
- b([
1207
+ ], v.prototype, "focusModes", 2);
1208
+ w([
1202
1209
  h({ attribute: "focus-mode", reflect: !0, type: String })
1203
- ], A.prototype, "focusMode", 2);
1204
- b([
1210
+ ], v.prototype, "focusMode", 2);
1211
+ w([
1205
1212
  h({ attribute: "crop-mode", reflect: !0, type: String })
1206
- ], A.prototype, "cropMode", 2);
1207
- b([
1213
+ ], v.prototype, "cropMode", 2);
1214
+ w([
1208
1215
  h({ reflect: !0, type: String })
1209
- ], A.prototype, "position", 2);
1210
- b([
1216
+ ], v.prototype, "position", 2);
1217
+ w([
1211
1218
  h({ attribute: "keep-aspect-ratio", reflect: !0, type: Boolean })
1212
- ], A.prototype, "keepAspectRatio", 2);
1213
- b([
1219
+ ], v.prototype, "keepAspectRatio", 2);
1220
+ w([
1214
1221
  $()
1215
- ], A.prototype, "invalidWidth", 2);
1216
- b([
1222
+ ], v.prototype, "invalidWidth", 2);
1223
+ w([
1217
1224
  $()
1218
- ], A.prototype, "invalidHeight", 2);
1219
- b([
1225
+ ], v.prototype, "invalidHeight", 2);
1226
+ w([
1220
1227
  $()
1221
- ], A.prototype, "aspectRatio", 2);
1222
- b([
1228
+ ], v.prototype, "aspectRatio", 2);
1229
+ w([
1223
1230
  _("cropMode", { waitUntilFirstUpdate: !0 }),
1224
1231
  _("maxWidth", { waitUntilFirstUpdate: !0 }),
1225
1232
  _("maxHeight", { waitUntilFirstUpdate: !0 }),
1226
1233
  _("keepAspectRatio")
1227
- ], A.prototype, "handleCropModeChange", 1);
1228
- b([
1234
+ ], v.prototype, "handleCropModeChange", 1);
1235
+ w([
1229
1236
  _("open", { waitUntilFirstUpdate: !0 })
1230
- ], A.prototype, "handleOpenChange", 1);
1231
- A = b([
1237
+ ], v.prototype, "handleOpenChange", 1);
1238
+ v = w([
1232
1239
  Q("cx-asset-link-format-crop")
1233
- ], A);
1234
- const We = j`.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%}}`;
1235
- var De = Object.defineProperty, Ne = Object.getOwnPropertyDescriptor, $t = (t, e, i, s) => {
1236
- for (var a = s > 1 ? void 0 : s ? Ne(e, i) : e, r = t.length - 1, n; r >= 0; r--)
1240
+ ], v);
1241
+ const De = j`.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%}}`;
1242
+ var Ne = Object.defineProperty, Oe = Object.getOwnPropertyDescriptor, $t = (t, e, i, s) => {
1243
+ for (var a = s > 1 ? void 0 : s ? Oe(e, i) : e, r = t.length - 1, n; r >= 0; r--)
1237
1244
  (n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
1238
- return s && a && De(e, i, a), a;
1245
+ return s && a && Ne(e, i, a), a;
1239
1246
  };
1240
- let Z = class extends q {
1247
+ let K = class extends q {
1241
1248
  constructor() {
1242
1249
  super(...arguments), this.localize = new V(this), this.value = "", this.items = [];
1243
1250
  }
@@ -1248,15 +1255,15 @@ let Z = class extends q {
1248
1255
  });
1249
1256
  }
1250
1257
  render() {
1251
- return C`<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}>${rt(
1258
+ return C`<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}>${nt(
1252
1259
  this.items,
1253
1260
  (t) => t.value,
1254
1261
  (t) => C`<cx-option value=${t.value}>${t.displayName}</cx-option>`
1255
1262
  )}</cx-select></cx-space>`;
1256
1263
  }
1257
1264
  };
1258
- Z.styles = [G, We];
1259
- Z.dependencies = {
1265
+ K.styles = [G, De];
1266
+ K.dependencies = {
1260
1267
  "cx-option": yt,
1261
1268
  "cx-select": St,
1262
1269
  "cx-space": U,
@@ -1264,18 +1271,18 @@ Z.dependencies = {
1264
1271
  };
1265
1272
  $t([
1266
1273
  h({ reflect: !0, type: String })
1267
- ], Z.prototype, "value", 2);
1274
+ ], K.prototype, "value", 2);
1268
1275
  $t([
1269
1276
  h({ reflect: !1, type: Array })
1270
- ], Z.prototype, "items", 2);
1271
- Z = $t([
1277
+ ], K.prototype, "items", 2);
1278
+ K = $t([
1272
1279
  Q("cx-asset-link-format-extension")
1273
- ], Z);
1274
- const Oe = j`cx-details::part(base){border-bottom-width:0}`;
1275
- var Le = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, D = (t, e, i, s) => {
1276
- for (var a = s > 1 ? void 0 : s ? Ue(e, i) : e, r = t.length - 1, n; r >= 0; r--)
1280
+ ], K);
1281
+ const Le = j`cx-details::part(base){border-bottom-width:0}`;
1282
+ var Ue = Object.defineProperty, Be = Object.getOwnPropertyDescriptor, D = (t, e, i, s) => {
1283
+ for (var a = s > 1 ? void 0 : s ? Be(e, i) : e, r = t.length - 1, n; r >= 0; r--)
1277
1284
  (n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
1278
- return s && a && Le(e, i, a), a;
1285
+ return s && a && Ue(e, i, a), a;
1279
1286
  };
1280
1287
  const zt = "auto";
1281
1288
  let I = class extends q {
@@ -1337,7 +1344,7 @@ let I = class extends q {
1337
1344
  t.target !== this.base && t.stopPropagation();
1338
1345
  }
1339
1346
  render() {
1340
- return C`<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}>${rt(
1347
+ return C`<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}>${nt(
1341
1348
  this.items,
1342
1349
  (t) => t.id,
1343
1350
  (t) => C`<cx-option value=${t.id}>${t.proxyLabel}</cx-option>`
@@ -1351,9 +1358,9 @@ let I = class extends q {
1351
1358
  })} ?disabled=${this.scopedValue === this.committedValue} ?loading=${this.loading} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
1352
1359
  }
1353
1360
  };
1354
- I.styles = [G, Oe];
1361
+ I.styles = [G, Le];
1355
1362
  I.dependencies = {
1356
- "cx-button": K,
1363
+ "cx-button": Y,
1357
1364
  "cx-details": at,
1358
1365
  "cx-divider": Ut,
1359
1366
  "cx-icon": ot,
@@ -1363,7 +1370,7 @@ I.dependencies = {
1363
1370
  "cx-typography": B
1364
1371
  };
1365
1372
  D([
1366
- Y(".details")
1373
+ J(".details")
1367
1374
  ], I.prototype, "base", 2);
1368
1375
  D([
1369
1376
  h({ reflect: !0, type: Boolean })
@@ -1396,11 +1403,11 @@ D([
1396
1403
  I = D([
1397
1404
  Q("cx-asset-link-format-proxy")
1398
1405
  ], I);
1399
- const Be = j`cx-details::part(base){border-bottom-width:0}`;
1400
- var qe = Object.defineProperty, je = Object.getOwnPropertyDescriptor, J = (t, e, i, s) => {
1401
- for (var a = s > 1 ? void 0 : s ? je(e, i) : e, r = t.length - 1, n; r >= 0; r--)
1406
+ const qe = j`cx-details::part(base){border-bottom-width:0}`;
1407
+ var je = Object.defineProperty, Ve = Object.getOwnPropertyDescriptor, tt = (t, e, i, s) => {
1408
+ for (var a = s > 1 ? void 0 : s ? Ve(e, i) : e, r = t.length - 1, n; r >= 0; r--)
1402
1409
  (n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
1403
- return s && a && qe(e, i, a), a;
1410
+ return s && a && je(e, i, a), a;
1404
1411
  };
1405
1412
  let W = class extends q {
1406
1413
  constructor() {
@@ -1453,9 +1460,9 @@ let W = class extends q {
1453
1460
  })} @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>`;
1454
1461
  }
1455
1462
  };
1456
- W.styles = [G, Be];
1463
+ W.styles = [G, qe];
1457
1464
  W.dependencies = {
1458
- "cx-button": K,
1465
+ "cx-button": Y,
1459
1466
  "cx-details": at,
1460
1467
  "cx-icon": ot,
1461
1468
  "cx-input": kt,
@@ -1463,32 +1470,32 @@ W.dependencies = {
1463
1470
  "cx-tooltip": Bt,
1464
1471
  "cx-typography": B
1465
1472
  };
1466
- J([
1467
- Y(".details")
1473
+ tt([
1474
+ J(".details")
1468
1475
  ], W.prototype, "base", 2);
1469
- J([
1476
+ tt([
1470
1477
  h({ reflect: !0, type: Boolean })
1471
1478
  ], W.prototype, "open", 2);
1472
- J([
1479
+ tt([
1473
1480
  h({ reflect: !0, type: Number })
1474
1481
  ], W.prototype, "value", 2);
1475
- J([
1482
+ tt([
1476
1483
  h({ reflect: !0, type: Boolean })
1477
1484
  ], W.prototype, "loading", 2);
1478
- J([
1485
+ tt([
1479
1486
  $()
1480
1487
  ], W.prototype, "scopedValue", 2);
1481
- J([
1488
+ tt([
1482
1489
  _("value")
1483
1490
  ], W.prototype, "handleValueChange", 1);
1484
- W = J([
1491
+ W = tt([
1485
1492
  Q("cx-asset-link-format-quality")
1486
1493
  ], W);
1487
- const Ve = j`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}`;
1488
- var Ge = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, F = (t, e, i, s) => {
1489
- for (var a = s > 1 ? void 0 : s ? Qe(e, i) : e, r = t.length - 1, n; r >= 0; r--)
1494
+ const Ge = j`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}`;
1495
+ var Qe = Object.defineProperty, Xe = Object.getOwnPropertyDescriptor, P = (t, e, i, s) => {
1496
+ for (var a = s > 1 ? void 0 : s ? Xe(e, i) : e, r = t.length - 1, n; r >= 0; r--)
1490
1497
  (n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
1491
- return s && a && Ge(e, i, a), a;
1498
+ return s && a && Qe(e, i, a), a;
1492
1499
  };
1493
1500
  let R = class extends q {
1494
1501
  constructor() {
@@ -1645,9 +1652,9 @@ let R = class extends q {
1645
1652
  })} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
1646
1653
  }
1647
1654
  };
1648
- R.styles = [G, Ve];
1655
+ R.styles = [G, Ge];
1649
1656
  R.dependencies = {
1650
- "cx-button": K,
1657
+ "cx-button": Y,
1651
1658
  "cx-details": at,
1652
1659
  "cx-icon": ot,
1653
1660
  "cx-icon-button": Ct,
@@ -1657,71 +1664,71 @@ R.dependencies = {
1657
1664
  "cx-space": U,
1658
1665
  "cx-typography": B
1659
1666
  };
1660
- F([
1661
- Y(".details")
1667
+ P([
1668
+ J(".details")
1662
1669
  ], R.prototype, "base", 2);
1663
- F([
1670
+ P([
1664
1671
  h({ reflect: !0, type: Boolean })
1665
1672
  ], R.prototype, "open", 2);
1666
- F([
1673
+ P([
1667
1674
  h({ reflect: !0, type: Number })
1668
1675
  ], R.prototype, "width", 2);
1669
- F([
1676
+ P([
1670
1677
  h({ reflect: !0, type: Number })
1671
1678
  ], R.prototype, "height", 2);
1672
- F([
1679
+ P([
1673
1680
  h({ attribute: "max-width", reflect: !0, type: Number })
1674
1681
  ], R.prototype, "maxWidth", 2);
1675
- F([
1682
+ P([
1676
1683
  h({ attribute: "max-height", reflect: !0, type: Number })
1677
1684
  ], R.prototype, "maxHeight", 2);
1678
- F([
1685
+ P([
1679
1686
  h({ attribute: "ratio-width", reflect: !0, type: Number })
1680
1687
  ], R.prototype, "ratioWidth", 2);
1681
- F([
1688
+ P([
1682
1689
  h({ attribute: "ratio-height", reflect: !0, type: Number })
1683
1690
  ], R.prototype, "ratioHeight", 2);
1684
- F([
1691
+ P([
1685
1692
  h({ reflect: !0, type: String })
1686
1693
  ], R.prototype, "unit", 2);
1687
- F([
1694
+ P([
1688
1695
  h({ attribute: "last-applied-setting", reflect: !1, type: Object })
1689
1696
  ], R.prototype, "lastAppliedSetting", 2);
1690
- F([
1697
+ P([
1691
1698
  h({ reflect: !0, type: Boolean })
1692
1699
  ], R.prototype, "loading", 2);
1693
- F([
1700
+ P([
1694
1701
  h({ attribute: "no-ratio-modes", reflect: !0, type: Boolean })
1695
1702
  ], R.prototype, "noRatioModes", 2);
1696
- F([
1703
+ P([
1697
1704
  h({ attribute: "keep-aspect-ratio", reflect: !0, type: Boolean })
1698
1705
  ], R.prototype, "keepAspectRatio", 2);
1699
- F([
1706
+ P([
1700
1707
  $()
1701
1708
  ], R.prototype, "invalidWidth", 2);
1702
- F([
1709
+ P([
1703
1710
  $()
1704
1711
  ], R.prototype, "invalidHeight", 2);
1705
- F([
1712
+ P([
1706
1713
  $()
1707
1714
  ], R.prototype, "aspectRatio", 2);
1708
- F([
1715
+ P([
1709
1716
  _("cropMode", { waitUntilFirstUpdate: !0 }),
1710
1717
  _("maxWidth", { waitUntilFirstUpdate: !0 }),
1711
1718
  _("maxHeight", { waitUntilFirstUpdate: !0 }),
1712
1719
  _("keepAspectRatio")
1713
1720
  ], R.prototype, "handleCropModeChange", 1);
1714
- F([
1721
+ P([
1715
1722
  _("open", { waitUntilFirstUpdate: !0 })
1716
1723
  ], R.prototype, "handleOpenChange", 1);
1717
- R = F([
1724
+ R = P([
1718
1725
  Q("cx-asset-link-format-resize")
1719
1726
  ], R);
1720
- const Xe = j`cx-details::part(base){border-bottom-width:0}`;
1721
- var Ze = Object.defineProperty, Ke = Object.getOwnPropertyDescriptor, X = (t, e, i, s) => {
1722
- for (var a = s > 1 ? void 0 : s ? Ke(e, i) : e, r = t.length - 1, n; r >= 0; r--)
1727
+ const Ze = j`cx-details::part(base){border-bottom-width:0}`;
1728
+ var Ke = Object.defineProperty, Ye = Object.getOwnPropertyDescriptor, X = (t, e, i, s) => {
1729
+ for (var a = s > 1 ? void 0 : s ? Ye(e, i) : e, r = t.length - 1, n; r >= 0; r--)
1723
1730
  (n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
1724
- return s && a && Ze(e, i, a), a;
1731
+ return s && a && Ke(e, i, a), a;
1725
1732
  };
1726
1733
  let T = class extends q {
1727
1734
  constructor() {
@@ -1769,10 +1776,10 @@ let T = class extends q {
1769
1776
  })} @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>`;
1770
1777
  }
1771
1778
  };
1772
- T.styles = [G, Xe];
1779
+ T.styles = [G, Ze];
1773
1780
  T.dependencies = {
1774
- "cx-button": K,
1775
- "cx-button-group": le,
1781
+ "cx-button": Y,
1782
+ "cx-button-group": ce,
1776
1783
  "cx-details": at,
1777
1784
  "cx-icon": ot,
1778
1785
  "cx-icon-button": Ct,
@@ -1780,7 +1787,7 @@ T.dependencies = {
1780
1787
  "cx-typography": B
1781
1788
  };
1782
1789
  X([
1783
- Y(".details")
1790
+ J(".details")
1784
1791
  ], T.prototype, "base", 2);
1785
1792
  X([
1786
1793
  h({ reflect: !0, type: Boolean })
@@ -1803,11 +1810,11 @@ X([
1803
1810
  T = X([
1804
1811
  Q("cx-asset-link-format-rotation")
1805
1812
  ], T);
1806
- const Ye = j`cx-details::part(base){border-bottom-width:0}`;
1807
- var Je = Object.defineProperty, ti = Object.getOwnPropertyDescriptor, At = (t, e, i, s) => {
1808
- for (var a = s > 1 ? void 0 : s ? ti(e, i) : e, r = t.length - 1, n; r >= 0; r--)
1813
+ const Je = j`cx-details::part(base){border-bottom-width:0}`;
1814
+ var ti = Object.defineProperty, ei = Object.getOwnPropertyDescriptor, At = (t, e, i, s) => {
1815
+ for (var a = s > 1 ? void 0 : s ? ei(e, i) : e, r = t.length - 1, n; r >= 0; r--)
1809
1816
  (n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
1810
- return s && a && Je(e, i, a), a;
1817
+ return s && a && ti(e, i, a), a;
1811
1818
  };
1812
1819
  let L = class extends q {
1813
1820
  constructor() {
@@ -1838,10 +1845,10 @@ let L = class extends q {
1838
1845
  return C`<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>`;
1839
1846
  }
1840
1847
  };
1841
- L.styles = [G, Ye];
1848
+ L.styles = [G, Je];
1842
1849
  L.dependencies = {
1843
- "cx-button": K,
1844
- "cx-checkbox": ce,
1850
+ "cx-button": Y,
1851
+ "cx-checkbox": pe,
1845
1852
  "cx-details": at,
1846
1853
  "cx-icon": ot,
1847
1854
  "cx-space": U,
@@ -1849,7 +1856,7 @@ L.dependencies = {
1849
1856
  "cx-typography": B
1850
1857
  };
1851
1858
  At([
1852
- Y(".details")
1859
+ J(".details")
1853
1860
  ], L.prototype, "base", 2);
1854
1861
  At([
1855
1862
  h({ reflect: !0, type: Boolean })
@@ -1860,12 +1867,12 @@ At([
1860
1867
  L = At([
1861
1868
  Q("cx-asset-link-format-metadata")
1862
1869
  ], L);
1863
- var ei = Object.defineProperty, ii = Object.getOwnPropertyDescriptor, y = (t, e, i, s) => {
1864
- for (var a = s > 1 ? void 0 : s ? ii(e, i) : e, r = t.length - 1, n; r >= 0; r--)
1870
+ var ii = Object.defineProperty, si = Object.getOwnPropertyDescriptor, g = (t, e, i, s) => {
1871
+ for (var a = s > 1 ? void 0 : s ? si(e, i) : e, r = t.length - 1, n; r >= 0; r--)
1865
1872
  (n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
1866
- return s && a && ei(e, i, a), a;
1873
+ return s && a && ii(e, i, a), a;
1867
1874
  };
1868
- let u = class extends q {
1875
+ let m = class extends q {
1869
1876
  constructor() {
1870
1877
  super(), this.localize = new V(this), this.baseUrl = void 0, this.token = void 0, this.asset = void 0, this.cropModes = [
1871
1878
  {
@@ -1963,7 +1970,7 @@ let u = class extends q {
1963
1970
  }, this.rotation = 0, this.defaultSize = {
1964
1971
  height: 0,
1965
1972
  width: 0
1966
- }, this.cropperElement = null, this.parameters = [], this.loading = !1, this.lastAction = void 0, this.frozenIndex = void 0, this.preResetTransformations = void 0, this.preResetAutoFormat = void 0, this.preResetSelectedProxy = void 0, this.apiGetTransformAssetLink = we, this.apiGetCropFocusMode = Pe, this.onCropComplete = this.onCropComplete.bind(this), this.onCropDragStart = this.onCropDragStart.bind(this);
1973
+ }, this.cropperElement = null, this.parameters = [], this.loading = !1, this.lastAction = void 0, this.frozenIndex = void 0, this.preResetTransformations = void 0, this.preResetAutoFormat = void 0, this.preResetSelectedProxy = void 0, this.apiGetTransformAssetLink = Ce, this.apiGetCropFocusMode = Fe, this.onCropComplete = this.onCropComplete.bind(this), this.onCropDragStart = this.onCropDragStart.bind(this);
1967
1974
  }
1968
1975
  /**
1969
1976
  * Transform requests must resolve to a web-displayable image (the browser renders the
@@ -1972,7 +1979,7 @@ let u = class extends q {
1972
1979
  * extension fallback in asset-transformation-dialog.
1973
1980
  */
1974
1981
  static getTransformExtension(t) {
1975
- return !t || Me(t) ? t : "jpg";
1982
+ return !t || Zt(t) ? t : "jpg";
1976
1983
  }
1977
1984
  /** True when there are transformations beyond the frozen index (i.e. user has added new ones). */
1978
1985
  get hasUnfrozenTransformations() {
@@ -1985,7 +1992,7 @@ let u = class extends q {
1985
1992
  */
1986
1993
  get lastAppliedCropUnit() {
1987
1994
  return this.transformations.findLast(
1988
- (e) => e.key === m.Crop
1995
+ (e) => e.key === f.Crop
1989
1996
  )?.value.unit ?? o.Pixel;
1990
1997
  }
1991
1998
  /**
@@ -1995,7 +2002,7 @@ let u = class extends q {
1995
2002
  */
1996
2003
  get lastAppliedCropFocusMode() {
1997
2004
  return this.transformations.findLast(
1998
- (e) => e.key === m.Crop
2005
+ (e) => e.key === f.Crop
1999
2006
  )?.value.focusMode ?? "manual";
2000
2007
  }
2001
2008
  /**
@@ -2005,7 +2012,7 @@ let u = class extends q {
2005
2012
  */
2006
2013
  get lastAppliedCropPosition() {
2007
2014
  return this.transformations.findLast(
2008
- (e) => e.key === m.Crop
2015
+ (e) => e.key === f.Crop
2009
2016
  )?.value.position ?? N.CenterCenter;
2010
2017
  }
2011
2018
  /**
@@ -2057,7 +2064,7 @@ let u = class extends q {
2057
2064
  get lastCropSize() {
2058
2065
  if (!this.asset) {
2059
2066
  const e = this.transformations.findLast(
2060
- (i) => i.key === m.Crop
2067
+ (i) => i.key === f.Crop
2061
2068
  );
2062
2069
  if (e?.value.unit === o.AspectRatio && e.value.ratioWidth && e.value.ratioHeight)
2063
2070
  return {
@@ -2087,7 +2094,7 @@ let u = class extends q {
2087
2094
  }
2088
2095
  };
2089
2096
  if (e?.value.width && e?.value.height) {
2090
- const { height: i, width: s, x: a = 0, y: r = 0 } = e.value, n = pt(s, i);
2097
+ const { height: i, width: s, x: a = 0, y: r = 0 } = e.value, n = ut(s, i);
2091
2098
  return {
2092
2099
  [o.AspectRatio]: {
2093
2100
  height: n.height,
@@ -2110,7 +2117,7 @@ let u = class extends q {
2110
2117
  };
2111
2118
  }
2112
2119
  }
2113
- const t = this.lastImageSize.width && this.lastImageSize.height ? pt(this.lastImageSize.width, this.lastImageSize.height) : { height: 1, width: 1 };
2120
+ const t = this.lastImageSize.width && this.lastImageSize.height ? ut(this.lastImageSize.width, this.lastImageSize.height) : { height: 1, width: 1 };
2114
2121
  return {
2115
2122
  [o.AspectRatio]: {
2116
2123
  height: t.height,
@@ -2140,7 +2147,7 @@ let u = class extends q {
2140
2147
  get lastResizeSize() {
2141
2148
  if (!this.asset) {
2142
2149
  const e = this.transformations.findLast(
2143
- (i) => i.key === m.Resize
2150
+ (i) => i.key === f.Resize
2144
2151
  );
2145
2152
  if (e?.value.unit === o.AspectRatio && e.value.ratioWidth && e.value.ratioHeight)
2146
2153
  return {
@@ -2157,7 +2164,7 @@ let u = class extends q {
2157
2164
  }
2158
2165
  };
2159
2166
  if (e?.value.width && e?.value.height) {
2160
- const { height: i, width: s } = e.value, a = pt(s, i);
2167
+ const { height: i, width: s } = e.value, a = ut(s, i);
2161
2168
  return {
2162
2169
  [o.AspectRatio]: {
2163
2170
  height: a.height,
@@ -2172,7 +2179,7 @@ let u = class extends q {
2172
2179
  };
2173
2180
  }
2174
2181
  }
2175
- const t = this.lastImageSize.width && this.lastImageSize.height ? pt(this.lastImageSize.width, this.lastImageSize.height) : { height: 1, width: 1 };
2182
+ const t = this.lastImageSize.width && this.lastImageSize.height ? ut(this.lastImageSize.width, this.lastImageSize.height) : { height: 1, width: 1 };
2176
2183
  return {
2177
2184
  [o.AspectRatio]: {
2178
2185
  height: t.height,
@@ -2196,14 +2203,14 @@ let u = class extends q {
2196
2203
  */
2197
2204
  get lastRotation() {
2198
2205
  return this.asset ? 0 : this.transformations.findLast(
2199
- (e) => e.key === m.Rotate
2206
+ (e) => e.key === f.Rotate
2200
2207
  )?.value.rotation ?? 0;
2201
2208
  }
2202
2209
  /**
2203
2210
  * Returns the transformation string for the asset link.
2204
2211
  */
2205
2212
  get transformationString() {
2206
- return lt({
2213
+ return dt({
2207
2214
  asset: this.asset,
2208
2215
  baseUrl: "",
2209
2216
  parameters: this.parameters,
@@ -2242,13 +2249,13 @@ let u = class extends q {
2242
2249
  );
2243
2250
  this.loading = !0, this.apiGetTransformAssetLink({
2244
2251
  assetId: this.asset.id,
2245
- extension: u.getTransformExtension(this.asset.extension),
2252
+ extension: m.getTransformExtension(this.asset.extension),
2246
2253
  format: e?.proxyName ?? "",
2247
2254
  siteUrl: this.baseUrl,
2248
2255
  token: this.token,
2249
2256
  transformations: this.transformationString
2250
2257
  }).then((s) => {
2251
- this.loading = !1, !(!s?.relativePath || !this.selectedFormat) && (this.lastAction === m.Rotate && (this.rotation = 0), this.lastAction = void 0, this.lastImageSize = {
2258
+ this.loading = !1, !(!s?.relativePath || !this.selectedFormat) && (this.lastAction === f.Rotate && (this.rotation = 0), this.lastAction = void 0, this.lastImageSize = {
2252
2259
  height: s.height,
2253
2260
  width: s.width
2254
2261
  }, this.selectedFormat = {
@@ -2262,7 +2269,7 @@ let u = class extends q {
2262
2269
  */
2263
2270
  });
2264
2271
  });
2265
- const i = lt({
2272
+ const i = dt({
2266
2273
  asset: this.asset,
2267
2274
  baseUrl: "",
2268
2275
  extension: this.selectedFormat.extension,
@@ -2295,7 +2302,7 @@ let u = class extends q {
2295
2302
  async handleTransformationsChange() {
2296
2303
  if (await this.updateComplete, !this.asset) {
2297
2304
  this.emit("cx-asset-link-format-change", {
2298
- detail: lt({
2305
+ detail: dt({
2299
2306
  asset: this.asset,
2300
2307
  baseUrl: "",
2301
2308
  options: {
@@ -2307,34 +2314,34 @@ let u = class extends q {
2307
2314
  }).replace(/\/t\//g, "")
2308
2315
  });
2309
2316
  const r = this.transformations.findLast(
2310
- (c) => c.key === m.Crop && (c.value.unit === o.AspectRatio && c.value.ratioWidth && c.value.ratioHeight || c.value.width && c.value.height)
2317
+ (c) => c.key === f.Crop && (c.value.unit === o.AspectRatio && c.value.ratioWidth && c.value.ratioHeight || c.value.width && c.value.height)
2311
2318
  );
2312
2319
  if (r?.value.unit === o.AspectRatio && r.value.ratioWidth && r.value.ratioHeight) {
2313
- const { focusMode: c, position: f, ratioHeight: S, ratioWidth: x } = r.value;
2320
+ const { focusMode: c, position: u, ratioHeight: y, ratioWidth: S } = r.value;
2314
2321
  this.cropSize = {
2315
2322
  ...this.cropSize,
2316
2323
  cropMode: "free",
2317
2324
  focusMode: c ?? "manual",
2318
2325
  percentageHeight: 100,
2319
2326
  percentageWidth: 100,
2320
- position: f ?? N.CenterCenter,
2321
- ratioHeight: S,
2322
- ratioWidth: x,
2327
+ position: u ?? N.CenterCenter,
2328
+ ratioHeight: y,
2329
+ ratioWidth: S,
2323
2330
  unit: o.AspectRatio
2324
2331
  };
2325
2332
  } else if (r) {
2326
- const { focusMode: c, height: f, position: S, unit: x, width: d, x: v = 0, y: k = 0 } = r.value;
2333
+ const { focusMode: c, height: u, position: y, unit: S, width: d, x: A = 0, y: k = 0 } = r.value;
2327
2334
  this.cropSize = {
2328
2335
  ...this.cropSize,
2329
2336
  cropMode: "free",
2330
2337
  focusMode: c ?? "manual",
2331
- height: f,
2338
+ height: u,
2332
2339
  percentageHeight: 100,
2333
2340
  percentageWidth: 100,
2334
- position: S ?? N.CenterCenter,
2335
- unit: x ?? o.Pixel,
2341
+ position: y ?? N.CenterCenter,
2342
+ unit: S ?? o.Pixel,
2336
2343
  width: d,
2337
- x: v,
2344
+ x: A,
2338
2345
  y: k
2339
2346
  };
2340
2347
  } else
@@ -2358,23 +2365,23 @@ let u = class extends q {
2358
2365
  y: 0
2359
2366
  };
2360
2367
  const n = this.transformations.findLast(
2361
- (c) => c.key === m.Resize && (c.value.unit === o.AspectRatio && c.value.ratioWidth && c.value.ratioHeight || c.value.width || c.value.height)
2368
+ (c) => c.key === f.Resize && (c.value.unit === o.AspectRatio && c.value.ratioWidth && c.value.ratioHeight || c.value.width || c.value.height)
2362
2369
  );
2363
2370
  if (n?.value.unit === o.AspectRatio && n.value.ratioWidth && n.value.ratioHeight) {
2364
- const { ratioHeight: c, ratioWidth: f } = n.value;
2371
+ const { ratioHeight: c, ratioWidth: u } = n.value;
2365
2372
  this.resizeSize = {
2366
2373
  ...this.resizeSize,
2367
2374
  ratioHeight: c,
2368
- ratioWidth: f,
2375
+ ratioWidth: u,
2369
2376
  unit: o.AspectRatio
2370
2377
  };
2371
2378
  } else if (n) {
2372
- const { height: c = 0, unit: f, width: S = 0 } = n.value;
2379
+ const { height: c = 0, unit: u, width: y = 0 } = n.value;
2373
2380
  this.resizeSize = {
2374
2381
  ...this.resizeSize,
2375
2382
  height: c,
2376
- unit: f ?? o.Pixel,
2377
- width: S
2383
+ unit: u ?? o.Pixel,
2384
+ width: y
2378
2385
  };
2379
2386
  } else
2380
2387
  this.resizeSize = {
@@ -2389,16 +2396,16 @@ let u = class extends q {
2389
2396
  width: 1
2390
2397
  };
2391
2398
  const l = this.transformations.findLast(
2392
- (c) => c.key === m.Rotate
2399
+ (c) => c.key === f.Rotate
2393
2400
  );
2394
2401
  this.rotation = l?.value.rotation ?? 0;
2395
- const p = this.transformations.findLast((c) => c.key === m.Quality)?.value.quality ?? 100, g = this.transformations.some(
2396
- (c) => c.key === m.Metadata
2402
+ const p = this.transformations.findLast((c) => c.key === f.Quality)?.value.quality ?? 100, x = this.transformations.some(
2403
+ (c) => c.key === f.Metadata
2397
2404
  );
2398
- this.selectedFormat ? this.selectedFormat = { ...this.selectedFormat, keepMetadata: g, quality: p } : this.selectedFormat = {
2405
+ this.selectedFormat ? this.selectedFormat = { ...this.selectedFormat, keepMetadata: x, quality: p } : this.selectedFormat = {
2399
2406
  extension: "",
2400
2407
  height: 0,
2401
- keepMetadata: g,
2408
+ keepMetadata: x,
2402
2409
  quality: p,
2403
2410
  rotation: 0,
2404
2411
  url: "",
@@ -2416,7 +2423,7 @@ let u = class extends q {
2416
2423
  this.loading = !0;
2417
2424
  const e = await this.apiGetTransformAssetLink({
2418
2425
  assetId: this.asset.id,
2419
- extension: u.getTransformExtension(this.selectedFormat.extension),
2426
+ extension: m.getTransformExtension(this.selectedFormat.extension),
2420
2427
  format: t?.proxyName ?? "",
2421
2428
  siteUrl: this.baseUrl,
2422
2429
  token: this.token,
@@ -2448,11 +2455,11 @@ let u = class extends q {
2448
2455
  width: e.width,
2449
2456
  x: 0,
2450
2457
  y: 0
2451
- }, this.lastAction === m.Rotate && (this.rotation = 0), this.lastAction = void 0;
2458
+ }, this.lastAction === f.Rotate && (this.rotation = 0), this.lastAction = void 0;
2452
2459
  const i = this.transformations.some(
2453
- (r) => r.key === m.Metadata
2460
+ (r) => r.key === f.Metadata
2454
2461
  ), s = this.transformations.findLast(
2455
- (r) => r.key === m.Quality
2462
+ (r) => r.key === f.Quality
2456
2463
  );
2457
2464
  this.selectedFormat = {
2458
2465
  ...this.selectedFormat,
@@ -2466,7 +2473,7 @@ let u = class extends q {
2466
2473
  * url: `${this.baseUrl}/${response.relativePath}`,
2467
2474
  */
2468
2475
  };
2469
- const a = lt({
2476
+ const a = dt({
2470
2477
  asset: this.asset,
2471
2478
  baseUrl: "",
2472
2479
  extension: this.selectedFormat.extension,
@@ -2498,7 +2505,7 @@ let u = class extends q {
2498
2505
  width: Number.parseInt(this.asset.width, 10)
2499
2506
  });
2500
2507
  const t = this.transformations.findLast(
2501
- (e) => e.key === m.Quality
2508
+ (e) => e.key === f.Quality
2502
2509
  );
2503
2510
  this.selectedFormat = {
2504
2511
  extension: this.asset.extension,
@@ -2553,7 +2560,7 @@ let u = class extends q {
2553
2560
  e.proxyName === "TRX" && (e.formatHeight = Number(this.asset.height), e.formatWidth = Number(this.asset.width));
2554
2561
  const i = this.proxies?.find((s) => s.id === t);
2555
2562
  i && (this.asset && i.proxyName === "TRX" && (i.formatHeight = Number(this.asset.height), i.formatWidth = Number(this.asset.width)), this.transformations = this.transformations.map((s) => {
2556
- if (s.key === m.Crop) {
2563
+ if (s.key === f.Crop) {
2557
2564
  const a = s.value, r = a.width / i.formatWidth * e.formatWidth, n = a.height / i.formatHeight * e.formatHeight, l = a.x / i.formatWidth * e.formatWidth, p = a.y / i.formatHeight * e.formatHeight;
2558
2565
  return {
2559
2566
  ...s,
@@ -2566,7 +2573,7 @@ let u = class extends q {
2566
2573
  }
2567
2574
  };
2568
2575
  }
2569
- if (s.key === m.Resize) {
2576
+ if (s.key === f.Resize) {
2570
2577
  const a = s.value, r = a.width / i.formatWidth * e.formatWidth, n = a.height / i.formatHeight * e.formatHeight;
2571
2578
  return {
2572
2579
  ...s,
@@ -2642,29 +2649,29 @@ let u = class extends q {
2642
2649
  ratioHeight: n,
2643
2650
  ratioWidth: l,
2644
2651
  unit: p,
2645
- useCropMode: g,
2652
+ useCropMode: x,
2646
2653
  width: c
2647
2654
  }) {
2648
2655
  if (!this.selectedFormat?.url || e === "manual")
2649
2656
  return;
2650
- this.loading = !0, this.lastAction = m.Crop;
2651
- const f = await this.apiGetCropFocusMode({
2657
+ this.loading = !0, this.lastAction = f.Crop;
2658
+ const u = await this.apiGetCropFocusMode({
2652
2659
  autoCropMode: e,
2653
2660
  cropHeight: i,
2654
2661
  cropWidth: c,
2655
2662
  imageUrl: this.selectedFormat.url
2656
2663
  });
2657
- if (f) {
2658
- let S = a, x = r;
2659
- i || (S = f.height * 100 / this.selectedFormat.height), c || (x = f.width * 100 / this.selectedFormat.width), this.cropSize = {
2664
+ if (u) {
2665
+ let y = a, S = r;
2666
+ i || (y = u.height * 100 / this.selectedFormat.height), c || (S = u.width * 100 / this.selectedFormat.width), this.cropSize = {
2660
2667
  ...this.cropSize,
2661
- height: f.height,
2662
- percentageHeight: S ?? this.cropSize.percentageHeight,
2663
- percentageWidth: x ?? this.cropSize.percentageWidth,
2664
- width: f.width,
2665
- x: f.x * 100 / this.selectedFormat.width,
2666
- y: f.y * 100 / this.selectedFormat.height,
2667
- ...g ? {
2668
+ height: u.height,
2669
+ percentageHeight: y ?? this.cropSize.percentageHeight,
2670
+ percentageWidth: S ?? this.cropSize.percentageWidth,
2671
+ width: u.width,
2672
+ x: u.x * 100 / this.selectedFormat.width,
2673
+ y: u.y * 100 / this.selectedFormat.height,
2674
+ ...x ? {
2668
2675
  cropMode: e,
2669
2676
  focusMode: "manual",
2670
2677
  keepAspectRatio: !1
@@ -2690,25 +2697,25 @@ let u = class extends q {
2690
2697
  if (s === 0 || i === 0)
2691
2698
  return;
2692
2699
  const n = this.cropSize.percentageWidth !== s, l = this.cropSize.percentageHeight !== i;
2693
- let p = this.cropSize.height, g = this.cropSize.width;
2694
- n && (g = Math.round(s * this.selectedFormat.width / 100)), l && (p = Math.round(
2700
+ let p = this.cropSize.height, x = this.cropSize.width;
2701
+ n && (x = Math.round(s * this.selectedFormat.width / 100)), l && (p = Math.round(
2695
2702
  i * this.selectedFormat.height / 100
2696
2703
  ));
2697
2704
  const c = this.cropSize.focusMode;
2698
2705
  this.focusModes.find(
2699
- (S) => S.value === c
2706
+ (y) => y.value === c
2700
2707
  )?.auto && this.selectedFormat?.url && this.cropperElement ? await this.handleRequestAutoCropSuggestion({
2701
2708
  focusMode: c,
2702
2709
  height: p,
2703
2710
  percentageHeight: i,
2704
2711
  percentageWidth: s,
2705
- width: g
2712
+ width: x
2706
2713
  }) : this.cropSize = {
2707
2714
  ...this.cropSize,
2708
2715
  height: p,
2709
2716
  percentageHeight: i,
2710
2717
  percentageWidth: s,
2711
- width: g,
2718
+ width: x,
2712
2719
  x: a,
2713
2720
  y: r
2714
2721
  };
@@ -2744,7 +2751,7 @@ let u = class extends q {
2744
2751
  }
2745
2752
  onProxyChange(t) {
2746
2753
  const e = t.detail;
2747
- if (this.lastAction = m.Proxy, e.autoFormat) {
2754
+ if (this.lastAction = f.Proxy, e.autoFormat) {
2748
2755
  this.autoFormat = !0;
2749
2756
  const i = this.autoResolvedProxyId;
2750
2757
  i && (this.selectedProxy = i);
@@ -2809,12 +2816,12 @@ let u = class extends q {
2809
2816
  ) : 0, r = this.asset ? a * 100 / this.selectedFormat.height : 100, n = this.asset ? s * 100 / this.selectedFormat.width : 100;
2810
2817
  let l = this.cropSize.x, p = this.cropSize.y;
2811
2818
  l + n > 100 && (l = 100 - n), p + r > 100 && (p = 100 - r);
2812
- let g = this.cropSize.cropMode;
2819
+ let x = this.cropSize.cropMode;
2813
2820
  this.cropModes.find(
2814
- (f) => f.value === g
2815
- )?.auto && (g = "free"), t.detail.silent ? (this.cropSize.height = a, this.cropSize.keepAspectRatio = t.detail.keepAspectRatio, this.cropSize.percentageHeight = r, this.cropSize.percentageWidth = n, this.cropSize.ratioHeight = t.detail.height, this.cropSize.ratioWidth = t.detail.width, this.cropSize.unit = o.AspectRatio, this.cropSize.width = s) : this.cropSize = {
2821
+ (u) => u.value === x
2822
+ )?.auto && (x = "free"), t.detail.silent ? (this.cropSize.height = a, this.cropSize.keepAspectRatio = t.detail.keepAspectRatio, this.cropSize.percentageHeight = r, this.cropSize.percentageWidth = n, this.cropSize.ratioHeight = t.detail.height, this.cropSize.ratioWidth = t.detail.width, this.cropSize.unit = o.AspectRatio, this.cropSize.width = s) : this.cropSize = {
2816
2823
  ...this.cropSize,
2817
- cropMode: g,
2824
+ cropMode: x,
2818
2825
  height: a,
2819
2826
  keepAspectRatio: t.detail.keepAspectRatio,
2820
2827
  percentageHeight: r,
@@ -2862,43 +2869,43 @@ let u = class extends q {
2862
2869
  });
2863
2870
  }
2864
2871
  onCropApply(t) {
2865
- if (this.clearResetSnapshot(), this.lastAction = m.Crop, !this.asset) {
2872
+ if (this.clearResetSnapshot(), this.lastAction = f.Crop, !this.asset) {
2866
2873
  const {
2867
2874
  focusMode: l,
2868
2875
  height: p,
2869
- position: g,
2876
+ position: x,
2870
2877
  ratioHeight: c,
2871
- ratioWidth: f,
2872
- unit: S,
2873
- width: x,
2878
+ ratioWidth: u,
2879
+ unit: y,
2880
+ width: S,
2874
2881
  x: d,
2875
- y: v
2882
+ y: A
2876
2883
  } = this.cropSize, k = this.focusModes.find(
2877
- (z) => z.value === l
2884
+ (b) => b.value === l
2878
2885
  )?.auto ?? !1;
2879
- if (S === o.AspectRatio) {
2880
- f && c && this.upsertTransformation({
2881
- key: m.Crop,
2886
+ if (y === o.AspectRatio) {
2887
+ u && c && this.upsertTransformation({
2888
+ key: f.Crop,
2882
2889
  value: {
2883
2890
  focusMode: l,
2884
2891
  isFocusModeAuto: k,
2885
- position: g,
2892
+ position: x,
2886
2893
  ratioHeight: c,
2887
- ratioWidth: f,
2888
- unit: S
2894
+ ratioWidth: u,
2895
+ unit: y
2889
2896
  }
2890
2897
  });
2891
2898
  return;
2892
2899
  }
2893
- (p || x) && this.upsertTransformation({
2894
- key: m.Crop,
2900
+ (p || S) && this.upsertTransformation({
2901
+ key: f.Crop,
2895
2902
  value: {
2896
2903
  focusMode: l,
2897
2904
  height: p,
2898
2905
  isFocusModeAuto: k,
2899
- position: g,
2900
- unit: S,
2901
- width: x,
2906
+ position: x,
2907
+ unit: y,
2908
+ width: S,
2902
2909
  /**
2903
2910
  * Without an asset there is no cropper to drag, so x/y are always the 0
2904
2911
  * placeholder from cropSize's default — never a real manual offset. Omit
@@ -2907,7 +2914,7 @@ let u = class extends q {
2907
2914
  * suppress the focus mode / position `c_g_` gravity value.
2908
2915
  */
2909
2916
  x: Number.isFinite(d) && d !== 0 ? d : void 0,
2910
- y: Number.isFinite(v) && v !== 0 ? v : void 0
2917
+ y: Number.isFinite(A) && A !== 0 ? A : void 0
2911
2918
  }
2912
2919
  });
2913
2920
  return;
@@ -2924,7 +2931,7 @@ let u = class extends q {
2924
2931
  this.transformations = [
2925
2932
  ...this.transformations,
2926
2933
  {
2927
- key: m.Crop,
2934
+ key: f.Crop,
2928
2935
  value: {
2929
2936
  focusMode: r,
2930
2937
  height: p,
@@ -2935,18 +2942,18 @@ let u = class extends q {
2935
2942
  }
2936
2943
  ];
2937
2944
  else {
2938
- const g = this.cropSize.x / 100 * this.selectedFormat.width, c = this.cropSize.y / 100 * this.selectedFormat.height;
2945
+ const x = this.cropSize.x / 100 * this.selectedFormat.width, c = this.cropSize.y / 100 * this.selectedFormat.height;
2939
2946
  this.transformations = [
2940
2947
  ...this.transformations,
2941
2948
  {
2942
- key: m.Crop,
2949
+ key: f.Crop,
2943
2950
  value: {
2944
2951
  focusMode: r,
2945
2952
  height: p,
2946
2953
  isFocusModeAuto: n,
2947
2954
  unit: s,
2948
2955
  width: l,
2949
- x: g,
2956
+ x,
2950
2957
  y: c
2951
2958
  }
2952
2959
  }
@@ -2955,7 +2962,7 @@ let u = class extends q {
2955
2962
  } else i && (this.transformations = [
2956
2963
  ...this.transformations,
2957
2964
  {
2958
- key: m.Crop,
2965
+ key: f.Crop,
2959
2966
  value: {
2960
2967
  focusMode: r,
2961
2968
  isFocusModeAuto: n,
@@ -2990,21 +2997,21 @@ let u = class extends q {
2990
2997
  }
2991
2998
  onResizeApply(t) {
2992
2999
  const { height: e, unit: i, width: s } = t.detail;
2993
- if (this.clearResetSnapshot(), this.lastAction = m.Resize, !this.asset) {
3000
+ if (this.clearResetSnapshot(), this.lastAction = f.Resize, !this.asset) {
2994
3001
  if (i === o.AspectRatio) {
2995
- const { ratioHeight: p, ratioWidth: g } = this.resizeSize;
2996
- g && p && this.upsertTransformation({
2997
- key: m.Resize,
3002
+ const { ratioHeight: p, ratioWidth: x } = this.resizeSize;
3003
+ x && p && this.upsertTransformation({
3004
+ key: f.Resize,
2998
3005
  value: {
2999
3006
  ratioHeight: p,
3000
- ratioWidth: g,
3007
+ ratioWidth: x,
3001
3008
  unit: i
3002
3009
  }
3003
3010
  });
3004
3011
  return;
3005
3012
  }
3006
3013
  (e || s) && this.upsertTransformation({
3007
- key: m.Resize,
3014
+ key: f.Resize,
3008
3015
  value: {
3009
3016
  height: e,
3010
3017
  unit: i,
@@ -3020,7 +3027,7 @@ let u = class extends q {
3020
3027
  this.resizeSize.unit !== i ? (n = a, l = r) : i === o.AspectRatio && (n = Math.round(s / e * r), l = r), this.transformations = [
3021
3028
  ...this.transformations,
3022
3029
  {
3023
- key: m.Resize,
3030
+ key: f.Resize,
3024
3031
  value: {
3025
3032
  height: l,
3026
3033
  unit: i,
@@ -3034,21 +3041,21 @@ let u = class extends q {
3034
3041
  }
3035
3042
  onRotationApply(t) {
3036
3043
  const e = t.detail;
3037
- if (this.clearResetSnapshot(), this.lastAction = m.Rotate, !this.asset) {
3044
+ if (this.clearResetSnapshot(), this.lastAction = f.Rotate, !this.asset) {
3038
3045
  e ? this.upsertTransformation({
3039
- key: m.Rotate,
3046
+ key: f.Rotate,
3040
3047
  value: {
3041
3048
  rotation: e
3042
3049
  }
3043
3050
  }) : this.transformations = this.transformations.filter(
3044
- (i) => i.key !== m.Rotate
3051
+ (i) => i.key !== f.Rotate
3045
3052
  );
3046
3053
  return;
3047
3054
  }
3048
3055
  this.selectedFormat && (this.transformations = [
3049
3056
  ...this.transformations,
3050
3057
  {
3051
- key: m.Rotate,
3058
+ key: f.Rotate,
3052
3059
  value: {
3053
3060
  rotation: e
3054
3061
  }
@@ -3057,9 +3064,9 @@ let u = class extends q {
3057
3064
  }
3058
3065
  onQualityChange(t) {
3059
3066
  const e = t.detail;
3060
- this.selectedFormat && (this.selectedFormat.quality = e), this.clearResetSnapshot(), this.lastAction = m.Quality;
3067
+ this.selectedFormat && (this.selectedFormat.quality = e), this.clearResetSnapshot(), this.lastAction = f.Quality;
3061
3068
  const i = {
3062
- key: m.Quality,
3069
+ key: f.Quality,
3063
3070
  value: {
3064
3071
  quality: e
3065
3072
  }
@@ -3073,22 +3080,22 @@ let u = class extends q {
3073
3080
  keepMetadata: e
3074
3081
  }), !this.asset) {
3075
3082
  e ? this.upsertTransformation({
3076
- key: m.Metadata,
3083
+ key: f.Metadata,
3077
3084
  value: {
3078
3085
  keepMetadata: e
3079
3086
  }
3080
3087
  }) : this.transformations = this.transformations.filter(
3081
- (i) => i.key !== m.Metadata
3088
+ (i) => i.key !== f.Metadata
3082
3089
  );
3083
3090
  return;
3084
3091
  }
3085
3092
  e ? this.upsertTransformation({
3086
- key: m.Metadata,
3093
+ key: f.Metadata,
3087
3094
  value: {
3088
3095
  keepMetadata: e
3089
3096
  }
3090
3097
  }) : this.transformations = this.transformations.filter(
3091
- (i) => i.key !== m.Metadata
3098
+ (i) => i.key !== f.Metadata
3092
3099
  );
3093
3100
  }
3094
3101
  onExtensionChange(t) {
@@ -3100,7 +3107,7 @@ let u = class extends q {
3100
3107
  }
3101
3108
  syncQuality() {
3102
3109
  const t = this.transformations.findLast(
3103
- (e) => e.key === m.Quality
3110
+ (e) => e.key === f.Quality
3104
3111
  )?.value?.quality;
3105
3112
  this.selectedFormat && (this.selectedFormat = {
3106
3113
  ...this.selectedFormat,
@@ -3145,20 +3152,20 @@ let u = class extends q {
3145
3152
  )}
3146
3153
  ${M(
3147
3154
  !this.noFormat,
3148
- () => C`<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"} ?auto-format=${this.autoFormat} ?can-auto-format=${this.canAutoFormat} .items=${this.formats} ?loading=${this.loading && this.lastAction === m.Proxy} @cx-asset-link-format-proxy-change=${this.onProxyChange}></cx-asset-link-format-proxy>`
3155
+ () => C`<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"} ?auto-format=${this.autoFormat} ?can-auto-format=${this.canAutoFormat} .items=${this.formats} ?loading=${this.loading && this.lastAction === f.Proxy} @cx-asset-link-format-proxy-change=${this.onProxyChange}></cx-asset-link-format-proxy>`
3149
3156
  )}
3150
3157
  ${M(
3151
3158
  !this.noCrop,
3152
- () => C`<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 === m.Crop} ?keep-aspect-ratio=${this.cropSize.keepAspectRatio} ?show-position-picker=${!this.asset} 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} position=${this.cropSize.position} 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-position-change=${this.onCropPositionChange} @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>`
3159
+ () => C`<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 === f.Crop} ?keep-aspect-ratio=${this.cropSize.keepAspectRatio} ?show-position-picker=${!this.asset} 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} position=${this.cropSize.position} 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-position-change=${this.onCropPositionChange} @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>`
3153
3160
  )}
3154
3161
  ${M(
3155
3162
  !this.noResize,
3156
- () => C`<cx-asset-link-format-resize class="asset-link-format__details" ?open=${this.activeSetting === "cx-asset-link-format-resize"} ?loading=${this.loading && this.lastAction === m.Resize} ?no-ratio-modes=${!this.asset} ?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>`
3163
+ () => C`<cx-asset-link-format-resize class="asset-link-format__details" ?open=${this.activeSetting === "cx-asset-link-format-resize"} ?loading=${this.loading && this.lastAction === f.Resize} ?no-ratio-modes=${!this.asset} ?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>`
3157
3164
  )}
3158
3165
  ${M(
3159
3166
  !this.noRotate,
3160
- () => C`<cx-asset-link-format-rotation class="asset-link-format__details" ?loading=${this.loading && this.lastAction === m.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>`
3161
- )}<cx-asset-link-format-quality class="asset-link-format__details" ?loading=${this.loading && this.lastAction === m.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>${M(
3167
+ () => C`<cx-asset-link-format-rotation class="asset-link-format__details" ?loading=${this.loading && this.lastAction === f.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>`
3168
+ )}<cx-asset-link-format-quality class="asset-link-format__details" ?loading=${this.loading && this.lastAction === f.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>${M(
3162
3169
  !this.noMetadata,
3163
3170
  () => C`<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>`
3164
3171
  )}
@@ -3168,168 +3175,169 @@ let u = class extends q {
3168
3175
  )}</div>`;
3169
3176
  }
3170
3177
  };
3171
- u.styles = [G, Ie];
3172
- u.dependencies = {
3173
- "cx-asset-link-format-crop": A,
3174
- "cx-asset-link-format-extension": Z,
3178
+ m.styles = [G, Ee];
3179
+ m.dependencies = {
3180
+ "cx-asset-link-format-crop": v,
3181
+ "cx-asset-link-format-extension": K,
3175
3182
  "cx-asset-link-format-metadata": L,
3176
3183
  "cx-asset-link-format-proxy": I,
3177
3184
  "cx-asset-link-format-quality": W,
3178
3185
  "cx-asset-link-format-resize": R,
3179
3186
  "cx-asset-link-format-rotation": T,
3180
- "cx-button": K,
3187
+ "cx-button": Y,
3181
3188
  "cx-space": U,
3182
3189
  "cx-typography": B
3183
3190
  };
3184
- y([
3191
+ g([
3185
3192
  h({ attribute: "base-url", type: String })
3186
- ], u.prototype, "baseUrl", 2);
3187
- y([
3193
+ ], m.prototype, "baseUrl", 2);
3194
+ g([
3188
3195
  h({ attribute: "token", type: String })
3189
- ], u.prototype, "token", 2);
3190
- y([
3196
+ ], m.prototype, "token", 2);
3197
+ g([
3191
3198
  h({ reflect: !1, type: Object })
3192
- ], u.prototype, "asset", 2);
3193
- y([
3199
+ ], m.prototype, "asset", 2);
3200
+ g([
3194
3201
  h({ attribute: "crop-modes", reflect: !1, type: Array })
3195
- ], u.prototype, "cropModes", 2);
3196
- y([
3202
+ ], m.prototype, "cropModes", 2);
3203
+ g([
3197
3204
  h({ attribute: "focus-modes", reflect: !1, type: Object })
3198
- ], u.prototype, "focusModes", 2);
3199
- y([
3205
+ ], m.prototype, "focusModes", 2);
3206
+ g([
3200
3207
  h({ reflect: !1, type: Array })
3201
- ], u.prototype, "extensions", 2);
3202
- y([
3208
+ ], m.prototype, "extensions", 2);
3209
+ g([
3203
3210
  h({ reflect: !1, type: Array })
3204
- ], u.prototype, "proxies", 2);
3205
- y([
3211
+ ], m.prototype, "proxies", 2);
3212
+ g([
3206
3213
  h({ attribute: "for-cropper", reflect: !0, type: String })
3207
- ], u.prototype, "forCropper", 2);
3208
- y([
3214
+ ], m.prototype, "forCropper", 2);
3215
+ g([
3209
3216
  h({ attribute: "use-session", reflect: !0, type: String })
3210
- ], u.prototype, "useSession", 2);
3211
- y([
3217
+ ], m.prototype, "useSession", 2);
3218
+ g([
3212
3219
  h({ reflect: !1, type: Array })
3213
- ], u.prototype, "transformations", 2);
3214
- y([
3220
+ ], m.prototype, "transformations", 2);
3221
+ g([
3215
3222
  h({ attribute: "selected-proxy", reflect: !0, type: String })
3216
- ], u.prototype, "selectedProxy", 2);
3217
- y([
3223
+ ], m.prototype, "selectedProxy", 2);
3224
+ g([
3218
3225
  h({ attribute: "default-proxy", reflect: !0, type: String })
3219
- ], u.prototype, "defaultProxy", 2);
3220
- y([
3226
+ ], m.prototype, "defaultProxy", 2);
3227
+ g([
3221
3228
  h({ attribute: "can-auto-format", reflect: !0, type: Boolean })
3222
- ], u.prototype, "canAutoFormat", 2);
3223
- y([
3229
+ ], m.prototype, "canAutoFormat", 2);
3230
+ g([
3224
3231
  h({ attribute: "auto-format", reflect: !0, type: Boolean })
3225
- ], u.prototype, "autoFormat", 2);
3226
- y([
3232
+ ], m.prototype, "autoFormat", 2);
3233
+ g([
3227
3234
  h({ attribute: "use-custom-extension", reflect: !0, type: Boolean })
3228
- ], u.prototype, "useCustomExtension", 2);
3229
- y([
3235
+ ], m.prototype, "useCustomExtension", 2);
3236
+ g([
3230
3237
  h({ attribute: "no-metadata", reflect: !0, type: Boolean })
3231
- ], u.prototype, "noMetadata", 2);
3232
- y([
3238
+ ], m.prototype, "noMetadata", 2);
3239
+ g([
3233
3240
  h({ attribute: "no-format", reflect: !0, type: Boolean })
3234
- ], u.prototype, "noFormat", 2);
3235
- y([
3241
+ ], m.prototype, "noFormat", 2);
3242
+ g([
3236
3243
  h({ attribute: "no-crop", reflect: !0, type: Boolean })
3237
- ], u.prototype, "noCrop", 2);
3238
- y([
3244
+ ], m.prototype, "noCrop", 2);
3245
+ g([
3239
3246
  h({ attribute: "no-resize", reflect: !0, type: Boolean })
3240
- ], u.prototype, "noResize", 2);
3241
- y([
3247
+ ], m.prototype, "noResize", 2);
3248
+ g([
3242
3249
  h({ attribute: "no-rotate", reflect: !0, type: Boolean })
3243
- ], u.prototype, "noRotate", 2);
3244
- y([
3250
+ ], m.prototype, "noRotate", 2);
3251
+ g([
3245
3252
  h({ attribute: "last-image-size", reflect: !1, type: Object })
3246
- ], u.prototype, "lastImageSize", 2);
3247
- y([
3253
+ ], m.prototype, "lastImageSize", 2);
3254
+ g([
3248
3255
  h({ attribute: "hide-header", reflect: !1, type: Boolean })
3249
- ], u.prototype, "hideHeader", 2);
3250
- y([
3256
+ ], m.prototype, "hideHeader", 2);
3257
+ g([
3251
3258
  h({ attribute: "can-reset", type: Boolean })
3252
- ], u.prototype, "canReset", 2);
3253
- y([
3259
+ ], m.prototype, "canReset", 2);
3260
+ g([
3254
3261
  h({ attribute: !1, reflect: !1, type: Object })
3255
- ], u.prototype, "queryElement", 2);
3256
- y([
3262
+ ], m.prototype, "queryElement", 2);
3263
+ g([
3257
3264
  $()
3258
- ], u.prototype, "activeSetting", 2);
3259
- y([
3265
+ ], m.prototype, "activeSetting", 2);
3266
+ g([
3260
3267
  $()
3261
- ], u.prototype, "selectedFormat", 2);
3262
- y([
3268
+ ], m.prototype, "selectedFormat", 2);
3269
+ g([
3263
3270
  $()
3264
- ], u.prototype, "resizeSize", 2);
3265
- y([
3271
+ ], m.prototype, "resizeSize", 2);
3272
+ g([
3266
3273
  $()
3267
- ], u.prototype, "cropSize", 2);
3268
- y([
3274
+ ], m.prototype, "cropSize", 2);
3275
+ g([
3269
3276
  $()
3270
- ], u.prototype, "rotation", 2);
3271
- y([
3277
+ ], m.prototype, "rotation", 2);
3278
+ g([
3272
3279
  $()
3273
- ], u.prototype, "defaultSize", 2);
3274
- y([
3280
+ ], m.prototype, "defaultSize", 2);
3281
+ g([
3275
3282
  $()
3276
- ], u.prototype, "cropperElement", 2);
3277
- y([
3283
+ ], m.prototype, "cropperElement", 2);
3284
+ g([
3278
3285
  $()
3279
- ], u.prototype, "parameters", 2);
3280
- y([
3286
+ ], m.prototype, "parameters", 2);
3287
+ g([
3281
3288
  $()
3282
- ], u.prototype, "loading", 2);
3283
- y([
3289
+ ], m.prototype, "loading", 2);
3290
+ g([
3284
3291
  $()
3285
- ], u.prototype, "lastAction", 2);
3286
- y([
3292
+ ], m.prototype, "lastAction", 2);
3293
+ g([
3287
3294
  $()
3288
- ], u.prototype, "frozenIndex", 2);
3289
- y([
3295
+ ], m.prototype, "frozenIndex", 2);
3296
+ g([
3290
3297
  $()
3291
- ], u.prototype, "preResetTransformations", 2);
3292
- y([
3298
+ ], m.prototype, "preResetTransformations", 2);
3299
+ g([
3293
3300
  $()
3294
- ], u.prototype, "preResetAutoFormat", 2);
3295
- y([
3301
+ ], m.prototype, "preResetAutoFormat", 2);
3302
+ g([
3296
3303
  $()
3297
- ], u.prototype, "preResetSelectedProxy", 2);
3298
- y([
3304
+ ], m.prototype, "preResetSelectedProxy", 2);
3305
+ g([
3299
3306
  _("transformations")
3300
- ], u.prototype, "handleTransformationsChange", 1);
3301
- y([
3307
+ ], m.prototype, "handleTransformationsChange", 1);
3308
+ g([
3302
3309
  _("selectedProxy")
3303
- ], u.prototype, "handleSelectedProxyChange", 1);
3304
- y([
3310
+ ], m.prototype, "handleSelectedProxyChange", 1);
3311
+ g([
3305
3312
  _("loading")
3306
- ], u.prototype, "handleLoadingChange", 1);
3307
- u = y([
3313
+ ], m.prototype, "handleLoadingChange", 1);
3314
+ m = g([
3308
3315
  Q("cx-asset-link-format")
3309
- ], u);
3316
+ ], m);
3310
3317
  export {
3311
- u as C,
3312
- Zi as F,
3318
+ m as C,
3319
+ lt as F,
3313
3320
  jt as M,
3314
- Re as a,
3315
- Xt as b,
3316
- nt as c,
3317
- mt as d,
3318
- ft as e,
3319
- qt as f,
3320
- Rt as g,
3321
- gt as h,
3322
- Me as i,
3323
- Qi as j,
3324
- Xi as k,
3325
- Gi as l,
3326
- ut as m,
3327
- Et as n,
3328
- Ui as o,
3329
- Bi as p,
3330
- Ht as q,
3331
- qi as r,
3332
- ji as s,
3333
- Vi as t,
3334
- pe as u
3321
+ $e as a,
3322
+ ht as b,
3323
+ Ie as c,
3324
+ Rt as d,
3325
+ xt as e,
3326
+ Zi as f,
3327
+ Ki as g,
3328
+ Xi as h,
3329
+ Xt as i,
3330
+ gt as j,
3331
+ ft as k,
3332
+ Et as l,
3333
+ qi as m,
3334
+ ji as n,
3335
+ Ht as o,
3336
+ Zt as p,
3337
+ Yi as q,
3338
+ qt as r,
3339
+ Vi as s,
3340
+ Gi as t,
3341
+ de as u,
3342
+ Qi as v
3335
3343
  };