@orangelogic/design-system 2.108.0 → 2.110.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/assets/design-system.css +1 -1
- package/library/chunks/{asset.BOex8mNF.js → asset.NgymQ3Zx.js} +139 -128
- package/library/chunks/{button.BgLgpUch.js → button.i88sSbTZ.js} +1 -1
- package/library/chunks/{color-swatch-group.CJR5NTAx.js → color-swatch-group.mIHaCJsh.js} +5 -5
- package/library/chunks/{color-swatch.LWXX_hoG.js → color-swatch.D9vkPoV2.js} +1 -1
- package/library/chunks/{confirm-popover.BzpCIDBx.js → confirm-popover.UuBhn8GA.js} +3 -3
- package/library/chunks/{content-builder.B-bd8FaV.js → content-builder.OsUmm8Wu.js} +15 -15
- package/library/chunks/{dialog.BTYaKnFg.js → dialog.Bso6gK-8.js} +2 -2
- package/library/chunks/document-viewer.C6eclRvd.js +25232 -0
- package/library/chunks/{dot-pagination.Do9tKlWY.js → dot-pagination.CNnUuI-Z.js} +1 -1
- package/library/chunks/{file-on-demand.DICkRgvk.js → file-on-demand.Cf2ujTeF.js} +8 -8
- package/library/chunks/{folder-select.DLjFwi4I.js → folder-select.ByNUfTia.js} +3 -3
- package/library/chunks/{header.CLZWpAF-.js → header.hj2Kw-N7.js} +1 -1
- package/library/chunks/{i18n.ju3y72qp.js → i18n.D6AYDPK-.js} +3 -0
- package/library/chunks/{icon-button.CLlmo1AF.js → icon-button.ztYU-DHy.js} +1 -1
- package/library/chunks/{iframe.CqtDcvOS.js → iframe.uLxZ6LsL.js} +1 -1
- package/library/chunks/{image.CfNFiNFB.js → image.DKB6yEQO.js} +187 -187
- package/library/chunks/inheritsLoose.BuSn_CvZ.js +27 -0
- package/library/chunks/{cropper.CMfBGsNv.js → jsx-runtime.CTpPVMxj.js} +9462 -10423
- package/library/chunks/{list-editor.zY8vlbde.js → list-editor.GT2kQsmR.js} +87 -86
- package/library/chunks/{option.BOZYPQZH.js → option.BAYtHIvG.js} +1 -1
- package/library/chunks/{pagination.BGjp2gVJ.js → pagination.CCJD61IB.js} +4 -4
- package/library/chunks/{resizable-component.styles.sAhMVN1H.js → resizable-component.styles.DpK0TTP5.js} +6 -6
- package/library/chunks/{responsive.Aigicabj.js → responsive.C8NCkfCG.js} +1 -1
- package/library/chunks/{tab-group.hmlZakLy.js → tab-group.BsR8tdVY.js} +3 -3
- package/library/chunks/{table.XsBhq1U3.js → table.DL_CEeYh.js} +5 -5
- package/library/chunks/{tree.DAhCAxwV.js → tree.KmZRWZ0F.js} +1 -1
- package/library/components/alert.js +2 -2
- package/library/components/asset-link-format.js +6 -6
- package/library/components/atoms.js +147 -145
- package/library/components/audio.js +3 -3
- package/library/components/border-input-group.js +1 -1
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +2 -2
- package/library/components/color-picker.js +2 -2
- package/library/components/color-swatch-group.js +6 -6
- package/library/components/color-swatch.js +2 -2
- package/library/components/confirm-popover.js +4 -4
- package/library/components/copy-button.js +1 -1
- package/library/components/corner-position-input-group.js +2 -2
- package/library/components/cropper.js +961 -10
- package/library/components/details.js +1 -1
- package/library/components/dialog.js +3 -3
- package/library/components/document-viewer.d.ts +3 -0
- package/library/components/document-viewer.js +17 -0
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +2 -2
- package/library/components/dropdown.js +1 -1
- package/library/components/dynamic-select.js +4 -4
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +9 -9
- package/library/components/folder-select.js +3 -3
- 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 +2 -2
- 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 +3 -3
- package/library/components/input.js +1 -1
- package/library/components/line-clamp.js +1 -1
- package/library/components/list-editor.js +6 -6
- package/library/components/masonry.js +2 -2
- package/library/components/menu-item.js +1 -1
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +7 -7
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/pagination.js +5 -5
- package/library/components/popup.js +1 -1
- package/library/components/position-picker.js +1 -1
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/range.js +1 -1
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +2 -2
- package/library/components/share-option-list.js +1 -1
- package/library/components/sidebar.js +1 -1
- package/library/components/size-input-group.js +2 -2
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/tab-group.js +4 -4
- package/library/components/tab.js +2 -2
- package/library/components/table.js +5 -5
- package/library/components/tag.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 +2 -2
- package/library/components/types.js +17110 -17307
- package/library/components/video.js +3605 -3625
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/document-viewer/document-viewer.d.ts +60 -0
- package/library/packages/atoms/src/components/document-viewer/document-viewer.styles.d.ts +2 -0
- package/library/packages/atoms/src/index.d.ts +1 -0
- package/library/packages/events/src/cx-document-viewer-open-asset.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +1 -0
- package/library/packages/hybrid/book-reader/src/book-reader/book-reader.d.ts +99 -0
- package/library/packages/hybrid/book-reader/src/book-reader/book-reader.styles.d.ts +2 -0
- package/library/packages/hybrid/book-reader/src/react/BookReader.d.ts +6 -0
- package/library/packages/hybrid/book-reader/src/react/components/Album/Album.d.ts +31 -0
- package/library/packages/hybrid/book-reader/src/react/components/Album/AlbumThumbnails.d.ts +17 -0
- package/library/packages/hybrid/book-reader/src/react/components/Album/ErrorImage.d.ts +5 -0
- package/library/packages/hybrid/book-reader/src/react/components/Album/Page.d.ts +21 -0
- package/library/packages/hybrid/book-reader/src/react/components/Album/index.d.ts +1 -0
- package/library/packages/hybrid/book-reader/src/react/components/Book/Book.d.ts +20 -0
- package/library/packages/hybrid/book-reader/src/react/components/Book/BookThumbnails.d.ts +17 -0
- package/library/packages/hybrid/book-reader/src/react/components/Book/Page.d.ts +20 -0
- package/library/packages/hybrid/book-reader/src/react/components/Book/PageError.d.ts +5 -0
- package/library/packages/hybrid/book-reader/src/react/components/Book/PageRenderer/PageRenderer.d.ts +8 -0
- package/library/packages/hybrid/book-reader/src/react/components/Book/PageRenderer/RendererContext.d.ts +5 -0
- package/library/packages/hybrid/book-reader/src/react/components/Book/PageRenderer/StructTree.d.ts +1 -0
- package/library/packages/hybrid/book-reader/src/react/components/Book/PageRenderer/StructTreeItem.d.ts +9 -0
- package/library/packages/hybrid/book-reader/src/react/components/Book/PageRenderer/index.d.ts +2 -0
- package/library/packages/hybrid/book-reader/src/react/components/ColdStorageAsset/ColdStorageAsset.d.ts +7 -0
- package/library/packages/hybrid/book-reader/src/react/components/ColdStorageAsset/ColdStorageAsset.styles.d.ts +2 -0
- package/library/packages/hybrid/book-reader/src/react/components/ColdStorageAsset/index.d.ts +1 -0
- package/library/packages/hybrid/book-reader/src/react/components/Container/Container.d.ts +7 -0
- package/library/packages/hybrid/book-reader/src/react/components/Container/index.d.ts +1 -0
- package/library/packages/hybrid/book-reader/src/react/components/Controller/Controller.d.ts +39 -0
- package/library/packages/hybrid/book-reader/src/react/components/Controller/Controller.styles.d.ts +2 -0
- package/library/packages/hybrid/book-reader/src/react/components/Controller/PageControl.d.ts +12 -0
- package/library/packages/hybrid/book-reader/src/react/components/Controller/ScaleControl.d.ts +10 -0
- package/library/packages/hybrid/book-reader/src/react/components/Controller/ToggleFullscreen.d.ts +7 -0
- package/library/packages/hybrid/book-reader/src/react/components/Controller/ToggleSearchBox.d.ts +7 -0
- package/library/packages/hybrid/book-reader/src/react/components/Controller/ToggleSidebar.d.ts +7 -0
- package/library/packages/hybrid/book-reader/src/react/components/Controller/ViewControl.d.ts +7 -0
- package/library/packages/hybrid/book-reader/src/react/components/Controller/index.d.ts +1 -0
- package/library/packages/hybrid/book-reader/src/react/components/Drawer/Drawer.d.ts +9 -0
- package/library/packages/hybrid/book-reader/src/react/components/Drawer/index.d.ts +1 -0
- package/library/packages/hybrid/book-reader/src/react/components/EmptyDocument/EmptyDocument.d.ts +2 -0
- package/library/packages/hybrid/book-reader/src/react/components/EmptyDocument/EmptyDocument.styles.d.ts +2 -0
- package/library/packages/hybrid/book-reader/src/react/components/EmptyDocument/index.d.ts +1 -0
- package/library/packages/hybrid/book-reader/src/react/components/Loading/DocumentLoading.d.ts +5 -0
- package/library/packages/hybrid/book-reader/src/react/components/Loading/Loading.styles.d.ts +2 -0
- package/library/packages/hybrid/book-reader/src/react/components/Loading/PageLoading.d.ts +5 -0
- package/library/packages/hybrid/book-reader/src/react/components/Loading/index.d.ts +2 -0
- package/library/packages/hybrid/book-reader/src/react/components/PPTProgressBar/PPTProgressBar.d.ts +5 -0
- package/library/packages/hybrid/book-reader/src/react/components/PPTProgressBar/index.d.ts +1 -0
- package/library/packages/hybrid/book-reader/src/react/components/PasswordInput/PasswordInput.d.ts +7 -0
- package/library/packages/hybrid/book-reader/src/react/components/PasswordInput/PasswordInput.styles.d.ts +2 -0
- package/library/packages/hybrid/book-reader/src/react/components/PasswordInput/index.d.ts +1 -0
- package/library/packages/hybrid/book-reader/src/react/components/ProgressBar/ProgressBar.d.ts +7 -0
- package/library/packages/hybrid/book-reader/src/react/components/ProgressBar/index.d.ts +1 -0
- package/library/packages/hybrid/book-reader/src/react/components/ScaleBox/ScaleBox.d.ts +21 -0
- package/library/packages/hybrid/book-reader/src/react/components/SearchBox/SearchBox.d.ts +18 -0
- package/library/packages/hybrid/book-reader/src/react/components/SearchBox/SearchBox.styles.d.ts +2 -0
- package/library/packages/hybrid/book-reader/src/react/components/SearchBox/index.d.ts +1 -0
- package/library/packages/hybrid/book-reader/src/react/components/TextHighlight/TextHighlight.d.ts +9 -0
- package/library/packages/hybrid/book-reader/src/react/components/TextHighlight/index.d.ts +1 -0
- package/library/packages/hybrid/book-reader/src/react/components/Thumbnails/Thumbnails.d.ts +32 -0
- package/library/packages/hybrid/book-reader/src/react/components/Thumbnails/index.d.ts +1 -0
- package/library/packages/hybrid/book-reader/src/react/components/ZoomPanPinchWrapper/ZoomPanPinchWrapper.d.ts +12 -0
- package/library/packages/hybrid/book-reader/src/react/components/ZoomPanPinchWrapper/ZoomPanPinchWrapper.styles.d.ts +2 -0
- package/library/packages/hybrid/book-reader/src/react/components/ZoomPanPinchWrapper/index.d.ts +1 -0
- package/library/packages/hybrid/book-reader/src/react/constant.d.ts +81 -0
- package/library/packages/hybrid/book-reader/src/react/contexts/AlbumContext.d.ts +8 -0
- package/library/packages/hybrid/book-reader/src/react/contexts/BookContext.d.ts +4 -0
- package/library/packages/hybrid/book-reader/src/react/contexts/BreakpointsContext.d.ts +4 -0
- package/library/packages/hybrid/book-reader/src/react/contexts/ComponentContext.d.ts +3 -0
- package/library/packages/hybrid/book-reader/src/react/contexts/TranslationContext.d.ts +7 -0
- package/library/packages/hybrid/book-reader/src/react/hooks/useAlbumContext.d.ts +1 -0
- package/library/packages/hybrid/book-reader/src/react/hooks/useBookContext.d.ts +1 -0
- package/library/packages/hybrid/book-reader/src/react/hooks/useBookEvents.d.ts +13 -0
- package/library/packages/hybrid/book-reader/src/react/hooks/useBreakpoint.d.ts +6 -0
- package/library/packages/hybrid/book-reader/src/react/hooks/useDrawer.d.ts +13 -0
- package/library/packages/hybrid/book-reader/src/react/hooks/useImageTextSearch.d.ts +4 -0
- package/library/packages/hybrid/book-reader/src/react/hooks/useKeyboardShortcuts.d.ts +12 -0
- package/library/packages/hybrid/book-reader/src/react/hooks/usePageFlip.d.ts +10 -0
- package/library/packages/hybrid/book-reader/src/react/hooks/usePdfTextSearch.d.ts +4 -0
- package/library/packages/hybrid/book-reader/src/react/hooks/usePopoverMenu.d.ts +7 -0
- package/library/packages/hybrid/book-reader/src/react/hooks/useRendererContext.d.ts +1 -0
- package/library/packages/hybrid/book-reader/src/react/hooks/useResolver.d.ts +21 -0
- package/library/packages/hybrid/book-reader/src/react/hooks/useScale.d.ts +19 -0
- package/library/packages/hybrid/book-reader/src/react/hooks/useSearch.d.ts +19 -0
- package/library/packages/hybrid/book-reader/src/react/page-flip/PageFlip.d.ts +215 -0
- package/library/packages/hybrid/book-reader/src/react/page-flip/Settings.d.ts +59 -0
- package/library/packages/hybrid/book-reader/src/react/page-flip/collection/HTMLPageCollection.d.ts +13 -0
- package/library/packages/hybrid/book-reader/src/react/page-flip/collection/ImagePageCollection.d.ts +12 -0
- package/library/packages/hybrid/book-reader/src/react/page-flip/collection/PageCollection.d.ts +116 -0
- package/library/packages/hybrid/book-reader/src/react/page-flip/event/EventObject.d.ts +34 -0
- package/library/packages/hybrid/book-reader/src/react/page-flip/flip/Flip.d.ts +126 -0
- package/library/packages/hybrid/book-reader/src/react/page-flip/flip/FlipCalculation.d.ts +99 -0
- package/library/packages/hybrid/book-reader/src/react/page-flip/index.d.ts +22 -0
- package/library/packages/hybrid/book-reader/src/react/page-flip/page/HTMLPage.d.ts +24 -0
- package/library/packages/hybrid/book-reader/src/react/page-flip/page/ImagePage.d.ts +19 -0
- package/library/packages/hybrid/book-reader/src/react/page-flip/page/Page.d.ts +123 -0
- package/library/packages/hybrid/book-reader/src/react/page-flip/render/CanvasRender.d.ts +19 -0
- package/library/packages/hybrid/book-reader/src/react/page-flip/render/HTMLRender.d.ts +58 -0
- package/library/packages/hybrid/book-reader/src/react/page-flip/render/Render.d.ts +233 -0
- package/library/packages/hybrid/book-reader/src/react/page-flip/ui/CanvasUI.d.ts +17 -0
- package/library/packages/hybrid/book-reader/src/react/page-flip/ui/HTMLUI.d.ts +19 -0
- package/library/packages/hybrid/book-reader/src/react/page-flip/ui/UI.d.ts +78 -0
- package/library/packages/hybrid/book-reader/src/react/types.d.ts +206 -0
- package/library/packages/hybrid/book-reader/src/react/utils/CalculateScale.d.ts +1 -0
- package/library/packages/hybrid/book-reader/src/react/utils/EscapeRegex.d.ts +2 -0
- package/library/packages/hybrid/book-reader/src/react/utils/Fullscreen.d.ts +4 -0
- package/library/packages/hybrid/book-reader/src/react/utils/GetActivePage.d.ts +1 -0
- package/library/packages/hybrid/book-reader/src/react/utils/GetIIIFImageUrl.d.ts +7 -0
- package/library/packages/hybrid/book-reader/src/react/utils/GetVisiblePageNumber.d.ts +1 -0
- package/library/packages/hybrid/book-reader/src/react/utils/IsImageBook.d.ts +3 -0
- package/library/packages/hybrid/book-reader/src/react/utils/IsPDFBook.d.ts +3 -0
- package/library/packages/hybrid/book-reader/src/react/utils/MergeRefs.d.ts +14 -0
- package/library/packages/hybrid/book-reader/src/react/utils/NormalizeString.d.ts +1 -0
- package/library/packages/hybrid/book-reader/src/react/utils/PageFlipGeometry.d.ts +86 -0
- package/library/packages/hybrid/book-reader/src/react/utils/PagePosition.d.ts +2 -0
- package/library/packages/hybrid/book-reader/src/react/utils/PageRendererUtil.d.ts +350 -0
- package/library/packages/hybrid/book-reader/src/react/utils/PdfWorker.d.ts +17 -0
- package/library/packages/hybrid/book-reader/src/react/utils/Random.d.ts +1 -0
- package/library/packages/hybrid/book-reader/src/react/utils/RenderingQueue.d.ts +8 -0
- package/library/packages/organisms/src/content-builder/configs/document-viewer.d.ts +24 -0
- package/library/packages/organisms/src/content-builder/configs/index.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +50 -24
- package/library/packages/organisms/src/content-builder/content-builder-config.d.ts +3 -0
- package/library/packages/organisms/src/content-builder/plugins/document-viewer.d.ts +5 -0
- package/library/packages/organisms/src/content-builder/plugins/index.d.ts +1 -0
- package/library/packages/react-web-component.d.ts +6581 -0
- package/library/packages/services/src/api/asset/asset.d.ts +10 -0
- package/library/packages/services/src/api/endpoints.d.ts +1 -0
- package/library/packages/types/src/book-reader.d.ts +9 -0
- package/library/packages/types/src/content-builder.d.ts +3 -1
- package/library/packages/utils/src/custom-element/i18n.d.ts +3 -0
- package/library/react-web-component.d.ts +110 -4
- package/library/utils.js +3 -3
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { h as l, S as
|
|
2
|
-
import { M as
|
|
1
|
+
import { h as l, S as K, A as $, a as q, b as V } from "./endpoints.DBlquU2-.js";
|
|
2
|
+
import { M as P } from "./asset-link-format.B0c92pSs.js";
|
|
3
3
|
import "./debounce.CIEhztrj.js";
|
|
4
4
|
import "./lit-element.jLBm65_O.js";
|
|
5
5
|
import "./form.Ch1cwYzO.js";
|
|
6
|
-
import "./i18n.
|
|
7
|
-
import { a as
|
|
8
|
-
import "./content-builder.
|
|
6
|
+
import "./i18n.D6AYDPK-.js";
|
|
7
|
+
import { a as Z } from "./string.DUgD4c9f.js";
|
|
8
|
+
import "./content-builder.OsUmm8Wu.js";
|
|
9
9
|
import "./unsafe-html.Dff7-rCx.js";
|
|
10
|
-
import { b as
|
|
11
|
-
function z(e) {
|
|
12
|
-
return e && e.length ? Z(e) : [];
|
|
13
|
-
}
|
|
10
|
+
import { b as z } from "./_baseUniq.HFKneygy.js";
|
|
14
11
|
function X(e) {
|
|
12
|
+
return e && e.length ? z(e) : [];
|
|
13
|
+
}
|
|
14
|
+
function Y(e) {
|
|
15
15
|
return typeof e == "object" && e !== null && "URI" in e;
|
|
16
16
|
}
|
|
17
|
-
const
|
|
17
|
+
const Q = {
|
|
18
18
|
artist: "Artist",
|
|
19
19
|
color: "Color",
|
|
20
20
|
createDate: "CreateDate",
|
|
@@ -35,12 +35,12 @@ const Y = {
|
|
|
35
35
|
systemIdentifier: "SystemIdentifier",
|
|
36
36
|
text: "Text",
|
|
37
37
|
title: "Title"
|
|
38
|
-
},
|
|
39
|
-
function
|
|
38
|
+
}, J = /* @__PURE__ */ new Set(["mediaDate", "createDate", "editDate"]);
|
|
39
|
+
function S(e) {
|
|
40
40
|
return !/[\s&+/*"\\:(),'<>~|[\]{}]/.test(e) && !/^(?:OR|AND|NOT)$/.test(e) ? e : `"${e.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
const r = (Array.isArray(t) ? t : [t]).map((
|
|
42
|
+
function b(e, t) {
|
|
43
|
+
const r = (Array.isArray(t) ? t : [t]).map((a) => `${e}:${S(a)}`);
|
|
44
44
|
return r.length > 1 ? `(${r.join(" OR ")})` : r[0] ?? "";
|
|
45
45
|
}
|
|
46
46
|
function ee(e, t) {
|
|
@@ -49,29 +49,40 @@ function ee(e, t) {
|
|
|
49
49
|
function te(e) {
|
|
50
50
|
const t = [];
|
|
51
51
|
for (const o of Object.keys(e)) {
|
|
52
|
-
const r = o,
|
|
53
|
-
if (
|
|
52
|
+
const r = o, a = e[r];
|
|
53
|
+
if (a == null)
|
|
54
54
|
continue;
|
|
55
55
|
if (r === "custom") {
|
|
56
|
-
for (const [
|
|
57
|
-
|
|
56
|
+
for (const [n, p] of Object.entries(
|
|
57
|
+
a
|
|
58
58
|
))
|
|
59
|
-
t.push(
|
|
59
|
+
t.push(b(n, p));
|
|
60
60
|
continue;
|
|
61
61
|
}
|
|
62
|
-
const u =
|
|
62
|
+
const u = Q[r];
|
|
63
63
|
if (u) {
|
|
64
|
-
if (
|
|
64
|
+
if (J.has(r)) {
|
|
65
65
|
t.push(
|
|
66
|
-
ee(u,
|
|
66
|
+
ee(u, a)
|
|
67
67
|
);
|
|
68
68
|
continue;
|
|
69
69
|
}
|
|
70
70
|
if (r === "color") {
|
|
71
|
-
t.push(`${u}:${
|
|
71
|
+
t.push(`${u}:${a}`);
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
if (r === "parentFolderIdentifier") {
|
|
75
|
+
const n = Array.isArray(a) ? a : [a];
|
|
76
|
+
if (n.length === 0)
|
|
77
|
+
continue;
|
|
78
|
+
const p = [
|
|
79
|
+
...n.map((f) => `ParentFolderIdentifier:${S(String(f))}`),
|
|
80
|
+
...n.map((f) => `ParentAlbumIdentifier:${S(String(f))}`)
|
|
81
|
+
];
|
|
82
|
+
t.push(`(${p.join(" OR ")})`);
|
|
72
83
|
continue;
|
|
73
84
|
}
|
|
74
|
-
t.push(
|
|
85
|
+
t.push(b(u, a));
|
|
75
86
|
}
|
|
76
87
|
}
|
|
77
88
|
return t.join(" AND ");
|
|
@@ -89,12 +100,12 @@ function D(e) {
|
|
|
89
100
|
}
|
|
90
101
|
return te(e);
|
|
91
102
|
}
|
|
92
|
-
const
|
|
103
|
+
const g = "CoreField.LargeSizePreview", M = "CoreField.DocType", re = "Document.Title", oe = "Document.CaptionLong", G = "Document.FileExtension", U = "CoreField.FileSize", v = "CoreField.Identifier", j = "CoreField.Keywords", W = "CoreField.MaxHeight", w = "CoreField.MaxWidth", T = "Document.RecordID", H = "CoreField.DocSubType", x = "CoreField.TitleWithFallback", h = "CoreField.OriginalFileName", y = "CoreField.UpdatedFileName", A = "CoreField.OriginalPreview", L = {
|
|
93
104
|
DEFAULT_VIEW_SIZE: "Document.LargeSizePreview",
|
|
94
105
|
FIELD_TITLE_WITH_FALLBACK: "Document.TitleWithFallback",
|
|
95
106
|
ORIGINAL_VIEW_SIZE: "Document.OriginalPreview"
|
|
96
107
|
}, k = {
|
|
97
|
-
[
|
|
108
|
+
[g]: L.DEFAULT_VIEW_SIZE,
|
|
98
109
|
[x]: L.FIELD_TITLE_WITH_FALLBACK,
|
|
99
110
|
[A]: L.ORIGINAL_VIEW_SIZE
|
|
100
111
|
}, ne = Object.fromEntries(
|
|
@@ -109,8 +120,8 @@ function se(e) {
|
|
|
109
120
|
function ae(e) {
|
|
110
121
|
const t = {};
|
|
111
122
|
for (const [o, r] of Object.entries(e)) {
|
|
112
|
-
const
|
|
113
|
-
t[
|
|
123
|
+
const a = ne[o] ?? o;
|
|
124
|
+
t[a] = r;
|
|
114
125
|
}
|
|
115
126
|
return t;
|
|
116
127
|
}
|
|
@@ -119,41 +130,41 @@ async function B({
|
|
|
119
130
|
countPerPage: t,
|
|
120
131
|
fields: o,
|
|
121
132
|
getPermanentAssetsPaths: r,
|
|
122
|
-
pageNumber:
|
|
133
|
+
pageNumber: a,
|
|
123
134
|
query: u,
|
|
124
|
-
siteUrl:
|
|
125
|
-
sort:
|
|
126
|
-
token:
|
|
135
|
+
siteUrl: n,
|
|
136
|
+
sort: p,
|
|
137
|
+
token: f,
|
|
127
138
|
useSession: I
|
|
128
139
|
}) {
|
|
129
140
|
const E = o?.map(se);
|
|
130
141
|
try {
|
|
131
142
|
return (await l.request({
|
|
132
|
-
baseURL:
|
|
133
|
-
headers:
|
|
143
|
+
baseURL: n,
|
|
144
|
+
headers: f ? { Authorization: `Bearer ${f}` } : void 0,
|
|
134
145
|
method: "GET",
|
|
135
146
|
params: {
|
|
136
147
|
CMS5Token: e || void 0,
|
|
137
148
|
CountPerPage: t,
|
|
138
|
-
Fields:
|
|
149
|
+
Fields: X(E),
|
|
139
150
|
Format: "json",
|
|
140
151
|
GetPermanentAssetsPaths: r || void 0,
|
|
141
|
-
PageNumber:
|
|
152
|
+
PageNumber: a,
|
|
142
153
|
Query: D(u),
|
|
143
|
-
Sort:
|
|
154
|
+
Sort: p || void 0,
|
|
144
155
|
UseSession: I || void 0
|
|
145
156
|
},
|
|
146
157
|
paramsSerializer: { indexes: null },
|
|
147
158
|
responseType: "json",
|
|
148
159
|
transformResponse: [
|
|
149
160
|
...Array.isArray(l.defaults.transformResponse) ? l.defaults.transformResponse : [],
|
|
150
|
-
(
|
|
151
|
-
items: (
|
|
152
|
-
sort:
|
|
153
|
-
totalCount:
|
|
161
|
+
(s) => ({
|
|
162
|
+
items: (s.APIResponse?.Items ?? []).map(ae),
|
|
163
|
+
sort: s.APIResponse?.GlobalInfo?.Sort ?? "",
|
|
164
|
+
totalCount: s.APIResponse?.GlobalInfo?.TotalCount ?? 0
|
|
154
165
|
})
|
|
155
166
|
],
|
|
156
|
-
url:
|
|
167
|
+
url: K["4.0"]
|
|
157
168
|
})).data;
|
|
158
169
|
} catch {
|
|
159
170
|
return { items: [], sort: "", totalCount: 0 };
|
|
@@ -164,9 +175,9 @@ async function De({
|
|
|
164
175
|
extension: t,
|
|
165
176
|
format: o,
|
|
166
177
|
siteUrl: r,
|
|
167
|
-
token:
|
|
178
|
+
token: a,
|
|
168
179
|
transformations: u,
|
|
169
|
-
useSession:
|
|
180
|
+
useSession: n
|
|
170
181
|
}) {
|
|
171
182
|
try {
|
|
172
183
|
return (await l.request({
|
|
@@ -175,17 +186,17 @@ async function De({
|
|
|
175
186
|
params: {
|
|
176
187
|
SourceAssetFormat: o,
|
|
177
188
|
SourceAssetRecordID: e,
|
|
178
|
-
TargetExtension:
|
|
179
|
-
Token:
|
|
189
|
+
TargetExtension: Z(t),
|
|
190
|
+
Token: a || void 0,
|
|
180
191
|
Transformations: u,
|
|
181
|
-
UseSession:
|
|
192
|
+
UseSession: n || void 0
|
|
182
193
|
},
|
|
183
194
|
/**
|
|
184
195
|
* https://link.orangelogic.com/Tasks/41S1XH
|
|
185
196
|
*/
|
|
186
197
|
timeout: 3e5,
|
|
187
198
|
// 5 minutes
|
|
188
|
-
url:
|
|
199
|
+
url: $.GET_TRANSFORM_ASSET_LINK
|
|
189
200
|
})).data;
|
|
190
201
|
} catch {
|
|
191
202
|
return null;
|
|
@@ -203,11 +214,11 @@ async function Te({
|
|
|
203
214
|
extraFields: t,
|
|
204
215
|
getPermanentAssetsPaths: o,
|
|
205
216
|
recordIds: r,
|
|
206
|
-
token:
|
|
217
|
+
token: a
|
|
207
218
|
}) {
|
|
208
219
|
if (!Array.isArray(r) || r.length === 0)
|
|
209
220
|
return { facets: [], items: [], totalCount: 0 };
|
|
210
|
-
const u = t?.filter((
|
|
221
|
+
const u = t?.filter((s) => s && typeof s == "string") ?? [], n = [
|
|
211
222
|
...u,
|
|
212
223
|
A,
|
|
213
224
|
y,
|
|
@@ -215,74 +226,74 @@ async function Te({
|
|
|
215
226
|
re,
|
|
216
227
|
oe,
|
|
217
228
|
T
|
|
218
|
-
],
|
|
219
|
-
|
|
220
|
-
(
|
|
229
|
+
], p = ce(r, ie), f = await Promise.all(
|
|
230
|
+
p.map(
|
|
231
|
+
(s) => B({
|
|
221
232
|
cms5Token: e,
|
|
222
|
-
countPerPage:
|
|
223
|
-
fields:
|
|
233
|
+
countPerPage: s.length,
|
|
234
|
+
fields: n,
|
|
224
235
|
getPermanentAssetsPaths: o,
|
|
225
236
|
pageNumber: 1,
|
|
226
|
-
query: { recordId:
|
|
227
|
-
token:
|
|
237
|
+
query: { recordId: s },
|
|
238
|
+
token: a
|
|
228
239
|
})
|
|
229
240
|
)
|
|
230
|
-
), I = new Map(r.map((
|
|
231
|
-
let d = c(
|
|
232
|
-
return d === "" && (d = c(
|
|
241
|
+
), I = new Map(r.map((s, d) => [s, d])), E = f.flatMap((s) => s.items).map((s) => {
|
|
242
|
+
let d = c(s, y);
|
|
243
|
+
return d === "" && (d = c(s, h)), {
|
|
233
244
|
name: d,
|
|
234
|
-
originalUrl: c(
|
|
235
|
-
recordId: c(
|
|
245
|
+
originalUrl: c(s, A),
|
|
246
|
+
recordId: c(s, T),
|
|
236
247
|
...u.reduce(
|
|
237
|
-
(
|
|
248
|
+
(i, m) => (i[m] = c(s, m), i),
|
|
238
249
|
{}
|
|
239
250
|
)
|
|
240
251
|
};
|
|
241
252
|
}).sort(
|
|
242
|
-
(
|
|
243
|
-
), _ =
|
|
244
|
-
(
|
|
253
|
+
(s, d) => (I.get(s.recordId) ?? 1 / 0) - (I.get(d.recordId) ?? 1 / 0)
|
|
254
|
+
), _ = f.reduce(
|
|
255
|
+
(s, d) => s + d.totalCount,
|
|
245
256
|
0
|
|
246
257
|
);
|
|
247
258
|
return { facets: [], items: E, totalCount: _ };
|
|
248
259
|
}
|
|
249
260
|
function c(e, t) {
|
|
250
261
|
const o = e[t];
|
|
251
|
-
return o == null ? "" : typeof o == "string" ? o : typeof o == "number" || typeof o == "boolean" ? String(o) :
|
|
262
|
+
return o == null ? "" : typeof o == "string" ? o : typeof o == "number" || typeof o == "boolean" ? String(o) : Y(o) ? o.URI : "";
|
|
252
263
|
}
|
|
253
264
|
async function he({
|
|
254
265
|
cms5Token: e,
|
|
255
266
|
countPerPage: t,
|
|
256
267
|
extraFields: o,
|
|
257
268
|
getPermanentAssetsPaths: r,
|
|
258
|
-
limitedDocTypes:
|
|
269
|
+
limitedDocTypes: a,
|
|
259
270
|
pageNumber: u,
|
|
260
|
-
parentFolderIdentifier:
|
|
261
|
-
searchTerm:
|
|
262
|
-
sortOrder:
|
|
271
|
+
parentFolderIdentifier: n,
|
|
272
|
+
searchTerm: p,
|
|
273
|
+
sortOrder: f,
|
|
263
274
|
token: I
|
|
264
275
|
}) {
|
|
265
|
-
if (!
|
|
276
|
+
if (!n)
|
|
266
277
|
return { facets: [], items: [], totalCount: 0 };
|
|
267
|
-
const E = (o?.filter((
|
|
268
|
-
parentFolderIdentifier:
|
|
269
|
-
...
|
|
270
|
-
},
|
|
278
|
+
const E = (o?.filter((i) => i && typeof i == "string") ?? []).map((i) => i.replace("%20", " ")), _ = {
|
|
279
|
+
parentFolderIdentifier: n,
|
|
280
|
+
...a.length > 0 ? { docType: [P.Image, P.Audio] } : {}
|
|
281
|
+
}, s = await B({
|
|
271
282
|
cms5Token: e,
|
|
272
283
|
countPerPage: t,
|
|
273
284
|
fields: [
|
|
274
285
|
...E,
|
|
275
286
|
x,
|
|
276
|
-
|
|
287
|
+
g,
|
|
277
288
|
A,
|
|
278
|
-
v,
|
|
279
|
-
W,
|
|
280
289
|
j,
|
|
281
|
-
G,
|
|
282
|
-
b,
|
|
283
290
|
w,
|
|
291
|
+
W,
|
|
284
292
|
U,
|
|
285
293
|
M,
|
|
294
|
+
H,
|
|
295
|
+
v,
|
|
296
|
+
G,
|
|
286
297
|
T,
|
|
287
298
|
h,
|
|
288
299
|
y
|
|
@@ -292,26 +303,26 @@ async function he({
|
|
|
292
303
|
query: _,
|
|
293
304
|
sort: void 0,
|
|
294
305
|
token: I
|
|
295
|
-
}), d =
|
|
296
|
-
let
|
|
297
|
-
|
|
298
|
-
const
|
|
306
|
+
}), d = s.items.map((i) => {
|
|
307
|
+
let m = c(i, G), F = c(i, y), C = c(i, g);
|
|
308
|
+
m && !m.startsWith(".") && (m = "." + m), F === "" && (F = c(i, h)), m.toLowerCase() === ".gif" && (C = c(i, A));
|
|
309
|
+
const R = c(i, T);
|
|
299
310
|
return {
|
|
300
|
-
docSubType: c(
|
|
301
|
-
docType: c(
|
|
302
|
-
extension:
|
|
303
|
-
height: c(
|
|
304
|
-
id:
|
|
305
|
-
identifier: c(
|
|
311
|
+
docSubType: c(i, H),
|
|
312
|
+
docType: c(i, M) || "",
|
|
313
|
+
extension: m,
|
|
314
|
+
height: c(i, W) || "0",
|
|
315
|
+
id: R,
|
|
316
|
+
identifier: c(i, v),
|
|
306
317
|
imageUrl: C,
|
|
307
318
|
name: F,
|
|
308
|
-
originalUrl: c(
|
|
309
|
-
recordId:
|
|
310
|
-
size: c(
|
|
311
|
-
tags: c(
|
|
312
|
-
width: c(
|
|
319
|
+
originalUrl: c(i, A),
|
|
320
|
+
recordId: R,
|
|
321
|
+
size: c(i, U) || "0 MB",
|
|
322
|
+
tags: c(i, j),
|
|
323
|
+
width: c(i, w) || "0",
|
|
313
324
|
...E.reduce(
|
|
314
|
-
(N,
|
|
325
|
+
(N, O) => (N[O] = c(i, O), N),
|
|
315
326
|
{}
|
|
316
327
|
)
|
|
317
328
|
};
|
|
@@ -319,7 +330,7 @@ async function he({
|
|
|
319
330
|
return {
|
|
320
331
|
facets: [],
|
|
321
332
|
items: d,
|
|
322
|
-
totalCount:
|
|
333
|
+
totalCount: s.totalCount
|
|
323
334
|
};
|
|
324
335
|
}
|
|
325
336
|
async function ye({
|
|
@@ -327,7 +338,7 @@ async function ye({
|
|
|
327
338
|
cropHeight: t,
|
|
328
339
|
cropWidth: o,
|
|
329
340
|
imageUrl: r,
|
|
330
|
-
useSession:
|
|
341
|
+
useSession: a
|
|
331
342
|
}) {
|
|
332
343
|
try {
|
|
333
344
|
return (await l.request({
|
|
@@ -337,21 +348,21 @@ async function ye({
|
|
|
337
348
|
CropHeight: t,
|
|
338
349
|
CropWidth: o,
|
|
339
350
|
ImageUrl: r && new URL(r, window.location.origin).href,
|
|
340
|
-
UseSession:
|
|
351
|
+
UseSession: a || void 0
|
|
341
352
|
},
|
|
342
353
|
responseType: "json",
|
|
343
354
|
timeout: 3e5,
|
|
344
355
|
// 5 minutes
|
|
345
356
|
transformResponse: [
|
|
346
357
|
...Array.isArray(l.defaults.transformResponse) ? l.defaults.transformResponse : [],
|
|
347
|
-
(
|
|
348
|
-
height:
|
|
349
|
-
width:
|
|
350
|
-
x:
|
|
351
|
-
y:
|
|
358
|
+
(n) => ({
|
|
359
|
+
height: n.cropHeight,
|
|
360
|
+
width: n.cropWidth,
|
|
361
|
+
x: n.cropX,
|
|
362
|
+
y: n.cropY
|
|
352
363
|
})
|
|
353
364
|
],
|
|
354
|
-
url:
|
|
365
|
+
url: $.GET_CROP_ZONE_SUGGESTION
|
|
355
366
|
})).data;
|
|
356
367
|
} catch {
|
|
357
368
|
return null;
|
|
@@ -375,19 +386,19 @@ async function Fe({
|
|
|
375
386
|
responseType: "json",
|
|
376
387
|
transformResponse: [
|
|
377
388
|
...Array.isArray(l.defaults.transformResponse) ? l.defaults.transformResponse : [],
|
|
378
|
-
(u) => !u || typeof u != "object" ? [] : u.proxies?.map((
|
|
379
|
-
cdnName:
|
|
380
|
-
extension:
|
|
381
|
-
formatHeight:
|
|
382
|
-
formatWidth:
|
|
383
|
-
height:
|
|
384
|
-
permanentLink:
|
|
385
|
-
proxyLabel:
|
|
386
|
-
proxyName:
|
|
387
|
-
width:
|
|
389
|
+
(u) => !u || typeof u != "object" ? [] : u.proxies?.map((n) => ({
|
|
390
|
+
cdnName: n.cdnName,
|
|
391
|
+
extension: n.extension,
|
|
392
|
+
formatHeight: n.formatHeight,
|
|
393
|
+
formatWidth: n.formatWidth,
|
|
394
|
+
height: n.height,
|
|
395
|
+
permanentLink: n.permanentLink,
|
|
396
|
+
proxyLabel: n.proxyLabel,
|
|
397
|
+
proxyName: n.proxyName,
|
|
398
|
+
width: n.width
|
|
388
399
|
})) ?? []
|
|
389
400
|
],
|
|
390
|
-
url:
|
|
401
|
+
url: V
|
|
391
402
|
})).data;
|
|
392
403
|
} catch {
|
|
393
404
|
return [];
|
|
@@ -414,14 +425,14 @@ async function Le({
|
|
|
414
425
|
formatsByDocType: o.formatsByDocType ?? {}
|
|
415
426
|
}
|
|
416
427
|
],
|
|
417
|
-
url:
|
|
428
|
+
url: q
|
|
418
429
|
})).data;
|
|
419
430
|
} catch {
|
|
420
431
|
return { formatsByDocType: {} };
|
|
421
432
|
}
|
|
422
433
|
}
|
|
423
434
|
export {
|
|
424
|
-
|
|
435
|
+
g as D,
|
|
425
436
|
T as F,
|
|
426
437
|
A as O,
|
|
427
438
|
Te as a,
|
|
@@ -430,14 +441,14 @@ export {
|
|
|
430
441
|
Le as d,
|
|
431
442
|
B as e,
|
|
432
443
|
he as f,
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
444
|
+
W as g,
|
|
445
|
+
w as h,
|
|
446
|
+
Y as i,
|
|
447
|
+
M as j,
|
|
448
|
+
G as k,
|
|
449
|
+
v as l,
|
|
439
450
|
Fe as m,
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
451
|
+
U as n,
|
|
452
|
+
H as o,
|
|
453
|
+
X as u
|
|
443
454
|
};
|
|
@@ -2,7 +2,7 @@ import { n as i, C as v } from "./lib-cortex-element.CVMmyPMC.js";
|
|
|
2
2
|
import { c as g } from "./component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as C } from "./custom-element.L4WJXn1j.js";
|
|
4
4
|
import { F as x, v as w } from "./form.Ch1cwYzO.js";
|
|
5
|
-
import { L as $ } from "./i18n.
|
|
5
|
+
import { L as $ } from "./i18n.D6AYDPK-.js";
|
|
6
6
|
import { H as S, g as O } from "./slot.j5oheLJC.js";
|
|
7
7
|
import { w as m } from "./watch.CThbualB.js";
|
|
8
8
|
import { r as u } from "./state.CSDxrqLd.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import z from "../components/space.js";
|
|
2
|
-
import { C as $ } from "./table.
|
|
2
|
+
import { C as $ } from "./table.DL_CEeYh.js";
|
|
3
3
|
import { C as k } from "./typography.DJC_UXgs.js";
|
|
4
4
|
import { n as h, C as F } from "./lib-cortex-element.CVMmyPMC.js";
|
|
5
|
-
import { C, a as g } from "./color-swatch.
|
|
5
|
+
import { C, a as g } from "./color-swatch.D9vkPoV2.js";
|
|
6
6
|
import { c as A } from "./component.styles.CRO4Odto.js";
|
|
7
|
-
import { D as p } from "./content-builder.
|
|
7
|
+
import { D as p } from "./content-builder.OsUmm8Wu.js";
|
|
8
8
|
import { c as S } from "./custom-element.L4WJXn1j.js";
|
|
9
9
|
import { d as T } from "./debounce.CIEhztrj.js";
|
|
10
|
-
import { L as E } from "./i18n.
|
|
10
|
+
import { L as E } from "./i18n.D6AYDPK-.js";
|
|
11
11
|
import { w as x } from "./watch.CThbualB.js";
|
|
12
|
-
import { g as D, a as R } from "./responsive.
|
|
12
|
+
import { g as D, a as R } from "./responsive.C8NCkfCG.js";
|
|
13
13
|
import { x as l, B as H, i as O } from "./lit-element.jLBm65_O.js";
|
|
14
14
|
import { r as d } from "./state.CSDxrqLd.js";
|
|
15
15
|
import { e as P } from "./query.BBf1UFkC.js";
|
|
@@ -8,7 +8,7 @@ import { c as F } from "./component.styles.CRO4Odto.js";
|
|
|
8
8
|
import { c as n, C as h, H as $, l as z } from "./color.vLD2sNTs.js";
|
|
9
9
|
import { c as O } from "./custom-element.L4WJXn1j.js";
|
|
10
10
|
import { d as W } from "./debounce.CIEhztrj.js";
|
|
11
|
-
import { L as A } from "./i18n.
|
|
11
|
+
import { L as A } from "./i18n.D6AYDPK-.js";
|
|
12
12
|
import { w as i } from "./watch.CThbualB.js";
|
|
13
13
|
import { i as G, x as u } from "./lit-element.jLBm65_O.js";
|
|
14
14
|
import { r as c } from "./state.CSDxrqLd.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { C as _ } from "./button.
|
|
2
|
-
import { C as u, D as h } from "./dialog.
|
|
1
|
+
import { C as _ } from "./button.i88sSbTZ.js";
|
|
2
|
+
import { C as u, D as h } from "./dialog.Bso6gK-8.js";
|
|
3
3
|
import g from "../components/dropdown.js";
|
|
4
4
|
import { C as x } from "./typography.DJC_UXgs.js";
|
|
5
5
|
import { n as e, C as b } from "./lib-cortex-element.CVMmyPMC.js";
|
|
6
6
|
import { c as y } from "./component.styles.CRO4Odto.js";
|
|
7
7
|
import { c as w } from "./custom-element.L4WJXn1j.js";
|
|
8
|
-
import { L as $ } from "./i18n.
|
|
8
|
+
import { L as $ } from "./i18n.D6AYDPK-.js";
|
|
9
9
|
import { i as z, x as d } from "./lit-element.jLBm65_O.js";
|
|
10
10
|
import { e as m } from "./query.BBf1UFkC.js";
|
|
11
11
|
import { e as a } from "./class-map.BiVq-cVR.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { c as l } from "./capitalize.i-sHIcnm.js";
|
|
2
|
-
const
|
|
3
|
-
function B(a, o,
|
|
4
|
-
const
|
|
5
|
-
return Array.isArray(
|
|
6
|
-
t[1] &&
|
|
7
|
-
}) :
|
|
8
|
-
|
|
9
|
-
}), fetch(
|
|
2
|
+
const d = window.location.origin.includes("localhost:") ? "https://local.orangelogic.com" : window.location.origin;
|
|
3
|
+
function B(a, o, e, i = d) {
|
|
4
|
+
const n = new URL(i + "/" + a);
|
|
5
|
+
return Array.isArray(e) ? e.forEach((t) => {
|
|
6
|
+
t[1] && n.searchParams.append(t[0], t[1]);
|
|
7
|
+
}) : e && Object.keys(e).forEach((t) => {
|
|
8
|
+
e[t] && n.searchParams.append(t, e[t]);
|
|
9
|
+
}), fetch(n, o);
|
|
10
10
|
}
|
|
11
|
-
var
|
|
12
|
-
const
|
|
11
|
+
var c = /* @__PURE__ */ ((a) => (a.Desktop = "desktop", a.Mobile = "mobile", a.Tablet = "tablet", a))(c || {});
|
|
12
|
+
const C = {
|
|
13
13
|
canvasWidth: "",
|
|
14
14
|
height: "",
|
|
15
15
|
id: "desktop",
|
|
@@ -18,7 +18,7 @@ const c = {
|
|
|
18
18
|
"desktop"
|
|
19
19
|
/* Desktop */
|
|
20
20
|
)
|
|
21
|
-
},
|
|
21
|
+
}, u = {
|
|
22
22
|
canvasWidth: "770px",
|
|
23
23
|
height: "",
|
|
24
24
|
id: "tablet",
|
|
@@ -27,7 +27,7 @@ const c = {
|
|
|
27
27
|
"tablet"
|
|
28
28
|
/* Tablet */
|
|
29
29
|
)
|
|
30
|
-
},
|
|
30
|
+
}, h = {
|
|
31
31
|
canvasWidth: "320px",
|
|
32
32
|
height: "",
|
|
33
33
|
id: "mobile",
|
|
@@ -36,8 +36,8 @@ const c = {
|
|
|
36
36
|
"mobile"
|
|
37
37
|
/* Mobile */
|
|
38
38
|
)
|
|
39
|
-
}, L = [
|
|
40
|
-
var A = /* @__PURE__ */ ((a) => (a.All = "ALL", a.CanDelete = "CanDelete", a.CanDownload = "CanDownload", a.CanFind = "CanFind", a.CanManageRights = "CanManageRights", a.CanMove = "CanMove", a.CanRead = "CanRead", a.CanReadAll = "CanReadAll", a.CanReadAndWrite = "CanReadAndWrite", a.CanReadLarge = "CanReadLarge", a.CanReadMedium = "CanReadMedium", a.CanReadOriginal = "CanReadOriginal", a.CanShare = "CanShare", a.CanUpload = "CanUpload", a.CanWrite = "CanWrite", a.None = "NONE", a))(A || {}), g = /* @__PURE__ */ ((a) => (a.All = "all", a.Audio = "audio", a.Image = "image", a.Other = "other", a.Video = "video", a))(g || {}), R = /* @__PURE__ */ ((a) => (a.Content = "content", a.Template = "template", a))(R || {}), b = /* @__PURE__ */ ((a) => (a.Administrator = "Administrator", a.Designer = "Designer", a.Editor = "Editor", a))(b || {}), r = /* @__PURE__ */ ((a) => (a.Accordion = "BlockAccordion", a.Analytics = "BlockAnalytics", a.Audio = "BlockAudio", a.Button = "BlockButton", a.Carousel = "BlockCarousel", a.ColorSwatches = "BlockColorSwatches", a.Column = "BlockCell", a.ColumnGroup = "BlockColumns", a.Divider = "BlockDivider", a.FontKit = "BlockFontKit", a.Gallery = "BlockGallery", a.Header = "BlockHeader", a.Image = "BlockImage", a.RichText = "BlockRichText", a.SearchBox = "BlockSearchBox", a.TabGroup = "BlockTabs", a.Text = "BlockText", a.Timeline = "BlockTimeline", a.Video = "BlockVideo", a))(r || {});
|
|
39
|
+
}, L = [C, u, h];
|
|
40
|
+
var A = /* @__PURE__ */ ((a) => (a.All = "ALL", a.CanDelete = "CanDelete", a.CanDownload = "CanDownload", a.CanFind = "CanFind", a.CanManageRights = "CanManageRights", a.CanMove = "CanMove", a.CanRead = "CanRead", a.CanReadAll = "CanReadAll", a.CanReadAndWrite = "CanReadAndWrite", a.CanReadLarge = "CanReadLarge", a.CanReadMedium = "CanReadMedium", a.CanReadOriginal = "CanReadOriginal", a.CanShare = "CanShare", a.CanUpload = "CanUpload", a.CanWrite = "CanWrite", a.None = "NONE", a))(A || {}), g = /* @__PURE__ */ ((a) => (a.All = "all", a.Audio = "audio", a.Image = "image", a.Other = "other", a.Video = "video", a))(g || {}), R = /* @__PURE__ */ ((a) => (a.Content = "content", a.Template = "template", a))(R || {}), b = /* @__PURE__ */ ((a) => (a.Administrator = "Administrator", a.Designer = "Designer", a.Editor = "Editor", a))(b || {}), r = /* @__PURE__ */ ((a) => (a.Accordion = "BlockAccordion", a.Analytics = "BlockAnalytics", a.Audio = "BlockAudio", a.Button = "BlockButton", a.Carousel = "BlockCarousel", a.ColorSwatches = "BlockColorSwatches", a.Column = "BlockCell", a.ColumnGroup = "BlockColumns", a.Divider = "BlockDivider", a.DocumentViewer = "BlockDocumentViewer", a.FontKit = "BlockFontKit", a.Gallery = "BlockGallery", a.Header = "BlockHeader", a.Image = "BlockImage", a.RichText = "BlockRichText", a.SearchBox = "BlockSearchBox", a.TabGroup = "BlockTabs", a.Text = "BlockText", a.Timeline = "BlockTimeline", a.Video = "BlockVideo", a))(r || {});
|
|
41
41
|
const f = Object.values(r).filter(
|
|
42
42
|
(a) => a !== "BlockCell"
|
|
43
43
|
/* Column */
|
|
@@ -46,7 +46,7 @@ var s = /* @__PURE__ */ ((a) => (a.Carousel = "carousel", a.Gallery = "gallery",
|
|
|
46
46
|
export {
|
|
47
47
|
g as A,
|
|
48
48
|
r as B,
|
|
49
|
-
|
|
49
|
+
c as D,
|
|
50
50
|
R as E,
|
|
51
51
|
A as P,
|
|
52
52
|
b as T,
|
|
@@ -3,7 +3,7 @@ import { c as S } from "./component.styles.CRO4Odto.js";
|
|
|
3
3
|
import { O, C as D, H, z as A, o as B } from "./overlayscrollbars.BMav4RQ4.js";
|
|
4
4
|
import { a as c, s as p, w as x } from "./event.BeKOsirN.js";
|
|
5
5
|
import { c as $ } from "./custom-element.L4WJXn1j.js";
|
|
6
|
-
import { L } from "./i18n.
|
|
6
|
+
import { L } from "./i18n.D6AYDPK-.js";
|
|
7
7
|
import { M as P } from "./modal.U1QltQKe.js";
|
|
8
8
|
import { l as w, u as _ } from "./scroll.xtO5yojm.js";
|
|
9
9
|
import { H as E } from "./slot.j5oheLJC.js";
|
|
@@ -17,7 +17,7 @@ import { o as q } from "./style-map.llVFPd__.js";
|
|
|
17
17
|
import { n as b } from "./when.Dr1es41R.js";
|
|
18
18
|
import { s as u, g as h } from "./animation-registry.HmpwNuGH.js";
|
|
19
19
|
import F from "../components/divider.js";
|
|
20
|
-
import { C as I } from "./icon-button.
|
|
20
|
+
import { C as I } from "./icon-button.ztYU-DHy.js";
|
|
21
21
|
import U from "../components/popup.js";
|
|
22
22
|
var l = /* @__PURE__ */ ((e) => (e.Both = "both", e.Footer = "footer", e.Header = "header", e.None = "none", e))(l || {});
|
|
23
23
|
const j = R`:host{--width:31rem;--header-spacing:var(--cx-spacing-small) var(--cx-spacing-large);--body-spacing:var(--cx-spacing-medium) var(--cx-spacing-large);--divider-spacing:0;--footer-spacing:var(--cx-spacing-medium);--max-width:100%;--max-height:100%;--overlay-background-color:var(--cx-overlay-background-color);display:contents}.dialog{justify-content:center;align-items:center;display:flex}.dialog--absolute{position:absolute}.dialog__panel{width:var(--width);height:var(--dialog-height,auto);background-color:var(--cx-panel-background-color);border-radius:var(--cx-border-radius-medium);box-shadow:var(--cx-shadow-x-large);max-width:calc(var(--max-width) - var(--cx-spacing-2x-large));max-height:calc(var(--max-height) - var(--cx-spacing-2x-large));flex-direction:column;display:flex;overflow:hidden}.dialog__panel:focus{outline:none}@media screen and (width<=420px){.dialog__panel{max-height:80vh}}.dialog--open .dialog__panel{opacity:1;display:flex}.dialog__header{padding:var(--header-spacing);flex:none;display:flex}.dialog__header-divider,.dialog__footer-divider{--spacing:0;padding:var(--divider-spacing)}.dialog__title{font:inherit;font-family:var(--cx-font-sans);font-size:var(--cx-font-size-large);font-weight:var(--cx-font-weight-regular);line-height:var(--cx-line-height-large);flex:auto;align-items:center;margin:0;display:flex}.dialog__header-actions{justify-content:end;gap:var(--cx-spacing-2x-small);flex-wrap:wrap;flex-shrink:0;display:flex}.dialog__header-actions cx-icon-button,.dialog__header-actions ::slotted(cx-icon-button){font-size:var(--cx-font-size-3x-large);flex:none;align-items:center;display:flex}.dialog__body{padding:var(--body-spacing);-webkit-overflow-scrolling:touch;font-size:var(--cx-font-size-medium);font-weight:var(--cx-font-weight-regular);line-height:var(--cx-line-height-small);z-index:2;flex:auto;display:block;position:relative;overflow:auto}.dialog--overlay-scrollbar .dialog__body{flex-direction:column;display:flex}.dialog__footer{text-align:right;padding:var(--footer-spacing);z-index:1;flex:none;position:relative}.dialog__footer ::slotted(cx-button:not(:first-of-type)){margin-inline-start:var(--cx-spacing-x-small)}.dialog:not(.dialog--has-footer) .dialog__footer{display:none}@media (forced-colors:active){.dialog__panel{border:solid 1px var(--cx-color-neutral-0)}}.dialog__overlay{background-color:var(--overlay-background-color);opacity:0;pointer-events:none;z-index:1;justify-content:center;align-items:center;display:flex}.dialog--open .dialog__overlay{opacity:1;pointer-events:auto}`;
|