@orangelogic/design-system 2.60.0 → 2.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. package/library/apps/cortex/src/types.d.ts +2 -0
  2. package/library/chunks/_baseRest.ClTMQtN1.js +67 -0
  3. package/library/chunks/{_baseUniq.BUihBa8c.js → _baseUniq.Df-fLIBx.js} +53 -56
  4. package/library/chunks/{amazon_s3.DeaMdPPn.js → amazon_s3.BEMtqafk.js} +1 -1
  5. package/library/chunks/animate.El-MpOws.js +37 -0
  6. package/library/chunks/animation-registry.HmpwNuGH.js +34 -0
  7. package/library/chunks/{animation.B7d72NVK.js → animation.DfUHRQry.js} +10 -8
  8. package/library/chunks/array.DCtvHiLS.js +81 -0
  9. package/library/chunks/asset.CG_yXtWK.js +288 -0
  10. package/library/chunks/{browser.Va59Ix3P.js → browser.BHOCIF_A.js} +18 -16
  11. package/library/chunks/{button.CtCSNRB3.js → button.P71VJ5xh.js} +75 -74
  12. package/library/chunks/{button.styles.C8AIO8fd.js → button.styles.Dl5IQLHU.js} +1 -1
  13. package/library/chunks/{capitalize.CNStXZBq.js → capitalize.WSkCXkNE.js} +1 -1
  14. package/library/chunks/{chatbot.sm4Rph1v.js → chatbot.BmpIu59L.js} +2 -2
  15. package/library/chunks/{class-map.CoZTSvbM.js → class-map.BiVq-cVR.js} +1 -1
  16. package/library/chunks/{color-swatch-group.qJevXs50.js → color-swatch-group.DlLmydlB.js} +116 -127
  17. package/library/chunks/color-swatch.Bpb_hW2H.js +407 -0
  18. package/library/chunks/color.vLD2sNTs.js +164 -0
  19. package/library/chunks/{component.styles.CI-v8BZa.js → component.styles.DMSLciL5.js} +1 -1
  20. package/library/chunks/{confirm-popover.D2TF1x6K.js → confirm-popover.C1uA36JR.js} +15 -13
  21. package/library/chunks/{content-builder.WranV3P4.js → content-builder.Bf7kqzDI.js} +1 -1
  22. package/library/chunks/converters.DkDtLstb.js +11 -0
  23. package/library/chunks/{cropper.aA0v16xS.js → cropper.BraEEykE.js} +5004 -5024
  24. package/library/chunks/custom-element.L4WJXn1j.js +14 -0
  25. package/library/chunks/debounce.DaHuiSGU.js +15 -0
  26. package/library/chunks/{default-value.CIKAvD5l.js → default-value.COZopaet.js} +1 -1
  27. package/library/chunks/{dialog.B1TORO6S.js → dialog.C_75RVVz.js} +52 -49
  28. package/library/chunks/{directive-helpers.DBHob-_L.js → directive-helpers.Dm4rc594.js} +1 -1
  29. package/library/chunks/dom.CZrJ64Dm.js +92 -0
  30. package/library/chunks/{dot-pagination.8f2oX_ge.js → dot-pagination.CoCIJsHC.js} +24 -22
  31. package/library/chunks/{endpoints.BgyupJys.js → endpoints.B7lcoc1N.js} +1 -3
  32. package/library/chunks/{file-on-demand.Cwgabdyw.js → file-on-demand.B2jNilAj.js} +1829 -1544
  33. package/library/chunks/{folder-select.DiWCwR-T.js → folder-select.CSEQxIXF.js} +380 -255
  34. package/library/chunks/{form-control.styles.NE2Q-quE.js → form-control.styles.CUGhvlfT.js} +1 -1
  35. package/library/chunks/{form.B8u0ywni.js → form.CO12-VK0.js} +1 -1
  36. package/library/chunks/{guard.BDP4A85K.js → guard.D4axKaMo.js} +1 -1
  37. package/library/chunks/{header.B_FD8uLt.js → header.Bd3G0-oA.js} +11 -9
  38. package/library/chunks/{hub-connection.CxfaT11o.js → hub-connection.BxT2b7Nq.js} +4 -3
  39. package/library/chunks/{i18n.BP2FRO1v.js → i18n.DrzK7TPf.js} +54 -7
  40. package/library/chunks/identity.ByMq8VxU.js +6 -0
  41. package/library/chunks/{if-defined.MfEgpxEN.js → if-defined.BRoBj_Rp.js} +1 -1
  42. package/library/chunks/{iframe.DZm7FiCl.js → iframe.UCj6Ze2A.js} +18 -16
  43. package/library/chunks/{image.Ycf8RudS.js → image.DZCRhE3G.js} +82 -79
  44. package/library/chunks/image.mbpyiQpQ.js +82 -0
  45. package/library/chunks/index.S0wy3rzm.js +373 -0
  46. package/library/chunks/isObjectLike.D3cpZO39.js +81 -0
  47. package/library/chunks/{isSymbol.L0C2ND_U.js → isSymbol.huJ_Cvxt.js} +1 -1
  48. package/library/chunks/lib-cortex-element.CVMmyPMC.js +146 -0
  49. package/library/chunks/{list-editor.COkw5JKG.js → list-editor.CrLntuM7.js} +75 -79
  50. package/library/chunks/{custom-element.vnXBMQxc.js → lit-element.jLBm65_O.js} +123 -277
  51. package/library/chunks/{live.LdB9xEhp.js → live.SCz6M8Gs.js} +2 -2
  52. package/library/chunks/{mailchimp.BjbPJfd-.js → mailchimp.Bs6uJVsf.js} +1 -1
  53. package/library/chunks/{modal.BqNLxgs1.js → modal.U1QltQKe.js} +25 -19
  54. package/library/chunks/{option.D9KJhzHs.js → option.D1u5-cTt.js} +21 -19
  55. package/library/chunks/{orangelogic.BgbQXkBv.js → orangelogic.TdFfoPUN.js} +1 -1
  56. package/library/chunks/{overlayscrollbars.aFuRG5Rs.js → overlayscrollbars.XhGWx9Zk.js} +1 -1
  57. package/library/chunks/{pagination.C2FN4fmO.js → pagination.BI3LONVU.js} +17 -15
  58. package/library/chunks/{ref.BaCjlzLO.js → ref.bzeTdX0K.js} +2 -2
  59. package/library/chunks/{repeat.CauKaXyy.js → repeat.DbF2p5ae.js} +2 -2
  60. package/library/chunks/responsive.CA6dcNiM.js +17 -0
  61. package/library/chunks/{scroll.DwPiX2Ox.js → scroll.xtO5yojm.js} +3 -2
  62. package/library/chunks/{slot.DJLm4Dig.js → slot.j5oheLJC.js} +12 -4
  63. package/library/chunks/{state.Cw55xXlb.js → state.CSDxrqLd.js} +1 -1
  64. package/library/chunks/{static.BjNkqt7_.js → static.UA3G1Deq.js} +1 -1
  65. package/library/chunks/string.Cp_XNbnV.js +160 -0
  66. package/library/chunks/{style-map.CZovMmo_.js → style-map.llVFPd__.js} +1 -1
  67. package/library/chunks/{tab-group.5fLnWflv.js → tab-group.DxSlcWK0.js} +20 -18
  68. package/library/chunks/{table.BAr8KKc6.js → table.CY-iMTWV.js} +457 -505
  69. package/library/chunks/template.CsJd8Pb_.js +20 -0
  70. package/library/chunks/time.D_uFZqqe.js +118 -0
  71. package/library/chunks/{toString.CL_lYXbK.js → toString.CRT5zqEU.js} +3 -3
  72. package/library/chunks/toast.BXNbwZV8.js +25 -0
  73. package/library/chunks/{tree.CUfvIDyA.js → tree.CNbrP8cY.js} +33 -36
  74. package/library/chunks/{typography.BFpl0WMA.js → typography.oDzoLbZS.js} +16 -14
  75. package/library/chunks/{unsafe-html.DyO9_Rsq.js → unsafe-html.Dff7-rCx.js} +1 -1
  76. package/library/chunks/url.LjsR2sB5.js +15 -0
  77. package/library/chunks/user-agent.D9aPuOyL.js +4 -0
  78. package/library/chunks/watch.q1sEjPWL.js +501 -0
  79. package/library/components/alert.js +38 -35
  80. package/library/components/animated-image.js +25 -23
  81. package/library/components/animation.js +7 -5
  82. package/library/components/array-line-clamp.d.ts +3 -0
  83. package/library/components/array-line-clamp.js +195 -0
  84. package/library/components/asset-link-format.js +223 -212
  85. package/library/components/atoms.js +164 -162
  86. package/library/components/avatar.js +28 -26
  87. package/library/components/badge.js +10 -8
  88. package/library/components/bicolor-picker.js +21 -19
  89. package/library/components/border-input-group.js +11 -9
  90. package/library/components/breadcrumb-item.js +14 -12
  91. package/library/components/breadcrumb.js +24 -22
  92. package/library/components/button-group.js +26 -24
  93. package/library/components/button.js +14 -13
  94. package/library/components/card.js +28 -19
  95. package/library/components/checkbox.js +29 -23
  96. package/library/components/color-picker.js +19 -17
  97. package/library/components/color-swatch-group.js +20 -17
  98. package/library/components/color-swatch.js +16 -13
  99. package/library/components/confirm-popover.js +11 -9
  100. package/library/components/copy-button.js +15 -13
  101. package/library/components/corner-position-input-group.js +13 -11
  102. package/library/components/cortex-element.d.ts +3 -0
  103. package/library/components/cortex-element.js +5 -0
  104. package/library/components/cropper.js +7 -5
  105. package/library/components/details.js +23 -20
  106. package/library/components/dialog.js +19 -16
  107. package/library/components/divider.js +13 -11
  108. package/library/components/dot-pagination.js +11 -9
  109. package/library/components/dot-status.js +10 -8
  110. package/library/components/drawer.js +63 -51
  111. package/library/components/dropdown.js +29 -26
  112. package/library/components/dynamic-select.js +12 -10
  113. package/library/components/element-clamp.js +28 -25
  114. package/library/components/file-on-demand.js +21 -20
  115. package/library/components/folder-select.js +12 -10
  116. package/library/components/format-bytes.js +11 -10
  117. package/library/components/format-date.js +11 -9
  118. package/library/components/format-number.js +16 -15
  119. package/library/components/format-time.js +118 -9
  120. package/library/components/grid-item.js +48 -46
  121. package/library/components/grid.js +31 -29
  122. package/library/components/header.js +10 -9
  123. package/library/components/hub-connection.js +6 -5
  124. package/library/components/icon-button.js +20 -18
  125. package/library/components/icon.js +17 -15
  126. package/library/components/iframe.js +10 -8
  127. package/library/components/image-comparer.js +27 -25
  128. package/library/components/image.js +14 -11
  129. package/library/components/include.js +26 -24
  130. package/library/components/input-group.js +15 -13
  131. package/library/components/input.js +23 -21
  132. package/library/components/line-clamp.js +12 -10
  133. package/library/components/list-editor.js +17 -15
  134. package/library/components/markdown.js +80 -78
  135. package/library/components/masonry.js +46 -44
  136. package/library/components/menu-item.js +151 -136
  137. package/library/components/menu-label.js +15 -13
  138. package/library/components/menu-section.js +18 -16
  139. package/library/components/menu.js +10 -8
  140. package/library/components/molecules.js +5 -5
  141. package/library/components/mutation-observer.js +12 -10
  142. package/library/components/option.js +10 -8
  143. package/library/components/organisms.js +2 -2
  144. package/library/components/padding-input-group.js +30 -28
  145. package/library/components/pagination.js +14 -12
  146. package/library/components/popup.js +3296 -9
  147. package/library/components/position-picker.js +12 -10
  148. package/library/components/progress-bar.js +13 -11
  149. package/library/components/progress-ring.js +15 -13
  150. package/library/components/qr-code.js +54 -52
  151. package/library/components/radio-button.js +19 -17
  152. package/library/components/radio-card.js +14 -12
  153. package/library/components/radio-group.js +20 -18
  154. package/library/components/radio.js +15 -13
  155. package/library/components/range.js +25 -23
  156. package/library/components/rating.js +17 -15
  157. package/library/components/relative-time.js +16 -14
  158. package/library/components/resize-observer.js +21 -19
  159. package/library/components/select.js +1442 -25
  160. package/library/components/shadow-input-group.js +19 -17
  161. package/library/components/share-option-list.js +20 -18
  162. package/library/components/sidebar.js +14 -12
  163. package/library/components/size-input-group.js +35 -33
  164. package/library/components/skeleton.js +12 -10
  165. package/library/components/space.js +12 -10
  166. package/library/components/spinner.js +17 -15
  167. package/library/components/split-panel.js +15 -13
  168. package/library/components/step.js +18 -16
  169. package/library/components/stepper-wizard.js +11 -9
  170. package/library/components/stepper.js +13 -11
  171. package/library/components/switch.js +21 -19
  172. package/library/components/tab-group.js +15 -13
  173. package/library/components/tab-panel.js +20 -18
  174. package/library/components/tab.js +18 -16
  175. package/library/components/table.js +69 -67
  176. package/library/components/tag.js +11 -9
  177. package/library/components/textarea.js +20 -18
  178. package/library/components/timecode.js +98 -8
  179. package/library/components/tooltip.js +24 -21
  180. package/library/components/tree-item.js +14 -11
  181. package/library/components/tree.js +12 -10
  182. package/library/components/typeface.js +13 -11
  183. package/library/components/types.js +15487 -15444
  184. package/library/components/typography.js +6 -4
  185. package/library/components/video.js +13 -11
  186. package/library/components/visually-hidden.js +15 -13
  187. package/library/events.d.ts +1 -0
  188. package/library/events.js +1 -0
  189. package/library/package.json +11 -2
  190. package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.d.ts +45 -0
  191. package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.styles.d.ts +2 -0
  192. package/library/packages/atoms/src/components/checkbox/checkbox.d.ts +2 -0
  193. package/library/packages/atoms/src/components/drawer/drawer.d.ts +7 -1
  194. package/library/packages/atoms/src/components/include/include.d.ts +1 -0
  195. package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +2 -0
  196. package/library/packages/atoms/src/components/tree/tree.d.ts +0 -4
  197. package/library/packages/atoms/src/index.d.ts +1 -0
  198. package/library/packages/events/src/cx-file-on-demand-load-more.d.ts +8 -0
  199. package/library/packages/events/src/cx-file-on-demand-pin.d.ts +8 -0
  200. package/library/packages/events/src/cx-file-on-demand-unpin.d.ts +8 -0
  201. package/library/packages/events/src/cx-folder-select-search-term-change.d.ts +8 -0
  202. package/library/packages/events/src/cx-share-option-list-item-selected.d.ts +8 -0
  203. package/library/packages/events/src/events.d.ts +6 -2
  204. package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +2 -0
  205. package/library/packages/molecules/src/cropper/cropper.d.ts +1 -0
  206. package/library/packages/molecules/src/cropper/react/Cropper.d.ts +1 -0
  207. package/library/packages/molecules/src/download-format-picker/download-format-picker.d.ts +1 -0
  208. package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +8 -0
  209. package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +1 -0
  210. package/library/packages/molecules/src/folder-select/folder-select.d.ts +6 -1
  211. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +3 -7
  212. package/library/packages/organisms/src/content-builder/styleController.d.ts +8 -8
  213. package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.d.ts +80 -0
  214. package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.styles.d.ts +2 -0
  215. package/library/packages/organisms/src/file-on-demand/components/file-on-demand-pinned-status.ts/file-on-demand-pinned-status.d.ts +44 -0
  216. package/library/packages/organisms/src/file-on-demand/file-on-demand.constants.d.ts +1 -0
  217. package/library/packages/organisms/src/file-on-demand/file-on-demand.d.ts +11 -18
  218. package/library/packages/organisms/src/file-on-demand/file-on-demand.utils.d.ts +6 -0
  219. package/library/packages/services/src/api/folder/folder.d.ts +4 -8
  220. package/library/packages/services/src/api/folder/folder.types.d.ts +2 -1
  221. package/library/packages/types/src/file-on-demand.d.ts +4 -0
  222. package/library/packages/types/src/folder-select.d.ts +9 -2
  223. package/library/packages/utils/src/custom-element/i18n.d.ts +40 -2
  224. package/library/packages/utils/src/drag-scroll/drag-scroll.d.ts +22 -0
  225. package/library/packages/utils/src/drag-scroll/index.d.ts +1 -0
  226. package/library/packages/utils/src/font/font.d.ts +26 -0
  227. package/library/packages/utils/src/font/index.d.ts +1 -0
  228. package/library/packages/utils/src/history-manager/history-manager.d.ts +13 -0
  229. package/library/packages/utils/src/history-manager/index.d.ts +1 -0
  230. package/library/packages/utils/src/index.d.ts +45 -0
  231. package/library/packages/utils/src/template/index.d.ts +1 -0
  232. package/library/packages/utils/src/template/template.d.ts +3 -0
  233. package/library/react-web-component.d.ts +418 -360
  234. package/library/utils.d.ts +1 -0
  235. package/library/utils.js +180 -0
  236. package/package.json +11 -2
  237. package/library/chunks/animation-registry.DavRkTTr.js +0 -69
  238. package/library/chunks/asset.Ba-CxnNM.js +0 -309
  239. package/library/chunks/color-swatch.DUe3iLLo.js +0 -558
  240. package/library/chunks/dom.C0OFx7ND.js +0 -78
  241. package/library/chunks/format-time.BW6-ZWCX.js +0 -226
  242. package/library/chunks/isObjectLike.z36Fu426.js +0 -34
  243. package/library/chunks/popup._w5T7x8f.js +0 -3307
  244. package/library/chunks/select.DfO4de04.js +0 -1441
  245. package/library/chunks/string.BCk3SmdZ.js +0 -144
  246. package/library/chunks/timecode.D7XTiQ_3.js +0 -105
  247. package/library/chunks/watch.BCJD77bD.js +0 -547
  248. package/library/packages/events/src/cx-load-more.d.ts +0 -8
@@ -1,30 +1,33 @@
1
- import { c as rt } from "../chunks/cropper.aA0v16xS.js";
2
- import { C as q } from "../chunks/button.CtCSNRB3.js";
1
+ import "../chunks/cropper.BraEEykE.js";
2
+ import { C as q } from "../chunks/button.P71VJ5xh.js";
3
3
  import H from "./space.js";
4
- import { C as W } from "../chunks/typography.BFpl0WMA.js";
5
- import { i as F, n as l, C as E, x as b, c as N } from "../chunks/custom-element.vnXBMQxc.js";
6
- import { b as ht, c as lt } from "../chunks/asset.Ba-CxnNM.js";
7
- import { c as O } from "../chunks/component.styles.CI-v8BZa.js";
4
+ import { C as W } from "../chunks/typography.oDzoLbZS.js";
5
+ import { n as l, C as F } from "../chunks/lib-cortex-element.CVMmyPMC.js";
6
+ import { b as rt, c as ht } from "../chunks/asset.CG_yXtWK.js";
7
+ import { c as E } from "../chunks/component.styles.DMSLciL5.js";
8
8
  import { T as c, U as o } from "../chunks/asset-link-format.BSRDqHg7.js";
9
- import { L as D } from "../chunks/i18n.BP2FRO1v.js";
10
- import { w as k } from "../chunks/watch.BCJD77bD.js";
9
+ import { c as N } from "../chunks/custom-element.L4WJXn1j.js";
10
+ import { L as O } from "../chunks/i18n.DrzK7TPf.js";
11
+ import { w as k } from "../chunks/watch.q1sEjPWL.js";
11
12
  import { s as it, c as st } from "../chunks/number.CjNxU7Xs.js";
12
- import { r as v } from "../chunks/state.Cw55xXlb.js";
13
- import { n as J } from "../chunks/when.Dr1es41R.js";
14
- import T from "./details.js";
13
+ import { i as D, x as b, E as lt } from "../chunks/lit-element.jLBm65_O.js";
14
+ import { r as z } from "../chunks/state.CSDxrqLd.js";
15
+ import { n as G } from "../chunks/when.Dr1es41R.js";
16
+ import L from "./details.js";
15
17
  import nt from "./divider.js";
16
- import L from "./icon.js";
18
+ import j from "./icon.js";
17
19
  import K from "./icon-button.js";
18
20
  import tt from "./input.js";
19
- import { C as G } from "../chunks/option.D9KJhzHs.js";
20
- import { C as X } from "../chunks/select.DfO4de04.js";
21
- import { e as j } from "../chunks/query.BBf1UFkC.js";
22
- import { c as Q } from "../chunks/repeat.CauKaXyy.js";
23
- import { o as M } from "../chunks/style-map.CZovMmo_.js";
21
+ import { C as X } from "../chunks/option.D1u5-cTt.js";
22
+ import Y from "./select.js";
23
+ import { c as ct } from "../chunks/image.mbpyiQpQ.js";
24
+ import { e as T } from "../chunks/query.BBf1UFkC.js";
25
+ import { c as Q } from "../chunks/repeat.DbF2p5ae.js";
26
+ import { o as M } from "../chunks/style-map.llVFPd__.js";
24
27
  import at from "./tooltip.js";
25
- import ct from "./button-group.js";
26
- import pt from "./checkbox.js";
27
- const dt = F`
28
+ import pt from "./button-group.js";
29
+ import dt from "./checkbox.js";
30
+ const ut = D`
28
31
  .asset-link-format__details {
29
32
  --header-padding: var(--cx-spacing-small) var(--cx-spacing-medium);
30
33
  }
@@ -61,7 +64,7 @@ const dt = F`
61
64
  --background-color: transparent;
62
65
  }
63
66
  `;
64
- function Z({
67
+ function J({
65
68
  asset: t,
66
69
  baseUrl: e,
67
70
  extension: i,
@@ -72,24 +75,24 @@ function Z({
72
75
  let r = e;
73
76
  a && a.length > 0 && (r += "/t/");
74
77
  const m = a?.findLast(
75
- (w) => w.key === c.Quality
78
+ (v) => v.key === c.Quality
76
79
  );
77
80
  m && (a = [
78
81
  ...a?.filter(
79
- (w) => w.key !== c.Quality
82
+ (v) => v.key !== c.Quality
80
83
  ) || [],
81
84
  m
82
- ]), a?.forEach(({ key: w, value: z }) => {
83
- if (w === c.Resize) {
85
+ ]), a?.forEach(({ key: v, value: w }) => {
86
+ if (v === c.Resize) {
84
87
  const x = [
85
88
  ...[
86
89
  {
87
90
  key: "re_w_",
88
- value: Math.round(z.width ?? 0)
91
+ value: Math.round(w.width ?? 0)
89
92
  },
90
93
  {
91
94
  key: "re_h_",
92
- value: Math.round(z.height ?? 0)
95
+ value: Math.round(w.height ?? 0)
93
96
  }
94
97
  ].filter((n) => n.value !== void 0).map((n) => ({
95
98
  key: n.key,
@@ -104,29 +107,29 @@ function Z({
104
107
  r += `${n}${$}${B < x.length - 1 ? "," : ""}`;
105
108
  }), r += "/";
106
109
  }
107
- if (w === c.Crop) {
110
+ if (v === c.Crop) {
108
111
  const x = [
109
112
  ...[
110
113
  {
111
114
  key: "c_",
112
- value: z.mode
115
+ value: w.mode
113
116
  },
114
- ...z.disabledSize ? [] : [
117
+ ...w.disabledSize ? [] : [
115
118
  {
116
119
  key: "c_w_",
117
- value: Math.round(z.width ?? 0)
120
+ value: Math.round(w.width ?? 0)
118
121
  },
119
122
  {
120
123
  key: "c_h_",
121
- value: Math.round(z.height ?? 0)
124
+ value: Math.round(w.height ?? 0)
122
125
  },
123
126
  {
124
127
  key: "c_x_",
125
- value: Math.round(z.x ?? 0)
128
+ value: Math.round(w.x ?? 0)
126
129
  },
127
130
  {
128
131
  key: "c_y_",
129
- value: Math.round(z.y ?? 0)
132
+ value: Math.round(w.y ?? 0)
130
133
  }
131
134
  ]
132
135
  ].filter((n) => n.value !== void 0 && n.value !== null).map((n) => ({
@@ -143,21 +146,21 @@ function Z({
143
146
  r += `${n}${ot ? Math.round(Number($)) : $}${B < x.length - 1 ? "," : ""}`;
144
147
  }), r += "/";
145
148
  }
146
- if (w === c.Rotate && ([
149
+ if (v === c.Rotate && ([
147
150
  {
148
151
  key: "r_a_",
149
- value: z.rotation
152
+ value: w.rotation
150
153
  }
151
154
  ].filter((n) => n.value !== void 0).map((n) => ({
152
155
  key: n.key,
153
156
  value: Math.round(Number(n.value))
154
157
  })).forEach(({ key: n, value: $ }) => {
155
158
  r += `${n}${$}`;
156
- }), r += "/"), w === c.Quality) {
159
+ }), r += "/"), v === c.Quality) {
157
160
  const x = [
158
161
  {
159
162
  key: "q_level_",
160
- value: z.quality
163
+ value: w.quality
161
164
  }
162
165
  ].filter((n) => n.value !== void 0).map((n) => ({
163
166
  key: n.key,
@@ -167,11 +170,11 @@ function Z({
167
170
  r += `${n}${$}${B < x.length - 1 ? "," : ""}`;
168
171
  }), r += "/";
169
172
  }
170
- if (w === c.Metadata) {
173
+ if (v === c.Metadata) {
171
174
  const x = [
172
175
  {
173
176
  key: "fl_keep_metadata",
174
- value: z.keepMetadata
177
+ value: w.keepMetadata
175
178
  }
176
179
  ].filter((n) => n.value !== void 0).map((n) => ({ key: n.key, value: n.value }));
177
180
  x.forEach(({ key: n }, $) => {
@@ -180,13 +183,13 @@ function Z({
180
183
  }
181
184
  }), i && (r += `${t?.identifier}${i}`);
182
185
  const y = [];
183
- return s && s.length > 0 && s.forEach(({ key: w, value: z }) => {
186
+ return s && s.length > 0 && s.forEach(({ key: v, value: w }) => {
184
187
  y.push(
185
- `${encodeURIComponent(w.trim())}=${encodeURIComponent(z.trim())}`
188
+ `${encodeURIComponent(v.trim())}=${encodeURIComponent(w.trim())}`
186
189
  );
187
190
  }), y.length > 0 && (r += `?${y.join("&")}`), r.endsWith("/") && (r = r.slice(0, -1)), r;
188
191
  }
189
- const ut = F`
192
+ const gt = D`
190
193
  cx-details::part(base) {
191
194
  border-bottom-width: 0;
192
195
  }
@@ -208,14 +211,14 @@ const ut = F`
208
211
  flex: 1;
209
212
  }
210
213
  `;
211
- var gt = Object.defineProperty, mt = Object.getOwnPropertyDescriptor, g = (t, e, i, s) => {
212
- for (var a = s > 1 ? void 0 : s ? mt(e, i) : e, h = t.length - 1, r; h >= 0; h--)
214
+ var mt = Object.defineProperty, xt = Object.getOwnPropertyDescriptor, g = (t, e, i, s) => {
215
+ for (var a = s > 1 ? void 0 : s ? xt(e, i) : e, h = t.length - 1, r; h >= 0; h--)
213
216
  (r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
214
- return s && a && gt(e, i, a), a;
217
+ return s && a && mt(e, i, a), a;
215
218
  };
216
- let d = class extends E {
219
+ let d = class extends F {
217
220
  constructor() {
218
- super(...arguments), this.localize = new D(this), this.open = !1, this.width = 0, this.height = 0, this.maxWidth = 0, this.maxHeight = 0, this.ratioWidth = 1, this.ratioHeight = 1, this.percentageWidth = 0, this.percentageHeight = 0, this.unit = o.Pixel, this.disabledApply = !1, this.lastAppliedSetting = {
221
+ super(...arguments), this.localize = new O(this), this.open = !1, this.width = 0, this.height = 0, this.maxWidth = 0, this.maxHeight = 0, this.ratioWidth = 1, this.ratioHeight = 1, this.percentageWidth = 0, this.percentageHeight = 0, this.unit = o.Pixel, this.disabledApply = !1, this.lastAppliedSetting = {
219
222
  [o.Pixel]: {
220
223
  height: 0,
221
224
  percentageHeight: 100,
@@ -323,7 +326,7 @@ let d = class extends E {
323
326
  else if (!i) {
324
327
  const [s, a] = e.split(":").map(Number);
325
328
  if (this.unit === o.Pixel) {
326
- const { height: h, width: r } = rt(
329
+ const { height: h, width: r } = ct(
327
330
  this.maxWidth,
328
331
  this.maxHeight,
329
332
  s,
@@ -464,7 +467,7 @@ let d = class extends E {
464
467
  (i) => i.value,
465
468
  ({ label: i, value: s }) => b`<cx-option value=${s}>${i}</cx-option>`
466
469
  )}
467
- ${J(
470
+ ${G(
468
471
  e.length > 0,
469
472
  () => b`<cx-divider></cx-divider>
470
473
  <small>${this.localize.term("autoCropping")}</small>`
@@ -533,7 +536,7 @@ let d = class extends E {
533
536
  </cx-option>
534
537
  </cx-select>
535
538
  </cx-space>
536
- ${J(
539
+ ${G(
537
540
  this.focusModes.length > 0,
538
541
  () => b`
539
542
  <cx-select
@@ -570,21 +573,21 @@ let d = class extends E {
570
573
  </cx-details>`;
571
574
  }
572
575
  };
573
- d.styles = [O, ut];
576
+ d.styles = [E, gt];
574
577
  d.dependencies = {
575
578
  "cx-button": q,
576
- "cx-details": T,
579
+ "cx-details": L,
577
580
  "cx-divider": nt,
578
- "cx-icon": L,
581
+ "cx-icon": j,
579
582
  "cx-icon-button": K,
580
583
  "cx-input": tt,
581
- "cx-option": G,
582
- "cx-select": X,
584
+ "cx-option": X,
585
+ "cx-select": Y,
583
586
  "cx-space": H,
584
587
  "cx-typography": W
585
588
  };
586
589
  g([
587
- j(".details")
590
+ T(".details")
588
591
  ], d.prototype, "base", 2);
589
592
  g([
590
593
  l({ reflect: !0, type: Boolean })
@@ -641,13 +644,13 @@ g([
641
644
  l({ attribute: "keep-aspect-ratio", reflect: !0, type: Boolean })
642
645
  ], d.prototype, "keepAspectRatio", 2);
643
646
  g([
644
- v()
647
+ z()
645
648
  ], d.prototype, "invalidWidth", 2);
646
649
  g([
647
- v()
650
+ z()
648
651
  ], d.prototype, "invalidHeight", 2);
649
652
  g([
650
- v()
653
+ z()
651
654
  ], d.prototype, "aspectRatio", 2);
652
655
  g([
653
656
  k("cropMode", { waitUntilFirstUpdate: !0 }),
@@ -661,7 +664,7 @@ g([
661
664
  d = g([
662
665
  N("cx-asset-link-format-crop")
663
666
  ], d);
664
- const xt = F`
667
+ const ft = D`
665
668
  .extension {
666
669
  padding: var(--cx-spacing-small) var(--cx-spacing-medium);
667
670
  border: solid 1px var(--cx-color-neutral-200);
@@ -673,14 +676,14 @@ const xt = F`
673
676
  }
674
677
  }
675
678
  `;
676
- var ft = Object.defineProperty, yt = Object.getOwnPropertyDescriptor, et = (t, e, i, s) => {
677
- for (var a = s > 1 ? void 0 : s ? yt(e, i) : e, h = t.length - 1, r; h >= 0; h--)
679
+ var yt = Object.defineProperty, vt = Object.getOwnPropertyDescriptor, et = (t, e, i, s) => {
680
+ for (var a = s > 1 ? void 0 : s ? vt(e, i) : e, h = t.length - 1, r; h >= 0; h--)
678
681
  (r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
679
- return s && a && ft(e, i, a), a;
682
+ return s && a && yt(e, i, a), a;
680
683
  };
681
- let U = class extends E {
684
+ let U = class extends F {
682
685
  constructor() {
683
- super(...arguments), this.localize = new D(this), this.value = "", this.items = [];
686
+ super(...arguments), this.localize = new O(this), this.value = "", this.items = [];
684
687
  }
685
688
  handleExtensionChange(t) {
686
689
  const e = t.target.value;
@@ -713,10 +716,10 @@ let U = class extends E {
713
716
  `;
714
717
  }
715
718
  };
716
- U.styles = [O, xt];
719
+ U.styles = [E, ft];
717
720
  U.dependencies = {
718
- "cx-option": G,
719
- "cx-select": X,
721
+ "cx-option": X,
722
+ "cx-select": Y,
720
723
  "cx-space": H,
721
724
  "cx-typography": W
722
725
  };
@@ -729,19 +732,19 @@ et([
729
732
  U = et([
730
733
  N("cx-asset-link-format-extension")
731
734
  ], U);
732
- const wt = F`
735
+ const wt = D`
733
736
  cx-details::part(base) {
734
737
  border-bottom-width: 0;
735
738
  }
736
739
  `;
737
- var zt = Object.defineProperty, vt = Object.getOwnPropertyDescriptor, _ = (t, e, i, s) => {
738
- for (var a = s > 1 ? void 0 : s ? vt(e, i) : e, h = t.length - 1, r; h >= 0; h--)
740
+ var zt = Object.defineProperty, St = Object.getOwnPropertyDescriptor, _ = (t, e, i, s) => {
741
+ for (var a = s > 1 ? void 0 : s ? St(e, i) : e, h = t.length - 1, r; h >= 0; h--)
739
742
  (r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
740
743
  return s && a && zt(e, i, a), a;
741
744
  };
742
- let C = class extends E {
745
+ let C = class extends F {
743
746
  constructor() {
744
- super(...arguments), this.localize = new D(this), this.open = !1, this.value = "", this.items = [], this.loading = !1, this.scopedValue = "";
747
+ super(...arguments), this.localize = new O(this), this.open = !1, this.value = "", this.items = [], this.loading = !1, this.scopedValue = "";
745
748
  }
746
749
  handleValueChange() {
747
750
  this.scopedValue = this.value;
@@ -834,18 +837,18 @@ let C = class extends E {
834
837
  `;
835
838
  }
836
839
  };
837
- C.styles = [O, wt];
840
+ C.styles = [E, wt];
838
841
  C.dependencies = {
839
842
  "cx-button": q,
840
- "cx-details": T,
841
- "cx-icon": L,
842
- "cx-option": G,
843
- "cx-select": X,
843
+ "cx-details": L,
844
+ "cx-icon": j,
845
+ "cx-option": X,
846
+ "cx-select": Y,
844
847
  "cx-space": H,
845
848
  "cx-typography": W
846
849
  };
847
850
  _([
848
- j(".details")
851
+ T(".details")
849
852
  ], C.prototype, "base", 2);
850
853
  _([
851
854
  l({ reflect: !0, type: Boolean })
@@ -860,7 +863,7 @@ _([
860
863
  l({ reflect: !0, type: Boolean })
861
864
  ], C.prototype, "loading", 2);
862
865
  _([
863
- v()
866
+ z()
864
867
  ], C.prototype, "scopedValue", 2);
865
868
  _([
866
869
  k("value")
@@ -871,19 +874,19 @@ _([
871
874
  C = _([
872
875
  N("cx-asset-link-format-proxy")
873
876
  ], C);
874
- const St = F`
877
+ const bt = D`
875
878
  cx-details::part(base) {
876
879
  border-bottom-width: 0;
877
880
  }
878
881
  `;
879
- var kt = Object.defineProperty, bt = Object.getOwnPropertyDescriptor, I = (t, e, i, s) => {
880
- for (var a = s > 1 ? void 0 : s ? bt(e, i) : e, h = t.length - 1, r; h >= 0; h--)
882
+ var kt = Object.defineProperty, $t = Object.getOwnPropertyDescriptor, I = (t, e, i, s) => {
883
+ for (var a = s > 1 ? void 0 : s ? $t(e, i) : e, h = t.length - 1, r; h >= 0; h--)
881
884
  (r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
882
885
  return s && a && kt(e, i, a), a;
883
886
  };
884
- let A = class extends E {
887
+ let A = class extends F {
885
888
  constructor() {
886
- super(...arguments), this.localize = new D(this), this.open = !1, this.value = 100, this.loading = !1, this.scopedValue = 100;
889
+ super(...arguments), this.localize = new O(this), this.open = !1, this.value = 100, this.loading = !1, this.scopedValue = 100;
887
890
  }
888
891
  /**
889
892
  * A computed property that checks if the current quality value is invalid.
@@ -979,18 +982,18 @@ let A = class extends E {
979
982
  `;
980
983
  }
981
984
  };
982
- A.styles = [O, St];
985
+ A.styles = [E, bt];
983
986
  A.dependencies = {
984
987
  "cx-button": q,
985
- "cx-details": T,
986
- "cx-icon": L,
988
+ "cx-details": L,
989
+ "cx-icon": j,
987
990
  "cx-input": tt,
988
991
  "cx-space": H,
989
992
  "cx-tooltip": at,
990
993
  "cx-typography": W
991
994
  };
992
995
  I([
993
- j(".details")
996
+ T(".details")
994
997
  ], A.prototype, "base", 2);
995
998
  I([
996
999
  l({ reflect: !0, type: Boolean })
@@ -1002,7 +1005,7 @@ I([
1002
1005
  l({ reflect: !0, type: Boolean })
1003
1006
  ], A.prototype, "loading", 2);
1004
1007
  I([
1005
- v()
1008
+ z()
1006
1009
  ], A.prototype, "scopedValue", 2);
1007
1010
  I([
1008
1011
  k("value")
@@ -1010,7 +1013,7 @@ I([
1010
1013
  A = I([
1011
1014
  N("cx-asset-link-format-quality")
1012
1015
  ], A);
1013
- const $t = F`
1016
+ const Ct = D`
1014
1017
  cx-details::part(base) {
1015
1018
  border-bottom-width: 0;
1016
1019
  }
@@ -1032,14 +1035,14 @@ const $t = F`
1032
1035
  flex: 1;
1033
1036
  }
1034
1037
  `;
1035
- var Ct = Object.defineProperty, At = Object.getOwnPropertyDescriptor, S = (t, e, i, s) => {
1036
- for (var a = s > 1 ? void 0 : s ? At(e, i) : e, h = t.length - 1, r; h >= 0; h--)
1038
+ var At = Object.defineProperty, Rt = Object.getOwnPropertyDescriptor, S = (t, e, i, s) => {
1039
+ for (var a = s > 1 ? void 0 : s ? Rt(e, i) : e, h = t.length - 1, r; h >= 0; h--)
1037
1040
  (r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
1038
- return s && a && Ct(e, i, a), a;
1041
+ return s && a && At(e, i, a), a;
1039
1042
  };
1040
- let f = class extends E {
1043
+ let f = class extends F {
1041
1044
  constructor() {
1042
- super(...arguments), this.localize = new D(this), this.open = !1, this.width = 0, this.height = 0, this.maxWidth = 0, this.maxHeight = 0, this.ratioWidth = 1, this.ratioHeight = 1, this.unit = o.Pixel, this.lastAppliedSetting = {
1045
+ super(...arguments), this.localize = new O(this), this.open = !1, this.width = 0, this.height = 0, this.maxWidth = 0, this.maxHeight = 0, this.ratioWidth = 1, this.ratioHeight = 1, this.unit = o.Pixel, this.lastAppliedSetting = {
1043
1046
  [o.Pixel]: { height: 0, width: 0 },
1044
1047
  [o.AspectRatio]: { height: 1, width: 1 }
1045
1048
  }, this.loading = !1, this.keepAspectRatio = !1, this.invalidWidth = !1, this.invalidHeight = !1, this.aspectRatio = 0;
@@ -1259,20 +1262,20 @@ let f = class extends E {
1259
1262
  </cx-details>`;
1260
1263
  }
1261
1264
  };
1262
- f.styles = [O, $t];
1265
+ f.styles = [E, Ct];
1263
1266
  f.dependencies = {
1264
1267
  "cx-button": q,
1265
- "cx-details": T,
1266
- "cx-icon": L,
1268
+ "cx-details": L,
1269
+ "cx-icon": j,
1267
1270
  "cx-icon-button": K,
1268
1271
  "cx-input": tt,
1269
- "cx-option": G,
1270
- "cx-select": X,
1272
+ "cx-option": X,
1273
+ "cx-select": Y,
1271
1274
  "cx-space": H,
1272
1275
  "cx-typography": W
1273
1276
  };
1274
1277
  S([
1275
- j(".details")
1278
+ T(".details")
1276
1279
  ], f.prototype, "base", 2);
1277
1280
  S([
1278
1281
  l({ reflect: !0, type: Boolean })
@@ -1308,13 +1311,13 @@ S([
1308
1311
  l({ attribute: "keep-aspect-ratio", reflect: !0, type: Boolean })
1309
1312
  ], f.prototype, "keepAspectRatio", 2);
1310
1313
  S([
1311
- v()
1314
+ z()
1312
1315
  ], f.prototype, "invalidWidth", 2);
1313
1316
  S([
1314
- v()
1317
+ z()
1315
1318
  ], f.prototype, "invalidHeight", 2);
1316
1319
  S([
1317
- v()
1320
+ z()
1318
1321
  ], f.prototype, "aspectRatio", 2);
1319
1322
  S([
1320
1323
  k("cropMode", { waitUntilFirstUpdate: !0 }),
@@ -1328,19 +1331,19 @@ S([
1328
1331
  f = S([
1329
1332
  N("cx-asset-link-format-resize")
1330
1333
  ], f);
1331
- const Rt = F`
1334
+ const Mt = D`
1332
1335
  cx-details::part(base) {
1333
1336
  border-bottom-width: 0;
1334
1337
  }
1335
1338
  `;
1336
- var Mt = Object.defineProperty, _t = Object.getOwnPropertyDescriptor, V = (t, e, i, s) => {
1337
- for (var a = s > 1 ? void 0 : s ? _t(e, i) : e, h = t.length - 1, r; h >= 0; h--)
1339
+ var _t = Object.defineProperty, Pt = Object.getOwnPropertyDescriptor, V = (t, e, i, s) => {
1340
+ for (var a = s > 1 ? void 0 : s ? Pt(e, i) : e, h = t.length - 1, r; h >= 0; h--)
1338
1341
  (r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
1339
- return s && a && Mt(e, i, a), a;
1342
+ return s && a && _t(e, i, a), a;
1340
1343
  };
1341
- let R = class extends E {
1344
+ let R = class extends F {
1342
1345
  constructor() {
1343
- super(...arguments), this.localize = new D(this), this.open = !1, this.value = 0, this.loading = !1, this.invalidValue = !1;
1346
+ super(...arguments), this.localize = new O(this), this.open = !1, this.value = 0, this.loading = !1, this.invalidValue = !1;
1344
1347
  }
1345
1348
  handleOpenChange() {
1346
1349
  this.open || this.emit("cx-asset-link-format-rotation-change", {
@@ -1437,18 +1440,18 @@ let R = class extends E {
1437
1440
  `;
1438
1441
  }
1439
1442
  };
1440
- R.styles = [O, Rt];
1443
+ R.styles = [E, Mt];
1441
1444
  R.dependencies = {
1442
1445
  "cx-button": q,
1443
- "cx-button-group": ct,
1444
- "cx-details": T,
1445
- "cx-icon": L,
1446
+ "cx-button-group": pt,
1447
+ "cx-details": L,
1448
+ "cx-icon": j,
1446
1449
  "cx-icon-button": K,
1447
1450
  "cx-space": H,
1448
1451
  "cx-typography": W
1449
1452
  };
1450
1453
  V([
1451
- j(".details")
1454
+ T(".details")
1452
1455
  ], R.prototype, "base", 2);
1453
1456
  V([
1454
1457
  l({ reflect: !0, type: Boolean })
@@ -1460,7 +1463,7 @@ V([
1460
1463
  l({ reflect: !0, type: Boolean })
1461
1464
  ], R.prototype, "loading", 2);
1462
1465
  V([
1463
- v()
1466
+ z()
1464
1467
  ], R.prototype, "invalidValue", 2);
1465
1468
  V([
1466
1469
  k("open", { waitUntilFirstUpdate: !0 })
@@ -1468,19 +1471,19 @@ V([
1468
1471
  R = V([
1469
1472
  N("cx-asset-link-format-rotation")
1470
1473
  ], R);
1471
- const Pt = F`
1474
+ const Ht = D`
1472
1475
  cx-details::part(base) {
1473
1476
  border-bottom-width: 0;
1474
1477
  }
1475
1478
  `;
1476
- var Ht = Object.defineProperty, Wt = Object.getOwnPropertyDescriptor, Y = (t, e, i, s) => {
1477
- for (var a = s > 1 ? void 0 : s ? Wt(e, i) : e, h = t.length - 1, r; h >= 0; h--)
1479
+ var Wt = Object.defineProperty, Ft = Object.getOwnPropertyDescriptor, Z = (t, e, i, s) => {
1480
+ for (var a = s > 1 ? void 0 : s ? Ft(e, i) : e, h = t.length - 1, r; h >= 0; h--)
1478
1481
  (r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
1479
- return s && a && Ht(e, i, a), a;
1482
+ return s && a && Wt(e, i, a), a;
1480
1483
  };
1481
- let P = class extends E {
1484
+ let P = class extends F {
1482
1485
  constructor() {
1483
- super(...arguments), this.localize = new D(this), this.open = !1, this.value = !1;
1486
+ super(...arguments), this.localize = new O(this), this.open = !1, this.value = !1;
1484
1487
  }
1485
1488
  handleApply(t) {
1486
1489
  this.emit("cx-asset-link-format-metadata-change", {
@@ -1541,36 +1544,36 @@ let P = class extends E {
1541
1544
  `;
1542
1545
  }
1543
1546
  };
1544
- P.styles = [O, Pt];
1547
+ P.styles = [E, Ht];
1545
1548
  P.dependencies = {
1546
1549
  "cx-button": q,
1547
- "cx-checkbox": pt,
1548
- "cx-details": T,
1549
- "cx-icon": L,
1550
+ "cx-checkbox": dt,
1551
+ "cx-details": L,
1552
+ "cx-icon": j,
1550
1553
  "cx-space": H,
1551
1554
  "cx-tooltip": at,
1552
1555
  "cx-typography": W
1553
1556
  };
1554
- Y([
1555
- j(".details")
1557
+ Z([
1558
+ T(".details")
1556
1559
  ], P.prototype, "base", 2);
1557
- Y([
1560
+ Z([
1558
1561
  l({ reflect: !0, type: Boolean })
1559
1562
  ], P.prototype, "open", 2);
1560
- Y([
1563
+ Z([
1561
1564
  l({ reflect: !0, type: Boolean })
1562
1565
  ], P.prototype, "value", 2);
1563
- P = Y([
1566
+ P = Z([
1564
1567
  N("cx-asset-link-format-metadata")
1565
1568
  ], P);
1566
- var Ft = Object.defineProperty, Et = Object.getOwnPropertyDescriptor, u = (t, e, i, s) => {
1567
- for (var a = s > 1 ? void 0 : s ? Et(e, i) : e, h = t.length - 1, r; h >= 0; h--)
1569
+ var Et = Object.defineProperty, Nt = Object.getOwnPropertyDescriptor, u = (t, e, i, s) => {
1570
+ for (var a = s > 1 ? void 0 : s ? Nt(e, i) : e, h = t.length - 1, r; h >= 0; h--)
1568
1571
  (r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
1569
- return s && a && Ft(e, i, a), a;
1572
+ return s && a && Et(e, i, a), a;
1570
1573
  };
1571
- let p = class extends E {
1574
+ let p = class extends F {
1572
1575
  constructor() {
1573
- super(), this.localize = new D(this), this.baseUrl = void 0, this.accessToken = void 0, this.asset = void 0, this.cropModes = [
1576
+ super(), this.localize = new O(this), this.baseUrl = void 0, this.asset = void 0, this.cropModes = [
1574
1577
  {
1575
1578
  label: "Free",
1576
1579
  value: "free"
@@ -1632,7 +1635,7 @@ let p = class extends E {
1632
1635
  ], this.extensions = [], this.proxies = void 0, this.forCropper = void 0, this.useSession = "", this.transformations = [], this.selectedProxy = "", this.useCustomExtension = !1, this.lastImageSize = {
1633
1636
  height: 0,
1634
1637
  width: 0
1635
- }, this.activeSetting = "cx-asset-link-format-proxy", this.selectedFormat = void 0, this.resizeSize = {
1638
+ }, this.hideHeader = !1, this.queryElement = null, this.activeSetting = "cx-asset-link-format-proxy", this.selectedFormat = void 0, this.resizeSize = {
1636
1639
  height: 0,
1637
1640
  keepAspectRatio: !0,
1638
1641
  ratioHeight: 1,
@@ -1655,7 +1658,7 @@ let p = class extends E {
1655
1658
  }, this.rotation = 0, this.defaultSize = {
1656
1659
  height: 0,
1657
1660
  width: 0
1658
- }, this.cropperElement = null, this.parameters = [], this.loading = !1, this.lastAction = void 0, this.frozenIndex = void 0, this.apiGetTransformAssetLink = ht, this.apiGetCropFocusMode = lt, this.onCropComplete = this.onCropComplete.bind(this), this.onCropDragStart = this.onCropDragStart.bind(this);
1661
+ }, this.cropperElement = null, this.parameters = [], this.loading = !1, this.lastAction = void 0, this.frozenIndex = void 0, this.apiGetTransformAssetLink = rt, this.apiGetCropFocusMode = ht, this.onCropComplete = this.onCropComplete.bind(this), this.onCropDragStart = this.onCropDragStart.bind(this);
1659
1662
  }
1660
1663
  /**
1661
1664
  * Checks if the crop apply button should be disabled.
@@ -1749,7 +1752,7 @@ let p = class extends E {
1749
1752
  * Returns the transformation string for the asset link.
1750
1753
  */
1751
1754
  get transformationString() {
1752
- return Z({
1755
+ return J({
1753
1756
  asset: this.asset,
1754
1757
  baseUrl: "",
1755
1758
  parameters: this.parameters,
@@ -1776,7 +1779,7 @@ let p = class extends E {
1776
1779
  ));
1777
1780
  }
1778
1781
  updated(t) {
1779
- if (t.has("forCropper") && this.handleCropperSelectorChange(), t.has("asset") && this.handleAssetChange(), t.has("proxies") && this.handleProxiesChange(), t.has("activeSetting") && this.handleActiveSettingChange(), t.has("selectedFormat") && this.handleSelectedFormatChange(), t.has("resizeSize") && this.handleResizeSizeChange(), t.has("cropSize") && this.handleCropSizeChange(), t.has("rotation") && this.handleRotationChange(), t.has("cropperElement") && this.handleCropperElementChange(), t.has("selectedFormat")) {
1782
+ if ((t.has("forCropper") || t.has("queryElement")) && this.handleCropperSelectorChange(), t.has("asset") && this.handleAssetChange(), t.has("proxies") && this.handleProxiesChange(), t.has("activeSetting") && this.handleActiveSettingChange(), t.has("selectedFormat") && this.handleSelectedFormatChange(), t.has("resizeSize") && this.handleResizeSizeChange(), t.has("cropSize") && this.handleCropSizeChange(), t.has("rotation") && this.handleRotationChange(), t.has("cropperElement") && this.handleCropperElementChange(), t.has("selectedFormat")) {
1780
1783
  if (!this.asset || !this.selectedFormat || this.selectedFormat.extension === t.get("selectedFormat")?.extension)
1781
1784
  return;
1782
1785
  const e = this.proxies?.find(
@@ -1784,11 +1787,9 @@ let p = class extends E {
1784
1787
  );
1785
1788
  this.loading = !0, this.apiGetTransformAssetLink({
1786
1789
  assetId: this.asset.id,
1787
- extension: this.selectedFormat.extension,
1790
+ extension: this.asset.extension,
1788
1791
  format: e?.proxyName ?? "",
1789
- token: this.accessToken,
1790
- transformations: this.transformationString,
1791
- useSession: this.useSession
1792
+ transformations: this.transformationString
1792
1793
  }).then((s) => {
1793
1794
  this.loading = !1, !(!s?.relativePath || !this.selectedFormat) && (this.lastAction === c.Rotate && (this.rotation = 0), this.lastAction = void 0, this.lastImageSize = {
1794
1795
  height: s.height,
@@ -1796,7 +1797,7 @@ let p = class extends E {
1796
1797
  }, this.selectedFormat = {
1797
1798
  ...this.selectedFormat,
1798
1799
  height: s.height,
1799
- url: s.relativePath,
1800
+ url: this.baseUrl && this.baseUrl.length > 0 ? `${this.baseUrl}/${s.relativePath}` : s.relativePath,
1800
1801
  width: s.width
1801
1802
  /**
1802
1803
  * For local development uses the base URL to construct the full URL.
@@ -1804,7 +1805,7 @@ let p = class extends E {
1804
1805
  */
1805
1806
  });
1806
1807
  });
1807
- const i = Z({
1808
+ const i = J({
1808
1809
  asset: this.asset,
1809
1810
  baseUrl: "",
1810
1811
  extension: this.selectedFormat.extension,
@@ -1820,6 +1821,9 @@ let p = class extends E {
1820
1821
  getCropSize() {
1821
1822
  return this.cropSize;
1822
1823
  }
1824
+ setActiveSetting(t) {
1825
+ this.activeSetting = t;
1826
+ }
1823
1827
  freezeTransformations() {
1824
1828
  this.frozenIndex = this.transformations.length - 1;
1825
1829
  }
@@ -1834,9 +1838,7 @@ let p = class extends E {
1834
1838
  assetId: this.asset.id,
1835
1839
  extension: this.selectedFormat.extension,
1836
1840
  format: t?.proxyName ?? "",
1837
- token: this.accessToken,
1838
- transformations: this.transformationString,
1839
- useSession: this.useSession
1841
+ transformations: this.transformationString
1840
1842
  });
1841
1843
  if (this.loading = !1, !e?.relativePath || !this.selectedFormat)
1842
1844
  return;
@@ -1871,14 +1873,14 @@ let p = class extends E {
1871
1873
  ...this.selectedFormat,
1872
1874
  height: e.height,
1873
1875
  keepMetadata: i,
1874
- url: e.relativePath,
1876
+ url: this.baseUrl && this.baseUrl.length > 0 ? `${this.baseUrl}/${e.relativePath}` : e.relativePath,
1875
1877
  width: e.width
1876
1878
  /**
1877
1879
  * For local development uses the base URL to construct the full URL.
1878
1880
  * url: `${this.baseUrl}/${response.relativePath}`,
1879
1881
  */
1880
1882
  };
1881
- const s = Z({
1883
+ const s = J({
1882
1884
  asset: this.asset,
1883
1885
  baseUrl: "",
1884
1886
  extension: this.selectedFormat.extension,
@@ -1900,7 +1902,7 @@ let p = class extends E {
1900
1902
  ), this.cropperElement.loadable = !0);
1901
1903
  }
1902
1904
  handleCropperSelectorChange() {
1903
- this.forCropper && (this.cropperElement = document.getElementById(this.forCropper));
1905
+ this.forCropper && (this.queryElement ? this.cropperElement = this.queryElement.querySelector(`#${this.forCropper}`) : this.cropperElement = document.getElementById(this.forCropper));
1904
1906
  }
1905
1907
  handleAssetChange() {
1906
1908
  if (!this.asset)
@@ -2043,8 +2045,8 @@ let p = class extends E {
2043
2045
  ratioHeight: r,
2044
2046
  ratioWidth: m,
2045
2047
  unit: y,
2046
- useCropMode: w,
2047
- width: z
2048
+ useCropMode: v,
2049
+ width: w
2048
2050
  }) {
2049
2051
  if (!this.selectedFormat?.url || e === "manual")
2050
2052
  return;
@@ -2052,12 +2054,12 @@ let p = class extends E {
2052
2054
  const x = await this.apiGetCropFocusMode({
2053
2055
  autoCropMode: e,
2054
2056
  cropHeight: i,
2055
- cropWidth: z,
2057
+ cropWidth: w,
2056
2058
  imageUrl: this.selectedFormat.url
2057
2059
  });
2058
2060
  if (x) {
2059
2061
  let n = a, $ = h;
2060
- i || (n = x.height * 100 / this.selectedFormat.height), z || ($ = x.width * 100 / this.selectedFormat.width), this.cropSize = {
2062
+ i || (n = x.height * 100 / this.selectedFormat.height), w || ($ = x.width * 100 / this.selectedFormat.width), this.cropSize = {
2061
2063
  ...this.cropSize,
2062
2064
  height: x.height,
2063
2065
  percentageHeight: n ?? this.cropSize.percentageHeight,
@@ -2065,7 +2067,7 @@ let p = class extends E {
2065
2067
  width: x.width,
2066
2068
  x: x.x * 100 / this.selectedFormat.width,
2067
2069
  y: x.y * 100 / this.selectedFormat.height,
2068
- ...w ? {
2070
+ ...v ? {
2069
2071
  cropMode: e,
2070
2072
  focusMode: "manual",
2071
2073
  keepAspectRatio: !1
@@ -2088,25 +2090,25 @@ let p = class extends E {
2088
2090
  x: a,
2089
2091
  y: h
2090
2092
  } = e, r = this.cropSize.percentageWidth !== s, m = this.cropSize.percentageHeight !== i;
2091
- let y = this.cropSize.height, w = this.cropSize.width;
2092
- r && (w = Math.round(s * this.selectedFormat.width / 100)), m && (y = Math.round(
2093
+ let y = this.cropSize.height, v = this.cropSize.width;
2094
+ r && (v = Math.round(s * this.selectedFormat.width / 100)), m && (y = Math.round(
2093
2095
  i * this.selectedFormat.height / 100
2094
2096
  ));
2095
- const z = this.cropSize.focusMode;
2097
+ const w = this.cropSize.focusMode;
2096
2098
  this.focusModes.find(
2097
- (n) => n.value === z
2099
+ (n) => n.value === w
2098
2100
  )?.auto && this.selectedFormat?.url && this.cropperElement ? await this.handleRequestAutoCropSuggestion({
2099
- focusMode: z,
2101
+ focusMode: w,
2100
2102
  height: y,
2101
2103
  percentageHeight: i,
2102
2104
  percentageWidth: s,
2103
- width: w
2105
+ width: v
2104
2106
  }) : this.cropSize = {
2105
2107
  ...this.cropSize,
2106
2108
  height: y,
2107
2109
  percentageHeight: i,
2108
2110
  percentageWidth: s,
2109
- width: w,
2111
+ width: v,
2110
2112
  x: a,
2111
2113
  y: h
2112
2114
  };
@@ -2176,20 +2178,20 @@ let p = class extends E {
2176
2178
  const e = this.cropSize.unit;
2177
2179
  if (t.detail.unit === o.AspectRatio) {
2178
2180
  const i = t.detail.width / t.detail.height, s = Math.min(
2179
- Math.max(Math.round(this.cropSize.height * i), 1),
2181
+ Math.max(Math.round(this.cropSize.height * i), 0),
2180
2182
  this.resizeSize.width
2181
2183
  ), a = Math.min(
2182
- Math.max(Math.round(s / i), 1),
2184
+ Math.max(Math.round(s / i), 0),
2183
2185
  this.resizeSize.height
2184
2186
  ), h = a * 100 / this.selectedFormat.height, r = s * 100 / this.selectedFormat.width;
2185
2187
  let m = this.cropSize.x, y = this.cropSize.y;
2186
2188
  m + r > 100 && (m = 100 - r), y + h > 100 && (y = 100 - h);
2187
- let w = this.cropSize.cropMode;
2189
+ let v = this.cropSize.cropMode;
2188
2190
  this.cropModes.find(
2189
- (x) => x.value === w
2190
- )?.auto && (w = "free"), t.detail.silent ? (this.cropSize.height = a, this.cropSize.keepAspectRatio = t.detail.keepAspectRatio, this.cropSize.percentageHeight = h, this.cropSize.percentageWidth = r, this.cropSize.ratioHeight = t.detail.height, this.cropSize.ratioWidth = t.detail.width, this.cropSize.unit = o.AspectRatio, this.cropSize.width = s) : this.cropSize = {
2191
+ (x) => x.value === v
2192
+ )?.auto && (v = "free"), t.detail.silent ? (this.cropSize.height = a, this.cropSize.keepAspectRatio = t.detail.keepAspectRatio, this.cropSize.percentageHeight = h, this.cropSize.percentageWidth = r, this.cropSize.ratioHeight = t.detail.height, this.cropSize.ratioWidth = t.detail.width, this.cropSize.unit = o.AspectRatio, this.cropSize.width = s) : this.cropSize = {
2191
2193
  ...this.cropSize,
2192
- cropMode: w,
2194
+ cropMode: v,
2193
2195
  height: a,
2194
2196
  keepAspectRatio: t.detail.keepAspectRatio,
2195
2197
  percentageHeight: h,
@@ -2283,8 +2285,8 @@ let p = class extends E {
2283
2285
  if (t.detail.unit === o.AspectRatio) {
2284
2286
  const e = t.detail.width / t.detail.height, i = Math.max(
2285
2287
  Math.round(this.lastResizeSize[o.Pixel].height * e),
2286
- 1
2287
- ), s = Math.max(Math.round(i / e), 1);
2288
+ 0
2289
+ ), s = Math.max(Math.round(i / e), 0);
2288
2290
  this.resizeSize = {
2289
2291
  ...this.resizeSize,
2290
2292
  height: s,
@@ -2297,10 +2299,10 @@ let p = class extends E {
2297
2299
  } else
2298
2300
  this.resizeSize = {
2299
2301
  ...this.resizeSize,
2300
- height: Math.max(t.detail.height, 1),
2302
+ height: Math.max(t.detail.height, 0),
2301
2303
  keepAspectRatio: t.detail.keepAspectRatio,
2302
2304
  unit: t.detail.unit,
2303
- width: Math.max(t.detail.width, 1)
2305
+ width: Math.max(t.detail.width, 0)
2304
2306
  };
2305
2307
  }
2306
2308
  onResizeApply(t) {
@@ -2399,30 +2401,36 @@ let p = class extends E {
2399
2401
  @cx-show=${this.onDetailsShow}
2400
2402
  @cx-hide=${this.onDetailsHide}
2401
2403
  >
2402
- <cx-space
2403
- class="asset-link-format__section-header"
2404
- direction="horizontal"
2405
- spacing="small"
2406
- align-items="center"
2407
- justify-content="space-between"
2408
- >
2409
- <cx-typography variant="body3">
2410
- ${this.localize.term("transformations")}
2411
- </cx-typography>
2412
- <cx-button
2413
- class="asset-link-format__undo"
2414
- variant="custom"
2415
- ?disabled=${this.transformations.length === 0 || this.frozenIndex !== void 0 && this.frozenIndex >= this.transformations.length - 1}
2416
- @click=${this.handleUndo}
2417
- >
2418
- ${this.localize.term("undo")}
2419
- </cx-button>
2420
- </cx-space>
2404
+ ${G(
2405
+ !this.hideHeader,
2406
+ () => b`
2407
+ <cx-space
2408
+ class="asset-link-format__section-header"
2409
+ direction="horizontal"
2410
+ spacing="small"
2411
+ align-items="center"
2412
+ justify-content="space-between"
2413
+ >
2414
+ <cx-typography variant="body3">
2415
+ ${this.localize.term("transformations")}
2416
+ </cx-typography>
2417
+ <cx-button
2418
+ class="asset-link-format__undo"
2419
+ variant="custom"
2420
+ ?disabled=${this.transformations.length === 0 || this.frozenIndex !== void 0 && this.frozenIndex >= this.transformations.length - 1}
2421
+ @click=${this.handleUndo}
2422
+ >
2423
+ ${this.localize.term("undo")}
2424
+ </cx-button>
2425
+ </cx-space>
2426
+ `,
2427
+ () => lt
2428
+ )}
2421
2429
  <cx-asset-link-format-proxy
2422
2430
  class="asset-link-format__details"
2431
+ value=${this.selectedProxy ?? ""}
2423
2432
  ?open=${this.activeSetting === "cx-asset-link-format-proxy"}
2424
2433
  .items=${this.formats}
2425
- .value=${this.selectedProxy}
2426
2434
  ?loading=${this.loading && this.lastAction === c.Proxy}
2427
2435
  @cx-asset-link-format-proxy-change=${this.onProxyChange}
2428
2436
  ></cx-asset-link-format-proxy>
@@ -2490,7 +2498,7 @@ let p = class extends E {
2490
2498
  @cx-asset-link-format-metadata-change=${this.onMetadataChange}
2491
2499
  >
2492
2500
  </cx-asset-link-format-metadata>
2493
- ${J(
2501
+ ${G(
2494
2502
  this.useCustomExtension,
2495
2503
  () => b`
2496
2504
  <cx-asset-link-format-extension
@@ -2503,7 +2511,7 @@ let p = class extends E {
2503
2511
  </div>`;
2504
2512
  }
2505
2513
  };
2506
- p.styles = [O, dt];
2514
+ p.styles = [E, ut];
2507
2515
  p.dependencies = {
2508
2516
  "cx-asset-link-format-crop": d,
2509
2517
  "cx-asset-link-format-extension": U,
@@ -2519,9 +2527,6 @@ p.dependencies = {
2519
2527
  u([
2520
2528
  l({ attribute: "base-url", reflect: !0, type: String })
2521
2529
  ], p.prototype, "baseUrl", 2);
2522
- u([
2523
- l({ attribute: "access-token", reflect: !1, type: String })
2524
- ], p.prototype, "accessToken", 2);
2525
2530
  u([
2526
2531
  l({ reflect: !1, type: Object })
2527
2532
  ], p.prototype, "asset", 2);
@@ -2556,37 +2561,43 @@ u([
2556
2561
  l({ attribute: "last-image-size", reflect: !1, type: Object })
2557
2562
  ], p.prototype, "lastImageSize", 2);
2558
2563
  u([
2559
- v()
2564
+ l({ attribute: "hide-header", reflect: !1, type: Boolean })
2565
+ ], p.prototype, "hideHeader", 2);
2566
+ u([
2567
+ l({ attribute: !1, reflect: !1, type: Object })
2568
+ ], p.prototype, "queryElement", 2);
2569
+ u([
2570
+ z()
2560
2571
  ], p.prototype, "activeSetting", 2);
2561
2572
  u([
2562
- v()
2573
+ z()
2563
2574
  ], p.prototype, "selectedFormat", 2);
2564
2575
  u([
2565
- v()
2576
+ z()
2566
2577
  ], p.prototype, "resizeSize", 2);
2567
2578
  u([
2568
- v()
2579
+ z()
2569
2580
  ], p.prototype, "cropSize", 2);
2570
2581
  u([
2571
- v()
2582
+ z()
2572
2583
  ], p.prototype, "rotation", 2);
2573
2584
  u([
2574
- v()
2585
+ z()
2575
2586
  ], p.prototype, "defaultSize", 2);
2576
2587
  u([
2577
- v()
2588
+ z()
2578
2589
  ], p.prototype, "cropperElement", 2);
2579
2590
  u([
2580
- v()
2591
+ z()
2581
2592
  ], p.prototype, "parameters", 2);
2582
2593
  u([
2583
- v()
2594
+ z()
2584
2595
  ], p.prototype, "loading", 2);
2585
2596
  u([
2586
- v()
2597
+ z()
2587
2598
  ], p.prototype, "lastAction", 2);
2588
2599
  u([
2589
- v()
2600
+ z()
2590
2601
  ], p.prototype, "frozenIndex", 2);
2591
2602
  u([
2592
2603
  k(["transformations"])