@orangelogic/design-system 4.2.0 → 4.4.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.
- package/library/chunks/{_baseXor.DixEm6JQ.js → _baseXor.BCxbgizO.js} +2 -2
- package/library/chunks/{asset-link-format.CVwjA_yf.js → asset-link-format.DTLA2CFh.js} +435 -415
- package/library/chunks/{button.D1YIxtv-.js → button.cbDkxJHn.js} +3 -3
- package/library/chunks/button.styles.D3GdfF7I.js +5 -0
- package/library/chunks/{color-swatch-group.BPXiMxjh.js → color-swatch-group.CZSeCrot.js} +3279 -2903
- package/library/chunks/color.CIHdfM_a.js +187 -0
- package/library/chunks/{confirm-popover.CJXyEa5A.js → confirm-popover.Dvgoz-oA.js} +4 -4
- package/library/chunks/content-builder.CBBdfVOl.js +55 -0
- package/library/chunks/{dialog.BbQ4Du0M.js → dialog.BvSMV36r.js} +2 -2
- package/library/chunks/{document-viewer.DtBW-p7z.js → document-viewer.BLdEjbza.js} +11 -10
- package/library/chunks/{dom.DL-cNKsj.js → dom.D0lSUoEI.js} +1 -1
- package/library/chunks/{dot-pagination.CJRAtM51.js → dot-pagination.CukHxNBk.js} +1 -1
- package/library/chunks/{folder-select.BAPsI-gg.js → folder-select.DAZQRdLq.js} +5 -5
- package/library/chunks/form-control.styles.CHC7Q08Q.js +5 -0
- package/library/chunks/{form.DN2v7-DH.js → form.LpappO1d.js} +1 -1
- package/library/chunks/{header.BioJzPlg.js → header.2RH_nPmz.js} +132 -90
- package/library/chunks/{i18n.rtxrs1c1.js → i18n.BSPmBQ73.js} +94 -12
- package/library/chunks/{icon-button.CbUddcgI.js → icon-button.DV5Fks8j.js} +1 -1
- package/library/chunks/{iframe.y7iCAVZP.js → iframe.ddX2kGu3.js} +1 -1
- package/library/chunks/{image.A2hE1WoV.js → image.BM7bPTub.js} +407 -276
- package/library/chunks/index.DKKvxBAi.js +1130 -0
- package/library/chunks/{input.D1FFprPl.js → input.7pumTpdu.js} +3 -3
- package/library/chunks/{markdown.Dd_GFJK8.js → markdown.LHSzm035.js} +3 -3
- package/library/chunks/{menu-item.CbqZ66to.js → menu-item.CqPvDGeN.js} +1 -1
- package/library/chunks/{option.CkhHTlpl.js → option.dBUWN4sF.js} +1 -1
- package/library/chunks/{pagination.BlQRt932.js → pagination.C2f8lUVb.js} +6 -6
- package/library/chunks/{position-picker.DjnhxIKF.js → position-picker.qkbJlboF.js} +12 -0
- package/library/chunks/{resizable-component.styles.CAfXABBc.js → resizable-component.styles.kMFDlGgv.js} +2 -2
- package/library/chunks/responsive.BmBJSzC4.js +17 -0
- package/library/chunks/{string.Demn8Xmk.js → string.CfI2ejyR.js} +3 -3
- package/library/chunks/{tab-group.CQfcMVEw.js → tab-group.DOnaT12G.js} +312 -310
- package/library/chunks/toast.D3AW3RWv.js +94 -0
- package/library/chunks/transformation.Dm-pK2ft.js +352 -0
- package/library/chunks/{tree.B7IKBX3n.js → tree.CHQ1WjZV.js} +1 -1
- package/library/chunks/{types.MwUT4xFk.js → types.PdpKNndx.js} +77402 -54714
- package/library/chunks/typography.BLYdTF0n.js +102 -0
- package/library/components/alert.js +2 -2
- package/library/components/asset-link-format.js +6 -6
- package/library/components/atoms.js +161 -159
- package/library/components/audio.js +4 -4
- package/library/components/bicolor-picker.js +2 -2
- package/library/components/border-input-group.js +2 -2
- package/library/components/box.d.ts +3 -0
- package/library/components/box.js +22 -0
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +4 -4
- package/library/components/card.js +7 -7
- package/library/components/checkbox.js +2 -2
- package/library/components/color-picker.js +36 -32
- package/library/components/color-swatch-group.js +8 -7
- package/library/components/color-swatch.js +246 -22
- package/library/components/confirm-popover.js +5 -5
- package/library/components/copy-button.js +2 -2
- package/library/components/corner-position-input-group.js +3 -3
- package/library/components/date-calendar.js +1 -1
- package/library/components/details.js +19 -19
- package/library/components/dialog.js +3 -3
- package/library/components/diff.js +1 -1
- package/library/components/document-viewer.js +5 -5
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +2 -2
- package/library/components/dropdown.js +2 -2
- package/library/components/dynamic-select.js +95 -92
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +12 -12
- package/library/components/folder-select.js +5 -5
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +1 -1
- package/library/components/header.js +6 -3
- package/library/components/icon-button.js +2 -2
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +5 -4
- package/library/components/input-group.js +1 -1
- package/library/components/input.js +4 -4
- package/library/components/line-clamp.js +1 -1
- package/library/components/markdown.js +4 -4
- package/library/components/masonry.js +70 -56
- package/library/components/menu-item.js +2 -2
- package/library/components/menu.js +2 -2
- package/library/components/molecules.js +4 -4
- package/library/components/mutation-observer.js +25 -23
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +7 -7
- package/library/components/popup.js +1 -1
- package/library/components/position-picker.js +2 -2
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/radio-button.js +1 -1
- package/library/components/radio-card.js +1 -1
- package/library/components/radio-group.js +2 -2
- package/library/components/range.js +3 -3
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +5 -5
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +3 -3
- package/library/components/sidebar.js +1 -1
- package/library/components/size-input-group.js +3 -3
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/switch.js +2 -2
- package/library/components/tab-group.js +6 -6
- package/library/components/tab-panel.js +1 -1
- package/library/components/tab.js +16 -16
- package/library/components/tag.js +2 -2
- package/library/components/textarea.js +2 -2
- package/library/components/timecode.js +2 -2
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +3 -3
- package/library/components/types.js +496 -487
- package/library/components/typography.js +3 -2
- package/library/components/video.js +5277 -5209
- package/library/css/ol-base.css +1 -0
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/box/box.d.ts +26 -0
- package/library/packages/atoms/src/components/box/box.styles.d.ts +7 -0
- package/library/packages/atoms/src/components/button/button.d.ts +4 -0
- package/library/packages/atoms/src/components/card/card.d.ts +1 -0
- package/library/packages/atoms/src/components/color-picker/color-picker.d.ts +11 -0
- package/library/packages/atoms/src/components/copy-button/copy-button.d.ts +1 -0
- package/library/packages/atoms/src/components/details/details.d.ts +6 -1
- package/library/packages/atoms/src/components/header/header.d.ts +38 -2
- package/library/packages/atoms/src/components/image/image.d.ts +30 -0
- package/library/packages/atoms/src/components/mutation-observer/mutation-observer.d.ts +1 -1
- package/library/packages/atoms/src/components/radio-card/radio-card.d.ts +1 -0
- package/library/packages/atoms/src/components/tab/tab.d.ts +17 -0
- package/library/packages/atoms/src/components/typography/typography.d.ts +31 -0
- package/library/packages/atoms/src/components/video/video.d.ts +24 -0
- package/library/packages/atoms/src/index.d.ts +1 -0
- package/library/packages/events/src/cx-asset-transformation-dialog-confirm.d.ts +2 -0
- package/library/packages/events/src/cx-color-swatch-picker-columns-change.d.ts +15 -0
- package/library/packages/events/src/events.d.ts +1 -0
- package/library/packages/hybrid/table-core/src/table/table.d.ts +10 -1
- package/library/packages/molecules/src/color-swatch/color-swatch.d.ts +35 -1
- package/library/packages/molecules/src/data-tab-group/data-tab-group.d.ts +30 -1
- package/library/packages/molecules/src/details-group/details-group.d.ts +105 -3
- package/library/packages/molecules/src/dynamic-select/dynamic-select.d.ts +5 -0
- package/library/packages/molecules/src/font-picker/font-picker.d.ts +3 -0
- package/library/packages/molecules/src/gallery-item/gallery-item.d.ts +10 -0
- package/library/packages/molecules/src/icon-picker/icon-picker.d.ts +5 -6
- package/library/packages/molecules/src/index.d.ts +0 -1
- package/library/packages/molecules/src/masonry/masonry.d.ts +5 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +6 -0
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +5 -1
- package/library/packages/organisms/src/color-swatch-group/color-swatch-group.constants.d.ts +37 -45
- package/library/packages/organisms/src/color-swatch-group/color-swatch-group.d.ts +210 -10
- package/library/packages/organisms/src/content-builder/blocks/font-kit-advanced/font-kit-advanced.utils.d.ts +85 -0
- package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +32 -9
- package/library/packages/organisms/src/content-builder/components/block-picker/block-picker.d.ts +24 -8
- package/library/packages/organisms/src/content-builder/components/color-swatch-picker/color-swatch-picker.d.ts +70 -1
- package/library/packages/organisms/src/content-builder/components/config-form/config-form-controller.d.ts +1 -22
- package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +7 -0
- package/library/packages/organisms/src/content-builder/components/gallery-config/gallery-config.d.ts +6 -0
- package/library/packages/organisms/src/content-builder/components/gallery-picker/gallery-picker.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/accordion.d.ts +7 -0
- package/library/packages/organisms/src/content-builder/configs/audio.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/button.d.ts +2 -1
- package/library/packages/organisms/src/content-builder/configs/carousel.d.ts +11 -1
- package/library/packages/organisms/src/content-builder/configs/color-swatches.d.ts +19 -1
- package/library/packages/organisms/src/content-builder/configs/column-group.d.ts +11 -2
- package/library/packages/organisms/src/content-builder/configs/column.d.ts +13 -3
- package/library/packages/organisms/src/content-builder/configs/dam-view.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/divider.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/document-viewer.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/font-kit-advanced.d.ts +19 -0
- package/library/packages/organisms/src/content-builder/configs/font-kit.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/configs/gallery.d.ts +15 -1
- package/library/packages/organisms/src/content-builder/configs/header.d.ts +3 -1
- package/library/packages/organisms/src/content-builder/configs/image.d.ts +4 -0
- package/library/packages/organisms/src/content-builder/configs/index.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/search-box.d.ts +5 -1
- package/library/packages/organisms/src/content-builder/configs/tab-group.d.ts +7 -4
- package/library/packages/organisms/src/content-builder/configs/timeline.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/video.d.ts +3 -0
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +168 -13
- package/library/packages/organisms/src/content-builder/content-builder-config.d.ts +60 -0
- package/library/packages/organisms/src/content-builder/content-builder-constants.d.ts +27 -0
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +122 -2
- package/library/packages/organisms/src/content-builder/content-builder.sections.utils.d.ts +78 -0
- package/library/packages/organisms/src/content-builder/content-builder.utils.d.ts +33 -2
- package/library/packages/organisms/src/content-builder/plugins/font-kit-advanced.d.ts +5 -0
- package/library/packages/organisms/src/content-builder/plugins/gallery.d.ts +6 -0
- package/library/packages/organisms/src/content-builder/plugins/header.d.ts +7 -1
- package/library/packages/organisms/src/content-builder/plugins/index.d.ts +2 -1
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-bubble-menu/rte-bubble-menu.d.ts +21 -1
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/index.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/rte-configs.d.ts +14 -0
- package/library/packages/organisms/src/content-builder/plugins/sections/section-fragment-component.d.ts +22 -0
- package/library/packages/organisms/src/content-builder/plugins/sections/section-host-mounting.d.ts +15 -0
- package/library/packages/organisms/src/content-builder/plugins/sections/sections-canvas-patches.d.ts +20 -0
- package/library/packages/organisms/src/content-builder/plugins/sections/sections-plugin.d.ts +7 -0
- package/library/packages/organisms/src/content-builder/plugins/toolbar.d.ts +10 -1
- package/library/packages/organisms/src/content-builder/plugins/utils/block-width.d.ts +20 -0
- package/library/packages/organisms/src/content-builder/styleController.d.ts +11 -5
- package/library/packages/organisms/src/content-builder-viewer/content-builder-viewer.d.ts +1 -0
- package/library/packages/organisms/src/form/control-renderer/control-renderer.d.ts +176 -0
- package/library/packages/organisms/src/form/control-renderer/control-renderer.styles.d.ts +9 -0
- package/library/packages/organisms/src/list-editor/list-editor.d.ts +181 -6
- package/library/packages/tools/src/tiptap/extensions/metafield/index.d.ts +12 -0
- package/library/packages/tools/src/tiptap/utils/md/schema.d.ts +1 -1
- package/library/packages/types/src/asset-link-format.d.ts +0 -1
- package/library/packages/types/src/button.d.ts +1 -1
- package/library/packages/types/src/color-swatch-group.d.ts +56 -0
- package/library/packages/types/src/color-swatch.d.ts +22 -0
- package/library/packages/types/src/column.d.ts +13 -0
- package/library/packages/types/src/content-builder.d.ts +73 -4
- package/library/packages/types/src/details-group.d.ts +80 -0
- package/library/packages/types/src/font-kit-advanced.d.ts +28 -0
- package/library/packages/types/src/font-kit.d.ts +19 -0
- package/library/packages/types/src/font-picker.d.ts +2 -0
- package/library/packages/types/src/gallery-item.d.ts +3 -1
- package/library/packages/types/src/gallery.d.ts +2 -1
- package/library/packages/types/src/index.d.ts +1 -0
- package/library/packages/types/src/masonry.d.ts +1 -0
- package/library/packages/types/src/position-picker.d.ts +6 -0
- package/library/packages/types/src/sb-button.d.ts +7 -0
- package/library/packages/types/src/search-box.d.ts +4 -0
- package/library/packages/utils/src/color/color.d.ts +27 -3
- package/library/packages/utils/src/custom-element/i18n.d.ts +86 -0
- package/library/packages/utils/src/font/font.d.ts +12 -0
- package/library/packages/utils/src/transformation/transformation.d.ts +11 -3
- package/library/react-web-component.d.ts +514 -156
- package/library/utils.js +415 -395
- package/package.json +1 -1
- package/library/chunks/button.styles.BWgHrfLD.js +0 -5
- package/library/chunks/color-swatch.DdsUysbF.js +0 -223
- package/library/chunks/color.LzSGBy7o.js +0 -164
- package/library/chunks/form-control.styles.CaGWmeAS.js +0 -5
- package/library/chunks/index.BO_sT6SH.js +0 -20123
- package/library/chunks/toast.BOkYwUIj.js +0 -109
- package/library/chunks/transformation.B8m0Nbao.js +0 -384
- package/library/chunks/typography.T72DuoCa.js +0 -52
- package/library/packages/molecules/src/search-box/search-box.d.ts +0 -114
- package/library/packages/organisms/src/content-builder/plugins/wrapper-container.d.ts +0 -15
- /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,46 +1,47 @@
|
|
|
1
1
|
import "../components/cropper.js";
|
|
2
|
-
import { C as Y } from "./button.
|
|
3
|
-
import
|
|
4
|
-
import { C as
|
|
5
|
-
import { n as h, C as
|
|
2
|
+
import { C as Y } from "./button.cbDkxJHn.js";
|
|
3
|
+
import q from "../components/space.js";
|
|
4
|
+
import { C as U } from "./typography.BLYdTF0n.js";
|
|
5
|
+
import { n as h, C as B } from "./lib-cortex-element.CVMmyPMC.js";
|
|
6
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.
|
|
10
|
-
import { L as V } from "./i18n.
|
|
11
|
-
import { a as se } from "./string.
|
|
9
|
+
import "./form.LpappO1d.js";
|
|
10
|
+
import { L as V } from "./i18n.BSPmBQ73.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 ae, c as oe, d as dt } from "./transformation.
|
|
13
|
+
import { a as bt, r as Lt, b as ae, c as oe, d as dt } from "./transformation.Dm-pK2ft.js";
|
|
14
|
+
import "./content-builder.CBBdfVOl.js";
|
|
14
15
|
import "./unsafe-html.Dff7-rCx.js";
|
|
15
16
|
import { b as re } from "./_baseUniq.lwMgmtt2.js";
|
|
16
17
|
import { c as G } from "./component.styles.CAS3c9pM.js";
|
|
17
|
-
import { M as rt, U as o, T as
|
|
18
|
+
import { M as rt, U as o, T as m } from "./asset-link-format.ClaYu_v8.js";
|
|
18
19
|
import { v as ne } from "./v4.CKZ6klMF.js";
|
|
19
|
-
import { P as N } from "./position-picker.
|
|
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
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
|
-
import
|
|
27
|
+
import qt from "../components/divider.js";
|
|
27
28
|
import { C as ot } from "./icon.BLXWp6CU.js";
|
|
28
|
-
import { C as Ct } from "./icon-button.
|
|
29
|
-
import { C as kt } from "./input.
|
|
30
|
-
import { C as yt } from "./option.
|
|
29
|
+
import { C as Ct } from "./icon-button.DV5Fks8j.js";
|
|
30
|
+
import { C as kt } from "./input.7pumTpdu.js";
|
|
31
|
+
import { C as yt } from "./option.dBUWN4sF.js";
|
|
31
32
|
import St from "../components/select.js";
|
|
32
33
|
import he from "../components/position-picker.js";
|
|
33
34
|
import { c as le } from "./image.Y5c_hFx8.js";
|
|
34
35
|
import { e as J } from "./query.BBf1UFkC.js";
|
|
35
36
|
import { c as nt } from "./repeat.CFjcER6_.js";
|
|
36
37
|
import { o as O } from "./style-map.llVFPd__.js";
|
|
37
|
-
import
|
|
38
|
+
import Ut from "../components/tooltip.js";
|
|
38
39
|
import ce from "../components/button-group.js";
|
|
39
40
|
import pe from "../components/checkbox.js";
|
|
40
41
|
function de(t) {
|
|
41
42
|
return t && t.length ? re(t) : [];
|
|
42
43
|
}
|
|
43
|
-
function
|
|
44
|
+
function Bt(t) {
|
|
44
45
|
return typeof t == "object" && t !== null && "URI" in t;
|
|
45
46
|
}
|
|
46
47
|
const ue = {
|
|
@@ -130,28 +131,28 @@ function mt(t) {
|
|
|
130
131
|
}
|
|
131
132
|
return ge(t);
|
|
132
133
|
}
|
|
133
|
-
const xe = "CoreField.LargeSizePreview", ht = "CoreField.DocType", Rt = "Document.Title", ye = "Document.CaptionLong", lt = "Document.FileExtension", ft = "CoreField.FileSize", Et = "CoreField.Identifier", Bi = "CoreField.MaxHeight",
|
|
134
|
+
const xe = "CoreField.LargeSizePreview", ht = "CoreField.DocType", Rt = "Document.Title", ye = "Document.CaptionLong", lt = "Document.FileExtension", ft = "CoreField.FileSize", Et = "CoreField.Identifier", Bi = "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
138
|
[xe]: Tt.DEFAULT_VIEW_SIZE,
|
|
138
139
|
[Se]: Tt.ORIGINAL_VIEW_SIZE
|
|
139
|
-
},
|
|
140
|
+
}, ve = Object.fromEntries(
|
|
140
141
|
Object.entries(Gt).map(([t, e]) => [
|
|
141
142
|
e,
|
|
142
143
|
t
|
|
143
144
|
])
|
|
144
145
|
);
|
|
145
|
-
function
|
|
146
|
+
function Ae(t) {
|
|
146
147
|
return Gt[t] ?? t;
|
|
147
148
|
}
|
|
148
149
|
function ze(t) {
|
|
149
|
-
return t === xt ? [Rt, st] : [
|
|
150
|
+
return t === xt ? [Rt, st] : [Ae(t)];
|
|
150
151
|
}
|
|
151
152
|
function be(t) {
|
|
152
153
|
const e = {};
|
|
153
154
|
for (const [i, s] of Object.entries(t)) {
|
|
154
|
-
const a =
|
|
155
|
+
const a = ve[i] ?? i;
|
|
155
156
|
e[a] = s;
|
|
156
157
|
}
|
|
157
158
|
return e;
|
|
@@ -159,7 +160,7 @@ function be(t) {
|
|
|
159
160
|
function Qt(t, e, i) {
|
|
160
161
|
t[i] = H(e, i);
|
|
161
162
|
const s = e[i];
|
|
162
|
-
return s != null &&
|
|
163
|
+
return s != null && Bt(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
165
|
function we(t) {
|
|
165
166
|
const e = new URLSearchParams();
|
|
@@ -177,12 +178,12 @@ async function Xt({
|
|
|
177
178
|
pageNumber: n,
|
|
178
179
|
query: l,
|
|
179
180
|
securityByPassToken: p,
|
|
180
|
-
siteUrl:
|
|
181
|
-
sort:
|
|
181
|
+
siteUrl: c,
|
|
182
|
+
sort: g,
|
|
182
183
|
token: u,
|
|
183
184
|
useSession: y
|
|
184
185
|
}) {
|
|
185
|
-
const S = i?.flatMap(ze), d = i?.includes(xt) ?? !1,
|
|
186
|
+
const S = i?.flatMap(ze), d = i?.includes(xt) ?? !1, v = (F) => {
|
|
186
187
|
const z = be(F);
|
|
187
188
|
return d && (z[xt] = H(z, Rt) || H(z, st)), z;
|
|
188
189
|
}, k = {
|
|
@@ -200,12 +201,12 @@ async function Xt({
|
|
|
200
201
|
PageNumber: n,
|
|
201
202
|
Query: mt(l),
|
|
202
203
|
SecurityByPassToken: p || void 0,
|
|
203
|
-
Sort:
|
|
204
|
+
Sort: g || void 0,
|
|
204
205
|
UseSession: y || void 0
|
|
205
206
|
}, b = a === "POST";
|
|
206
207
|
try {
|
|
207
208
|
return (await E.request({
|
|
208
|
-
baseURL:
|
|
209
|
+
baseURL: c,
|
|
209
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;
|
|
@@ -215,11 +216,11 @@ async function Xt({
|
|
|
215
216
|
transformResponse: [
|
|
216
217
|
...Array.isArray(E.defaults.transformResponse) ? E.defaults.transformResponse : [],
|
|
217
218
|
r ? (z) => ({
|
|
218
|
-
items: (z.results?.Items ?? []).map(
|
|
219
|
+
items: (z.results?.Items ?? []).map(v),
|
|
219
220
|
sort: z.results?.GlobalInfo?.Sort ?? "",
|
|
220
221
|
totalCount: z.results?.GlobalInfo?.TotalCount ?? 0
|
|
221
222
|
}) : (z) => ({
|
|
222
|
-
items: (z.APIResponse?.Items ?? []).map(
|
|
223
|
+
items: (z.APIResponse?.Items ?? []).map(v),
|
|
223
224
|
sort: z.APIResponse?.GlobalInfo?.Sort ?? "",
|
|
224
225
|
totalCount: z.APIResponse?.GlobalInfo?.TotalCount ?? 0
|
|
225
226
|
})
|
|
@@ -286,8 +287,8 @@ async function $e({
|
|
|
286
287
|
Rt,
|
|
287
288
|
ye,
|
|
288
289
|
gt
|
|
289
|
-
],
|
|
290
|
-
|
|
290
|
+
], c = Re(a, ke), g = await Promise.all(
|
|
291
|
+
c.map(
|
|
291
292
|
(d) => Xt({
|
|
292
293
|
consistency: t,
|
|
293
294
|
countPerPage: d.length,
|
|
@@ -301,24 +302,24 @@ async function $e({
|
|
|
301
302
|
token: n
|
|
302
303
|
})
|
|
303
304
|
)
|
|
304
|
-
), u = new Map(a.map((d,
|
|
305
|
+
), u = new Map(a.map((d, v) => [d, v])), y = g.flatMap((d) => d.items).map((d) => ({
|
|
305
306
|
name: H(d, st),
|
|
306
307
|
recordId: H(d, gt),
|
|
307
308
|
...l.reduce(
|
|
308
|
-
(
|
|
309
|
+
(v, k) => Qt(v, d, k),
|
|
309
310
|
{}
|
|
310
311
|
)
|
|
311
312
|
})).sort(
|
|
312
|
-
(d,
|
|
313
|
-
), S =
|
|
314
|
-
(d,
|
|
313
|
+
(d, v) => (u.get(d.recordId) ?? 1 / 0) - (u.get(v.recordId) ?? 1 / 0)
|
|
314
|
+
), S = g.reduce(
|
|
315
|
+
(d, v) => d + v.totalCount,
|
|
315
316
|
0
|
|
316
317
|
);
|
|
317
318
|
return { facets: [], items: y, totalCount: S };
|
|
318
319
|
}
|
|
319
320
|
function H(t, e) {
|
|
320
321
|
const i = t[e];
|
|
321
|
-
return i == null ? "" : typeof i == "string" ? i : typeof i == "number" || typeof i == "boolean" ? String(i) :
|
|
322
|
+
return i == null ? "" : typeof i == "string" ? i : typeof i == "number" || typeof i == "boolean" ? String(i) : Bt(i) ? i.URI : "";
|
|
322
323
|
}
|
|
323
324
|
async function Pe({
|
|
324
325
|
consistency: t,
|
|
@@ -330,8 +331,8 @@ async function Pe({
|
|
|
330
331
|
limitedDocTypes: n,
|
|
331
332
|
pageNumber: l,
|
|
332
333
|
parentFolderIdentifier: p,
|
|
333
|
-
searchTerm:
|
|
334
|
-
securityByPassToken:
|
|
334
|
+
searchTerm: c,
|
|
335
|
+
securityByPassToken: g,
|
|
335
336
|
sortOrder: u,
|
|
336
337
|
token: y
|
|
337
338
|
}) {
|
|
@@ -341,7 +342,7 @@ async function Pe({
|
|
|
341
342
|
directParentFolderIdentifier: i,
|
|
342
343
|
parentFolderIdentifier: p,
|
|
343
344
|
...n && n.length > 0 ? { docType: n } : {}
|
|
344
|
-
},
|
|
345
|
+
}, v = await Xt({
|
|
345
346
|
consistency: t,
|
|
346
347
|
countPerPage: e,
|
|
347
348
|
fields: [
|
|
@@ -359,10 +360,10 @@ async function Pe({
|
|
|
359
360
|
isSiteBuilder: r,
|
|
360
361
|
pageNumber: l,
|
|
361
362
|
query: d,
|
|
362
|
-
securityByPassToken:
|
|
363
|
+
securityByPassToken: g,
|
|
363
364
|
sort: void 0,
|
|
364
365
|
token: y
|
|
365
|
-
}), k =
|
|
366
|
+
}), k = v.items.map((b) => {
|
|
366
367
|
let F = H(b, lt);
|
|
367
368
|
F && !F.startsWith(".") && (F = "." + F);
|
|
368
369
|
const z = H(b, gt);
|
|
@@ -384,7 +385,7 @@ async function Pe({
|
|
|
384
385
|
return {
|
|
385
386
|
facets: [],
|
|
386
387
|
items: k,
|
|
387
|
-
totalCount:
|
|
388
|
+
totalCount: v.totalCount
|
|
388
389
|
};
|
|
389
390
|
}
|
|
390
391
|
async function Fe({
|
|
@@ -422,7 +423,7 @@ async function Fe({
|
|
|
422
423
|
return null;
|
|
423
424
|
}
|
|
424
425
|
}
|
|
425
|
-
async function
|
|
426
|
+
async function Xi({
|
|
426
427
|
assetRecordId: t,
|
|
427
428
|
isSiteBuilder: e,
|
|
428
429
|
siteUrl: i,
|
|
@@ -459,7 +460,7 @@ async function Qi({
|
|
|
459
460
|
return [];
|
|
460
461
|
}
|
|
461
462
|
}
|
|
462
|
-
async function
|
|
463
|
+
async function Zi({
|
|
463
464
|
siteUrl: t
|
|
464
465
|
} = {}) {
|
|
465
466
|
try {
|
|
@@ -486,7 +487,7 @@ async function Xi({
|
|
|
486
487
|
return { formatsByDocType: {} };
|
|
487
488
|
}
|
|
488
489
|
}
|
|
489
|
-
async function
|
|
490
|
+
async function Ki({
|
|
490
491
|
recordIds: t,
|
|
491
492
|
rightsToCheck: e
|
|
492
493
|
}) {
|
|
@@ -509,7 +510,7 @@ async function Zi({
|
|
|
509
510
|
return i;
|
|
510
511
|
}
|
|
511
512
|
}
|
|
512
|
-
const
|
|
513
|
+
const At = 20, Z = "TR1", ct = "TRX", _e = /* @__PURE__ */ new Set([".gif"]), Me = /* @__PURE__ */ new Set([
|
|
513
514
|
".avif",
|
|
514
515
|
".bmp",
|
|
515
516
|
".gif",
|
|
@@ -537,14 +538,14 @@ function Wt({
|
|
|
537
538
|
manualFormat: n,
|
|
538
539
|
size: l
|
|
539
540
|
}) {
|
|
540
|
-
const p = s?.toLowerCase() ?? "",
|
|
541
|
+
const p = s?.toLowerCase() ?? "", c = p.startsWith(".") ? p : `.${p}`, g = `path_${Z}`, u = (d, v) => {
|
|
541
542
|
const k = r[d];
|
|
542
543
|
if (!k)
|
|
543
544
|
return;
|
|
544
545
|
const b = r[`${d}${jt}`], F = r[`${d}${Vt}`], z = t ? bt(k, [], {
|
|
545
546
|
autoFormat: !n,
|
|
546
547
|
extension: p,
|
|
547
|
-
format:
|
|
548
|
+
format: v
|
|
548
549
|
}) : k;
|
|
549
550
|
return {
|
|
550
551
|
maxHeight: F,
|
|
@@ -552,25 +553,25 @@ function Wt({
|
|
|
552
553
|
src: z,
|
|
553
554
|
srcset: e ? ae(z, {
|
|
554
555
|
extension: p,
|
|
555
|
-
format:
|
|
556
|
+
format: v,
|
|
556
557
|
maxWidth: oe(n, b)
|
|
557
558
|
}) : ""
|
|
558
559
|
};
|
|
559
560
|
};
|
|
560
561
|
if (!n) {
|
|
561
|
-
const d = Lt(p, l),
|
|
562
|
-
return u(
|
|
562
|
+
const d = Lt(p, l), v = `path_${d}`;
|
|
563
|
+
return u(v, d) ?? u(g, Z) ?? {};
|
|
563
564
|
}
|
|
564
565
|
const y = a ? `path_${a}` : void 0;
|
|
565
|
-
return y && r[y] ? a !== ct || Ie(i, p) ? u(y, a) ?? {} : u(
|
|
566
|
+
return y && r[y] ? a !== ct || Ie(i, p) ? u(y, a) ?? {} : u(g, Z) ?? {} : !!p && _e.has(c) ? u(`path_${ct}`, ct) ?? u(g, Z) ?? {} : u(g, Z) ?? {};
|
|
566
567
|
}
|
|
567
|
-
class
|
|
568
|
+
class Yi {
|
|
568
569
|
constructor(e, i) {
|
|
569
|
-
this.data = [], this.folderId = "", this.fetchedPages = /* @__PURE__ */ new Set(), this.totalCount = 0, this.maxEnd = 1 / 0, this.pageSize =
|
|
570
|
+
this.data = [], this.folderId = "", this.fetchedPages = /* @__PURE__ */ new Set(), this.totalCount = 0, this.maxEnd = 1 / 0, this.pageSize = At, this.requestEpoch = 0, this.host = e, this.host.addController?.(this);
|
|
570
571
|
const s = i?.maxEnd;
|
|
571
572
|
this.maxEnd = typeof s == "number" && Number.isFinite(s) && s >= 0 ? Math.floor(s) : 1 / 0;
|
|
572
573
|
const a = i?.pageSize;
|
|
573
|
-
this.pageSize = typeof a == "number" && Number.isFinite(a) && a >= 1 ? Math.floor(a) :
|
|
574
|
+
this.pageSize = typeof a == "number" && Number.isFinite(a) && a >= 1 ? Math.floor(a) : At, this.authToken = i?.token, this.securityByPassToken = i?.securityByPassToken, this.isSiteBuilder = i?.isSiteBuilder ?? !1, this.autoFormat = i?.autoFormat ?? !1, this.buildSrcset = i?.buildSrcset ?? !1, this.consistency = i?.consistency;
|
|
574
575
|
}
|
|
575
576
|
get totalDataCount() {
|
|
576
577
|
return this.totalCount;
|
|
@@ -588,7 +589,7 @@ class Ki {
|
|
|
588
589
|
* Shrinking is ignored once pages are cached: collapsing already has what it needs.
|
|
589
590
|
*/
|
|
590
591
|
setPageSize(e) {
|
|
591
|
-
const i = Number.isFinite(e) && e >= 1 ? Math.floor(e) :
|
|
592
|
+
const i = Number.isFinite(e) && e >= 1 ? Math.floor(e) : At;
|
|
592
593
|
if (this.pageSize === i)
|
|
593
594
|
return;
|
|
594
595
|
const s = this.fetchedPages.size > 0;
|
|
@@ -609,9 +610,9 @@ class Ki {
|
|
|
609
610
|
const l = this.requestEpoch;
|
|
610
611
|
if (!this.folderId || l !== this.requestEpoch)
|
|
611
612
|
return this.data;
|
|
612
|
-
const p = s ? `path_${s}` : void 0,
|
|
613
|
+
const p = s ? `path_${s}` : void 0, c = `path_${Z}`, g = `path_${ct}`, u = [
|
|
613
614
|
...new Set(
|
|
614
|
-
[p,
|
|
615
|
+
[p, c, g].filter(
|
|
615
616
|
(d) => !!d
|
|
616
617
|
)
|
|
617
618
|
)
|
|
@@ -619,7 +620,7 @@ class Ki {
|
|
|
619
620
|
for (let d = y; d <= S; d++) {
|
|
620
621
|
if (this.fetchedPages.has(d))
|
|
621
622
|
continue;
|
|
622
|
-
const
|
|
623
|
+
const v = await Pe({
|
|
623
624
|
consistency: this.consistency,
|
|
624
625
|
countPerPage: this.pageSize,
|
|
625
626
|
directParentFolderIdentifier: this.folderId,
|
|
@@ -635,8 +636,8 @@ class Ki {
|
|
|
635
636
|
});
|
|
636
637
|
if (l !== this.requestEpoch)
|
|
637
638
|
return this.data;
|
|
638
|
-
if (this.fetchedPages.add(d), !this.totalCount &&
|
|
639
|
-
const b = Math.min(this.maxEnd,
|
|
639
|
+
if (this.fetchedPages.add(d), !this.totalCount && v.totalCount) {
|
|
640
|
+
const b = Math.min(this.maxEnd, v.totalCount);
|
|
640
641
|
this.totalCount = b, this.data = Array.from({ length: b }, () => ({
|
|
641
642
|
alt: "",
|
|
642
643
|
id: `temp-${ne()}`,
|
|
@@ -645,10 +646,10 @@ class Ki {
|
|
|
645
646
|
}));
|
|
646
647
|
}
|
|
647
648
|
const k = (d - 1) * this.pageSize;
|
|
648
|
-
for (let b = 0; b <
|
|
649
|
+
for (let b = 0; b < v.items.length; b++) {
|
|
649
650
|
const F = k + b;
|
|
650
651
|
if (F < this.data.length) {
|
|
651
|
-
const z =
|
|
652
|
+
const z = v.items[b], {
|
|
652
653
|
maxHeight: et,
|
|
653
654
|
maxWidth: it,
|
|
654
655
|
src: Kt,
|
|
@@ -692,28 +693,28 @@ class Ki {
|
|
|
692
693
|
manualFormat: n = !0,
|
|
693
694
|
minLimit: l = 5,
|
|
694
695
|
noPlaceholders: p = !1,
|
|
695
|
-
transformations:
|
|
696
|
+
transformations: c
|
|
696
697
|
}) {
|
|
697
698
|
(!this.folderId || this.folderId !== s) && (this.folderId = s, this.resetFolderState()), a && this.resetPageCache();
|
|
698
|
-
const
|
|
699
|
+
const g = Math.max(5, l), u = e, y = e + g, S = [...i];
|
|
699
700
|
await this.fetchImages({
|
|
700
701
|
end: y,
|
|
701
702
|
extraFields: S.filter((k) => k !== ""),
|
|
702
703
|
format: r,
|
|
703
704
|
manualFormat: n,
|
|
704
705
|
start: u,
|
|
705
|
-
transformations:
|
|
706
|
+
transformations: c
|
|
706
707
|
});
|
|
707
|
-
let d = e -
|
|
708
|
+
let d = e - g;
|
|
708
709
|
d < 0 && (this.totalCount === 0 ? d = 0 : d = Math.max(0, this.totalCount + d));
|
|
709
|
-
const
|
|
710
|
+
const v = d + g;
|
|
710
711
|
return await this.fetchImages({
|
|
711
|
-
end:
|
|
712
|
+
end: v,
|
|
712
713
|
extraFields: S.filter((k) => k !== ""),
|
|
713
714
|
format: r,
|
|
714
715
|
manualFormat: n,
|
|
715
716
|
start: d,
|
|
716
|
-
transformations:
|
|
717
|
+
transformations: c
|
|
717
718
|
}), p ? this.data.filter((k) => k.id && !k.id.startsWith("temp-")) : this.data;
|
|
718
719
|
}
|
|
719
720
|
async fetchImagesByIDs({
|
|
@@ -725,16 +726,16 @@ class Ki {
|
|
|
725
726
|
}) {
|
|
726
727
|
if (a.length === 0)
|
|
727
728
|
return [];
|
|
728
|
-
const n = i ? `path_${i}` : void 0, l = `path_${Z}`, p = `path_${ct}`,
|
|
729
|
+
const n = i ? `path_${i}` : void 0, l = `path_${Z}`, p = `path_${ct}`, c = [
|
|
729
730
|
...new Set(
|
|
730
731
|
[n, l, p].filter(
|
|
731
732
|
(S) => !!S
|
|
732
733
|
)
|
|
733
734
|
)
|
|
734
|
-
],
|
|
735
|
+
], g = [lt, ft], u = [...e, ht];
|
|
735
736
|
return (await $e({
|
|
736
737
|
consistency: this.consistency,
|
|
737
|
-
extraFields: [...u, ...
|
|
738
|
+
extraFields: [...u, ...c, ...g].filter((S) => S !== ""),
|
|
738
739
|
getPermanentAssetsPaths: !0,
|
|
739
740
|
isSiteBuilder: this.isSiteBuilder,
|
|
740
741
|
recordIds: a,
|
|
@@ -743,7 +744,7 @@ class Ki {
|
|
|
743
744
|
})).items.map((S) => {
|
|
744
745
|
const {
|
|
745
746
|
maxHeight: d,
|
|
746
|
-
maxWidth:
|
|
747
|
+
maxWidth: v,
|
|
747
748
|
src: k,
|
|
748
749
|
srcset: b
|
|
749
750
|
} = Wt({
|
|
@@ -763,7 +764,7 @@ class Ki {
|
|
|
763
764
|
extension: S[lt] || "",
|
|
764
765
|
id: S.recordId,
|
|
765
766
|
maxHeight: d,
|
|
766
|
-
maxWidth:
|
|
767
|
+
maxWidth: v,
|
|
767
768
|
name: S.name,
|
|
768
769
|
src: F,
|
|
769
770
|
srcset: z,
|
|
@@ -783,17 +784,17 @@ class Ki {
|
|
|
783
784
|
noPlaceholders: n = !1,
|
|
784
785
|
page: l,
|
|
785
786
|
pageSize: p = 10,
|
|
786
|
-
transformations:
|
|
787
|
+
transformations: c
|
|
787
788
|
}) {
|
|
788
789
|
(!this.folderId || this.folderId !== i) && (this.folderId = i, this.resetFolderState()), s && this.resetPageCache();
|
|
789
|
-
const
|
|
790
|
+
const g = l * p, u = g + p - 1;
|
|
790
791
|
return await this.fetchImages({
|
|
791
792
|
end: u,
|
|
792
793
|
extraFields: e,
|
|
793
794
|
format: a,
|
|
794
795
|
manualFormat: r,
|
|
795
|
-
start:
|
|
796
|
-
transformations:
|
|
796
|
+
start: g,
|
|
797
|
+
transformations: c
|
|
797
798
|
}), n ? this.data.filter((y) => y.id && !y.id.startsWith("temp-")) : this.data;
|
|
798
799
|
}
|
|
799
800
|
async *fetchImagesInFolderByChunk({
|
|
@@ -805,9 +806,9 @@ class Ki {
|
|
|
805
806
|
format: n,
|
|
806
807
|
manualFormat: l = !0,
|
|
807
808
|
start: p = 0,
|
|
808
|
-
transformations:
|
|
809
|
+
transformations: c
|
|
809
810
|
}) {
|
|
810
|
-
const
|
|
811
|
+
const g = Math.max(1, e);
|
|
811
812
|
if ((!this.folderId || this.folderId !== a) && (this.folderId = a, this.resetFolderState()), r && this.resetPageCache(), i !== -1) {
|
|
812
813
|
await this.fetchImages({
|
|
813
814
|
end: i,
|
|
@@ -815,27 +816,27 @@ class Ki {
|
|
|
815
816
|
format: n,
|
|
816
817
|
manualFormat: l,
|
|
817
818
|
start: p,
|
|
818
|
-
transformations:
|
|
819
|
+
transformations: c
|
|
819
820
|
}), yield this.data;
|
|
820
821
|
return;
|
|
821
822
|
}
|
|
822
|
-
let u = p, y = p +
|
|
823
|
+
let u = p, y = p + g;
|
|
823
824
|
if (await this.fetchImages({
|
|
824
825
|
end: y,
|
|
825
826
|
extraFields: s,
|
|
826
827
|
format: n,
|
|
827
828
|
manualFormat: l,
|
|
828
829
|
start: u,
|
|
829
|
-
transformations:
|
|
830
|
+
transformations: c
|
|
830
831
|
}), yield this.data, !(!this.totalCount || this.totalCount <= y))
|
|
831
832
|
for (; y < this.totalCount; )
|
|
832
|
-
u = y, y = Math.min(y +
|
|
833
|
+
u = y, y = Math.min(y + g, this.totalCount), await this.fetchImages({
|
|
833
834
|
end: y,
|
|
834
835
|
extraFields: s,
|
|
835
836
|
format: n,
|
|
836
837
|
manualFormat: l,
|
|
837
838
|
start: u,
|
|
838
|
-
transformations:
|
|
839
|
+
transformations: c
|
|
839
840
|
}), yield this.data;
|
|
840
841
|
}
|
|
841
842
|
hostConnected() {
|
|
@@ -856,7 +857,7 @@ var Te = Object.defineProperty, We = Object.getOwnPropertyDescriptor, w = (t, e,
|
|
|
856
857
|
(n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
|
|
857
858
|
return s && a && Te(e, i, a), a;
|
|
858
859
|
};
|
|
859
|
-
let
|
|
860
|
+
let A = class extends B {
|
|
860
861
|
constructor() {
|
|
861
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 = {
|
|
862
863
|
[o.Pixel]: {
|
|
@@ -1133,117 +1134,117 @@ let v = class extends q {
|
|
|
1133
1134
|
})} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
|
|
1134
1135
|
}
|
|
1135
1136
|
};
|
|
1136
|
-
|
|
1137
|
-
|
|
1137
|
+
A.styles = [G, He];
|
|
1138
|
+
A.dependencies = {
|
|
1138
1139
|
"cx-button": Y,
|
|
1139
1140
|
"cx-details": at,
|
|
1140
|
-
"cx-divider":
|
|
1141
|
+
"cx-divider": qt,
|
|
1141
1142
|
"cx-icon": ot,
|
|
1142
1143
|
"cx-icon-button": Ct,
|
|
1143
1144
|
"cx-input": kt,
|
|
1144
1145
|
"cx-option": yt,
|
|
1145
1146
|
"cx-position-picker": he,
|
|
1146
1147
|
"cx-select": St,
|
|
1147
|
-
"cx-space":
|
|
1148
|
-
"cx-typography":
|
|
1148
|
+
"cx-space": q,
|
|
1149
|
+
"cx-typography": U
|
|
1149
1150
|
};
|
|
1150
1151
|
w([
|
|
1151
1152
|
J(".details")
|
|
1152
|
-
],
|
|
1153
|
+
], A.prototype, "base", 2);
|
|
1153
1154
|
w([
|
|
1154
1155
|
J("cx-position-picker")
|
|
1155
|
-
],
|
|
1156
|
+
], A.prototype, "positionPicker", 2);
|
|
1156
1157
|
w([
|
|
1157
1158
|
h({ reflect: !0, type: Boolean })
|
|
1158
|
-
],
|
|
1159
|
+
], A.prototype, "open", 2);
|
|
1159
1160
|
w([
|
|
1160
1161
|
h({ reflect: !0, type: Number })
|
|
1161
|
-
],
|
|
1162
|
+
], A.prototype, "width", 2);
|
|
1162
1163
|
w([
|
|
1163
1164
|
h({ reflect: !0, type: Number })
|
|
1164
|
-
],
|
|
1165
|
+
], A.prototype, "height", 2);
|
|
1165
1166
|
w([
|
|
1166
1167
|
h({ attribute: "max-width", reflect: !0, type: Number })
|
|
1167
|
-
],
|
|
1168
|
+
], A.prototype, "maxWidth", 2);
|
|
1168
1169
|
w([
|
|
1169
1170
|
h({ attribute: "max-height", reflect: !0, type: Number })
|
|
1170
|
-
],
|
|
1171
|
+
], A.prototype, "maxHeight", 2);
|
|
1171
1172
|
w([
|
|
1172
1173
|
h({ attribute: "ratio-width", reflect: !0, type: Number })
|
|
1173
|
-
],
|
|
1174
|
+
], A.prototype, "ratioWidth", 2);
|
|
1174
1175
|
w([
|
|
1175
1176
|
h({ attribute: "ratio-height", reflect: !0, type: Number })
|
|
1176
|
-
],
|
|
1177
|
+
], A.prototype, "ratioHeight", 2);
|
|
1177
1178
|
w([
|
|
1178
1179
|
h({ attribute: "percentage-width", reflect: !0, type: Number })
|
|
1179
|
-
],
|
|
1180
|
+
], A.prototype, "percentageWidth", 2);
|
|
1180
1181
|
w([
|
|
1181
1182
|
h({ attribute: "percentage-height", reflect: !0, type: Number })
|
|
1182
|
-
],
|
|
1183
|
+
], A.prototype, "percentageHeight", 2);
|
|
1183
1184
|
w([
|
|
1184
1185
|
h({ reflect: !0, type: String })
|
|
1185
|
-
],
|
|
1186
|
+
], A.prototype, "unit", 2);
|
|
1186
1187
|
w([
|
|
1187
1188
|
h({ attribute: "disabled-apply", reflect: !0, type: Boolean })
|
|
1188
|
-
],
|
|
1189
|
+
], A.prototype, "disabledApply", 2);
|
|
1189
1190
|
w([
|
|
1190
1191
|
h({ attribute: "no-ratio-modes", reflect: !0, type: Boolean })
|
|
1191
|
-
],
|
|
1192
|
+
], A.prototype, "noRatioModes", 2);
|
|
1192
1193
|
w([
|
|
1193
1194
|
h({ attribute: "show-position-picker", reflect: !0, type: Boolean })
|
|
1194
|
-
],
|
|
1195
|
+
], A.prototype, "showPositionPicker", 2);
|
|
1195
1196
|
w([
|
|
1196
1197
|
h({ attribute: "last-applied-setting", reflect: !1, type: Object })
|
|
1197
|
-
],
|
|
1198
|
+
], A.prototype, "lastAppliedSetting", 2);
|
|
1198
1199
|
w([
|
|
1199
1200
|
h({ reflect: !0, type: Boolean })
|
|
1200
|
-
],
|
|
1201
|
+
], A.prototype, "loading", 2);
|
|
1201
1202
|
w([
|
|
1202
1203
|
h({ attribute: "crop-modes", reflect: !1, type: Array })
|
|
1203
|
-
],
|
|
1204
|
+
], A.prototype, "cropModes", 2);
|
|
1204
1205
|
w([
|
|
1205
1206
|
h({ attribute: "focus-modes", reflect: !1, type: Object })
|
|
1206
|
-
],
|
|
1207
|
+
], A.prototype, "focusModes", 2);
|
|
1207
1208
|
w([
|
|
1208
1209
|
h({ attribute: "focus-mode", reflect: !0, type: String })
|
|
1209
|
-
],
|
|
1210
|
+
], A.prototype, "focusMode", 2);
|
|
1210
1211
|
w([
|
|
1211
1212
|
h({ attribute: "crop-mode", reflect: !0, type: String })
|
|
1212
|
-
],
|
|
1213
|
+
], A.prototype, "cropMode", 2);
|
|
1213
1214
|
w([
|
|
1214
1215
|
h({ reflect: !0, type: String })
|
|
1215
|
-
],
|
|
1216
|
+
], A.prototype, "position", 2);
|
|
1216
1217
|
w([
|
|
1217
1218
|
h({ attribute: "keep-aspect-ratio", reflect: !0, type: Boolean })
|
|
1218
|
-
],
|
|
1219
|
+
], A.prototype, "keepAspectRatio", 2);
|
|
1219
1220
|
w([
|
|
1220
1221
|
$()
|
|
1221
|
-
],
|
|
1222
|
+
], A.prototype, "invalidWidth", 2);
|
|
1222
1223
|
w([
|
|
1223
1224
|
$()
|
|
1224
|
-
],
|
|
1225
|
+
], A.prototype, "invalidHeight", 2);
|
|
1225
1226
|
w([
|
|
1226
1227
|
$()
|
|
1227
|
-
],
|
|
1228
|
+
], A.prototype, "aspectRatio", 2);
|
|
1228
1229
|
w([
|
|
1229
1230
|
_("cropMode", { waitUntilFirstUpdate: !0 }),
|
|
1230
1231
|
_("maxWidth", { waitUntilFirstUpdate: !0 }),
|
|
1231
1232
|
_("maxHeight", { waitUntilFirstUpdate: !0 }),
|
|
1232
1233
|
_("keepAspectRatio")
|
|
1233
|
-
],
|
|
1234
|
+
], A.prototype, "handleCropModeChange", 1);
|
|
1234
1235
|
w([
|
|
1235
1236
|
_("open", { waitUntilFirstUpdate: !0 })
|
|
1236
|
-
],
|
|
1237
|
-
|
|
1237
|
+
], A.prototype, "handleOpenChange", 1);
|
|
1238
|
+
A = w([
|
|
1238
1239
|
Q("cx-asset-link-format-crop")
|
|
1239
|
-
],
|
|
1240
|
+
], A);
|
|
1240
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%}}`;
|
|
1241
1242
|
var Ne = Object.defineProperty, Oe = Object.getOwnPropertyDescriptor, $t = (t, e, i, s) => {
|
|
1242
1243
|
for (var a = s > 1 ? void 0 : s ? Oe(e, i) : e, r = t.length - 1, n; r >= 0; r--)
|
|
1243
1244
|
(n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
|
|
1244
1245
|
return s && a && Ne(e, i, a), a;
|
|
1245
1246
|
};
|
|
1246
|
-
let K = class extends
|
|
1247
|
+
let K = class extends B {
|
|
1247
1248
|
constructor() {
|
|
1248
1249
|
super(...arguments), this.localize = new V(this), this.value = "", this.items = [];
|
|
1249
1250
|
}
|
|
@@ -1265,8 +1266,8 @@ K.styles = [G, De];
|
|
|
1265
1266
|
K.dependencies = {
|
|
1266
1267
|
"cx-option": yt,
|
|
1267
1268
|
"cx-select": St,
|
|
1268
|
-
"cx-space":
|
|
1269
|
-
"cx-typography":
|
|
1269
|
+
"cx-space": q,
|
|
1270
|
+
"cx-typography": U
|
|
1270
1271
|
};
|
|
1271
1272
|
$t([
|
|
1272
1273
|
h({ reflect: !0, type: String })
|
|
@@ -1278,13 +1279,13 @@ K = $t([
|
|
|
1278
1279
|
Q("cx-asset-link-format-extension")
|
|
1279
1280
|
], K);
|
|
1280
1281
|
const Le = j`cx-details::part(base){border-bottom-width:0}`;
|
|
1281
|
-
var
|
|
1282
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
1282
|
+
var qe = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, D = (t, e, i, s) => {
|
|
1283
|
+
for (var a = s > 1 ? void 0 : s ? Ue(e, i) : e, r = t.length - 1, n; r >= 0; r--)
|
|
1283
1284
|
(n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
|
|
1284
|
-
return s && a &&
|
|
1285
|
+
return s && a && qe(e, i, a), a;
|
|
1285
1286
|
};
|
|
1286
1287
|
const zt = "auto";
|
|
1287
|
-
let I = class extends
|
|
1288
|
+
let I = class extends B {
|
|
1288
1289
|
constructor() {
|
|
1289
1290
|
super(...arguments), this.localize = new V(this), this.open = !1, this.value = "", this.items = [], this.canAutoFormat = !1, this.autoFormat = !1, this.loading = !1, this.scopedValue = "";
|
|
1290
1291
|
}
|
|
@@ -1361,12 +1362,12 @@ I.styles = [G, Le];
|
|
|
1361
1362
|
I.dependencies = {
|
|
1362
1363
|
"cx-button": Y,
|
|
1363
1364
|
"cx-details": at,
|
|
1364
|
-
"cx-divider":
|
|
1365
|
+
"cx-divider": qt,
|
|
1365
1366
|
"cx-icon": ot,
|
|
1366
1367
|
"cx-option": yt,
|
|
1367
1368
|
"cx-select": St,
|
|
1368
|
-
"cx-space":
|
|
1369
|
-
"cx-typography":
|
|
1369
|
+
"cx-space": q,
|
|
1370
|
+
"cx-typography": U
|
|
1370
1371
|
};
|
|
1371
1372
|
D([
|
|
1372
1373
|
J(".details")
|
|
@@ -1402,13 +1403,13 @@ D([
|
|
|
1402
1403
|
I = D([
|
|
1403
1404
|
Q("cx-asset-link-format-proxy")
|
|
1404
1405
|
], I);
|
|
1405
|
-
const
|
|
1406
|
+
const Be = j`cx-details::part(base){border-bottom-width:0}`;
|
|
1406
1407
|
var je = Object.defineProperty, Ve = Object.getOwnPropertyDescriptor, tt = (t, e, i, s) => {
|
|
1407
1408
|
for (var a = s > 1 ? void 0 : s ? Ve(e, i) : e, r = t.length - 1, n; r >= 0; r--)
|
|
1408
1409
|
(n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
|
|
1409
1410
|
return s && a && je(e, i, a), a;
|
|
1410
1411
|
};
|
|
1411
|
-
let W = class extends
|
|
1412
|
+
let W = class extends B {
|
|
1412
1413
|
constructor() {
|
|
1413
1414
|
super(...arguments), this.localize = new V(this), this.open = !1, this.value = 100, this.loading = !1, this.scopedValue = 100;
|
|
1414
1415
|
}
|
|
@@ -1459,15 +1460,15 @@ let W = class extends q {
|
|
|
1459
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>`;
|
|
1460
1461
|
}
|
|
1461
1462
|
};
|
|
1462
|
-
W.styles = [G,
|
|
1463
|
+
W.styles = [G, Be];
|
|
1463
1464
|
W.dependencies = {
|
|
1464
1465
|
"cx-button": Y,
|
|
1465
1466
|
"cx-details": at,
|
|
1466
1467
|
"cx-icon": ot,
|
|
1467
1468
|
"cx-input": kt,
|
|
1468
|
-
"cx-space":
|
|
1469
|
-
"cx-tooltip":
|
|
1470
|
-
"cx-typography":
|
|
1469
|
+
"cx-space": q,
|
|
1470
|
+
"cx-tooltip": Ut,
|
|
1471
|
+
"cx-typography": U
|
|
1471
1472
|
};
|
|
1472
1473
|
tt([
|
|
1473
1474
|
J(".details")
|
|
@@ -1496,7 +1497,7 @@ var Qe = Object.defineProperty, Xe = Object.getOwnPropertyDescriptor, P = (t, e,
|
|
|
1496
1497
|
(n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
|
|
1497
1498
|
return s && a && Qe(e, i, a), a;
|
|
1498
1499
|
};
|
|
1499
|
-
let R = class extends
|
|
1500
|
+
let R = class extends B {
|
|
1500
1501
|
constructor() {
|
|
1501
1502
|
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.unit = o.Pixel, this.lastAppliedSetting = {
|
|
1502
1503
|
[o.Pixel]: { height: 0, width: 0 },
|
|
@@ -1660,8 +1661,8 @@ R.dependencies = {
|
|
|
1660
1661
|
"cx-input": kt,
|
|
1661
1662
|
"cx-option": yt,
|
|
1662
1663
|
"cx-select": St,
|
|
1663
|
-
"cx-space":
|
|
1664
|
-
"cx-typography":
|
|
1664
|
+
"cx-space": q,
|
|
1665
|
+
"cx-typography": U
|
|
1665
1666
|
};
|
|
1666
1667
|
P([
|
|
1667
1668
|
J(".details")
|
|
@@ -1729,7 +1730,7 @@ var Ke = Object.defineProperty, Ye = Object.getOwnPropertyDescriptor, X = (t, e,
|
|
|
1729
1730
|
(n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
|
|
1730
1731
|
return s && a && Ke(e, i, a), a;
|
|
1731
1732
|
};
|
|
1732
|
-
let T = class extends
|
|
1733
|
+
let T = class extends B {
|
|
1733
1734
|
constructor() {
|
|
1734
1735
|
super(...arguments), this.localize = new V(this), this.open = !1, this.value = 0, this.defaultValue = 0, this.loading = !1, this.lastAppliedValue = 0;
|
|
1735
1736
|
}
|
|
@@ -1782,8 +1783,8 @@ T.dependencies = {
|
|
|
1782
1783
|
"cx-details": at,
|
|
1783
1784
|
"cx-icon": ot,
|
|
1784
1785
|
"cx-icon-button": Ct,
|
|
1785
|
-
"cx-space":
|
|
1786
|
-
"cx-typography":
|
|
1786
|
+
"cx-space": q,
|
|
1787
|
+
"cx-typography": U
|
|
1787
1788
|
};
|
|
1788
1789
|
X([
|
|
1789
1790
|
J(".details")
|
|
@@ -1810,12 +1811,12 @@ T = X([
|
|
|
1810
1811
|
Q("cx-asset-link-format-rotation")
|
|
1811
1812
|
], T);
|
|
1812
1813
|
const Je = j`cx-details::part(base){border-bottom-width:0}`;
|
|
1813
|
-
var ti = Object.defineProperty, ei = Object.getOwnPropertyDescriptor,
|
|
1814
|
+
var ti = Object.defineProperty, ei = Object.getOwnPropertyDescriptor, vt = (t, e, i, s) => {
|
|
1814
1815
|
for (var a = s > 1 ? void 0 : s ? ei(e, i) : e, r = t.length - 1, n; r >= 0; r--)
|
|
1815
1816
|
(n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
|
|
1816
1817
|
return s && a && ti(e, i, a), a;
|
|
1817
1818
|
};
|
|
1818
|
-
let L = class extends
|
|
1819
|
+
let L = class extends B {
|
|
1819
1820
|
constructor() {
|
|
1820
1821
|
super(...arguments), this.localize = new V(this), this.open = !1, this.value = !1;
|
|
1821
1822
|
}
|
|
@@ -1850,28 +1851,28 @@ L.dependencies = {
|
|
|
1850
1851
|
"cx-checkbox": pe,
|
|
1851
1852
|
"cx-details": at,
|
|
1852
1853
|
"cx-icon": ot,
|
|
1853
|
-
"cx-space":
|
|
1854
|
-
"cx-tooltip":
|
|
1855
|
-
"cx-typography":
|
|
1854
|
+
"cx-space": q,
|
|
1855
|
+
"cx-tooltip": Ut,
|
|
1856
|
+
"cx-typography": U
|
|
1856
1857
|
};
|
|
1857
|
-
|
|
1858
|
+
vt([
|
|
1858
1859
|
J(".details")
|
|
1859
1860
|
], L.prototype, "base", 2);
|
|
1860
|
-
|
|
1861
|
+
vt([
|
|
1861
1862
|
h({ reflect: !0, type: Boolean })
|
|
1862
1863
|
], L.prototype, "open", 2);
|
|
1863
|
-
|
|
1864
|
+
vt([
|
|
1864
1865
|
h({ reflect: !0, type: Boolean })
|
|
1865
1866
|
], L.prototype, "value", 2);
|
|
1866
|
-
L =
|
|
1867
|
+
L = vt([
|
|
1867
1868
|
Q("cx-asset-link-format-metadata")
|
|
1868
1869
|
], L);
|
|
1869
|
-
var ii = Object.defineProperty, si = Object.getOwnPropertyDescriptor,
|
|
1870
|
+
var ii = Object.defineProperty, si = Object.getOwnPropertyDescriptor, x = (t, e, i, s) => {
|
|
1870
1871
|
for (var a = s > 1 ? void 0 : s ? si(e, i) : e, r = t.length - 1, n; r >= 0; r--)
|
|
1871
1872
|
(n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
|
|
1872
1873
|
return s && a && ii(e, i, a), a;
|
|
1873
1874
|
};
|
|
1874
|
-
let
|
|
1875
|
+
let f = class extends B {
|
|
1875
1876
|
constructor() {
|
|
1876
1877
|
super(), this.localize = new V(this), this.baseUrl = void 0, this.token = void 0, this.asset = void 0, this.cropModes = [
|
|
1877
1878
|
{
|
|
@@ -1991,7 +1992,7 @@ let m = class extends q {
|
|
|
1991
1992
|
*/
|
|
1992
1993
|
get lastAppliedCropUnit() {
|
|
1993
1994
|
return this.transformations.findLast(
|
|
1994
|
-
(e) => e.key ===
|
|
1995
|
+
(e) => e.key === m.Crop
|
|
1995
1996
|
)?.value.unit ?? o.Pixel;
|
|
1996
1997
|
}
|
|
1997
1998
|
/**
|
|
@@ -2001,7 +2002,7 @@ let m = class extends q {
|
|
|
2001
2002
|
*/
|
|
2002
2003
|
get lastAppliedCropFocusMode() {
|
|
2003
2004
|
return this.transformations.findLast(
|
|
2004
|
-
(e) => e.key ===
|
|
2005
|
+
(e) => e.key === m.Crop
|
|
2005
2006
|
)?.value.focusMode ?? "manual";
|
|
2006
2007
|
}
|
|
2007
2008
|
/**
|
|
@@ -2011,7 +2012,7 @@ let m = class extends q {
|
|
|
2011
2012
|
*/
|
|
2012
2013
|
get lastAppliedCropPosition() {
|
|
2013
2014
|
return this.transformations.findLast(
|
|
2014
|
-
(e) => e.key ===
|
|
2015
|
+
(e) => e.key === m.Crop
|
|
2015
2016
|
)?.value.position ?? N.CenterCenter;
|
|
2016
2017
|
}
|
|
2017
2018
|
/**
|
|
@@ -2063,7 +2064,7 @@ let m = class extends q {
|
|
|
2063
2064
|
get lastCropSize() {
|
|
2064
2065
|
if (!this.asset) {
|
|
2065
2066
|
const e = this.transformations.findLast(
|
|
2066
|
-
(i) => i.key ===
|
|
2067
|
+
(i) => i.key === m.Crop
|
|
2067
2068
|
);
|
|
2068
2069
|
if (e?.value.unit === o.AspectRatio && e.value.ratioWidth && e.value.ratioHeight)
|
|
2069
2070
|
return {
|
|
@@ -2146,7 +2147,7 @@ let m = class extends q {
|
|
|
2146
2147
|
get lastResizeSize() {
|
|
2147
2148
|
if (!this.asset) {
|
|
2148
2149
|
const e = this.transformations.findLast(
|
|
2149
|
-
(i) => i.key ===
|
|
2150
|
+
(i) => i.key === m.Resize
|
|
2150
2151
|
);
|
|
2151
2152
|
if (e?.value.unit === o.AspectRatio && e.value.ratioWidth && e.value.ratioHeight)
|
|
2152
2153
|
return {
|
|
@@ -2202,7 +2203,7 @@ let m = class extends q {
|
|
|
2202
2203
|
*/
|
|
2203
2204
|
get lastRotation() {
|
|
2204
2205
|
return this.asset ? 0 : this.transformations.findLast(
|
|
2205
|
-
(e) => e.key ===
|
|
2206
|
+
(e) => e.key === m.Rotate
|
|
2206
2207
|
)?.value.rotation ?? 0;
|
|
2207
2208
|
}
|
|
2208
2209
|
/**
|
|
@@ -2243,32 +2244,22 @@ let m = class extends q {
|
|
|
2243
2244
|
if (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")) {
|
|
2244
2245
|
if (!this.asset || !this.selectedFormat || this.selectedFormat.extension === t.get("selectedFormat")?.extension)
|
|
2245
2246
|
return;
|
|
2246
|
-
|
|
2247
|
-
(
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
assetId: this.asset.id,
|
|
2251
|
-
extension: m.getTransformExtension(this.asset.extension),
|
|
2252
|
-
format: e?.proxyName ?? "",
|
|
2253
|
-
siteUrl: this.baseUrl,
|
|
2254
|
-
token: this.token,
|
|
2255
|
-
transformations: this.transformationString
|
|
2256
|
-
}).then((s) => {
|
|
2257
|
-
this.loading = !1, !(!s?.relativePath || !this.selectedFormat) && (this.lastAction === f.Rotate && (this.rotation = 0), this.lastAction = void 0, this.lastImageSize = {
|
|
2258
|
-
height: s.height,
|
|
2259
|
-
width: s.width
|
|
2247
|
+
this.loading = !0, this.requestTransformAsset().then((i) => {
|
|
2248
|
+
this.loading = !1, !(!i?.relativePath || !this.selectedFormat) && (this.lastAction === m.Rotate && (this.rotation = 0), this.lastAction = void 0, this.lastImageSize = {
|
|
2249
|
+
height: i.height,
|
|
2250
|
+
width: i.width
|
|
2260
2251
|
}, this.selectedFormat = {
|
|
2261
2252
|
...this.selectedFormat,
|
|
2262
|
-
height:
|
|
2263
|
-
url: this.baseUrl && this.baseUrl.length > 0 ? `${this.baseUrl}/${
|
|
2264
|
-
width:
|
|
2253
|
+
height: i.height,
|
|
2254
|
+
url: this.baseUrl && this.baseUrl.length > 0 ? `${this.baseUrl}/${i.relativePath}` : i.relativePath,
|
|
2255
|
+
width: i.width
|
|
2265
2256
|
/**
|
|
2266
2257
|
* For local development uses the base URL to construct the full URL.
|
|
2267
2258
|
* url: `${this.baseUrl}/${response.relativePath}`,
|
|
2268
2259
|
*/
|
|
2269
2260
|
});
|
|
2270
2261
|
});
|
|
2271
|
-
const
|
|
2262
|
+
const e = dt({
|
|
2272
2263
|
asset: this.asset,
|
|
2273
2264
|
baseUrl: "",
|
|
2274
2265
|
extension: this.selectedFormat.extension,
|
|
@@ -2277,13 +2268,52 @@ let m = class extends q {
|
|
|
2277
2268
|
useSession: this.useSession
|
|
2278
2269
|
});
|
|
2279
2270
|
this.emit("cx-asset-link-format-change", {
|
|
2280
|
-
detail:
|
|
2271
|
+
detail: e
|
|
2281
2272
|
});
|
|
2282
2273
|
}
|
|
2283
2274
|
}
|
|
2284
2275
|
getCropSize() {
|
|
2285
2276
|
return this.cropSize;
|
|
2286
2277
|
}
|
|
2278
|
+
/** Captures the current request synchronously; later edits cannot change Save's ratio. */
|
|
2279
|
+
async getAppliedAspectRatio() {
|
|
2280
|
+
if (!this.asset || !this.selectedFormat)
|
|
2281
|
+
return;
|
|
2282
|
+
const e = await this.getTransformRequest(this.transformRequestOptions).promise.catch(() => {
|
|
2283
|
+
});
|
|
2284
|
+
if (!e?.relativePath)
|
|
2285
|
+
return;
|
|
2286
|
+
const i = Number(e?.width) / Number(e?.height);
|
|
2287
|
+
return Number(e?.width) > 0 && Number(e?.height) > 0 && Number.isFinite(i) ? i : void 0;
|
|
2288
|
+
}
|
|
2289
|
+
get transformRequestOptions() {
|
|
2290
|
+
return {
|
|
2291
|
+
assetId: this.asset?.id ?? "",
|
|
2292
|
+
// The API sends this as TargetExtension, so both preview paths and Save
|
|
2293
|
+
// must use the selected output extension, not the original asset's extension.
|
|
2294
|
+
extension: f.getTransformExtension(this.selectedFormat?.extension ?? ""),
|
|
2295
|
+
format: this.proxies?.find((t) => t.id === this.selectedProxy)?.proxyName ?? "",
|
|
2296
|
+
siteUrl: this.baseUrl,
|
|
2297
|
+
token: this.token,
|
|
2298
|
+
transformations: this.transformationString
|
|
2299
|
+
};
|
|
2300
|
+
}
|
|
2301
|
+
getTransformRequest(t) {
|
|
2302
|
+
const e = JSON.stringify(t);
|
|
2303
|
+
if (this.transformRequest?.key !== e) {
|
|
2304
|
+
const i = { key: e, promise: this.apiGetTransformAssetLink(t) };
|
|
2305
|
+
i.promise = i.promise.catch(() => null).then((s) => (!s?.relativePath && this.transformRequest === i && (this.transformRequest = void 0), s)), this.transformRequest = i;
|
|
2306
|
+
}
|
|
2307
|
+
return this.transformRequest;
|
|
2308
|
+
}
|
|
2309
|
+
async requestTransformAsset() {
|
|
2310
|
+
if (!this.asset || !this.selectedFormat)
|
|
2311
|
+
return;
|
|
2312
|
+
const t = this.getTransformRequest(this.transformRequestOptions), e = await t.promise.catch(() => {
|
|
2313
|
+
});
|
|
2314
|
+
if (!(this.transformRequest !== t || JSON.stringify(this.transformRequestOptions) !== t.key))
|
|
2315
|
+
return e;
|
|
2316
|
+
}
|
|
2287
2317
|
setActiveSetting(t) {
|
|
2288
2318
|
this.activeSetting = t;
|
|
2289
2319
|
}
|
|
@@ -2312,36 +2342,36 @@ let m = class extends q {
|
|
|
2312
2342
|
useSession: this.useSession
|
|
2313
2343
|
}).replace(/\/t\//g, "")
|
|
2314
2344
|
});
|
|
2315
|
-
const
|
|
2316
|
-
(c) => c.key ===
|
|
2345
|
+
const a = this.transformations.findLast(
|
|
2346
|
+
(c) => c.key === m.Crop && (c.value.unit === o.AspectRatio && c.value.ratioWidth && c.value.ratioHeight || c.value.width && c.value.height)
|
|
2317
2347
|
);
|
|
2318
|
-
if (
|
|
2319
|
-
const { focusMode: c, position:
|
|
2348
|
+
if (a?.value.unit === o.AspectRatio && a.value.ratioWidth && a.value.ratioHeight) {
|
|
2349
|
+
const { focusMode: c, position: g, ratioHeight: u, ratioWidth: y } = a.value;
|
|
2320
2350
|
this.cropSize = {
|
|
2321
2351
|
...this.cropSize,
|
|
2322
2352
|
cropMode: "free",
|
|
2323
2353
|
focusMode: c ?? "manual",
|
|
2324
2354
|
percentageHeight: 100,
|
|
2325
2355
|
percentageWidth: 100,
|
|
2326
|
-
position:
|
|
2327
|
-
ratioHeight:
|
|
2328
|
-
ratioWidth:
|
|
2356
|
+
position: g ?? N.CenterCenter,
|
|
2357
|
+
ratioHeight: u,
|
|
2358
|
+
ratioWidth: y,
|
|
2329
2359
|
unit: o.AspectRatio
|
|
2330
2360
|
};
|
|
2331
|
-
} else if (
|
|
2332
|
-
const { focusMode: c, height:
|
|
2361
|
+
} else if (a) {
|
|
2362
|
+
const { focusMode: c, height: g, position: u, unit: y, width: S, x: d = 0, y: v = 0 } = a.value;
|
|
2333
2363
|
this.cropSize = {
|
|
2334
2364
|
...this.cropSize,
|
|
2335
2365
|
cropMode: "free",
|
|
2336
2366
|
focusMode: c ?? "manual",
|
|
2337
|
-
height:
|
|
2367
|
+
height: g,
|
|
2338
2368
|
percentageHeight: 100,
|
|
2339
2369
|
percentageWidth: 100,
|
|
2340
|
-
position:
|
|
2341
|
-
unit:
|
|
2342
|
-
width:
|
|
2343
|
-
x:
|
|
2344
|
-
y:
|
|
2370
|
+
position: u ?? N.CenterCenter,
|
|
2371
|
+
unit: y ?? o.Pixel,
|
|
2372
|
+
width: S,
|
|
2373
|
+
x: d,
|
|
2374
|
+
y: v
|
|
2345
2375
|
};
|
|
2346
2376
|
} else
|
|
2347
2377
|
this.cropSize = {
|
|
@@ -2363,24 +2393,24 @@ let m = class extends q {
|
|
|
2363
2393
|
x: 0,
|
|
2364
2394
|
y: 0
|
|
2365
2395
|
};
|
|
2366
|
-
const
|
|
2367
|
-
(c) => c.key ===
|
|
2396
|
+
const r = this.transformations.findLast(
|
|
2397
|
+
(c) => c.key === m.Resize && (c.value.unit === o.AspectRatio && c.value.ratioWidth && c.value.ratioHeight || c.value.width || c.value.height)
|
|
2368
2398
|
);
|
|
2369
|
-
if (
|
|
2370
|
-
const { ratioHeight: c, ratioWidth:
|
|
2399
|
+
if (r?.value.unit === o.AspectRatio && r.value.ratioWidth && r.value.ratioHeight) {
|
|
2400
|
+
const { ratioHeight: c, ratioWidth: g } = r.value;
|
|
2371
2401
|
this.resizeSize = {
|
|
2372
2402
|
...this.resizeSize,
|
|
2373
2403
|
ratioHeight: c,
|
|
2374
|
-
ratioWidth:
|
|
2404
|
+
ratioWidth: g,
|
|
2375
2405
|
unit: o.AspectRatio
|
|
2376
2406
|
};
|
|
2377
|
-
} else if (
|
|
2378
|
-
const { height: c = 0, unit:
|
|
2407
|
+
} else if (r) {
|
|
2408
|
+
const { height: c = 0, unit: g, width: u = 0 } = r.value;
|
|
2379
2409
|
this.resizeSize = {
|
|
2380
2410
|
...this.resizeSize,
|
|
2381
2411
|
height: c,
|
|
2382
|
-
unit:
|
|
2383
|
-
width:
|
|
2412
|
+
unit: g ?? o.Pixel,
|
|
2413
|
+
width: u
|
|
2384
2414
|
};
|
|
2385
2415
|
} else
|
|
2386
2416
|
this.resizeSize = {
|
|
@@ -2394,18 +2424,18 @@ let m = class extends q {
|
|
|
2394
2424
|
unit: o.Pixel,
|
|
2395
2425
|
width: 1
|
|
2396
2426
|
};
|
|
2397
|
-
const
|
|
2398
|
-
(c) => c.key ===
|
|
2427
|
+
const n = this.transformations.findLast(
|
|
2428
|
+
(c) => c.key === m.Rotate
|
|
2399
2429
|
);
|
|
2400
|
-
this.rotation =
|
|
2401
|
-
const
|
|
2402
|
-
(c) => c.key ===
|
|
2430
|
+
this.rotation = n?.value.rotation ?? 0;
|
|
2431
|
+
const l = this.transformations.findLast((c) => c.key === m.Quality)?.value.quality ?? 100, p = this.transformations.some(
|
|
2432
|
+
(c) => c.key === m.Metadata
|
|
2403
2433
|
);
|
|
2404
|
-
this.selectedFormat ? this.selectedFormat = { ...this.selectedFormat, keepMetadata:
|
|
2434
|
+
this.selectedFormat ? this.selectedFormat = { ...this.selectedFormat, keepMetadata: p, quality: l } : this.selectedFormat = {
|
|
2405
2435
|
extension: "",
|
|
2406
2436
|
height: 0,
|
|
2407
|
-
keepMetadata:
|
|
2408
|
-
quality:
|
|
2437
|
+
keepMetadata: p,
|
|
2438
|
+
quality: l,
|
|
2409
2439
|
rotation: 0,
|
|
2410
2440
|
url: "",
|
|
2411
2441
|
width: 0,
|
|
@@ -2416,34 +2446,24 @@ let m = class extends q {
|
|
|
2416
2446
|
}
|
|
2417
2447
|
if (!this.selectedFormat)
|
|
2418
2448
|
return;
|
|
2419
|
-
const t = this.proxies?.find(
|
|
2420
|
-
(r) => r.id === this.selectedProxy
|
|
2421
|
-
);
|
|
2422
2449
|
this.loading = !0;
|
|
2423
|
-
const
|
|
2424
|
-
|
|
2425
|
-
extension: m.getTransformExtension(this.selectedFormat.extension),
|
|
2426
|
-
format: t?.proxyName ?? "",
|
|
2427
|
-
siteUrl: this.baseUrl,
|
|
2428
|
-
token: this.token,
|
|
2429
|
-
transformations: this.transformationString
|
|
2430
|
-
});
|
|
2431
|
-
if (this.loading = !1, !e?.relativePath || !this.selectedFormat)
|
|
2450
|
+
const t = await this.requestTransformAsset();
|
|
2451
|
+
if (this.loading = !1, !t?.relativePath || !this.selectedFormat)
|
|
2432
2452
|
return;
|
|
2433
2453
|
this.lastImageSize = {
|
|
2434
|
-
height:
|
|
2435
|
-
width:
|
|
2454
|
+
height: t.height,
|
|
2455
|
+
width: t.width
|
|
2436
2456
|
}, this.resizeSize = {
|
|
2437
|
-
height:
|
|
2457
|
+
height: t.height,
|
|
2438
2458
|
keepAspectRatio: !0,
|
|
2439
2459
|
ratioHeight: 1,
|
|
2440
2460
|
ratioWidth: 1,
|
|
2441
2461
|
unit: o.Pixel,
|
|
2442
|
-
width:
|
|
2462
|
+
width: t.width
|
|
2443
2463
|
}, this.cropSize = {
|
|
2444
2464
|
cropMode: "free",
|
|
2445
2465
|
focusMode: "manual",
|
|
2446
|
-
height:
|
|
2466
|
+
height: t.height,
|
|
2447
2467
|
keepAspectRatio: this.cropSize.keepAspectRatio,
|
|
2448
2468
|
percentageHeight: 100,
|
|
2449
2469
|
percentageWidth: 100,
|
|
@@ -2451,28 +2471,28 @@ let m = class extends q {
|
|
|
2451
2471
|
ratioHeight: 1,
|
|
2452
2472
|
ratioWidth: 1,
|
|
2453
2473
|
unit: o.Pixel,
|
|
2454
|
-
width:
|
|
2474
|
+
width: t.width,
|
|
2455
2475
|
x: 0,
|
|
2456
2476
|
y: 0
|
|
2457
|
-
}, this.lastAction ===
|
|
2458
|
-
const
|
|
2459
|
-
(
|
|
2460
|
-
),
|
|
2461
|
-
(
|
|
2477
|
+
}, this.lastAction === m.Rotate && (this.rotation = 0), this.lastAction = void 0;
|
|
2478
|
+
const e = this.transformations.some(
|
|
2479
|
+
(a) => a.key === m.Metadata
|
|
2480
|
+
), i = this.transformations.findLast(
|
|
2481
|
+
(a) => a.key === m.Quality
|
|
2462
2482
|
);
|
|
2463
2483
|
this.selectedFormat = {
|
|
2464
2484
|
...this.selectedFormat,
|
|
2465
|
-
height:
|
|
2466
|
-
keepMetadata:
|
|
2467
|
-
quality:
|
|
2468
|
-
url: this.baseUrl && this.baseUrl.length > 0 ? `${this.baseUrl}/${
|
|
2469
|
-
width:
|
|
2485
|
+
height: t.height,
|
|
2486
|
+
keepMetadata: e,
|
|
2487
|
+
quality: i?.value?.quality ?? this.selectedFormat.quality,
|
|
2488
|
+
url: this.baseUrl && this.baseUrl.length > 0 ? `${this.baseUrl}/${t.relativePath}` : t.relativePath,
|
|
2489
|
+
width: t.width
|
|
2470
2490
|
/**
|
|
2471
2491
|
* For local development uses the base URL to construct the full URL.
|
|
2472
2492
|
* url: `${this.baseUrl}/${response.relativePath}`,
|
|
2473
2493
|
*/
|
|
2474
2494
|
};
|
|
2475
|
-
const
|
|
2495
|
+
const s = dt({
|
|
2476
2496
|
asset: this.asset,
|
|
2477
2497
|
baseUrl: "",
|
|
2478
2498
|
extension: this.selectedFormat.extension,
|
|
@@ -2481,7 +2501,7 @@ let m = class extends q {
|
|
|
2481
2501
|
useSession: this.useSession
|
|
2482
2502
|
});
|
|
2483
2503
|
this.emit("cx-asset-link-format-change", {
|
|
2484
|
-
detail:
|
|
2504
|
+
detail: s
|
|
2485
2505
|
});
|
|
2486
2506
|
}
|
|
2487
2507
|
handleCropperElementChange() {
|
|
@@ -2504,7 +2524,7 @@ let m = class extends q {
|
|
|
2504
2524
|
width: Number.parseInt(this.asset.width, 10)
|
|
2505
2525
|
});
|
|
2506
2526
|
const t = this.transformations.findLast(
|
|
2507
|
-
(e) => e.key ===
|
|
2527
|
+
(e) => e.key === m.Quality
|
|
2508
2528
|
);
|
|
2509
2529
|
this.selectedFormat = {
|
|
2510
2530
|
extension: this.asset.extension,
|
|
@@ -2559,7 +2579,7 @@ let m = class extends q {
|
|
|
2559
2579
|
e.proxyName === "TRX" && (e.formatHeight = Number(this.asset.height), e.formatWidth = Number(this.asset.width));
|
|
2560
2580
|
const i = this.proxies?.find((s) => s.id === t);
|
|
2561
2581
|
i && (this.asset && i.proxyName === "TRX" && (i.formatHeight = Number(this.asset.height), i.formatWidth = Number(this.asset.width)), this.transformations = this.transformations.map((s) => {
|
|
2562
|
-
if (s.key ===
|
|
2582
|
+
if (s.key === m.Crop) {
|
|
2563
2583
|
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;
|
|
2564
2584
|
return {
|
|
2565
2585
|
...s,
|
|
@@ -2572,7 +2592,7 @@ let m = class extends q {
|
|
|
2572
2592
|
}
|
|
2573
2593
|
};
|
|
2574
2594
|
}
|
|
2575
|
-
if (s.key ===
|
|
2595
|
+
if (s.key === m.Resize) {
|
|
2576
2596
|
const a = s.value, r = a.width / i.formatWidth * e.formatWidth, n = a.height / i.formatHeight * e.formatHeight;
|
|
2577
2597
|
return {
|
|
2578
2598
|
...s,
|
|
@@ -2648,21 +2668,21 @@ let m = class extends q {
|
|
|
2648
2668
|
ratioHeight: n,
|
|
2649
2669
|
ratioWidth: l,
|
|
2650
2670
|
unit: p,
|
|
2651
|
-
useCropMode:
|
|
2652
|
-
width:
|
|
2671
|
+
useCropMode: c,
|
|
2672
|
+
width: g
|
|
2653
2673
|
}) {
|
|
2654
2674
|
if (!this.selectedFormat?.url || e === "manual")
|
|
2655
2675
|
return;
|
|
2656
|
-
this.loading = !0, this.lastAction =
|
|
2676
|
+
this.loading = !0, this.lastAction = m.Crop;
|
|
2657
2677
|
const u = await this.apiGetCropFocusMode({
|
|
2658
2678
|
autoCropMode: e,
|
|
2659
2679
|
cropHeight: i,
|
|
2660
|
-
cropWidth:
|
|
2680
|
+
cropWidth: g,
|
|
2661
2681
|
imageUrl: this.selectedFormat.url
|
|
2662
2682
|
});
|
|
2663
2683
|
if (u) {
|
|
2664
2684
|
let y = a, S = r;
|
|
2665
|
-
i || (y = u.height * 100 / this.selectedFormat.height),
|
|
2685
|
+
i || (y = u.height * 100 / this.selectedFormat.height), g || (S = u.width * 100 / this.selectedFormat.width), this.cropSize = {
|
|
2666
2686
|
...this.cropSize,
|
|
2667
2687
|
height: u.height,
|
|
2668
2688
|
percentageHeight: y ?? this.cropSize.percentageHeight,
|
|
@@ -2670,7 +2690,7 @@ let m = class extends q {
|
|
|
2670
2690
|
width: u.width,
|
|
2671
2691
|
x: u.x * 100 / this.selectedFormat.width,
|
|
2672
2692
|
y: u.y * 100 / this.selectedFormat.height,
|
|
2673
|
-
...
|
|
2693
|
+
...c ? {
|
|
2674
2694
|
cropMode: e,
|
|
2675
2695
|
focusMode: "manual",
|
|
2676
2696
|
keepAspectRatio: !1
|
|
@@ -2696,25 +2716,25 @@ let m = class extends q {
|
|
|
2696
2716
|
if (s === 0 || i === 0)
|
|
2697
2717
|
return;
|
|
2698
2718
|
const n = this.cropSize.percentageWidth !== s, l = this.cropSize.percentageHeight !== i;
|
|
2699
|
-
let p = this.cropSize.height,
|
|
2700
|
-
n && (
|
|
2719
|
+
let p = this.cropSize.height, c = this.cropSize.width;
|
|
2720
|
+
n && (c = Math.round(s * this.selectedFormat.width / 100)), l && (p = Math.round(
|
|
2701
2721
|
i * this.selectedFormat.height / 100
|
|
2702
2722
|
));
|
|
2703
|
-
const
|
|
2723
|
+
const g = this.cropSize.focusMode;
|
|
2704
2724
|
this.focusModes.find(
|
|
2705
|
-
(y) => y.value ===
|
|
2725
|
+
(y) => y.value === g
|
|
2706
2726
|
)?.auto && this.selectedFormat?.url && this.cropperElement ? await this.handleRequestAutoCropSuggestion({
|
|
2707
|
-
focusMode:
|
|
2727
|
+
focusMode: g,
|
|
2708
2728
|
height: p,
|
|
2709
2729
|
percentageHeight: i,
|
|
2710
2730
|
percentageWidth: s,
|
|
2711
|
-
width:
|
|
2731
|
+
width: c
|
|
2712
2732
|
}) : this.cropSize = {
|
|
2713
2733
|
...this.cropSize,
|
|
2714
2734
|
height: p,
|
|
2715
2735
|
percentageHeight: i,
|
|
2716
2736
|
percentageWidth: s,
|
|
2717
|
-
width:
|
|
2737
|
+
width: c,
|
|
2718
2738
|
x: a,
|
|
2719
2739
|
y: r
|
|
2720
2740
|
};
|
|
@@ -2750,7 +2770,7 @@ let m = class extends q {
|
|
|
2750
2770
|
}
|
|
2751
2771
|
onProxyChange(t) {
|
|
2752
2772
|
const e = t.detail;
|
|
2753
|
-
if (this.lastAction =
|
|
2773
|
+
if (this.lastAction = m.Proxy, e.autoFormat) {
|
|
2754
2774
|
this.autoFormat = !0;
|
|
2755
2775
|
const i = this.autoResolvedProxyId;
|
|
2756
2776
|
i && (this.selectedProxy = i);
|
|
@@ -2815,12 +2835,12 @@ let m = class extends q {
|
|
|
2815
2835
|
) : 0, r = this.asset ? a * 100 / this.selectedFormat.height : 100, n = this.asset ? s * 100 / this.selectedFormat.width : 100;
|
|
2816
2836
|
let l = this.cropSize.x, p = this.cropSize.y;
|
|
2817
2837
|
l + n > 100 && (l = 100 - n), p + r > 100 && (p = 100 - r);
|
|
2818
|
-
let
|
|
2838
|
+
let c = this.cropSize.cropMode;
|
|
2819
2839
|
this.cropModes.find(
|
|
2820
|
-
(u) => u.value ===
|
|
2821
|
-
)?.auto && (
|
|
2840
|
+
(u) => u.value === c
|
|
2841
|
+
)?.auto && (c = "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 = {
|
|
2822
2842
|
...this.cropSize,
|
|
2823
|
-
cropMode:
|
|
2843
|
+
cropMode: c,
|
|
2824
2844
|
height: a,
|
|
2825
2845
|
keepAspectRatio: t.detail.keepAspectRatio,
|
|
2826
2846
|
percentageHeight: r,
|
|
@@ -2868,28 +2888,28 @@ let m = class extends q {
|
|
|
2868
2888
|
});
|
|
2869
2889
|
}
|
|
2870
2890
|
onCropApply(t) {
|
|
2871
|
-
if (this.clearResetSnapshot(), this.lastAction =
|
|
2891
|
+
if (this.clearResetSnapshot(), this.lastAction = m.Crop, !this.asset) {
|
|
2872
2892
|
const {
|
|
2873
2893
|
focusMode: l,
|
|
2874
2894
|
height: p,
|
|
2875
|
-
position:
|
|
2876
|
-
ratioHeight:
|
|
2895
|
+
position: c,
|
|
2896
|
+
ratioHeight: g,
|
|
2877
2897
|
ratioWidth: u,
|
|
2878
2898
|
unit: y,
|
|
2879
2899
|
width: S,
|
|
2880
2900
|
x: d,
|
|
2881
|
-
y:
|
|
2901
|
+
y: v
|
|
2882
2902
|
} = this.cropSize, k = this.focusModes.find(
|
|
2883
2903
|
(b) => b.value === l
|
|
2884
2904
|
)?.auto ?? !1;
|
|
2885
2905
|
if (y === o.AspectRatio) {
|
|
2886
|
-
u &&
|
|
2887
|
-
key:
|
|
2906
|
+
u && g && this.upsertTransformation({
|
|
2907
|
+
key: m.Crop,
|
|
2888
2908
|
value: {
|
|
2889
2909
|
focusMode: l,
|
|
2890
2910
|
isFocusModeAuto: k,
|
|
2891
|
-
position:
|
|
2892
|
-
ratioHeight:
|
|
2911
|
+
position: c,
|
|
2912
|
+
ratioHeight: g,
|
|
2893
2913
|
ratioWidth: u,
|
|
2894
2914
|
unit: y
|
|
2895
2915
|
}
|
|
@@ -2897,12 +2917,12 @@ let m = class extends q {
|
|
|
2897
2917
|
return;
|
|
2898
2918
|
}
|
|
2899
2919
|
(p || S) && this.upsertTransformation({
|
|
2900
|
-
key:
|
|
2920
|
+
key: m.Crop,
|
|
2901
2921
|
value: {
|
|
2902
2922
|
focusMode: l,
|
|
2903
2923
|
height: p,
|
|
2904
2924
|
isFocusModeAuto: k,
|
|
2905
|
-
position:
|
|
2925
|
+
position: c,
|
|
2906
2926
|
unit: y,
|
|
2907
2927
|
width: S,
|
|
2908
2928
|
/**
|
|
@@ -2913,7 +2933,7 @@ let m = class extends q {
|
|
|
2913
2933
|
* suppress the focus mode / position `c_g_` gravity value.
|
|
2914
2934
|
*/
|
|
2915
2935
|
x: Number.isFinite(d) && d !== 0 ? d : void 0,
|
|
2916
|
-
y: Number.isFinite(
|
|
2936
|
+
y: Number.isFinite(v) && v !== 0 ? v : void 0
|
|
2917
2937
|
}
|
|
2918
2938
|
});
|
|
2919
2939
|
return;
|
|
@@ -2930,7 +2950,7 @@ let m = class extends q {
|
|
|
2930
2950
|
this.transformations = [
|
|
2931
2951
|
...this.transformations,
|
|
2932
2952
|
{
|
|
2933
|
-
key:
|
|
2953
|
+
key: m.Crop,
|
|
2934
2954
|
value: {
|
|
2935
2955
|
focusMode: r,
|
|
2936
2956
|
height: p,
|
|
@@ -2941,19 +2961,19 @@ let m = class extends q {
|
|
|
2941
2961
|
}
|
|
2942
2962
|
];
|
|
2943
2963
|
else {
|
|
2944
|
-
const
|
|
2964
|
+
const c = this.cropSize.x / 100 * this.selectedFormat.width, g = this.cropSize.y / 100 * this.selectedFormat.height;
|
|
2945
2965
|
this.transformations = [
|
|
2946
2966
|
...this.transformations,
|
|
2947
2967
|
{
|
|
2948
|
-
key:
|
|
2968
|
+
key: m.Crop,
|
|
2949
2969
|
value: {
|
|
2950
2970
|
focusMode: r,
|
|
2951
2971
|
height: p,
|
|
2952
2972
|
isFocusModeAuto: n,
|
|
2953
2973
|
unit: s,
|
|
2954
2974
|
width: l,
|
|
2955
|
-
x,
|
|
2956
|
-
y:
|
|
2975
|
+
x: c,
|
|
2976
|
+
y: g
|
|
2957
2977
|
}
|
|
2958
2978
|
}
|
|
2959
2979
|
];
|
|
@@ -2961,7 +2981,7 @@ let m = class extends q {
|
|
|
2961
2981
|
} else i && (this.transformations = [
|
|
2962
2982
|
...this.transformations,
|
|
2963
2983
|
{
|
|
2964
|
-
key:
|
|
2984
|
+
key: m.Crop,
|
|
2965
2985
|
value: {
|
|
2966
2986
|
focusMode: r,
|
|
2967
2987
|
isFocusModeAuto: n,
|
|
@@ -2996,21 +3016,21 @@ let m = class extends q {
|
|
|
2996
3016
|
}
|
|
2997
3017
|
onResizeApply(t) {
|
|
2998
3018
|
const { height: e, unit: i, width: s } = t.detail;
|
|
2999
|
-
if (this.clearResetSnapshot(), this.lastAction =
|
|
3019
|
+
if (this.clearResetSnapshot(), this.lastAction = m.Resize, !this.asset) {
|
|
3000
3020
|
if (i === o.AspectRatio) {
|
|
3001
|
-
const { ratioHeight: p, ratioWidth:
|
|
3002
|
-
|
|
3003
|
-
key:
|
|
3021
|
+
const { ratioHeight: p, ratioWidth: c } = this.resizeSize;
|
|
3022
|
+
c && p && this.upsertTransformation({
|
|
3023
|
+
key: m.Resize,
|
|
3004
3024
|
value: {
|
|
3005
3025
|
ratioHeight: p,
|
|
3006
|
-
ratioWidth:
|
|
3026
|
+
ratioWidth: c,
|
|
3007
3027
|
unit: i
|
|
3008
3028
|
}
|
|
3009
3029
|
});
|
|
3010
3030
|
return;
|
|
3011
3031
|
}
|
|
3012
3032
|
(e || s) && this.upsertTransformation({
|
|
3013
|
-
key:
|
|
3033
|
+
key: m.Resize,
|
|
3014
3034
|
value: {
|
|
3015
3035
|
height: e,
|
|
3016
3036
|
unit: i,
|
|
@@ -3026,7 +3046,7 @@ let m = class extends q {
|
|
|
3026
3046
|
this.resizeSize.unit !== i ? (n = a, l = r) : i === o.AspectRatio && (n = Math.round(s / e * r), l = r), this.transformations = [
|
|
3027
3047
|
...this.transformations,
|
|
3028
3048
|
{
|
|
3029
|
-
key:
|
|
3049
|
+
key: m.Resize,
|
|
3030
3050
|
value: {
|
|
3031
3051
|
height: l,
|
|
3032
3052
|
unit: i,
|
|
@@ -3040,21 +3060,21 @@ let m = class extends q {
|
|
|
3040
3060
|
}
|
|
3041
3061
|
onRotationApply(t) {
|
|
3042
3062
|
const e = t.detail;
|
|
3043
|
-
if (this.clearResetSnapshot(), this.lastAction =
|
|
3063
|
+
if (this.clearResetSnapshot(), this.lastAction = m.Rotate, !this.asset) {
|
|
3044
3064
|
e ? this.upsertTransformation({
|
|
3045
|
-
key:
|
|
3065
|
+
key: m.Rotate,
|
|
3046
3066
|
value: {
|
|
3047
3067
|
rotation: e
|
|
3048
3068
|
}
|
|
3049
3069
|
}) : this.transformations = this.transformations.filter(
|
|
3050
|
-
(i) => i.key !==
|
|
3070
|
+
(i) => i.key !== m.Rotate
|
|
3051
3071
|
);
|
|
3052
3072
|
return;
|
|
3053
3073
|
}
|
|
3054
3074
|
this.selectedFormat && (this.transformations = [
|
|
3055
3075
|
...this.transformations,
|
|
3056
3076
|
{
|
|
3057
|
-
key:
|
|
3077
|
+
key: m.Rotate,
|
|
3058
3078
|
value: {
|
|
3059
3079
|
rotation: e
|
|
3060
3080
|
}
|
|
@@ -3063,9 +3083,9 @@ let m = class extends q {
|
|
|
3063
3083
|
}
|
|
3064
3084
|
onQualityChange(t) {
|
|
3065
3085
|
const e = t.detail;
|
|
3066
|
-
this.selectedFormat && (this.selectedFormat.quality = e), this.clearResetSnapshot(), this.lastAction =
|
|
3086
|
+
this.selectedFormat && (this.selectedFormat.quality = e), this.clearResetSnapshot(), this.lastAction = m.Quality;
|
|
3067
3087
|
const i = {
|
|
3068
|
-
key:
|
|
3088
|
+
key: m.Quality,
|
|
3069
3089
|
value: {
|
|
3070
3090
|
quality: e
|
|
3071
3091
|
}
|
|
@@ -3079,22 +3099,22 @@ let m = class extends q {
|
|
|
3079
3099
|
keepMetadata: e
|
|
3080
3100
|
}), !this.asset) {
|
|
3081
3101
|
e ? this.upsertTransformation({
|
|
3082
|
-
key:
|
|
3102
|
+
key: m.Metadata,
|
|
3083
3103
|
value: {
|
|
3084
3104
|
keepMetadata: e
|
|
3085
3105
|
}
|
|
3086
3106
|
}) : this.transformations = this.transformations.filter(
|
|
3087
|
-
(i) => i.key !==
|
|
3107
|
+
(i) => i.key !== m.Metadata
|
|
3088
3108
|
);
|
|
3089
3109
|
return;
|
|
3090
3110
|
}
|
|
3091
3111
|
e ? this.upsertTransformation({
|
|
3092
|
-
key:
|
|
3112
|
+
key: m.Metadata,
|
|
3093
3113
|
value: {
|
|
3094
3114
|
keepMetadata: e
|
|
3095
3115
|
}
|
|
3096
3116
|
}) : this.transformations = this.transformations.filter(
|
|
3097
|
-
(i) => i.key !==
|
|
3117
|
+
(i) => i.key !== m.Metadata
|
|
3098
3118
|
);
|
|
3099
3119
|
}
|
|
3100
3120
|
onExtensionChange(t) {
|
|
@@ -3106,7 +3126,7 @@ let m = class extends q {
|
|
|
3106
3126
|
}
|
|
3107
3127
|
syncQuality() {
|
|
3108
3128
|
const t = this.transformations.findLast(
|
|
3109
|
-
(e) => e.key ===
|
|
3129
|
+
(e) => e.key === m.Quality
|
|
3110
3130
|
)?.value?.quality;
|
|
3111
3131
|
this.selectedFormat && (this.selectedFormat = {
|
|
3112
3132
|
...this.selectedFormat,
|
|
@@ -3151,20 +3171,20 @@ let m = class extends q {
|
|
|
3151
3171
|
)}
|
|
3152
3172
|
${M(
|
|
3153
3173
|
!this.noFormat,
|
|
3154
|
-
() => 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 ===
|
|
3174
|
+
() => 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
3175
|
)}
|
|
3156
3176
|
${M(
|
|
3157
3177
|
!this.noCrop,
|
|
3158
|
-
() => 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 ===
|
|
3178
|
+
() => 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
3179
|
)}
|
|
3160
3180
|
${M(
|
|
3161
3181
|
!this.noResize,
|
|
3162
|
-
() => C`<cx-asset-link-format-resize class="asset-link-format__details" ?open=${this.activeSetting === "cx-asset-link-format-resize"} ?loading=${this.loading && this.lastAction ===
|
|
3182
|
+
() => 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
3183
|
)}
|
|
3164
3184
|
${M(
|
|
3165
3185
|
!this.noRotate,
|
|
3166
|
-
() => C`<cx-asset-link-format-rotation class="asset-link-format__details" ?loading=${this.loading && this.lastAction ===
|
|
3167
|
-
)}<cx-asset-link-format-quality class="asset-link-format__details" ?loading=${this.loading && this.lastAction ===
|
|
3186
|
+
() => 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>`
|
|
3187
|
+
)}<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(
|
|
3168
3188
|
!this.noMetadata,
|
|
3169
3189
|
() => 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>`
|
|
3170
3190
|
)}
|
|
@@ -3174,9 +3194,9 @@ let m = class extends q {
|
|
|
3174
3194
|
)}</div>`;
|
|
3175
3195
|
}
|
|
3176
3196
|
};
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
"cx-asset-link-format-crop":
|
|
3197
|
+
f.styles = [G, Ee];
|
|
3198
|
+
f.dependencies = {
|
|
3199
|
+
"cx-asset-link-format-crop": A,
|
|
3180
3200
|
"cx-asset-link-format-extension": K,
|
|
3181
3201
|
"cx-asset-link-format-metadata": L,
|
|
3182
3202
|
"cx-asset-link-format-proxy": I,
|
|
@@ -3184,159 +3204,159 @@ m.dependencies = {
|
|
|
3184
3204
|
"cx-asset-link-format-resize": R,
|
|
3185
3205
|
"cx-asset-link-format-rotation": T,
|
|
3186
3206
|
"cx-button": Y,
|
|
3187
|
-
"cx-space":
|
|
3188
|
-
"cx-typography":
|
|
3207
|
+
"cx-space": q,
|
|
3208
|
+
"cx-typography": U
|
|
3189
3209
|
};
|
|
3190
|
-
|
|
3210
|
+
x([
|
|
3191
3211
|
h({ attribute: "base-url", type: String })
|
|
3192
|
-
],
|
|
3193
|
-
|
|
3212
|
+
], f.prototype, "baseUrl", 2);
|
|
3213
|
+
x([
|
|
3194
3214
|
h({ attribute: "token", type: String })
|
|
3195
|
-
],
|
|
3196
|
-
|
|
3215
|
+
], f.prototype, "token", 2);
|
|
3216
|
+
x([
|
|
3197
3217
|
h({ reflect: !1, type: Object })
|
|
3198
|
-
],
|
|
3199
|
-
|
|
3218
|
+
], f.prototype, "asset", 2);
|
|
3219
|
+
x([
|
|
3200
3220
|
h({ attribute: "crop-modes", reflect: !1, type: Array })
|
|
3201
|
-
],
|
|
3202
|
-
|
|
3221
|
+
], f.prototype, "cropModes", 2);
|
|
3222
|
+
x([
|
|
3203
3223
|
h({ attribute: "focus-modes", reflect: !1, type: Object })
|
|
3204
|
-
],
|
|
3205
|
-
|
|
3224
|
+
], f.prototype, "focusModes", 2);
|
|
3225
|
+
x([
|
|
3206
3226
|
h({ reflect: !1, type: Array })
|
|
3207
|
-
],
|
|
3208
|
-
|
|
3227
|
+
], f.prototype, "extensions", 2);
|
|
3228
|
+
x([
|
|
3209
3229
|
h({ reflect: !1, type: Array })
|
|
3210
|
-
],
|
|
3211
|
-
|
|
3230
|
+
], f.prototype, "proxies", 2);
|
|
3231
|
+
x([
|
|
3212
3232
|
h({ attribute: "for-cropper", reflect: !0, type: String })
|
|
3213
|
-
],
|
|
3214
|
-
|
|
3233
|
+
], f.prototype, "forCropper", 2);
|
|
3234
|
+
x([
|
|
3215
3235
|
h({ attribute: "use-session", reflect: !0, type: String })
|
|
3216
|
-
],
|
|
3217
|
-
|
|
3236
|
+
], f.prototype, "useSession", 2);
|
|
3237
|
+
x([
|
|
3218
3238
|
h({ reflect: !1, type: Array })
|
|
3219
|
-
],
|
|
3220
|
-
|
|
3239
|
+
], f.prototype, "transformations", 2);
|
|
3240
|
+
x([
|
|
3221
3241
|
h({ attribute: "selected-proxy", reflect: !0, type: String })
|
|
3222
|
-
],
|
|
3223
|
-
|
|
3242
|
+
], f.prototype, "selectedProxy", 2);
|
|
3243
|
+
x([
|
|
3224
3244
|
h({ attribute: "default-proxy", reflect: !0, type: String })
|
|
3225
|
-
],
|
|
3226
|
-
|
|
3245
|
+
], f.prototype, "defaultProxy", 2);
|
|
3246
|
+
x([
|
|
3227
3247
|
h({ attribute: "can-auto-format", reflect: !0, type: Boolean })
|
|
3228
|
-
],
|
|
3229
|
-
|
|
3248
|
+
], f.prototype, "canAutoFormat", 2);
|
|
3249
|
+
x([
|
|
3230
3250
|
h({ attribute: "auto-format", reflect: !0, type: Boolean })
|
|
3231
|
-
],
|
|
3232
|
-
|
|
3251
|
+
], f.prototype, "autoFormat", 2);
|
|
3252
|
+
x([
|
|
3233
3253
|
h({ attribute: "use-custom-extension", reflect: !0, type: Boolean })
|
|
3234
|
-
],
|
|
3235
|
-
|
|
3254
|
+
], f.prototype, "useCustomExtension", 2);
|
|
3255
|
+
x([
|
|
3236
3256
|
h({ attribute: "no-metadata", reflect: !0, type: Boolean })
|
|
3237
|
-
],
|
|
3238
|
-
|
|
3257
|
+
], f.prototype, "noMetadata", 2);
|
|
3258
|
+
x([
|
|
3239
3259
|
h({ attribute: "no-format", reflect: !0, type: Boolean })
|
|
3240
|
-
],
|
|
3241
|
-
|
|
3260
|
+
], f.prototype, "noFormat", 2);
|
|
3261
|
+
x([
|
|
3242
3262
|
h({ attribute: "no-crop", reflect: !0, type: Boolean })
|
|
3243
|
-
],
|
|
3244
|
-
|
|
3263
|
+
], f.prototype, "noCrop", 2);
|
|
3264
|
+
x([
|
|
3245
3265
|
h({ attribute: "no-resize", reflect: !0, type: Boolean })
|
|
3246
|
-
],
|
|
3247
|
-
|
|
3266
|
+
], f.prototype, "noResize", 2);
|
|
3267
|
+
x([
|
|
3248
3268
|
h({ attribute: "no-rotate", reflect: !0, type: Boolean })
|
|
3249
|
-
],
|
|
3250
|
-
|
|
3269
|
+
], f.prototype, "noRotate", 2);
|
|
3270
|
+
x([
|
|
3251
3271
|
h({ attribute: "last-image-size", reflect: !1, type: Object })
|
|
3252
|
-
],
|
|
3253
|
-
|
|
3272
|
+
], f.prototype, "lastImageSize", 2);
|
|
3273
|
+
x([
|
|
3254
3274
|
h({ attribute: "hide-header", reflect: !1, type: Boolean })
|
|
3255
|
-
],
|
|
3256
|
-
|
|
3275
|
+
], f.prototype, "hideHeader", 2);
|
|
3276
|
+
x([
|
|
3257
3277
|
h({ attribute: "can-reset", type: Boolean })
|
|
3258
|
-
],
|
|
3259
|
-
|
|
3278
|
+
], f.prototype, "canReset", 2);
|
|
3279
|
+
x([
|
|
3260
3280
|
h({ attribute: !1, reflect: !1, type: Object })
|
|
3261
|
-
],
|
|
3262
|
-
|
|
3281
|
+
], f.prototype, "queryElement", 2);
|
|
3282
|
+
x([
|
|
3263
3283
|
$()
|
|
3264
|
-
],
|
|
3265
|
-
|
|
3284
|
+
], f.prototype, "activeSetting", 2);
|
|
3285
|
+
x([
|
|
3266
3286
|
$()
|
|
3267
|
-
],
|
|
3268
|
-
|
|
3287
|
+
], f.prototype, "selectedFormat", 2);
|
|
3288
|
+
x([
|
|
3269
3289
|
$()
|
|
3270
|
-
],
|
|
3271
|
-
|
|
3290
|
+
], f.prototype, "resizeSize", 2);
|
|
3291
|
+
x([
|
|
3272
3292
|
$()
|
|
3273
|
-
],
|
|
3274
|
-
|
|
3293
|
+
], f.prototype, "cropSize", 2);
|
|
3294
|
+
x([
|
|
3275
3295
|
$()
|
|
3276
|
-
],
|
|
3277
|
-
|
|
3296
|
+
], f.prototype, "rotation", 2);
|
|
3297
|
+
x([
|
|
3278
3298
|
$()
|
|
3279
|
-
],
|
|
3280
|
-
|
|
3299
|
+
], f.prototype, "defaultSize", 2);
|
|
3300
|
+
x([
|
|
3281
3301
|
$()
|
|
3282
|
-
],
|
|
3283
|
-
|
|
3302
|
+
], f.prototype, "cropperElement", 2);
|
|
3303
|
+
x([
|
|
3284
3304
|
$()
|
|
3285
|
-
],
|
|
3286
|
-
|
|
3305
|
+
], f.prototype, "parameters", 2);
|
|
3306
|
+
x([
|
|
3287
3307
|
$()
|
|
3288
|
-
],
|
|
3289
|
-
|
|
3308
|
+
], f.prototype, "loading", 2);
|
|
3309
|
+
x([
|
|
3290
3310
|
$()
|
|
3291
|
-
],
|
|
3292
|
-
|
|
3311
|
+
], f.prototype, "lastAction", 2);
|
|
3312
|
+
x([
|
|
3293
3313
|
$()
|
|
3294
|
-
],
|
|
3295
|
-
|
|
3314
|
+
], f.prototype, "frozenIndex", 2);
|
|
3315
|
+
x([
|
|
3296
3316
|
$()
|
|
3297
|
-
],
|
|
3298
|
-
|
|
3317
|
+
], f.prototype, "preResetTransformations", 2);
|
|
3318
|
+
x([
|
|
3299
3319
|
$()
|
|
3300
|
-
],
|
|
3301
|
-
|
|
3320
|
+
], f.prototype, "preResetAutoFormat", 2);
|
|
3321
|
+
x([
|
|
3302
3322
|
$()
|
|
3303
|
-
],
|
|
3304
|
-
|
|
3323
|
+
], f.prototype, "preResetSelectedProxy", 2);
|
|
3324
|
+
x([
|
|
3305
3325
|
_("transformations")
|
|
3306
|
-
],
|
|
3307
|
-
|
|
3326
|
+
], f.prototype, "handleTransformationsChange", 1);
|
|
3327
|
+
x([
|
|
3308
3328
|
_("selectedProxy")
|
|
3309
|
-
],
|
|
3310
|
-
|
|
3329
|
+
], f.prototype, "handleSelectedProxyChange", 1);
|
|
3330
|
+
x([
|
|
3311
3331
|
_("loading")
|
|
3312
|
-
],
|
|
3313
|
-
|
|
3332
|
+
], f.prototype, "handleLoadingChange", 1);
|
|
3333
|
+
f = x([
|
|
3314
3334
|
Q("cx-asset-link-format")
|
|
3315
|
-
],
|
|
3335
|
+
], f);
|
|
3316
3336
|
export {
|
|
3317
|
-
|
|
3318
|
-
|
|
3337
|
+
f as C,
|
|
3338
|
+
lt as F,
|
|
3319
3339
|
jt as M,
|
|
3320
3340
|
$e as a,
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3341
|
+
ht as b,
|
|
3342
|
+
Ie as c,
|
|
3343
|
+
Rt as d,
|
|
3344
|
+
xt as e,
|
|
3345
|
+
Zi as f,
|
|
3346
|
+
Ki as g,
|
|
3347
|
+
Xi as h,
|
|
3348
|
+
Xt as i,
|
|
3349
|
+
gt as j,
|
|
3350
|
+
ft as k,
|
|
3351
|
+
Et as l,
|
|
3352
|
+
Bi as m,
|
|
3353
|
+
ji as n,
|
|
3354
|
+
Ht as o,
|
|
3355
|
+
Zt as p,
|
|
3356
|
+
Yi as q,
|
|
3357
|
+
Bt as r,
|
|
3358
|
+
Vi as s,
|
|
3359
|
+
Gi as t,
|
|
3340
3360
|
de as u,
|
|
3341
|
-
|
|
3361
|
+
Qi as v
|
|
3342
3362
|
};
|