From 586072bab1147769160597361cd5817ca1b4312b Mon Sep 17 00:00:00 2001 From: Marvin Bertram Date: Fri, 1 Mar 2024 10:01:57 +0100 Subject: [PATCH] Prevent duplication of asset tabs (#63) * Update to latest api version * Add icon update * Add icons for different asset types * Add coloring for asset icons * Prevent dublication of asset tabs --- .../js/src/modules/asset/hooks/use-asset.ts | 1 + .../hooks/use-widget-manager.ts | 9 +- .../widget-manager/widget-manager-slice.ts | 123 ++++++++++++------ public/build/entrypoints.json | 2 +- public/build/main.88ffc0a8.js | 1 + public/build/main.b0b41fde.js | 1 - public/build/manifest.json | 2 +- 7 files changed, 97 insertions(+), 42 deletions(-) create mode 100644 public/build/main.88ffc0a8.js delete mode 100644 public/build/main.b0b41fde.js diff --git a/assets/js/src/modules/asset/hooks/use-asset.ts b/assets/js/src/modules/asset/hooks/use-asset.ts index a2ccb75b7..95b264e60 100644 --- a/assets/js/src/modules/asset/hooks/use-asset.ts +++ b/assets/js/src/modules/asset/hooks/use-asset.ts @@ -23,6 +23,7 @@ export const useAsset = (): UseAssetReturn => { openMainWidget({ name, icon, + id: `asset-${config.id}`, component: 'asset', config }) diff --git a/assets/js/src/modules/widget-manager/hooks/use-widget-manager.ts b/assets/js/src/modules/widget-manager/hooks/use-widget-manager.ts index e0c218556..4ae80cd94 100644 --- a/assets/js/src/modules/widget-manager/hooks/use-widget-manager.ts +++ b/assets/js/src/modules/widget-manager/hooks/use-widget-manager.ts @@ -4,6 +4,7 @@ import { openBottomWidget as openBottomWidgetAction, openLeftWidget as openLeftWidgetAction, openRightWidget as openRightWidgetAction, + setActiveWidgetById, type WidgetManagerTabConfig } from '../widget-manager-slice' @@ -12,6 +13,8 @@ interface useWidgetManagerReturn { openBottomWidget: (tabConfig: WidgetManagerTabConfig) => void openLeftWidget: (tabConfig: WidgetManagerTabConfig) => void openRightWidget: (tabConfig: WidgetManagerTabConfig) => void + switchToWidget: (id: string) => void + } export const useWidgetManager = (): useWidgetManagerReturn => { @@ -33,5 +36,9 @@ export const useWidgetManager = (): useWidgetManagerReturn => { dispatch(openRightWidgetAction(tabConfig)) } - return { openMainWidget, openBottomWidget, openLeftWidget, openRightWidget } + function switchToWidget (id: string): void { + dispatch(setActiveWidgetById(id)) + } + + return { openMainWidget, openBottomWidget, openLeftWidget, openRightWidget, switchToWidget } } diff --git a/assets/js/src/modules/widget-manager/widget-manager-slice.ts b/assets/js/src/modules/widget-manager/widget-manager-slice.ts index 0608883e9..8940f5e07 100644 --- a/assets/js/src/modules/widget-manager/widget-manager-slice.ts +++ b/assets/js/src/modules/widget-manager/widget-manager-slice.ts @@ -1,6 +1,6 @@ import { injectSliceWithState } from '@Pimcore/app/store/index' import { type PayloadAction, createSlice } from '@reduxjs/toolkit' -import { type IJsonModel, type IJsonTabNode, Model, Actions, DockLocation } from 'flexlayout-react' +import { type IJsonModel, type IJsonTabNode, Model, Actions, DockLocation, type Node } from 'flexlayout-react' import { getInitialModelJson } from './utils/widget-manager-model' export interface WidgetManagerState { @@ -23,66 +23,113 @@ export const slice = createSlice({ state.model = { ...action.payload } }, - openMainWidget: (state, action: PayloadAction) => { + setActiveWidgetById: (state, action: PayloadAction) => { const model = Model.fromJson(state.model) + const node = model.getNodeById(action.payload) + + if (node !== undefined) { + model.doAction(Actions.selectTab(node.getId())) + } + + state.model = { ...model.toJson() } + }, - model.doAction( - Actions.addNode( - action.payload, - 'main_tabset', - DockLocation.CENTER, - -1, - true + openMainWidget: (state, action: PayloadAction) => { + const model = Model.fromJson(state.model) + let node: Node | undefined + + if (action.payload.id !== undefined) { + node = model.getNodeById(action.payload.id) + } + + if (node !== undefined) { + model.doAction(Actions.selectTab(node.getId())) + } else { + model.doAction( + Actions.addNode( + action.payload, + 'main_tabset', + DockLocation.CENTER, + -1, + true + ) ) - ) + } state.model = { ...model.toJson() } }, openBottomWidget: (state, action: PayloadAction) => { const model = Model.fromJson(state.model) - - model.doAction( - Actions.addNode( - action.payload, - 'bottom_tabset', - DockLocation.CENTER, - -1, - true + let node: Node | undefined + + if (action.payload.id !== undefined) { + node = model.getNodeById(action.payload.id) + } + + if (node !== undefined) { + model.doAction(Actions.selectTab(node.getId())) + } else { + model.doAction( + Actions.addNode( + action.payload, + 'bottom_tabset', + DockLocation.CENTER, + -1, + true + ) ) - ) + } state.model = { ...model.toJson() } }, openLeftWidget: (state, action: PayloadAction) => { const model = Model.fromJson(state.model) - - model.doAction( - Actions.addNode( - action.payload, - 'border_left', - DockLocation.CENTER, - -1, - true + let node: Node | undefined + + if (action.payload.id !== undefined) { + node = model.getNodeById(action.payload.id) + } + + if (node !== undefined) { + model.doAction(Actions.selectTab(node.getId())) + } else { + model.doAction( + Actions.addNode( + action.payload, + 'border_left', + DockLocation.CENTER, + -1, + true + ) ) - ) + } state.model = { ...model.toJson() } }, openRightWidget: (state, action: PayloadAction) => { const model = Model.fromJson(state.model) - - model.doAction( - Actions.addNode( - action.payload, - 'border_right', - DockLocation.CENTER, - -1, - true + let node: Node | undefined + + if (action.payload.id !== undefined) { + node = model.getNodeById(action.payload.id) + } + + if (node !== undefined) { + model.doAction(Actions.selectTab(node.getId())) + } else { + model.doAction( + Actions.addNode( + action.payload, + 'border_right', + DockLocation.CENTER, + -1, + true + ) ) - ) + } state.model = { ...model.toJson() } } @@ -97,5 +144,5 @@ export const slice = createSlice({ injectSliceWithState(slice) -export const { updateModel, openMainWidget, openBottomWidget, openLeftWidget, openRightWidget } = slice.actions +export const { updateModel, openMainWidget, openBottomWidget, openLeftWidget, openRightWidget, setActiveWidgetById } = slice.actions export const { selectModel } = slice.selectors diff --git a/public/build/entrypoints.json b/public/build/entrypoints.json index 269e681f4..a9f17b807 100644 --- a/public/build/entrypoints.json +++ b/public/build/entrypoints.json @@ -3,7 +3,7 @@ "main": { "js": [ "/bundles/pimcorestudioui/build/239.37566adc.js", - "/bundles/pimcorestudioui/build/main.b0b41fde.js" + "/bundles/pimcorestudioui/build/main.88ffc0a8.js" ], "css": [ "/bundles/pimcorestudioui/build/main.3691bcd8.css" diff --git a/public/build/main.88ffc0a8.js b/public/build/main.88ffc0a8.js new file mode 100644 index 000000000..c56226982 --- /dev/null +++ b/public/build/main.88ffc0a8.js @@ -0,0 +1 @@ +var Pimcore;(()=>{"use strict";var e,n,t,r,o,a={302:(e,n,t)=>{t.r(n);var r=t(6609),o=t(1072);r.ZP.use(o.Db).init({fallbackLng:"en",partialBundledLanguages:!0,ns:[],resources:{},saveMissing:!0}).catch((function(e){console.error(e)})),r.ZP.on("missingKey",(function(e,n,t,r){}));const a=r.ZP;var i=t(7294),l=function(){return l=Object.assign||function(e){for(var n,t=1,r=arguments.length;t0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]thead>tr:first-child >*:first-child {\n border-start-start-radius: 0;\n }\n\n &.ant-table-wrapper .ant-table-container table>thead>tr:first-child >*:last-child {\n border-start-end-radius: 0;\n }\n\n .grid__cell-content {\n display: block; \n width: fit-content;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .ant-table-cell {\n position: relative;\n border-left: 1px solid #F0F0F0;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n &:first-of-type {\n border-left: 0;\n }\n\n &:last-of-type {\n border-right: 1px solid #F0F0F0;\n }\n }\n\n .ant-table-thead {\n position: sticky;\n top: 0;\n z-index: 1;\n }\n "],["\n table {\n table-layout: fixed;\n width: auto;\n }\n\n th {\n user-select: none;\n }\n\n &.ant-table-wrapper .ant-table-container table>thead>tr:first-child >*:first-child {\n border-start-start-radius: 0;\n }\n\n &.ant-table-wrapper .ant-table-container table>thead>tr:first-child >*:last-child {\n border-start-end-radius: 0;\n }\n\n .grid__cell-content {\n display: block; \n width: fit-content;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .ant-table-cell {\n position: relative;\n border-left: 1px solid #F0F0F0;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n &:first-of-type {\n border-left: 0;\n }\n\n &:last-of-type {\n border-right: 1px solid #F0F0F0;\n }\n }\n\n .ant-table-thead {\n position: sticky;\n top: 0;\n z-index: 1;\n }\n "])))}})),Ee=function(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e},ke=(0,T.kc)((function(e){var n=e.token;return{resizer:(0,e.css)(ie||(ie=Ee(["\n &.grid__resizer {\n position: absolute;\n right: -4px;\n top: 0;\n bottom: 0;\n width: 8px;\n z-index: 1;\n background-color: transparent;\n\n &--resizing {\n background-color: ",";\n width: 2px;\n right: -1px;\n }\n\n &--hoverable {\n cursor: col-resize;\n }\n }\n "],["\n &.grid__resizer {\n position: absolute;\n right: -4px;\n top: 0;\n bottom: 0;\n width: 8px;\n z-index: 1;\n background-color: transparent;\n\n &--resizing {\n background-color: ",";\n width: 2px;\n right: -1px;\n }\n\n &--hoverable {\n cursor: col-resize;\n }\n }\n "])),n.colorPrimary)}})),Pe=function(e){var n,t=ke().styles,r=["grid__resizer"];return r.push(t.resizer),void 0!==e.onMouseDown&&r.push("grid__resizer--hoverable"),e.isResizing&&r.push("grid__resizer--resizing"),i.createElement("div",{onMouseDown:e.onMouseDown,className:r.join(" "),style:{transform:e.isResizing?"translateX(".concat(("rtl"===e.table.options.columnResizeDirection?-1:1)*(null!==(n=e.table.getState().columnSizingInfo.deltaOffset)&&void 0!==n?n:0),"px)"):""}})},Oe=function(e){var n,t,r=(0,i.useState)(e.columns)[0],o=(0,i.useState)(e.data)[0],a=(n="table",t=(0,i.useContext)(ve.E_).getPrefixCls(n,""),(0,ge.Z)(t)[1]),l=_e().styles,c=(0,i.useState)("onEnd")[0],s={data:o,columns:r,getCoreRowModel:(0,ye.sC)()};!0===e.resizeable&&(s.columnResizeMode=c);var d=(0,xe.b7)(s);return i.createElement("div",{className:["ant-table-wrapper",a,l.grid].join(" ")},i.createElement("div",{className:"ant-table ant-table-small"},i.createElement("div",{className:"ant-table-container"},i.createElement("div",{className:"ant-table-content"},i.createElement("table",{style:{width:d.getCenterTotalSize()}},i.createElement("thead",{className:"ant-table-thead"},d.getHeaderGroups().map((function(n){return i.createElement("tr",{key:n.id},n.headers.map((function(n){return i.createElement("th",{key:n.id,className:"ant-table-cell",style:{width:n.column.getSize(),maxWidth:n.column.getSize()}},i.createElement("div",{className:"grid__cell-content"},(0,xe.ie)(n.column.columnDef.header,n.getContext())),!0===e.resizeable&&n.column.getCanResize()&&i.createElement(Pe,{onMouseDown:n.getResizeHandler(),isResizing:n.column.getIsResizing(),table:d}))})))}))),i.createElement("tbody",{className:"ant-table-tbody"},d.getRowModel().rows.map((function(n){return i.createElement("tr",{className:"ant-table-row",key:n.id},n.getVisibleCells().map((function(n){return i.createElement("td",{key:n.id,className:"ant-table-cell",style:{width:n.column.getSize(),maxWidth:n.column.getSize()}},i.createElement("div",{className:"grid__cell-content"},(0,xe.ie)(n.column.columnDef.cell,n.getContext())),!0===e.resizeable&&i.createElement(Pe,{isResizing:n.column.getIsResizing(),table:d}))})))}))))))))},Se=t(6214),Ae=function(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e},je=(0,T.kc)((function(e){e.token;return{image:(0,e.css)(le||(le=Ae(["\n display: flex;\n justify-content: center;\n align-items: center;\n aspect-ratio: 1;\n width: 80px;\n "],["\n display: flex;\n justify-content: center;\n align-items: center;\n aspect-ratio: 1;\n width: 80px;\n "])))}})),ze=t(2507),Te=function(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e},Ce=(0,T.kc)((function(e){e.token;return{"loading-div":(0,e.css)(ce||(ce=Te(["\n position: absolute;\n top: calc(50% - 11px);\n left: calc(50% - 8px);\n "],["\n position: absolute;\n top: calc(50% - 11px);\n left: calc(50% - 8px);\n "])))}})),Ie=function(){return Ie=Object.assign||function(e){for(var n,t=1,r=arguments.length;t0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1].ant-tabs-nav {\n margin-bottom: 0;\n }\n \n .ant-tabs-tab {\n &:first-of-type {\n margin-left: ","px;\n margin-right: ","px;\n }\n padding: 0;\n \n .ant-tabs-tab-btn {\n display: flex;\n padding-top: ","px;\n padding-bottom: ","px;\n justify-content: center;\n align-items: center;\n gap: ","px;\n \n .ant-tabs-tab-icon {\n height: 16px;\n justify-content: center;\n align-content: center;\n margin-inline-end: 0;\n color: ",";\n \n svg {\n height: 16px;\n width: 16px\n }\n }\n }\n\n &:not(.ant-tabs-tab-active) {\n .ant-tabs-tab-icon {\n &:hover {\n color: ",";\n }\n }\n }\n \n &.ant-tabs-tab-active {\n .ant-tabs-tab-icon {\n color: ","\n }\n }\n }\n "],["\n height: 100%;\n overflow: hidden;\n\n .ant-tabs-content-holder {\n overflow: auto;\n }\n\n &.ant-tabs .ant-tabs-tab+.ant-tabs-tab {\n margin-left: ","px;\n margin-right: ","px;\n }\n &.ant-tabs .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n color: ","\n }\n &.ant-tabs-top >.ant-tabs-nav {\n margin-bottom: 0;\n }\n \n .ant-tabs-tab {\n &:first-of-type {\n margin-left: ","px;\n margin-right: ","px;\n }\n padding: 0;\n \n .ant-tabs-tab-btn {\n display: flex;\n padding-top: ","px;\n padding-bottom: ","px;\n justify-content: center;\n align-items: center;\n gap: ","px;\n \n .ant-tabs-tab-icon {\n height: 16px;\n justify-content: center;\n align-content: center;\n margin-inline-end: 0;\n color: ",";\n \n svg {\n height: 16px;\n width: 16px\n }\n }\n }\n\n &:not(.ant-tabs-tab-active) {\n .ant-tabs-tab-icon {\n &:hover {\n color: ",";\n }\n }\n }\n \n &.ant-tabs-tab-active {\n .ant-tabs-tab-icon {\n color: ","\n }\n }\n }\n "])),n.paddingSM,n.paddingSM,n.colorPrimaryActive,n.paddingSM,n.paddingSM,n.paddingXS,n.paddingXS,n.Tabs.paddingTabs,n.Tabs.itemUnselectedIconColor,n.colorIconHover,n.colorPrimaryActive),onlyActiveLabel:t(Ze||(Ze=Xe(["\n .ant-tabs-tab:not(.ant-tabs-tab-active) {\n span:nth-child(2) {\n display: none;\n }\n\n .ant-tabs-tab-icon {\n margin-inline-end: 0;\n }\n }\n\n @keyframes fadeIn {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n }\n\n .ant-tabs-tab.ant-tabs-tab-active {\n border-bottom: 2px solid ",";\n animation: fadeIn .2s;\n }\n "],["\n .ant-tabs-tab:not(.ant-tabs-tab-active) {\n span:nth-child(2) {\n display: none;\n }\n\n .ant-tabs-tab-icon {\n margin-inline-end: 0;\n }\n }\n\n @keyframes fadeIn {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n }\n\n .ant-tabs-tab.ant-tabs-tab-active {\n border-bottom: 2px solid ",";\n animation: fadeIn .2s;\n }\n "])),n.colorPrimaryActive)}})),qe=t(6997),Ue=function(e){var n=e.defaultActiveKey,t=e.showLabelIfActive,r=e.items,o=Je().styles;return i.createElement(qe.Z,{className:"".concat(o.editorTabs," ").concat(!0===t?o.onlyActiveLabel:""),defaultActiveKey:n,items:r})},Ve=function(){var e=De.getTabs();return i.createElement(Ue,{key:1,items:e})},Qe=function(){return i.createElement(i.Fragment,null,i.createElement(Ve,null))},Ke=function(){var e=fn.getTabs();return i.createElement(Ue,{defaultActiveKey:"1",items:e,showLabelIfActive:!0})},$e=function(){return i.createElement(i.Fragment,null,i.createElement(Ke,null))},Ye=(0,i.createContext)({}),en=function(){var e=(0,i.useContext)(Ye),n=fe(e.id),t=n.isError,r=n.isLoading,o=n.asset;return r||void 0===o?i.createElement("h4",null,"Loading..."):t?i.createElement("h4",null,"Error"):"image"===o.type?i.createElement(i.Fragment,null,i.createElement($.Z,{src:o.fullPath})):i.createElement("div",null,"view")},nn=function(){return i.createElement("h4",null,"Edit TAB")},tn=function(){return i.createElement("h4",null,"Embedded Metadata TAB")},rn=function(){return i.createElement("h4",null,"Custom Metadata TAB")},on=function(){return i.createElement("h4",null,"Versions TAB")},an=function(){return i.createElement("h4",null,"Schedule TAB")},ln=function(){return i.createElement("h4",null,"Dependencies TAB")},cn=function(){return i.createElement("h4",null,"Notes & Events TAB")},sn=function(){return i.createElement("h4",null,"Workflow TAB")},dn=function(){return i.createElement("h4",null,"Tags TAB")},un=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},e(n,t)};return function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}}(),fn=new(function(e){function n(){var n=e.call(this)||this;return n.type="asset",n}return un(n,e),n}(pe));fn.register({key:"view",label:a.t("asset.asset-editor-tabs.view"),children:i.createElement(en,null),icon:i.createElement(W,{name:"image-05"})}),fn.register({key:"edit",label:a.t("asset.asset-editor-tabs.edit"),children:i.createElement(nn,null),icon:i.createElement(W,{name:"edit"})}),fn.register({key:"embedded-metadata",label:a.t("asset.asset-editor-tabs.embedded-metadata"),children:i.createElement(tn,null),icon:i.createElement(W,{name:"data-sheet"})}),fn.register({key:"custom-metadata",label:a.t("asset.asset-editor-tabs.custom-metadata"),children:i.createElement(rn,null),icon:i.createElement(W,{name:"data-management-2"})}),fn.register({key:"versions",label:a.t("asset.asset-editor-tabs.versions"),children:i.createElement(on,null),icon:i.createElement(W,{name:"history-outlined"})}),fn.register({key:"schedule",label:a.t("asset.asset-editor-tabs.schedule"),children:i.createElement(an,null),icon:i.createElement(W,{name:"schedule-outlined"})}),fn.register({key:"dependencies",label:a.t("asset.asset-editor-tabs.dependencies"),children:i.createElement(ln,null),icon:i.createElement(W,{name:"hierarchy"})}),fn.register({key:"notes-events",label:a.t("asset.asset-editor-tabs.notes-events"),children:i.createElement(cn,null),icon:i.createElement(W,{name:"view-details"})}),fn.register({key:"tags",label:a.t("asset.asset-editor-tabs.tag"),children:i.createElement(dn,null),icon:i.createElement(W,{name:"tag-two-tone"})}),fn.register({key:"workflow",label:a.t("asset.asset-editor-tabs.workflow"),children:i.createElement(sn,null),icon:i.createElement(W,{name:"workflow"})}),s({name:"asset",component:function(e){var n=e.id,t=fe(n),r=t.isLoading,o=t.isError,a=t.asset;return o?i.createElement("div",null,"Error"):r||void 0===a?i.createElement("div",null,"Loading..."):i.createElement(Ye.Provider,{value:{id:n}},"image"===a.type&&i.createElement($e,null),"folder"===a.type&&i.createElement(Qe,null))}});var pn,bn,mn=t(9372),hn=t(3512),gn=function(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e},vn=(0,T.kc)((function(e){var n=e.token;return{treeNode:(0,e.css)(pn||(pn=gn(["\n user-select: none;\n\n .tree-node__content {\n cursor: pointer;\n width: 100%;\n padding: 2px ","px 2px 0;\n white-space: nowrap;\n align-items: center;\n\n @media (hover: hover) {\n &:hover {\n background-color: ",";\n }\n }\n }\n\n &.tree-node--selected > .tree-node__content {\n background-color: ",";\n }\n\n .tree-node__content-wrapper {\n max-width: max(100px, calc(100% - 16px));\n }\n\n .tree-node-content__label {\n display: inline-block;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n "],["\n user-select: none;\n\n .tree-node__content {\n cursor: pointer;\n width: 100%;\n padding: 2px ","px 2px 0;\n white-space: nowrap;\n align-items: center;\n\n @media (hover: hover) {\n &:hover {\n background-color: ",";\n }\n }\n }\n\n &.tree-node--selected > .tree-node__content {\n background-color: ",";\n }\n\n .tree-node__content-wrapper {\n max-width: max(100px, calc(100% - 16px));\n }\n\n .tree-node-content__label {\n display: inline-block;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n "])),n.paddingSM,n.controlItemBgActiveHover,n.controlItemBgActive)}})),yn=function(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e},xn=(0,T.kc)((function(e){var n=e.token;return{"tree-list__pager":(0,e.css)(bn||(bn=yn([" \n padding: ","px 0;\n\n &:empty {\n padding: 0;\n }\n "],[" \n padding: ","px 0;\n\n &:empty {\n padding: 0;\n }\n "])),n.paddingSM)}})),wn=function(){return wn=Object.assign||function(e){for(var n,t=1,r=arguments.length;t0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]]+)>/g,(function(e,n){var t=a[n];return"$"+(Array.isArray(t)?t.join("$"):t)})))}if("function"==typeof o){var i=this;return e[Symbol.replace].call(this,t,(function(){var e=arguments;return"object"!=Jn(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,i)),o.apply(this,e)}))}return e[Symbol.replace].call(this,t,o)},qn.apply(this,arguments)}function Un(e,n){return Un=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},Un(e,n)}var Vn=function(){return Vn=Object.assign||function(e){for(var n,t=1,r=arguments.length;t{if(!t){var a=1/0;for(d=0;d=o)&&Object.keys(l.O).every((e=>l.O[e](t[c])))?t.splice(c--,1):(i=!1,o0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[t,r,o]},l.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return l.d(n,{a:n}),n},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var o=Object.create(null);l.r(o);var a={};n=n||[null,t({}),t([]),t(t)];for(var i=2&r&&e;"object"==typeof i&&!~n.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((n=>a[n]=()=>e[n]));return a.default=()=>e,l.d(o,a),o},l.d=(e,n)=>{for(var t in n)l.o(n,t)&&!l.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce(((n,t)=>(l.f[t](e,n),n)),[])),l.u=e=>e+"."+{12:"b99e1420",54:"67c7a911",58:"9cf6e23a",121:"d7e855e7",125:"dea60f4e",169:"8822c732",216:"0f9af5f5",288:"328361dd",296:"59065ed1",298:"830d7e38",307:"c11c33c6",324:"eb495a70",347:"5e450f93",397:"5f3d26ea",418:"95706954",447:"9c8796fa",476:"86b891f8",491:"32b6bd6d",524:"94aec92e",577:"2aea901f",621:"ad85fc5a",625:"b487b20e",678:"c220b736",686:"f7f77fbc",732:"864ddc17",737:"9283a5f4",743:"7c7b54b8",766:"f9fa4235",801:"725aee54",905:"546b0a2d",931:"6bd2ca90",949:"adf98f9a",967:"d38ada47"}[e]+".js",l.miniCssF=e=>{},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),l.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),r={},o="Pimcore:",l.l=(e,n,t,a)=>{if(r[e])r[e].push(n);else{var i,c;if(void 0!==t)for(var s=document.getElementsByTagName("script"),d=0;d{i.onerror=i.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(t))),n)return n(t)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),c&&document.head.appendChild(i)}},l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.p="/bundles/pimcorestudioui/build/",(()=>{var e={179:0};l.f.j=(n,t)=>{var r=l.o(e,n)?e[n]:void 0;if(0!==r)if(r)t.push(r[2]);else{var o=new Promise(((t,o)=>r=e[n]=[t,o]));t.push(r[2]=o);var a=l.p+l.u(n),i=new Error;l.l(a,(t=>{if(l.o(e,n)&&(0!==(r=e[n])&&(e[n]=void 0),r)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+n+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,r[1](i)}}),"chunk-"+n,n)}},l.O.j=n=>0===e[n];var n=(n,t)=>{var r,o,[a,i,c]=t,s=0;if(a.some((n=>0!==e[n]))){for(r in i)l.o(i,r)&&(l.m[r]=i[r]);if(c)var d=c(l)}for(n&&n(t);sl(302)));c=l.O(c),Pimcore=c})(); \ No newline at end of file diff --git a/public/build/main.b0b41fde.js b/public/build/main.b0b41fde.js deleted file mode 100644 index a3ab3c375..000000000 --- a/public/build/main.b0b41fde.js +++ /dev/null @@ -1 +0,0 @@ -var Pimcore;(()=>{"use strict";var e,n,t,r,o,a={302:(e,n,t)=>{t.r(n);var r=t(6609),o=t(1072);r.ZP.use(o.Db).init({fallbackLng:"en",partialBundledLanguages:!0,ns:[],resources:{},saveMissing:!0}).catch((function(e){console.error(e)})),r.ZP.on("missingKey",(function(e,n,t,r){}));const a=r.ZP;var i=t(7294),l=function(){return l=Object.assign||function(e){for(var n,t=1,r=arguments.length;t0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]thead>tr:first-child >*:first-child {\n border-start-start-radius: 0;\n }\n\n &.ant-table-wrapper .ant-table-container table>thead>tr:first-child >*:last-child {\n border-start-end-radius: 0;\n }\n\n .grid__cell-content {\n display: block; \n width: fit-content;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .ant-table-cell {\n position: relative;\n border-left: 1px solid #F0F0F0;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n &:first-of-type {\n border-left: 0;\n }\n\n &:last-of-type {\n border-right: 1px solid #F0F0F0;\n }\n }\n\n .ant-table-thead {\n position: sticky;\n top: 0;\n z-index: 1;\n }\n "],["\n table {\n table-layout: fixed;\n width: auto;\n }\n\n th {\n user-select: none;\n }\n\n &.ant-table-wrapper .ant-table-container table>thead>tr:first-child >*:first-child {\n border-start-start-radius: 0;\n }\n\n &.ant-table-wrapper .ant-table-container table>thead>tr:first-child >*:last-child {\n border-start-end-radius: 0;\n }\n\n .grid__cell-content {\n display: block; \n width: fit-content;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .ant-table-cell {\n position: relative;\n border-left: 1px solid #F0F0F0;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n &:first-of-type {\n border-left: 0;\n }\n\n &:last-of-type {\n border-right: 1px solid #F0F0F0;\n }\n }\n\n .ant-table-thead {\n position: sticky;\n top: 0;\n z-index: 1;\n }\n "])))}})),_e=function(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e},Ee=(0,T.kc)((function(e){var n=e.token;return{resizer:(0,e.css)(ae||(ae=_e(["\n &.grid__resizer {\n position: absolute;\n right: -4px;\n top: 0;\n bottom: 0;\n width: 8px;\n z-index: 1;\n background-color: transparent;\n\n &--resizing {\n background-color: ",";\n width: 2px;\n right: -1px;\n }\n\n &--hoverable {\n cursor: col-resize;\n }\n }\n "],["\n &.grid__resizer {\n position: absolute;\n right: -4px;\n top: 0;\n bottom: 0;\n width: 8px;\n z-index: 1;\n background-color: transparent;\n\n &--resizing {\n background-color: ",";\n width: 2px;\n right: -1px;\n }\n\n &--hoverable {\n cursor: col-resize;\n }\n }\n "])),n.colorPrimary)}})),ke=function(e){var n,t=Ee().styles,r=["grid__resizer"];return r.push(t.resizer),void 0!==e.onMouseDown&&r.push("grid__resizer--hoverable"),e.isResizing&&r.push("grid__resizer--resizing"),i.createElement("div",{onMouseDown:e.onMouseDown,className:r.join(" "),style:{transform:e.isResizing?"translateX(".concat(("rtl"===e.table.options.columnResizeDirection?-1:1)*(null!==(n=e.table.getState().columnSizingInfo.deltaOffset)&&void 0!==n?n:0),"px)"):""}})},Pe=function(e){var n,t,r=(0,i.useState)(e.columns)[0],o=(0,i.useState)(e.data)[0],a=(n="table",t=(0,i.useContext)(ge.E_).getPrefixCls(n,""),(0,he.Z)(t)[1]),l=we().styles,c=(0,i.useState)("onEnd")[0],s={data:o,columns:r,getCoreRowModel:(0,ve.sC)()};!0===e.resizeable&&(s.columnResizeMode=c);var d=(0,ye.b7)(s);return i.createElement("div",{className:["ant-table-wrapper",a,l.grid].join(" ")},i.createElement("div",{className:"ant-table ant-table-small"},i.createElement("div",{className:"ant-table-container"},i.createElement("div",{className:"ant-table-content"},i.createElement("table",{style:{width:d.getCenterTotalSize()}},i.createElement("thead",{className:"ant-table-thead"},d.getHeaderGroups().map((function(n){return i.createElement("tr",{key:n.id},n.headers.map((function(n){return i.createElement("th",{key:n.id,className:"ant-table-cell",style:{width:n.column.getSize(),maxWidth:n.column.getSize()}},i.createElement("div",{className:"grid__cell-content"},(0,ye.ie)(n.column.columnDef.header,n.getContext())),!0===e.resizeable&&n.column.getCanResize()&&i.createElement(ke,{onMouseDown:n.getResizeHandler(),isResizing:n.column.getIsResizing(),table:d}))})))}))),i.createElement("tbody",{className:"ant-table-tbody"},d.getRowModel().rows.map((function(n){return i.createElement("tr",{className:"ant-table-row",key:n.id},n.getVisibleCells().map((function(n){return i.createElement("td",{key:n.id,className:"ant-table-cell",style:{width:n.column.getSize(),maxWidth:n.column.getSize()}},i.createElement("div",{className:"grid__cell-content"},(0,ye.ie)(n.column.columnDef.cell,n.getContext())),!0===e.resizeable&&i.createElement(ke,{isResizing:n.column.getIsResizing(),table:d}))})))}))))))))},Oe=t(6214),Se=function(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e},je=(0,T.kc)((function(e){e.token;return{image:(0,e.css)(ie||(ie=Se(["\n display: flex;\n justify-content: center;\n align-items: center;\n aspect-ratio: 1;\n width: 80px;\n "],["\n display: flex;\n justify-content: center;\n align-items: center;\n aspect-ratio: 1;\n width: 80px;\n "])))}})),ze=t(2507),Ae=function(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e},Te=(0,T.kc)((function(e){e.token;return{"loading-div":(0,e.css)(le||(le=Ae(["\n position: absolute;\n top: calc(50% - 11px);\n left: calc(50% - 8px);\n "],["\n position: absolute;\n top: calc(50% - 11px);\n left: calc(50% - 8px);\n "])))}})),Ce=function(){return Ce=Object.assign||function(e){for(var n,t=1,r=arguments.length;t0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1].ant-tabs-nav {\n margin-bottom: 0;\n }\n \n .ant-tabs-tab {\n &:first-of-type {\n margin-left: ","px;\n margin-right: ","px;\n }\n padding: 0;\n \n .ant-tabs-tab-btn {\n display: flex;\n padding-top: ","px;\n padding-bottom: ","px;\n justify-content: center;\n align-items: center;\n gap: ","px;\n \n .ant-tabs-tab-icon {\n height: 16px;\n justify-content: center;\n align-content: center;\n margin-inline-end: 0;\n color: ",";\n \n svg {\n height: 16px;\n width: 16px\n }\n }\n }\n\n &:not(.ant-tabs-tab-active) {\n .ant-tabs-tab-icon {\n &:hover {\n color: ",";\n }\n }\n }\n \n &.ant-tabs-tab-active {\n .ant-tabs-tab-icon {\n color: ","\n }\n }\n }\n "],["\n height: 100%;\n overflow: hidden;\n\n .ant-tabs-content-holder {\n overflow: auto;\n }\n\n &.ant-tabs .ant-tabs-tab+.ant-tabs-tab {\n margin-left: ","px;\n margin-right: ","px;\n }\n &.ant-tabs .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n color: ","\n }\n &.ant-tabs-top >.ant-tabs-nav {\n margin-bottom: 0;\n }\n \n .ant-tabs-tab {\n &:first-of-type {\n margin-left: ","px;\n margin-right: ","px;\n }\n padding: 0;\n \n .ant-tabs-tab-btn {\n display: flex;\n padding-top: ","px;\n padding-bottom: ","px;\n justify-content: center;\n align-items: center;\n gap: ","px;\n \n .ant-tabs-tab-icon {\n height: 16px;\n justify-content: center;\n align-content: center;\n margin-inline-end: 0;\n color: ",";\n \n svg {\n height: 16px;\n width: 16px\n }\n }\n }\n\n &:not(.ant-tabs-tab-active) {\n .ant-tabs-tab-icon {\n &:hover {\n color: ",";\n }\n }\n }\n \n &.ant-tabs-tab-active {\n .ant-tabs-tab-icon {\n color: ","\n }\n }\n }\n "])),n.paddingSM,n.paddingSM,n.colorPrimaryActive,n.paddingSM,n.paddingSM,n.paddingXS,n.paddingXS,n.Tabs.paddingTabs,n.Tabs.itemUnselectedIconColor,n.colorIconHover,n.colorPrimaryActive),onlyActiveLabel:t(Ge||(Ge=Ze(["\n .ant-tabs-tab:not(.ant-tabs-tab-active) {\n span:nth-child(2) {\n display: none;\n }\n\n .ant-tabs-tab-icon {\n margin-inline-end: 0;\n }\n }\n\n @keyframes fadeIn {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n }\n\n .ant-tabs-tab.ant-tabs-tab-active {\n border-bottom: 2px solid ",";\n animation: fadeIn .2s;\n }\n "],["\n .ant-tabs-tab:not(.ant-tabs-tab-active) {\n span:nth-child(2) {\n display: none;\n }\n\n .ant-tabs-tab-icon {\n margin-inline-end: 0;\n }\n }\n\n @keyframes fadeIn {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n }\n\n .ant-tabs-tab.ant-tabs-tab-active {\n border-bottom: 2px solid ",";\n animation: fadeIn .2s;\n }\n "])),n.colorPrimaryActive)}})),Je=t(6997),qe=function(e){var n=e.defaultActiveKey,t=e.showLabelIfActive,r=e.items,o=Xe().styles;return i.createElement(Je.Z,{className:"".concat(o.editorTabs," ").concat(!0===t?o.onlyActiveLabel:""),defaultActiveKey:n,items:r})},Ue=function(){var e=He.getTabs();return i.createElement(qe,{key:1,items:e})},Ve=function(){return i.createElement(i.Fragment,null,i.createElement(Ue,null))},Qe=function(){var e=un.getTabs();return i.createElement(qe,{defaultActiveKey:"1",items:e,showLabelIfActive:!0})},Ke=function(){return i.createElement(i.Fragment,null,i.createElement(Qe,null))},$e=(0,i.createContext)({}),Ye=function(){var e=(0,i.useContext)($e),n=ue(e.id),t=n.isError,r=n.isLoading,o=n.asset;return r||void 0===o?i.createElement("h4",null,"Loading..."):t?i.createElement("h4",null,"Error"):"image"===o.type?i.createElement(i.Fragment,null,i.createElement(K.Z,{src:o.fullPath})):i.createElement("div",null,"view")},en=function(){return i.createElement("h4",null,"Edit TAB")},nn=function(){return i.createElement("h4",null,"Embedded Metadata TAB")},tn=function(){return i.createElement("h4",null,"Custom Metadata TAB")},rn=function(){return i.createElement("h4",null,"Versions TAB")},on=function(){return i.createElement("h4",null,"Schedule TAB")},an=function(){return i.createElement("h4",null,"Dependencies TAB")},ln=function(){return i.createElement("h4",null,"Notes & Events TAB")},cn=function(){return i.createElement("h4",null,"Workflow TAB")},sn=function(){return i.createElement("h4",null,"Tags TAB")},dn=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},e(n,t)};return function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}}(),un=new(function(e){function n(){var n=e.call(this)||this;return n.type="asset",n}return dn(n,e),n}(fe));un.register({key:"view",label:a.t("asset.asset-editor-tabs.view"),children:i.createElement(Ye,null),icon:i.createElement(F,{name:"image-05"})}),un.register({key:"edit",label:a.t("asset.asset-editor-tabs.edit"),children:i.createElement(en,null),icon:i.createElement(F,{name:"edit"})}),un.register({key:"embedded-metadata",label:a.t("asset.asset-editor-tabs.embedded-metadata"),children:i.createElement(nn,null),icon:i.createElement(F,{name:"data-sheet"})}),un.register({key:"custom-metadata",label:a.t("asset.asset-editor-tabs.custom-metadata"),children:i.createElement(tn,null),icon:i.createElement(F,{name:"data-management-2"})}),un.register({key:"versions",label:a.t("asset.asset-editor-tabs.versions"),children:i.createElement(rn,null),icon:i.createElement(F,{name:"history-outlined"})}),un.register({key:"schedule",label:a.t("asset.asset-editor-tabs.schedule"),children:i.createElement(on,null),icon:i.createElement(F,{name:"schedule-outlined"})}),un.register({key:"dependencies",label:a.t("asset.asset-editor-tabs.dependencies"),children:i.createElement(an,null),icon:i.createElement(F,{name:"hierarchy"})}),un.register({key:"notes-events",label:a.t("asset.asset-editor-tabs.notes-events"),children:i.createElement(ln,null),icon:i.createElement(F,{name:"view-details"})}),un.register({key:"tags",label:a.t("asset.asset-editor-tabs.tag"),children:i.createElement(sn,null),icon:i.createElement(F,{name:"tag-two-tone"})}),un.register({key:"workflow",label:a.t("asset.asset-editor-tabs.workflow"),children:i.createElement(cn,null),icon:i.createElement(F,{name:"workflow"})}),s({name:"asset",component:function(e){var n=e.id,t=ue(n),r=t.isLoading,o=t.isError,a=t.asset;return o?i.createElement("div",null,"Error"):r||void 0===a?i.createElement("div",null,"Loading..."):i.createElement($e.Provider,{value:{id:n}},"image"===a.type&&i.createElement(Ke,null),"folder"===a.type&&i.createElement(Ve,null))}});var fn,pn,bn=t(9372),mn=t(3512),hn=function(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e},gn=(0,T.kc)((function(e){var n=e.token;return{treeNode:(0,e.css)(fn||(fn=hn(["\n user-select: none;\n\n .tree-node__content {\n cursor: pointer;\n width: 100%;\n padding: 2px ","px 2px 0;\n white-space: nowrap;\n align-items: center;\n\n @media (hover: hover) {\n &:hover {\n background-color: ",";\n }\n }\n }\n\n &.tree-node--selected > .tree-node__content {\n background-color: ",";\n }\n\n .tree-node__content-wrapper {\n max-width: max(100px, calc(100% - 16px));\n }\n\n .tree-node-content__label {\n display: inline-block;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n "],["\n user-select: none;\n\n .tree-node__content {\n cursor: pointer;\n width: 100%;\n padding: 2px ","px 2px 0;\n white-space: nowrap;\n align-items: center;\n\n @media (hover: hover) {\n &:hover {\n background-color: ",";\n }\n }\n }\n\n &.tree-node--selected > .tree-node__content {\n background-color: ",";\n }\n\n .tree-node__content-wrapper {\n max-width: max(100px, calc(100% - 16px));\n }\n\n .tree-node-content__label {\n display: inline-block;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n "])),n.paddingSM,n.controlItemBgActiveHover,n.controlItemBgActive)}})),vn=function(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e},yn=(0,T.kc)((function(e){var n=e.token;return{"tree-list__pager":(0,e.css)(pn||(pn=vn([" \n padding: ","px 0;\n\n &:empty {\n padding: 0;\n }\n "],[" \n padding: ","px 0;\n\n &:empty {\n padding: 0;\n }\n "])),n.paddingSM)}})),xn=function(){return xn=Object.assign||function(e){for(var n,t=1,r=arguments.length;t0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]]+)>/g,(function(e,n){var t=a[n];return"$"+(Array.isArray(t)?t.join("$"):t)})))}if("function"==typeof o){var i=this;return e[Symbol.replace].call(this,t,(function(){var e=arguments;return"object"!=Xn(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,i)),o.apply(this,e)}))}return e[Symbol.replace].call(this,t,o)},Jn.apply(this,arguments)}function qn(e,n){return qn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},qn(e,n)}var Un=function(){return Un=Object.assign||function(e){for(var n,t=1,r=arguments.length;t{if(!t){var a=1/0;for(d=0;d=o)&&Object.keys(l.O).every((e=>l.O[e](t[c])))?t.splice(c--,1):(i=!1,o0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[t,r,o]},l.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return l.d(n,{a:n}),n},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var o=Object.create(null);l.r(o);var a={};n=n||[null,t({}),t([]),t(t)];for(var i=2&r&&e;"object"==typeof i&&!~n.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((n=>a[n]=()=>e[n]));return a.default=()=>e,l.d(o,a),o},l.d=(e,n)=>{for(var t in n)l.o(n,t)&&!l.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce(((n,t)=>(l.f[t](e,n),n)),[])),l.u=e=>e+"."+{12:"b99e1420",54:"67c7a911",58:"9cf6e23a",121:"d7e855e7",125:"dea60f4e",169:"8822c732",216:"0f9af5f5",288:"328361dd",296:"59065ed1",298:"830d7e38",307:"c11c33c6",324:"eb495a70",347:"5e450f93",397:"5f3d26ea",418:"95706954",447:"9c8796fa",476:"86b891f8",491:"32b6bd6d",524:"94aec92e",577:"2aea901f",621:"ad85fc5a",625:"b487b20e",678:"c220b736",686:"f7f77fbc",732:"864ddc17",737:"9283a5f4",743:"7c7b54b8",766:"f9fa4235",801:"725aee54",905:"546b0a2d",931:"6bd2ca90",949:"adf98f9a",967:"d38ada47"}[e]+".js",l.miniCssF=e=>{},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),l.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),r={},o="Pimcore:",l.l=(e,n,t,a)=>{if(r[e])r[e].push(n);else{var i,c;if(void 0!==t)for(var s=document.getElementsByTagName("script"),d=0;d{i.onerror=i.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(t))),n)return n(t)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),c&&document.head.appendChild(i)}},l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.p="/bundles/pimcorestudioui/build/",(()=>{var e={179:0};l.f.j=(n,t)=>{var r=l.o(e,n)?e[n]:void 0;if(0!==r)if(r)t.push(r[2]);else{var o=new Promise(((t,o)=>r=e[n]=[t,o]));t.push(r[2]=o);var a=l.p+l.u(n),i=new Error;l.l(a,(t=>{if(l.o(e,n)&&(0!==(r=e[n])&&(e[n]=void 0),r)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+n+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,r[1](i)}}),"chunk-"+n,n)}},l.O.j=n=>0===e[n];var n=(n,t)=>{var r,o,[a,i,c]=t,s=0;if(a.some((n=>0!==e[n]))){for(r in i)l.o(i,r)&&(l.m[r]=i[r]);if(c)var d=c(l)}for(n&&n(t);sl(302)));c=l.O(c),Pimcore=c})(); \ No newline at end of file diff --git a/public/build/manifest.json b/public/build/manifest.json index 54f8eb816..4d01e4983 100644 --- a/public/build/manifest.json +++ b/public/build/manifest.json @@ -1,6 +1,6 @@ { "bundles/pimcorestudioui/build/main.css": "/bundles/pimcorestudioui/build/main.3691bcd8.css", - "bundles/pimcorestudioui/build/main.js": "/bundles/pimcorestudioui/build/main.b0b41fde.js", + "bundles/pimcorestudioui/build/main.js": "/bundles/pimcorestudioui/build/main.88ffc0a8.js", "bundles/pimcorestudioui/build/58.9cf6e23a.js": "/bundles/pimcorestudioui/build/58.9cf6e23a.js", "bundles/pimcorestudioui/build/678.c220b736.js": "/bundles/pimcorestudioui/build/678.c220b736.js", "bundles/pimcorestudioui/build/625.b487b20e.js": "/bundles/pimcorestudioui/build/625.b487b20e.js",