diff --git a/Resources/Public/Assets/main.js b/Resources/Public/Assets/main.js index 7b7b036..bb125ea 100644 --- a/Resources/Public/Assets/main.js +++ b/Resources/Public/Assets/main.js @@ -1,4 +1,4 @@ -(()=>{function e(e){return e&&e.__esModule?e.default:e}function t(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},r={},a={},o=n.parcelRequire8c17;null==o&&((o=function(e){if(e in r)return r[e].exports;if(e in a){var t=a[e];delete a[e];var n={id:e,exports:{}};return r[e]=n,t.call(n.exports,n,n.exports),n.exports}var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}).register=function(e,t){a[e]=t},n.parcelRequire8c17=o),o.register("8KZnR",(function(t,n){var r=o("1IdZj");o("8NFma");var a=o("6T1J1"),l=o("6ljw2"),i=o("bqwfm"),s=o("cUaBx"),u=o("jVN6o"),c=o("6FLl3"),d=o("eeMxU"),f=o("jvJHL");(0,l.setConfig)({showReactDomPatchNotification:!1}),window.onload=async()=>{for(;!window.NeosCMS?.I18n?.initialized;)await new Promise((e=>setTimeout(e,50)));const n=document.getElementById("workspace-module-app");if(!n)return;const{userWorkspace:o,csrfToken:p,endpoints:h,userCanManageInternalWorkspaces:m,validation:g}=Object.keys(n.dataset).reduce(((e,t)=>(e[t]=JSON.parse(n.dataset[t]),e)),{}),v=document.getElementById("workspaces"),y=document.getElementById("baseWorkspaceOptions"),b=document.getElementById("userList");if(!v||!y||!b)return void(n.innerText="Workspace module is missing required data elements");const k=JSON.parse(document.getElementById("workspaces").textContent),w=JSON.parse(document.getElementById("baseWorkspaceOptions").textContent),x=JSON.parse(document.getElementById("userList").textContent),{I18n:S,Notification:C}=window.NeosCMS,E=(e,t="",n=[])=>S.translate(e,t,"Shel.Neos.WorkspaceModule","Main",n);e(i).setAppElement(n);const N=(0,l.hot)(t)(s.default);(0,a.createRoot)(n).render((0,r.jsx)(f.default,{children:(0,r.jsx)(c.IntlProvider,{translate:E,children:(0,r.jsx)(d.NotifyProvider,{notificationApi:C,children:(0,r.jsx)(u.WorkspaceProvider,{workspaceList:k,baseWorkspaceOptions:w,userCanManageInternalWorkspaces:m,userList:x,userWorkspace:o,endpoints:h,csrfToken:p,validation:g,translate:E,children:(0,r.jsx)(N,{})})})})}))}})),o.register("1IdZj",(function(e,t){"use strict";e.exports=o("89wqa")})),o.register("89wqa",(function(e,n){ +(()=>{function e(e){return e&&e.__esModule?e.default:e}function t(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},r={},a={},o=n.parcelRequire8c17;null==o&&((o=function(e){if(e in r)return r[e].exports;if(e in a){var t=a[e];delete a[e];var n={id:e,exports:{}};return r[e]=n,t.call(n.exports,n,n.exports),n.exports}var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}).register=function(e,t){a[e]=t},n.parcelRequire8c17=o),o.register("8KZnR",(function(t,n){var r=o("1IdZj");o("8NFma");var a=o("6T1J1"),l=o("6ljw2"),i=o("bqwfm"),s=o("cUaBx"),u=o("jVN6o"),c=o("6FLl3"),d=o("eeMxU"),f=o("jvJHL");(0,l.setConfig)({showReactDomPatchNotification:!1}),window.onload=async()=>{for(;!window.NeosCMS?.I18n?.initialized;)await new Promise((e=>setTimeout(e,50)));const n=document.getElementById("workspace-module-app");if(!n)return;const{userWorkspace:o,moduleCsrfToken:p,endpoints:h,userCanManageInternalWorkspaces:m,validation:g}=Object.keys(n.dataset).reduce(((e,t)=>(e[t]=JSON.parse(n.dataset[t]),e)),{}),v=document.getElementById("workspaces"),y=document.getElementById("baseWorkspaceOptions"),b=document.getElementById("userList");if(!v||!y||!b)return void(n.innerText="Workspace module is missing required data elements");const k=JSON.parse(document.getElementById("workspaces").textContent),w=JSON.parse(document.getElementById("baseWorkspaceOptions").textContent),x=JSON.parse(document.getElementById("userList").textContent),{I18n:S,Notification:C}=window.NeosCMS,E=(e,t="",n=[])=>S.translate(e,t,"Shel.Neos.WorkspaceModule","Main",n);e(i).setAppElement(n);const N=(0,l.hot)(t)(s.default);(0,a.createRoot)(n).render((0,r.jsx)(f.default,{children:(0,r.jsx)(c.IntlProvider,{translate:E,children:(0,r.jsx)(d.NotifyProvider,{notificationApi:C,children:(0,r.jsx)(u.WorkspaceProvider,{workspaceList:k,baseWorkspaceOptions:w,userCanManageInternalWorkspaces:m,userList:x,userWorkspace:o,endpoints:h,csrfToken:p,validation:g,translate:E,children:(0,r.jsx)(N,{})})})})}))}})),o.register("1IdZj",(function(e,t){"use strict";e.exports=o("89wqa")})),o.register("89wqa",(function(e,n){ /** * @license React * react-jsx-runtime.production.min.js @@ -18,7 +18,7 @@ var r,a,l;t(e.exports,"Fragment",(()=>r),(e=>r=e)),t(e.exports,"jsx",(()=>a),(e= * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var r,a,o,l,i,s,u,c,d,f,p,h,m,g,v,y,b,k,w,x,S,C,E,N,_,O,j,P,T,M,R,F,L,z,I;t(e.exports,"Children",(()=>r),(e=>r=e)),t(e.exports,"Component",(()=>a),(e=>a=e)),t(e.exports,"Fragment",(()=>o),(e=>o=e)),t(e.exports,"Profiler",(()=>l),(e=>l=e)),t(e.exports,"PureComponent",(()=>i),(e=>i=e)),t(e.exports,"StrictMode",(()=>s),(e=>s=e)),t(e.exports,"Suspense",(()=>u),(e=>u=e)),t(e.exports,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(()=>c),(e=>c=e)),t(e.exports,"cloneElement",(()=>d),(e=>d=e)),t(e.exports,"createContext",(()=>f),(e=>f=e)),t(e.exports,"createElement",(()=>p),(e=>p=e)),t(e.exports,"createFactory",(()=>h),(e=>h=e)),t(e.exports,"createRef",(()=>m),(e=>m=e)),t(e.exports,"forwardRef",(()=>g),(e=>g=e)),t(e.exports,"isValidElement",(()=>v),(e=>v=e)),t(e.exports,"lazy",(()=>y),(e=>y=e)),t(e.exports,"memo",(()=>b),(e=>b=e)),t(e.exports,"startTransition",(()=>k),(e=>k=e)),t(e.exports,"unstable_act",(()=>w),(e=>w=e)),t(e.exports,"useCallback",(()=>x),(e=>x=e)),t(e.exports,"useContext",(()=>S),(e=>S=e)),t(e.exports,"useDebugValue",(()=>C),(e=>C=e)),t(e.exports,"useDeferredValue",(()=>E),(e=>E=e)),t(e.exports,"useEffect",(()=>N),(e=>N=e)),t(e.exports,"useId",(()=>_),(e=>_=e)),t(e.exports,"useImperativeHandle",(()=>O),(e=>O=e)),t(e.exports,"useInsertionEffect",(()=>j),(e=>j=e)),t(e.exports,"useLayoutEffect",(()=>P),(e=>P=e)),t(e.exports,"useMemo",(()=>T),(e=>T=e)),t(e.exports,"useReducer",(()=>M),(e=>M=e)),t(e.exports,"useRef",(()=>R),(e=>R=e)),t(e.exports,"useState",(()=>F),(e=>F=e)),t(e.exports,"useSyncExternalStore",(()=>L),(e=>L=e)),t(e.exports,"useTransition",(()=>z),(e=>z=e)),t(e.exports,"version",(()=>I),(e=>I=e));var A=Symbol.for("react.element"),D=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),H=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),Q=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),K=Symbol.iterator;var Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y=Object.assign,G={};function J(e,t,n){this.props=e,this.context=t,this.refs=G,this.updater=n||Z}function ee(){}function te(e,t,n){this.props=e,this.context=t,this.refs=G,this.updater=n||Z}J.prototype.isReactComponent={},J.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},J.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},ee.prototype=J.prototype;var ne=te.prototype=new ee;ne.constructor=te,Y(ne,J.prototype),ne.isPureReactComponent=!0;var re=Array.isArray,ae=Object.prototype.hasOwnProperty,oe={current:null},le={key:!0,ref:!0,__self:!0,__source:!0};function ie(e,t,n){var r,a={},o=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(o=""+t.key),t)ae.call(t,r)&&!le.hasOwnProperty(r)&&(a[r]=t[r]);var i=arguments.length-2;if(1===i)a.children=n;else if(1r),(e=>r=e));var a=o("2pmb0");r=a.createRoot,a.hydrateRoot})),o.register("2pmb0",(function(e,t){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=o("23wBm")})),o.register("23wBm",(function(e,n){ +var r,a,o,l,i,s,u,c,d,f,p,h,m,g,v,y,b,k,w,x,S,C,E,N,_,O,P,j,T,M,R,F,L,z,I;t(e.exports,"Children",(()=>r),(e=>r=e)),t(e.exports,"Component",(()=>a),(e=>a=e)),t(e.exports,"Fragment",(()=>o),(e=>o=e)),t(e.exports,"Profiler",(()=>l),(e=>l=e)),t(e.exports,"PureComponent",(()=>i),(e=>i=e)),t(e.exports,"StrictMode",(()=>s),(e=>s=e)),t(e.exports,"Suspense",(()=>u),(e=>u=e)),t(e.exports,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(()=>c),(e=>c=e)),t(e.exports,"cloneElement",(()=>d),(e=>d=e)),t(e.exports,"createContext",(()=>f),(e=>f=e)),t(e.exports,"createElement",(()=>p),(e=>p=e)),t(e.exports,"createFactory",(()=>h),(e=>h=e)),t(e.exports,"createRef",(()=>m),(e=>m=e)),t(e.exports,"forwardRef",(()=>g),(e=>g=e)),t(e.exports,"isValidElement",(()=>v),(e=>v=e)),t(e.exports,"lazy",(()=>y),(e=>y=e)),t(e.exports,"memo",(()=>b),(e=>b=e)),t(e.exports,"startTransition",(()=>k),(e=>k=e)),t(e.exports,"unstable_act",(()=>w),(e=>w=e)),t(e.exports,"useCallback",(()=>x),(e=>x=e)),t(e.exports,"useContext",(()=>S),(e=>S=e)),t(e.exports,"useDebugValue",(()=>C),(e=>C=e)),t(e.exports,"useDeferredValue",(()=>E),(e=>E=e)),t(e.exports,"useEffect",(()=>N),(e=>N=e)),t(e.exports,"useId",(()=>_),(e=>_=e)),t(e.exports,"useImperativeHandle",(()=>O),(e=>O=e)),t(e.exports,"useInsertionEffect",(()=>P),(e=>P=e)),t(e.exports,"useLayoutEffect",(()=>j),(e=>j=e)),t(e.exports,"useMemo",(()=>T),(e=>T=e)),t(e.exports,"useReducer",(()=>M),(e=>M=e)),t(e.exports,"useRef",(()=>R),(e=>R=e)),t(e.exports,"useState",(()=>F),(e=>F=e)),t(e.exports,"useSyncExternalStore",(()=>L),(e=>L=e)),t(e.exports,"useTransition",(()=>z),(e=>z=e)),t(e.exports,"version",(()=>I),(e=>I=e));var A=Symbol.for("react.element"),D=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),H=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),Q=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),K=Symbol.iterator;var Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y=Object.assign,G={};function J(e,t,n){this.props=e,this.context=t,this.refs=G,this.updater=n||Z}function ee(){}function te(e,t,n){this.props=e,this.context=t,this.refs=G,this.updater=n||Z}J.prototype.isReactComponent={},J.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},J.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},ee.prototype=J.prototype;var ne=te.prototype=new ee;ne.constructor=te,Y(ne,J.prototype),ne.isPureReactComponent=!0;var re=Array.isArray,ae=Object.prototype.hasOwnProperty,oe={current:null},le={key:!0,ref:!0,__self:!0,__source:!0};function ie(e,t,n){var r,a={},o=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(o=""+t.key),t)ae.call(t,r)&&!le.hasOwnProperty(r)&&(a[r]=t[r]);var i=arguments.length-2;if(1===i)a.children=n;else if(1r),(e=>r=e));var a=o("2pmb0");r=a.createRoot,a.hydrateRoot})),o.register("2pmb0",(function(e,t){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=o("23wBm")})),o.register("23wBm",(function(e,n){ /** * @license React * react-dom.production.min.js @@ -28,7 +28,7 @@ var r,a,o,l,i,s,u,c,d,f,p,h,m,g,v,y,b,k,w,x,S,C,E,N,_,O,j,P,T,M,R,F,L,z,I;t(e.ex * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var r,a,l,i,s,u,c,d,f,p,h,m;t(e.exports,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(()=>r),(e=>r=e)),t(e.exports,"createPortal",(()=>a),(e=>a=e)),t(e.exports,"createRoot",(()=>l),(e=>l=e)),t(e.exports,"findDOMNode",(()=>i),(e=>i=e)),t(e.exports,"flushSync",(()=>s),(e=>s=e)),t(e.exports,"hydrate",(()=>u),(e=>u=e)),t(e.exports,"hydrateRoot",(()=>c),(e=>c=e)),t(e.exports,"render",(()=>d),(e=>d=e)),t(e.exports,"unmountComponentAtNode",(()=>f),(e=>f=e)),t(e.exports,"unstable_batchedUpdates",(()=>p),(e=>p=e)),t(e.exports,"unstable_renderSubtreeIntoContainer",(()=>h),(e=>h=e)),t(e.exports,"version",(()=>m),(e=>m=e));var g=o("8NFma"),v=o("clk2u");function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n