Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/page_editor/app/config/index",["module","exports","require","./constants/layoutTypes"],(function(t,e,n){window;{Object.defineProperty(e,"__esModule",{value:!0}),e.initializeConfig=function(n){const{commonStyles:o,layoutType:r,pluginsRootPath:c,portletNamespace:f,sidebarPanels:y}=n,g="".concat(f).concat(t.toolbarId),P=function(t,e){return e.map((e=>{if(d(e)||e.isLink)return e;const n=b[e.sidebarPanelId]||e.sidebarPanelId;return a(a({},e),{},{pluginEntryPoint:"".concat(t,"/").concat(n,"/index"),sidebarPanelId:n})}))}(c,y),m={commonStyles:l(o),commonStylesFields:s(o),panels:i(P),sidebarPanels:(O=P,O.reduce(((t,e)=>{const{sidebarPanelId:n}=e;return d(e)||(t[n]=e),t}),{})),toolbarId:g,toolbarPlugins:u(r,c,g)};var O;return e.config=p=a(a(a({},t),n),m),p},e.config=void 0;var o=n("./constants/layoutTypes");function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const t={toolbarId:"pageEditorToolbar"};let p=t;e.config=p;const b={};function i(t){return t.reduce(((t,e)=>(d(e)?t.push([]):t[t.length-1].push(e.sidebarPanelId),t)),[[]])}function l(t){return t.map((t=>a(a({},t),{},{styles:t.styles.map((t=>a(a({},t),{},{responsive:!0})))})))}function s(t){const e={};return Object.values(t).forEach((t=>{t.styles.forEach((t=>{e[t.name]={cssTemplate:t.cssTemplate,defaultValue:t.defaultValue}}))})),e}function u(t,e,n){const r="".concat(n,"_").concat("experience");return t===o.LAYOUT_TYPES.content?[{loadingPlaceholder:'\n\t\t\t<div class="page-editor__toolbar-experience">\n\t\t\t\t<label class="d-lg-block d-none mr-2" for="'.concat(r,'">\n\t\t\t\t\tExperience\n\t\t\t\t</label>\n\t\t\t\t<button class="form-control-select pr-4 text-left text-truncate btn btn-sm btn-secondary"\n\t\t\t\t\ttype="button" \n\t\t\t\t\tid="').concat(r,'"\n\t\t\t\t\tdisabled>\n\t\t\t\t\t<div class="autofit-row autofit-row-center">\n\t\t\t\t\t\t<div class="autofit-col autofit-col-expand">\n\t\t\t\t\t\t\t<span class="text-truncate">Default</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="autofit-col"></div>\n\t\t\t\t\t</div>\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t'),pluginEntryPoint:"".concat(e,"/experience/index"),toolbarPluginId:"experience"}]:[]}function d(t){return"separator"===t.sidebarPanelId}}}));
//# sourceMappingURL=index.js.map